/* Privateer Reimagined: "Concourse poster" (#28).
   Palette sampled from the repainted New Detroit concourse; type pairs box-art display
   (Archivo, expanded) with manual-style body text (Source Serif 4). */

@font-face {
  font-family: "Archivo Expanded";
  src: url("/fonts/archivo-expanded.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 400 650;
  font-display: swap;
}

:root {
  --night: #0f141b;     /* the painting's sky between towers */
  --slate: #1e232c;     /* wet concrete */
  --bone: #ebe3d6;      /* body text */
  --stone: #a49585;     /* secondary text */
  --sodium: #c78449;    /* the windows' amber */
  --sodium-lit: #eac086;
  --awning: #c1502e;    /* used only to flag the Windows warning */
  --hangar: #4fb6e6;    /* hangar strip, lightened for focus contrast */

  --display: "Archivo Expanded", "Arial Black", sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --measure: 36rem;
  --gutter: clamp(20px, 5vw, 64px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font: 400 1.125rem/1.65 var(--body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--sodium-lit); text-underline-offset: 0.18em; }
a:hover { color: var(--bone); }

:focus-visible { outline: 3px solid var(--hangar); outline-offset: 3px; }

h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; max-width: 18ch; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0.9em 0 0; }

/* ---- Hero: the painting is the page --------------------------------------- */

.hero {
  position: relative;
  min-height: clamp(34rem, 100svh, 64rem);   /* full screen, but not on tall portrait monitors */
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  z-index: -2;
}

/* The reel plays for everyone (#49: it's gentle, crossfades and walkers, and Mike wants it
   seen); anyone can stop it. No JS on the site, so the stop control is a checkbox + label:
   checked hides the video and shows the poster (= the reel's first frame) instead. The poster
   only downloads when the box is ticked. */
.motion-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.motion-label {
  position: absolute;
  top: 16px;
  right: var(--gutter);
  z-index: 1;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(15 20 27 / 0.72);
  color: var(--bone);
  font: 700 0.72rem/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.motion-label:hover { background: rgb(15 20 27 / 0.9); }
.motion-toggle:focus-visible + .motion-label { outline: 2px solid var(--hangar); outline-offset: 2px; }
.motion-play,
.motion-toggle:checked + .motion-label .motion-stop { display: none; }
.motion-toggle:checked + .motion-label .motion-play { display: inline; }
.hero:has(.motion-toggle:checked) video.hero-art { display: none; }
.hero:has(.motion-toggle:checked) { background: var(--night) url("/video/concourses.webp") 50% 40% / cover no-repeat; }

/* Scrim: dark only where the type sits (bottom-left), so the reflections on the wet floor,
   the stairs and the hangar glass keep their light. The last strip fades into the page. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 85% 70% at 24% 90%, rgb(15 20 27 / 0.9) 0%, rgb(15 20 27 / 0.7) 45%, rgb(15 20 27 / 0) 78%),
    linear-gradient(to top, var(--night) 0%, rgb(15 20 27 / 0) 16%);
}
/* The reel's rooms vary a lot in brightness (the naval deck's floor is lit), so the scrim is
   sized for the brightest. On narrow screens the copy spans the width: darken bottom-up. */
@media (max-width: 700px) {
  .hero::after {
    background: linear-gradient(to top, var(--night) 0%, rgb(15 20 27 / 0.88) 35%,
                                rgb(15 20 27 / 0.6) 55%, rgb(15 20 27 / 0) 75%);
  }
}

.hero-copy {
  padding: 0 var(--gutter) clamp(40px, 9vh, 96px);
  max-width: 1200px;
}

/* The one loud thing on the page: a box-art title lockup. Both lines are set to the same
   width, the way 90s game boxes stacked a title. */
.lockup {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.01em;
  margin: 0;
  /* PRIVATEER is ~7.3em wide in this face: size it to the space between the gutters so the
     lockup fits any screen, up to 8.5rem. */
  font-size: min(8.5rem, calc((100vw - 2 * var(--gutter)) / 7.6));
  color: var(--bone);
  text-shadow: 0 0.035em 0 rgb(0 0 0 / 0.55), 0 0.1em 0.5em rgb(0 0 0 / 0.45);
}
.lockup span { display: block; width: max-content; }
.lockup span + span { font-size: 0.874em; }   /* matches PRIVATEER's width */

.tagline {
  max-width: var(--measure);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  margin-top: 1.1em;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.6);
}

.get {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 28px;
}

.button {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--night);
  background: var(--sodium);
  padding: 0.95em 1.5em;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover { background: var(--sodium-lit); color: var(--night); }

.get-note {
  margin: 0;
  max-width: 24rem;
  font-size: 0.95rem;
  color: var(--stone);
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.8);   /* sits over floor reflections */
}

/* ---- Sections -------------------------------------------------------------- */

main { padding: 0 var(--gutter); max-width: 1280px; margin: 0 auto; }
main > section { padding-block: clamp(64px, 11vw, 128px) 0; }

figure { margin: 0; }
figcaption { font-size: 0.9rem; color: var(--stone); margin-top: 10px; }

/* Ports: one large painting, two smaller ones stacked beside it. */
.ports {
  display: grid;
  gap: 28px 32px;
  grid-template-columns: 1fr;
}
.intro p { max-width: var(--measure); }

@media (min-width: 860px) {
  .ports {
    grid-template-columns: 1.65fr 1fr;
    grid-template-areas:
      "intro intro"
      "main a"
      "main b";
  }
  .ports .intro { grid-area: intro; }
  .intro { display: grid; grid-template-columns: 1.65fr 1fr; gap: 32px; align-items: end; }
  .intro p { margin: 0; }
  .port-main { grid-area: main; }
  .port-main img { height: 100%; object-fit: cover; }
  .port-main { display: grid; grid-template-rows: 1fr auto; }
}

/* The fleet: one wide set piece, then every ship like a hangar roster. 17 ships with the
   first (the Tarsus, where every career starts) at 2x2 make 20 cells: exactly 10 rows of
   two or 5 rows of four, so no ship is ever left alone on a row. */
.flight { display: grid; gap: 28px; }
.fleet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px; align-items: start; }
.fleet figure:first-child { grid-column: span 2; grid-row: span 2; }
@media (min-width: 1000px) { .fleet { grid-template-columns: repeat(4, 1fr); } }
.fleet figcaption { margin-top: 8px; }
.fleet figcaption b { font-family: var(--display); font-weight: 700; color: var(--bone); margin-right: 0.4em; }

/* Story: words and a bar scene on the left, the cast on the right, every other face
   dropped lower, like stills pinned to a board. */
.story { display: grid; gap: 40px; }
.story-copy p { max-width: var(--measure); }
.bar { margin-top: 32px; }
.cast { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; align-items: start; }
.cast figure:nth-child(even) { margin-top: 18%; }
.cast figcaption { font-family: var(--display); font-weight: 700; font-size: 0.95rem; color: var(--bone); }

@media (min-width: 860px) {
  .story { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
  .cast { padding-top: 12px; }
}

/* Install: a real sequence, so it's numbered. */
.install { display: grid; gap: 36px; }
.install h2 { max-width: none; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 30px; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  column-gap: 16px;
}
.steps li::before {
  content: counter(step);
  grid-row: span 3;
  font-family: var(--display);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 0.9;
  color: var(--sodium);
}
.steps p { grid-column: 2; max-width: var(--measure); margin-top: 0.4em; }
.steps h3 { grid-column: 2; }

.heads-up p:first-of-type { border-left: 3px solid var(--awning); padding-left: 14px; }
.hash { font-size: 0.9rem; color: var(--stone); }
.hash code {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--bone);
  overflow-wrap: anywhere;
}

.needs {
  background: var(--slate);
  padding: 28px 30px;
  border-radius: 3px;
  align-self: start;
}
.needs ul { margin: 14px 0 0; padding-left: 1.1em; }
.needs li { margin: 6px 0; }
.needs p { color: var(--stone); font-size: 0.95rem; }

@media (min-width: 860px) {
  .install { grid-template-columns: 1.6fr 1fr; column-gap: 64px; }
  .install h2 { grid-column: 1 / -1; }
}

/* FAQ */
.faq { max-width: 48rem; }
.faq h2 { margin-bottom: 18px; }
details { border-top: 1px solid rgb(235 227 214 / 0.12); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid rgb(235 227 214 / 0.12); }
summary { cursor: pointer; font-weight: 600; }
summary:hover { color: var(--sodium-lit); }
details p { color: var(--stone); max-width: var(--measure); }

footer {
  max-width: 1280px;
  margin: clamp(64px, 11vw, 128px) auto 0;
  padding: 28px var(--gutter) 40px;
  color: var(--stone);
  font-size: 0.85rem;
}
footer p { margin: 0; max-width: 44rem; }
footer p + p { margin-top: 8px; }

/* Text pages (privacy, #61): one readable column. */
.page { max-width: var(--measure); padding-block: clamp(48px, 9vw, 96px) 0; }
.page h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 6vw, 3.6rem);
           line-height: 1; margin: 8px 0 20px; text-transform: uppercase; }
.page h2 { font-size: 1.25rem; max-width: none; margin: 36px 0 8px; }
.page p { margin: 0 0 12px; }
.page .lede { font-size: 1.35rem; color: var(--bone); }
.page .eyebrow a { color: var(--stone); text-decoration: none; }
.page .updated { margin-top: 36px; color: var(--stone); font-size: 0.85rem; }

/* 404 */
.lost .hero-copy p { max-width: var(--measure); }
