@font-face {
  font-family: "Chakra Petch";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/chakra-petch-bold.woff2") format("woff2");
}
@font-face {
  font-family: "Chakra Petch";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/chakra-petch-semibold.woff2") format("woff2");
}

:root {
  --ground: #060a12;
  --panel: #0e1522;
  --edge: #22304a;
  --text: #e4eaf5;
  --muted: #8a9ab5;
  --dot: #ff5b45;
  --lime: #c9e24b;
  --display: "Chakra Petch", system-ui, sans-serif;
  --body: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 5vw, 48px);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 1.125rem/1.65 var(--body);
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--lime);
}
a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(86svh, 720px);
  overflow: hidden;
}
.sky {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.hero-text {
  position: relative;
  max-width: 64rem;
  padding: 0 var(--gutter) clamp(32px, 8vh, 72px);
}
.title {
  margin: 0;
  font: 700 clamp(2.75rem, 10.5vw, 6.5rem) / 0.95 var(--display);
  letter-spacing: -0.015em;
}
.title-sub {
  display: block;
  margin-top: 0.5em;
  color: var(--muted);
  font: 600 clamp(1.1rem, 3.4vw, 1.75rem) / 1.2 var(--display);
  letter-spacing: 0.02em;
}
.tagline {
  max-width: 42ch;
  margin: 1.25rem 0 0.25rem;
  font-size: clamp(1.15rem, 3.2vw, 1.5rem);
  line-height: 1.4;
  text-wrap: balance;
}
.status {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Content */
.page {
  padding: clamp(48px, 9vw, 96px) var(--gutter) 0;
}
.block {
  max-width: 62ch;
  margin: 0 0 clamp(48px, 9vw, 96px);
}
.block h2,
.doc h2 {
  margin: 0 0 0.6em;
  font: 600 clamp(1.5rem, 4vw, 2rem) / 1.2 var(--display);
  text-wrap: balance;
}
.block p {
  margin: 0 0 1em;
}
.block p:last-child {
  margin-bottom: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: clamp(16px, 3vw, 32px);
  max-width: 72rem;
  margin: 0 0 clamp(48px, 9vw, 96px);
  padding: 0;
  list-style: none;
}
.shot {
  margin: 0;
}
.shot-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.shot-caption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Fleet: interactive 3D ships */
.fleet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: clamp(16px, 3vw, 32px);
  max-width: 72rem;
  margin: 0 0 clamp(48px, 9vw, 96px);
  padding: 0;
  list-style: none;
}
.ship {
  margin: 0;
}
.ship-view {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  --poster-color: transparent;
  --progress-bar-color: var(--dot);
}
.ship-view:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 24px var(--gutter) 48px;
  border-top: 1px solid var(--edge);
  color: var(--muted);
  font-size: 0.95rem;
}
.foot a {
  color: var(--muted);
}
.foot a:hover {
  color: var(--lime);
}

/* Privacy and error pages */
.bar {
  padding: 20px var(--gutter) 0;
  font: 700 1.1rem/1 var(--display);
}
.bar a {
  color: var(--text);
  text-decoration: none;
}
.bar a:hover {
  color: var(--lime);
}
.bar-dot {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.5em;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 10px 1px rgba(255, 91, 69, 0.55);
}
.doc {
  max-width: 44rem;
  padding: clamp(32px, 7vw, 64px) var(--gutter) clamp(48px, 9vw, 96px);
}
.doc h1 {
  margin: 0 0 0.3em;
  font: 700 clamp(1.9rem, 6vw, 2.75rem) / 1.1 var(--display);
}
.doc h2 {
  margin-top: 2.2em;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
}
.doc p,
.doc ul {
  margin: 0 0 1em;
}
.doc ul {
  padding-left: 1.25em;
}
.doc li {
  margin-bottom: 0.5em;
}
.doc-meta {
  color: var(--muted);
}
