/* Dead Seas — site stylesheet.
 *
 * The palette and the frame are the game's own HUD (terrainscene.cpp,
 * hud_*() and hudFrame()): navy fill with chamfered corners, a dark brass
 * line outside, a bright brass line two pixels in, a tick in each corner,
 * brass capitals for titles, pale blue-white for body text.
 */

/* IM FELL English: the face of the game's own title ("DEAD SEAS" inked on the
 * Admiralty chart, src/title_inked.h). SIL OFL 1.1, (c) 2010 Igino Marini;
 * see fonts/OFL-IMFell.txt. Roman + italic for text, SC for the HUD labels. */
@font-face {
  font-family: "IM Fell English";
  src: url("../fonts/IMFeENrm28P.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IM Fell English";
  src: url("../fonts/IMFeENit28P.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IM Fell English SC";
  src: url("../fonts/IMFeENsc28P.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* hud_*() — the game's palette, verbatim */
  --navy: #00192a;
  --navy-light: #08283e;
  --brass: #a27e56;
  --brass-light: #ddca9e;
  --brass-dark: #6f4221;
  --ink: #b5c5d4;
  --slate: #96a2b2;

  /* the sea, and the notice banner's red */
  --deep: #000c16;
  --sea-1: #06243f;
  --sea-2: #0a2f52;
  --alert: #b0282a;
  --alert-light: #e8a39a;
  --ok: #7fbf7f;

  --pixel: "IM Fell English SC", Georgia, serif;   /* HUD labels, buttons, nav */
  --serif: "IM Fell English", Georgia, serif;

  /* the inked title: Admiralty red, ink keyline, paper halo (title_inked.h) */
  --title-red: #80281e;
  --title-ink: #411b0a;
  --title-paper: #e4cc9e;
  --gutter: 16px;
  --max: 1160px;
  --chamfer: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  font-synthesis: none;   /* IM FELL has one weight: never fake a bold */
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brass-light); }
a:hover { color: #fff3d6; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ── HUD vocabulary ─────────────────────────────────────────────────── */

.caps {
  font-family: var(--pixel);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* The frame: an octagon, dark brass outside, bright brass two in. */
.hud {
  --c: var(--chamfer);
  position: relative;
  background: var(--brass-dark);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c),
                     100% calc(100% - var(--c)), calc(100% - var(--c)) 100%,
                     var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  padding: 2px;
}
.hud > .hud-in {
  --c2: calc(var(--c) - 1px);
  background: var(--brass-light);
  clip-path: polygon(var(--c2) 0, calc(100% - var(--c2)) 0, 100% var(--c2),
                     100% calc(100% - var(--c2)), calc(100% - var(--c2)) 100%,
                     var(--c2) 100%, 0 calc(100% - var(--c2)), 0 var(--c2));
  padding: 1px;
  height: 100%;
}
.hud > .hud-in > .hud-body {
  --c3: calc(var(--c) - 2px);
  position: relative;
  background: var(--navy);
  clip-path: polygon(var(--c3) 0, calc(100% - var(--c3)) 0, 100% var(--c3),
                     100% calc(100% - var(--c3)), calc(100% - var(--c3)) 100%,
                     var(--c3) 100%, 0 calc(100% - var(--c3)), 0 var(--c3));
  height: 100%;
}
/* the tick in each corner */
.hud-body::before, .hud-body::after {
  content: "";
  position: absolute;
  inset: 5px;
  pointer-events: none;
  background:
    linear-gradient(var(--brass), var(--brass)) left 3px top 3px / 5px 1px,
    linear-gradient(var(--brass), var(--brass)) left 3px top 3px / 1px 5px,
    linear-gradient(var(--brass), var(--brass)) right 3px top 3px / 5px 1px,
    linear-gradient(var(--brass), var(--brass)) right 3px top 3px / 1px 5px,
    linear-gradient(var(--brass), var(--brass)) left 3px bottom 3px / 5px 1px,
    linear-gradient(var(--brass), var(--brass)) left 3px bottom 3px / 1px 5px,
    linear-gradient(var(--brass), var(--brass)) right 3px bottom 3px / 5px 1px,
    linear-gradient(var(--brass), var(--brass)) right 3px bottom 3px / 1px 5px;
  background-repeat: no-repeat;
}
.hud-body::after { display: none; }

/* the title band: lighter navy, closed by a brass hairline */
.hud-title {
  background: var(--navy-light);
  border-bottom: 1px solid var(--brass);
  color: var(--brass-light);
  font-family: var(--pixel);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 8px 20px 7px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hud-title .glyph { color: var(--brass); }
.hud-pad { padding: 20px 22px 22px; }

/* the red notice banner ("Pirate Bay changed hands") */
.notice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pixel);
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--alert-light);
  background: #2a0b0e;
  border: 2px solid var(--alert);
  outline: 1px solid #5a1216;
  outline-offset: 1px;
  border-radius: 999px;
  padding: 4px 16px;
}
.notice .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--alert-light);
  animation: blink 1.6s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

/* buttons: brass plate, bevelled like the game's */
.btn {
  --c: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--pixel);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  color: #1a0f05;
  background: linear-gradient(#e9d9b0, var(--brass-light) 45%, var(--brass) 100%);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c),
                     100% calc(100% - var(--c)), calc(100% - var(--c)) 100%,
                     var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  box-shadow: inset 0 -3px 0 var(--brass-dark), inset 0 2px 0 #fff4d8;
  border: 0;
  cursor: pointer;
  transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.08); color: #000; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn.ghost {
  color: var(--brass-light);
  background: var(--navy-light);
  box-shadow: inset 0 0 0 2px var(--brass), inset 0 0 0 3px var(--brass-dark);
}
.btn.ghost:hover { color: #fff3d6; }
.btn[aria-disabled="true"] { filter: grayscale(.6) brightness(.8); cursor: not-allowed; transform: none; }

/* ── the top bar: the game's resource bar ───────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(#0b2238, #04121f);
  border-bottom: 2px solid var(--brass-dark);
  box-shadow: 0 1px 0 var(--brass) inset, 0 6px 18px rgba(0,0,0,.5);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 56px;
}
.brand {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .06em;
  color: #fff;
  text-decoration: none;
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
  white-space: nowrap;
}
.brand:hover { color: #fff; }
.res {
  display: flex;
  gap: 4px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.res a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  white-space: nowrap;
  font-family: var(--pixel);
  font-size: 17px;
  letter-spacing: .02em;
  text-transform: none;   /* IM FELL SC: lower case comes out as true small capitals */
  color: var(--ink);
  text-decoration: none;
  border: 1px solid transparent;
}
.res a:hover, .res a:focus-visible {
  color: var(--brass-light);
  border-color: var(--brass-dark);
  background: rgba(162,126,86,.1);
  outline: none;
}
.res svg { width: 16px; height: 16px; flex: none; }
.tag {
  font-family: var(--pixel);
  font-size: 13px;
  color: var(--slate);
  letter-spacing: .08em;
  white-space: nowrap;
}
.menu-toggle { display: none; }
@media (max-width: 1480px) { .tag { display: none; } }

@media (max-width: 1100px) {
  .tag { display: none; }
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    min-height: 40px;
    padding: 8px 14px;
    font-size: 14px;
  }
  .res {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #04121f;
    border-bottom: 2px solid var(--brass-dark);
    padding: 8px var(--gutter) 14px;
  }
  .res.open { display: flex; }
  .res a { padding: 12px; font-size: 17px; }
}

/* ── the sea (hero) ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 860px);
  display: flex;
  align-items: center;
  padding: 72px 0 96px;
  background: var(--deep);
  isolation: isolate;
}
/* the gameplay clip, filling the hero; scaled up with hard pixel edges */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  z-index: -2;
}
/* darken the left for the text, fade the bottom into the page */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,12,22,.92) 0%, rgba(0,12,22,.78) 45%, rgba(0,12,22,.25) 75%, rgba(0,12,22,.05) 100%),
    linear-gradient(180deg, rgba(0,12,22,.55) 0%, transparent 22%, transparent 70%, var(--deep) 100%);
}
.hero .wrap { position: relative; width: 100%; }
.hero-copy { max-width: 780px; }
/* one line, like the title on the game's menu */
@media (min-width: 700px) { .hero h1 { white-space: nowrap; } }
.hero-caption {
  position: absolute;
  right: var(--gutter);
  bottom: 18px;
  margin: 0;
  font-family: var(--pixel);
  font-size: 15px;
  color: var(--slate);
  text-shadow: 0 1px 2px #000;
}
.hero-caption .live { color: var(--ok); }
@media (max-width: 900px) {
  .hero { min-height: 0; padding: 48px 0 72px; }
  .hero::after { background: linear-gradient(180deg, rgba(0,12,22,.75), rgba(0,12,22,.85) 60%, var(--deep)); }
}
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } .hero { background: var(--deep) url("../img/hero-poster.webp") center / cover; } }

.hero h1 {
  margin: 22px 0 26px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(54px, 9vw, 128px);
  line-height: .95;
  letter-spacing: .01em;
  /* the game's title, inked on the chart */
  color: var(--title-red);
  -webkit-text-stroke: 2px var(--title-ink);
  paint-order: stroke fill;
  text-shadow:
     3px 0 0 var(--title-paper), -3px 0 0 var(--title-paper),
     0 3px 0 var(--title-paper),  0 -3px 0 var(--title-paper),
     2px 2px 0 var(--title-paper), -2px -2px 0 var(--title-paper),
     2px -2px 0 var(--title-paper), -2px 2px 0 var(--title-paper),
     0 0 14px rgba(228,204,158,.45), 0 10px 40px rgba(0,0,0,.6);
}
.hero .lede {
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.35;
  color: #e6edf4;
  max-width: 46ch;
  margin: 0 0 22px;
}
.hero .sub {
  color: #c3cfdb;
  line-height: 1.75;
  margin: 0 0 40px;
  max-width: 60ch;
}
.cta { display: flex; flex-wrap: wrap; gap: 18px; }
.hero .small {
  margin: 28px 0 0;
  font-size: 16px;
  line-height: 1.65;
  max-width: 62ch;
  color: #a9b6c4;
}
/* the text sits on moving video: a soft shadow keeps it readable on bright frames */
.hero .lede, .hero .sub, .hero .small { text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 0 18px rgba(0,8,16,.6); }

.screen img {
  width: 100%;
  image-rendering: pixelated;
  aspect-ratio: 4 / 3;
}


/* ── sections ───────────────────────────────────────────────────────── */

section { padding: 88px 0; position: relative; }
section.alt { background: linear-gradient(180deg, #02101c, #041a2c 50%, #02101c); }

.eyebrow {
  font-family: var(--pixel);
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}
.eyebrow::after {
  content: "";
  height: 1px;
  flex: 0 0 64px;
  background: linear-gradient(90deg, var(--brass), transparent);
}
h2 {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--brass-light);
  letter-spacing: .02em;
}
.intro { max-width: none; color: #c9d6e2; margin: 0 0 40px; text-wrap: pretty; }   /* full width, level with the cards below */
.note { margin: 32px 0 0; color: var(--slate); font-style: italic; }
h3 {
  font-family: var(--pixel);
  font-size: 20px;
  letter-spacing: .04em;
  margin: 0 0 8px;
  color: #fff;
}
.grid { display: grid; gap: 22px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .grid.three { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid.four { grid-template-columns: 1fr; } section { padding: 64px 0; } }

.feature p { margin: 0; color: #c2cfdb; font-size: 17px; }
.feature .icon {
  width: 40px; height: 40px;
  margin-bottom: 14px;
  color: var(--brass-light);
}

/* ── fleets ─────────────────────────────────────────────────────────── */

.fleets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.fleet { display: flex; flex-direction: column; }
.fleet .hud-body { display: flex; flex-direction: column; }
.fleet figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; }
.fleet figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 20%;
  transition: transform .5s ease;
}
.fleet:hover figure img { transform: scale(1.05); }
.fleet .hud-pad { padding: 14px 16px 18px; }
.fleet h3 { font-size: 18px; }
.fleet p { margin: 0; font-size: 15px; line-height: 1.5; color: #c2cfdb; }
.fleet .note { color: var(--brass-light); }
@media (max-width: 1100px) {
  .fleets { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .fleets { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 440px) {
  .fleets { grid-template-columns: 1fr; }
}

/* ── the log (screens) ──────────────────────────────────────────────── */

.shots {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}
.shots .big { grid-row: span 2; }
.shots .hud-body { display: flex; flex-direction: column; }
/* the big one fills the height of the two beside it */
.shots .big img { flex: 1; min-height: 0; aspect-ratio: auto; object-fit: cover; }
.shots figure { margin: 0; }
.shots img { width: 100%; image-rendering: pixelated; aspect-ratio: 4 / 3; }
.shots figcaption {
  font-family: var(--pixel);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--slate);
  padding: 10px 16px 12px;
}
@media (max-width: 800px) {
  .shots { grid-template-columns: 1fr; }
  .shots .big { grid-row: auto; }
  .shots .big img { aspect-ratio: 4 / 3; }
}

/* ── ports of call ──────────────────────────────────────────────────── */

.ports {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.port .hud-pad { padding: 18px 20px 20px; }
.port h3 { font-size: 19px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.port p { margin: 0; font-size: 15px; color: #c2cfdb; }
.status {
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid currentColor;
}
.status.go { color: var(--ok); }
.status.wip { color: var(--brass-light); }
/* a lone card on the last row stretches across it instead of sitting in a corner */
@media (min-width: 901px) { .ports > :last-child:nth-child(3n+1) { grid-column: 1 / -1; } }
@media (max-width: 900px) { .ports { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 561px) and (max-width: 900px) { .ports > :last-child:nth-child(2n+1) { grid-column: 1 / -1; } }
@media (max-width: 560px) { .ports { grid-template-columns: 1fr; } }

/* ── the slipway (shareware vs registered) ──────────────────────────── */

.slipway {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.slipway .hud { height: 100%; }
.slipway .hud-body { display: flex; flex-direction: column; }
.slipway .hud-pad { flex: 1; display: flex; flex-direction: column; }
.price {
  font-family: var(--pixel);
  font-size: 40px;
  color: #fff;
  margin: 2px 0 4px;
}
.price small { font-size: 16px; color: var(--slate); }
.slipway ul { list-style: none; margin: 16px 0 24px; padding: 0; flex: 1; }
.slipway li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(162,126,86,.3);
  font-size: 16px;
}
.slipway li:last-child { border-bottom: 0; }
.slipway li .m { font-family: var(--pixel); width: 18px; flex: none; color: var(--ok); }
.slipway li.no .m { color: var(--alert-light); }
.slipway li.no { color: var(--slate); }
.slipway .registered .hud { background: var(--brass); }
@media (max-width: 800px) { .slipway { grid-template-columns: 1fr; } }

/* ── codebook (FAQ) ─────────────────────────────────────────────────── */

.codebook { max-width: 860px; }
.codebook details {
  border-bottom: 1px solid rgba(162,126,86,.35);
}
.codebook summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 44px 18px 0;
  position: relative;
  font-family: var(--pixel);
  font-size: 19px;
  color: #fff;
}
.codebook summary::-webkit-details-marker { display: none; }
.codebook summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 14px;
  font-size: 24px;
  color: var(--brass);
}
.codebook details[open] summary::after { content: "−"; }
.codebook summary:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 4px; }
.codebook details p { margin: 0 0 20px; color: #c2cfdb; max-width: 70ch; }

/* ── footer, with the intercepted transmission ──────────────────────── */

footer {
  border-top: 2px solid var(--brass-dark);
  box-shadow: 0 -1px 0 var(--brass) inset;
  background: #010a12;
  padding: 48px 0 40px;
  font-size: 15px;
  color: var(--slate);
}
footer .cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 800px) { footer .cols { grid-template-columns: 1fr; } }
footer h4 {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 12px;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 0 0 8px; }
footer a { color: var(--ink); text-decoration: none; }
footer a:hover { color: var(--brass-light); text-decoration: underline; }
.server {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--pixel); font-size: 13px; letter-spacing: .06em;
}
.server .led { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }

.intercept {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px dashed rgba(162,126,86,.3);
}
.intercept .label {
  font-family: var(--pixel);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--alert-light);
}
.intercept code {
  display: block;
  margin-top: 8px;
  font-family: "Courier New", monospace;
  font-size: 15px;
  letter-spacing: .12em;
  line-height: 1.8;
  color: #8fa9bf;
  word-spacing: .3em;
  overflow-wrap: anywhere;
}
.legal { margin-top: 28px; font-size: 13px; color: #6f7f91; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Below native size, nearest-neighbour shimmers; smooth it instead. */
@media (max-width: 700px) {
  .screen img, .shots img { image-rendering: auto; }
}

/* ── sub-pages (pre-orders, testers) ───────────────────────────────── */
.page-head { padding: 64px 0 40px; }
.page-head .wrap.one { display: block; max-width: 760px; }
.hero.page-head h1.page-title { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; margin: 8px 0 18px; }
.slipway.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) { .slipway.two { grid-template-columns: 1fr; } }
.topbar a[aria-current="page"] { color: var(--brass-light); }

/* ── the fine print ─────────────────────────────────────────────────── */
.legal-doc { padding: 48px 0; }
.legal-doc .wrap.one { max-width: 780px; }
.legal-doc h3 { margin: 22px 0 6px; font-size: 18px; }
.legal-doc p, .legal-doc li { color: #c2cfdb; font-size: 17px; line-height: 1.6; }
.legal-doc ul { padding-left: 20px; }
.legal-doc li { margin: 6px 0; }
.legal-doc .todo { color: var(--alert-light); }

/* ── tester sign-up form ──────────────────────────────────────────────── */
.signup { margin-top: 32px; }
.signup form { display: grid; gap: 18px; }
.signup .fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .signup .fields { grid-template-columns: 1fr; } }
.signup label { display: grid; gap: 6px; font-family: var(--pixel); font-size: 17px; color: var(--brass-light); }
.signup .hint { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--slate); }
.signup input:not([type=checkbox]), .signup textarea {
  font: inherit; font-family: var(--serif); font-size: 18px; color: #e8eef4;
  background: #04121f; border: 1px solid var(--brass-dark); padding: 10px 12px; width: 100%;
}
.signup textarea { resize: vertical; min-height: 3em; }
.signup input:focus, .signup textarea:focus { outline: 2px solid var(--brass-light); outline-offset: 1px; border-color: var(--brass); }
.signup fieldset { border: 1px solid var(--brass-dark); padding: 12px 16px 14px; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.signup legend { font-family: var(--pixel); font-size: 17px; color: var(--brass-light); padding: 0 6px; }
.signup label.check { display: flex; align-items: center; gap: 10px; font-family: var(--serif); color: var(--ink); }
.signup label.check input { width: 18px; height: 18px; accent-color: var(--brass); flex: none; }
.signup label.agree { align-items: flex-start; font-size: 16px; }
.signup label.agree input { margin-top: 4px; }
.signup .btn { justify-self: start; }
.signup .btn[disabled] { filter: grayscale(.5); cursor: wait; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-msg { margin: 0 0 18px; padding: 12px 16px; border: 1px solid; }
.signup-msg.ok { color: var(--ok); border-color: var(--ok); background: rgba(127,191,127,.08); }
.signup-msg.bad { color: var(--alert-light); border-color: var(--alert); background: rgba(176,40,42,.12); }

/* ── the last log entry ──────────────────────────────────────────────── */
.lore { padding: 72px 0; background: linear-gradient(180deg, var(--deep), #020a12 50%, var(--deep)); }
.log-entry { margin: 0 auto; max-width: 860px; text-align: center; }
.log-entry blockquote { margin: 0; }
.log-entry p {
  margin: 0;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.6;
  color: #cfdae4;
}
/* the entry stops mid-sentence: a fading pen stroke, not a full stop */
.log-entry p::after { content: "\2014"; color: var(--slate); opacity: .6; }
.log-entry figcaption {
  margin-top: 22px;
  font-family: var(--pixel);
  font-size: 16px;
  color: var(--brass);
  letter-spacing: .03em;
}

/* hero video sound toggle */
.sound-toggle {
  position: absolute; right: var(--gutter); bottom: 52px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; cursor: pointer;
  font-family: var(--pixel); font-size: 16px; color: var(--brass-light);
  background: rgba(0,12,22,.72); border: 1px solid var(--brass-dark);
}
.sound-toggle:hover, .sound-toggle:focus-visible { border-color: var(--brass-light); color: #fff3d6; outline: none; }
.sound-toggle svg { width: 18px; height: 18px; }
.sound-toggle .waves { display: none; }
.sound-toggle[aria-pressed="true"] .waves { display: inline; }
.sound-toggle[aria-pressed="true"] .cross { display: none; }
@media (prefers-reduced-motion: reduce) { .sound-toggle { display: none; } }
