/* Borders In Time website (D-138 look, 2026-11-14; served by server.js since 2026-11-20, D-254).
   Layout: a full-bleed battlefield hero, then alternating bands; the "eight ages" strip is the one bold moment. */
@font-face { font-family: "Marcellus"; src: url("../fonts/marcellus.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --ink: #0c1017;        /* night ground, blue-biased */
  --panel: #141a24;      /* raised bands */
  --line: #273041;       /* rules and borders */
  --stone: #ece6d8;      /* travertine: headings and body on dark */
  --ash: #9aa2b2;        /* secondary text */
  --bronze: #c99b55;     /* age emblems, numerals, highlights */
  --lapis: #3a6ee8;      /* the game's team blue: actions */
  --lapis-deep: #24479f;
  --display: "Marcellus", Georgia, serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem);
  --step-3: clamp(2.2rem, 1.6rem + 3vw, 4.2rem);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1180px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--stone); font: 400 var(--step-0)/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: 0.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.eyebrow { font: 500 0.74rem/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze); }
.lede { color: var(--ash); max-width: 62ch; font-size: var(--step-1); line-height: 1.5; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ink); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--ink) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark img { width: 34px; height: 34px; flex: none; }
.mark b { font: 400 1.15rem/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; }
.mark small { display: block; font: 400 0.62rem/1 var(--mono); letter-spacing: 0.16em; color: var(--ash); margin-top: 4px; text-transform: uppercase; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ash); font-size: 0.92rem; }
.nav a:hover { color: var(--stone); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 4px; font: 600 0.95rem/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--lapis); color: #fff; box-shadow: inset 0 -2px 0 var(--lapis-deep); }
.btn-primary:hover { background: color-mix(in srgb, var(--lapis) 88%, white); }
.btn-ghost { border-color: color-mix(in srgb, var(--stone) 35%, transparent); color: var(--stone); background: color-mix(in srgb, var(--ink) 40%, transparent); }
.btn-ghost:hover { border-color: var(--stone); }
.top .btn { padding: 9px 14px; font-size: 0.85rem; }
@media (max-width: 860px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* Hero */
.hero { position: relative; isolation: isolate; min-height: min(80vh, 760px); display: grid; align-items: end; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.1) translate(-1.5%, 1%); } }
@media (prefers-reduced-motion: reduce) { .hero > img { animation: none; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, color-mix(in srgb, var(--ink) 55%, transparent) 0%, transparent 28%, transparent 45%, color-mix(in srgb, var(--ink) 92%, transparent) 88%, var(--ink) 100%),
  linear-gradient(90deg, color-mix(in srgb, var(--ink) 70%, transparent), transparent 60%); }
.hero .wrap { padding-block: 120px 56px; display: grid; gap: 22px; width: 100%; }
.hero h1 { font-size: var(--step-3); max-width: 17ch; }
.hero-logo { width: min(340px, 70vw); height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.hero h1 em { font-style: normal; color: var(--bronze); }
.hero .lede { color: color-mix(in srgb, var(--stone) 82%, var(--ash)); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.platform { font: 400 0.8rem/1.4 var(--mono); color: var(--ash); letter-spacing: 0.06em; }

/* Fact strip */
.facts { border-block: 1px solid var(--line); background: var(--panel); }
.facts ul { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 22px 18px; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
.facts b { font: 400 var(--step-2)/1 var(--display); color: var(--stone); }
.facts span { color: var(--ash); font-size: 0.9rem; }
@media (max-width: 720px) { .facts ul { grid-template-columns: repeat(2, 1fr); } .facts li:nth-child(3) { border-left: 0; } .facts li:nth-child(n+3) { border-top: 1px solid var(--line); } }

section { padding-block: clamp(64px, 9vw, 120px); }
.head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.head h2 { font-size: var(--step-2); }

/* Eight ages */
.ages-stage { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; background: var(--panel); border: 1px solid var(--line); }
.ages-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ages-stage img.next { clip-path: inset(0 100% 0 0); }
.ages-stage img.next.go { clip-path: inset(0 0 0 0); transition: clip-path 900ms cubic-bezier(.6,.05,.25,1); }
@media (prefers-reduced-motion: reduce) { .ages-stage img.next.go { transition: none; } }
.stamp { position: absolute; left: 16px; bottom: 16px; right: 16px; display: grid; gap: 6px; max-width: 520px; padding: 18px 20px; background: color-mix(in srgb, var(--ink) 86%, transparent); border: 1px solid color-mix(in srgb, var(--bronze) 45%, transparent); border-radius: 4px; backdrop-filter: blur(6px); }
.stamp .num { font: 400 2.4rem/1 var(--display); color: var(--bronze); }
.stamp h3 { font-size: var(--step-1); }
.stamp p { color: var(--ash); font-size: 0.95rem; line-height: 1.5; }
.stamp .meta { font: 400 0.72rem/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); }
@media (max-width: 640px) { .ages-stage { aspect-ratio: 4 / 3; } .stamp { position: static; max-width: none; border-radius: 0; border-width: 1px 0 0; } .ages-stage { overflow: visible; aspect-ratio: auto; } .ages-stage .pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; } }
.ages-stage .pic { position: absolute; inset: 0; }
.rail { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.rail button { all: unset; cursor: pointer; display: grid; justify-items: center; gap: 8px; padding: 10px 4px 12px; border-radius: 4px; border: 1px solid transparent; text-align: center; }
.rail button img { width: 100%; max-width: 64px; aspect-ratio: 1; border-radius: 50%; filter: grayscale(0.85) brightness(0.7); transition: filter 250ms; }
.rail button span { font: 400 0.68rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); }
.rail button span b { display: block; font: 400 1rem/1 var(--display); letter-spacing: 0; color: var(--stone); margin-bottom: 3px; }
.rail button:hover img { filter: none; }
.rail button[aria-selected="true"] { border-color: color-mix(in srgb, var(--bronze) 55%, transparent); background: color-mix(in srgb, var(--bronze) 8%, transparent); }
.rail button[aria-selected="true"] img { filter: none; box-shadow: 0 0 0 2px var(--bronze); }
.rail button:focus-visible { outline: 2px solid var(--bronze); }
@media (max-width: 640px) { .rail { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ages-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.ages-tools p { color: var(--ash); font-size: 0.9rem; }
.play { all: unset; cursor: pointer; font: 500 0.78rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze); padding: 8px 0; }

/* Feature bands */
.band { background: var(--panel); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.flip > figure { order: 2; }
.split > * { min-width: 0; }
.split figure { margin: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.split figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.split .copy { display: grid; gap: 18px; }
.split h3 { font-size: var(--step-2); }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ash); }
.points li::before { content: ""; width: 9px; height: 9px; margin-top: 0.55em; transform: rotate(45deg); border: 1.5px solid var(--bronze); }
.points b { color: var(--stone); font-weight: 600; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > figure { order: 0; } }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.trio figure { margin: 0; display: grid; gap: 12px; }
.trio img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.trio figcaption { color: var(--ash); font-size: 0.95rem; }
.trio figcaption b { display: block; color: var(--stone); font-family: var(--display); font-weight: 400; font-size: var(--step-1); margin-bottom: 4px; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

/* Armies */
.lineup { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.lineup img { width: 100%; }
.line { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; margin-top: 18px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.line figure { margin: 0; display: grid; gap: 8px; padding: 12px; border-left: 1px solid var(--line); background: var(--panel); }
.line figure:first-child { border-left: 0; }
.line img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.line figcaption { font: 400 0.7rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ash); }
.line figcaption b { display: block; color: var(--bronze); font-family: var(--display); font-weight: 400; font-size: 0.95rem; letter-spacing: 0; text-transform: none; }
@media (max-width: 860px) { .line { grid-template-columns: repeat(4, minmax(0, 1fr)); } .line figure:nth-child(5) { border-left: 0; } .line figure:nth-child(n+5) { border-top: 1px solid var(--line); } }

/* Multiplayer */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.modes div { padding: 28px 24px; display: grid; gap: 10px; align-content: start; border-left: 1px solid var(--line); }
.modes div:first-child { border-left: 0; }
.modes h3 { font-size: var(--step-1); }
.modes p { color: var(--ash); }
.modes .eyebrow { margin-bottom: 4px; }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr; } .modes div { border-left: 0; border-top: 1px solid var(--line); } .modes div:first-child { border-top: 0; } }

/* Nations */
.nations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.nation { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 2 / 3; isolation: isolate; }
.nation img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 600ms; }
.nation:hover img { transform: scale(1.05); }
.nation::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--ink) 94%, transparent)); }
.nation div { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 4px; }
.nation h3 { font-size: var(--step-1); }
.nation p { font-size: 0.85rem; color: color-mix(in srgb, var(--stone) 78%, var(--ash)); line-height: 1.4; }
.nation .tag { position: absolute; top: 12px; left: 12px; font: 500 0.64rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 8px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 80%, transparent); color: var(--bronze); border: 1px solid color-mix(in srgb, var(--bronze) 40%, transparent); }
@media (max-width: 860px) { .nations { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sign-up */
.signup-band { position: relative; isolation: isolate; overflow: hidden; }
.signup-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(0.85); }
.signup-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ink) 15%, color-mix(in srgb, var(--ink) 75%, transparent) 60%, color-mix(in srgb, var(--ink) 45%, transparent)); }
.signup-band .wrap { display: grid; gap: 20px; }
.signup-band h2 { font-size: var(--step-2); max-width: 18ch; }
form.signup, .inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; max-width: 560px; }
form.signup input, .inline-form input { flex: 1 1 240px; min-width: 0; padding: 13px 14px; border-radius: 4px; border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 80%, transparent); color: var(--stone); font: 400 1rem var(--body); }
form.signup input::placeholder, .inline-form input::placeholder { color: var(--ash); }
.note { color: var(--ash); font-size: 0.88rem; min-height: 1.4em; }

footer { border-top: 1px solid var(--line); padding-block: 32px; color: var(--ash); font-size: 0.85rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }

/* ---- Added 2026-11-20 (D-254): served by server.js, sign-up, FAQ, press and privacy pages ---- */
.hero { padding: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; background: var(--stone); color: var(--ink); border-radius: 4px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn-steam { background: #1b2838; color: var(--stone); border-color: color-mix(in srgb, var(--stone) 25%, transparent); }
a.btn-steam:hover { border-color: var(--stone); }
span.btn-steam { cursor: default; }
.btn-steam .soon { font: 500 0.66rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze); border: 1px solid color-mix(in srgb, var(--bronze) 50%, transparent); border-radius: 3px; padding: 4px 6px; }
.btn[disabled] { opacity: .6; cursor: progress; }
form.signup .field { flex: 1 1 260px; display: grid; gap: 6px; font-size: 0.85rem; color: var(--ash); }
form.signup .field input { width: 100%; }
form.signup .btn { background: var(--lapis); color: #fff; box-shadow: inset 0 -2px 0 var(--lapis-deep); padding-block: 14px; }
form.signup .btn:hover { background: color-mix(in srgb, var(--lapis) 88%, white); }
form.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-note { flex-basis: 100%; color: var(--ash); font-size: 0.85rem; }
.signup-note a, .prose a, .answer a { color: var(--stone); text-decoration-color: color-mix(in srgb, var(--bronze) 70%, transparent); text-underline-offset: 3px; }
.signup-status { flex-basis: 100%; min-height: 1.4em; font-size: 0.92rem; color: var(--ash); }
.signup-status.ok { color: #9fe0a0; }
.signup-status.err { color: #ff9c8a; }
.inline-form .btn { background: var(--lapis); color: #fff; }

/* Ways to play: two rows of three */
.modes.six div:nth-child(n+4) { border-top: 1px solid var(--line); }
.modes.six div:nth-child(4) { border-left: 0; }
@media (max-width: 860px) { .modes.six div:nth-child(n+2) { border-top: 1px solid var(--line); } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative; font: 400 var(--step-1)/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 400 1.5rem/1 var(--body); color: var(--bronze); }
.faq details[open] summary::after { content: "–"; }
.faq details[open] { border-color: color-mix(in srgb, var(--bronze) 45%, transparent); }
.faq .answer { padding: 0 20px 20px; display: grid; gap: 12px; color: var(--ash); max-width: 72ch; }
.faq details.made summary { color: var(--bronze); }

/* Ages: the picture caption under the rail */
.ages-stage .pic img { transition: none; }

/* Footer */
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
footer .links a { color: var(--ash); text-decoration: none; }
footer .links a:hover { color: var(--stone); }
footer .legal { display: grid; gap: 4px; }

/* Small pages: press, privacy, thanks */
.page { padding-block: clamp(48px, 7vw, 96px); }
.prose { max-width: 760px; display: grid; gap: 16px; }
.prose h1 { font-size: var(--step-3); }
.prose h2 { font-size: var(--step-2); margin-top: 24px; }
.prose p, .prose li { color: color-mix(in srgb, var(--stone) 80%, var(--ash)); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose .ctas { margin-top: 8px; }
.facts-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.facts-list dt { font: 500 0.74rem/1.9 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze); }
.facts-list dd { margin: 0; }
.press-shots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.press-shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.press-logos { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.press-logos img { height: 120px; width: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
@media (max-width: 520px) { .facts-list { grid-template-columns: 1fr; gap: 2px; } .facts-list dd { margin-bottom: 10px; } }
@media (max-width: 480px) {
  .top .wrap { gap: 12px; }
  .mark b { font-size: 0.92rem; letter-spacing: 0.1em; white-space: nowrap; }
  .mark small { display: none; }
  .top .btn { padding: 8px 10px; font-size: 0.8rem; white-space: nowrap; }
  .ctas .btn { flex: 1 1 100%; justify-content: center; }
}
/* The age stage on phones: picture above, caption below (the base .pic rule came after the old phone rule) */
@media (max-width: 640px) {
  .ages-stage .pic { position: relative; inset: auto; aspect-ratio: 16 / 10; overflow: hidden; }
}
