/* Beaconfall site. Colours sampled from the game: dusk plum sky, beacon gold, meadow green. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("/fonts/chakra-petch-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #15121c;
  --bg-2: #1c1826;
  --surface: #241f31;
  --surface-2: #2d2640;
  --line: #3d3452;
  --ink: #f6efe2;
  --ink-dim: #cfc5b4;
  --ink-faint: #a89d8c;
  --gold: #ecaa50;
  --gold-bright: #ffd27a;
  --gold-deep: #b9772a;
  --ember: #d9824e;
  --meadow: #8fbf55;
  --meadow-deep: #2c4219;
  --teal: #4fb3a6;
  --radius: 18px;
  --radius-sm: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Chakra Petch", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  font-feature-settings: "ss01" 1;
  overflow-x: hidden;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-bright); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: #ffe3a8; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: 0.005em; }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); line-height: 1.2; }
strong { color: var(--ink); font-weight: 650; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; }

:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: #1a1208; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 18, 28, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(61, 52, 82, 0.6);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.16em; text-transform: uppercase; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--ink-dim); text-decoration: none; font-size: 0.98rem; padding: 8px 10px; border-radius: 8px; }
.site-nav a:hover { color: var(--ink); background: var(--surface); }
.site-nav .nav-cta { background: var(--gold); color: #1a1208; font-weight: 700; margin-left: 6px; }
.site-nav .nav-cta:hover { background: var(--gold-bright); color: #1a1208; }
@media (max-width: 860px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 26px;
  border-radius: 14px; border: 2px solid transparent;
  font: 700 1.15rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1208;
  box-shadow: 0 0 0 1px rgba(255, 210, 122, 0.35), 0 10px 30px -8px rgba(236, 170, 80, 0.55);
}
.btn-primary:hover { color: #1a1208; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 210, 122, 0.6), 0 14px 36px -8px rgba(236, 170, 80, 0.7); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--gold); background: var(--surface); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: 1rem; border-radius: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; }
.hero-art { position: relative; }
.hero-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21, 18, 28, 0) 45%, var(--bg) 99%);
}
.art-label {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  font-size: 0.78rem; color: var(--ink-dim);
  background: rgba(21, 18, 28, 0.72); padding: 3px 9px; border-radius: 999px;
}
.hero-copy { position: relative; padding-top: 4px; padding-bottom: 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.92rem; font-weight: 650; letter-spacing: 0.02em;
  color: var(--meadow); background: rgba(44, 66, 25, 0.55);
  border: 1px solid rgba(143, 191, 85, 0.35);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--meadow); box-shadow: 0 0 10px var(--meadow); }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); max-width: 14ch; margin-bottom: 0.35em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero .lede { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--ink-dim); max-width: 36ch; margin-bottom: 1.4em; }
.cta { display: grid; gap: 12px; justify-items: start; }
.req { font-size: 0.98rem; color: var(--ink-dim); margin: 0; }
.req strong { color: var(--ink); }
.req .nw { white-space: nowrap; }
.cta-note { margin: 0; max-width: 34ch; font-size: 1.1rem; }
.cta-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 6px; }
.cta-links a { font-weight: 600; }
.copy-status { min-height: 1.4em; font-size: 0.95rem; color: var(--meadow); margin: 0; }

@media (min-width: 900px) {
  .hero { min-height: min(86vh, 820px); display: flex; align-items: center; }
  .hero-art { position: absolute; inset: 0; z-index: -1; }
  .hero-art picture, .hero-art img { height: 100%; width: 100%; }
  .hero-art img { aspect-ratio: auto; object-position: 70% center; }
  .hero-art::after {
    background:
      linear-gradient(90deg, rgba(21, 18, 28, 0.97) 0%, rgba(21, 18, 28, 0.86) 34%, rgba(21, 18, 28, 0.15) 64%, rgba(21, 18, 28, 0) 100%),
      linear-gradient(180deg, rgba(21, 18, 28, 0) 70%, var(--bg) 100%);
  }
  .hero-copy { padding-top: 72px; padding-bottom: 96px; }
  .art-label { bottom: 18px; right: 18px; }
}

/* install card shown after clicking Download */
.install-card {
  margin-top: 18px; max-width: 560px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm); padding: 18px 20px 6px;
}
.install-card h2 { font-size: 1.3rem; margin-bottom: 0.6em; }
.install-card[hidden] { display: none; }

/* ---------- numbered steps ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 1em; counter-reset: step; display: grid; gap: 14px; }
.steps > li { counter-increment: step; position: relative; padding-left: 52px; min-height: 38px; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 1.05rem/1 var(--font-display);
  color: #1a1208; background: var(--gold);
}
.steps > li p { margin: 0; }
.steps .step-btn { margin-top: 10px; }
.steps .sub { display: block; color: var(--ink-dim); font-size: 0.98rem; margin-top: 2px; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vw, 112px) 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-hex {
  background-color: var(--bg-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16zM28 64v33' fill='none' stroke='%233d3452' stroke-opacity='.45' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 97px;
}
.section-head { max-width: 760px; margin-bottom: clamp(28px, 5vw, 48px); }
.section-head .kicker {
  display: block; font: 600 0.95rem/1 var(--font-display); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.section-head p { color: var(--ink-dim); font-size: 1.2rem; }

/* gold route divider: a nod to the gold line the raiders follow */
.route {
  height: 22px; width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cpath d='M14 5l7 6-7 6' fill='none' stroke='%23ecaa50' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 11h10M26 11h18' stroke='%23ecaa50' stroke-opacity='.55' stroke-width='3'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: center; opacity: 0.8;
}

/* ---------- how it plays ---------- */
.verbs { display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: verb; }
@media (min-width: 640px) { .verbs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .verbs { grid-template-columns: repeat(4, 1fr); } }
.verb {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px 18px; position: relative; overflow: hidden;
}
.verb::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--ember));
}
.verb-icon { width: 52px; height: 52px; margin-bottom: 14px; color: var(--gold-bright); }
.verb h3 { margin-bottom: 0.4em; }
.verb p { color: var(--ink-dim); font-size: 1.04rem; }
.verb-shot { margin: -24px -22px 16px; border-bottom: 1px solid var(--line); }
.verb-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.diagram { margin: clamp(32px, 6vw, 56px) 0 0; }
.diagram-pair { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .diagram-pair { grid-template-columns: 1fr 1fr; } }
.diagram figure { margin: 0; }
.diagram-pair figure { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.diagram-pair .tag {
  position: absolute; left: 10px; top: 10px; font-weight: 700; font-size: 0.95rem;
  background: rgba(21, 18, 28, 0.82); color: var(--ink); padding: 4px 10px; border-radius: 8px;
}
.diagram figcaption, .caption { color: var(--ink-faint); font-size: 0.95rem; margin-top: 10px; }
.diagram > figcaption strong { color: var(--ink-dim); }

/* ---------- play together ---------- */
.ways { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: clamp(36px, 6vw, 56px); }
@media (min-width: 860px) { .ways { grid-template-columns: repeat(3, 1fr); } }
.way { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.way .players { display: flex; gap: 6px; margin-bottom: 12px; }
.way .players span { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(236, 170, 80, 0.6); }
.way .players span + span { background: var(--teal); box-shadow: 0 0 10px rgba(79, 179, 166, 0.6); }
.way h3 { margin-bottom: 0.3em; }
.way .menu-word { display: inline-block; font-size: 0.9rem; color: var(--ink-faint); margin-bottom: 10px; }
.way p { color: var(--ink-dim); font-size: 1.04rem; margin-bottom: 0.6em; }
.way-featured { border-color: rgba(236, 170, 80, 0.6); background: linear-gradient(180deg, rgba(236, 170, 80, 0.1), var(--surface) 55%); }

.together-steps { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .together-steps { grid-template-columns: 1.25fr 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.panel h3 { margin-bottom: 0.8em; }
.ui-word {
  font-weight: 650; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 1px 7px; border-radius: 6px; white-space: nowrap;
}
.addr { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--gold-bright); white-space: nowrap; }
.note { border-left: 3px solid var(--meadow); padding: 2px 0 2px 16px; color: var(--ink-dim); margin: 0 0 1.2em; }
.note strong { color: var(--ink); }

details.more { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }
details.more summary { cursor: pointer; font-weight: 650; color: var(--ink); list-style-position: outside; }
details.more p { color: var(--ink-dim); margin-top: 10px; }

/* ---------- screenshots ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.gallery a:hover { border-color: var(--gold); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.3s ease; }
.gallery a:hover img { transform: scale(1.02); }
.gallery figcaption { font-size: 0.95rem; color: var(--ink-dim); padding: 8px 2px 0; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); width: 100%; }
.lightbox::backdrop { background: rgba(8, 6, 12, 0.9); }
.lightbox img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; border-radius: 10px; }
.lightbox p { color: var(--ink); text-align: center; margin: 12px 0 0; }
.lightbox .close {
  position: absolute; right: 8px; top: 8px;
  background: rgba(21, 18, 28, 0.85); color: var(--ink); border: 1px solid var(--line);
  border-radius: 10px; min-width: 44px; min-height: 44px; font-size: 1.4rem; cursor: pointer;
}
.lightbox-inner { position: relative; }

/* ---------- get it ---------- */
.platforms { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .platforms { grid-template-columns: 1.3fr 1fr; } }
.platform { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.platform-mac { border-color: rgba(236, 170, 80, 0.55); }
.platform .label { font: 600 0.9rem/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: block; }
.platform h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 1.2em; font-size: 1rem; }
.facts dt { color: var(--ink-faint); }
.facts dd { margin: 0; color: var(--ink); }
.platform .btn { margin: 4px 0 18px; }
.checksum { font-size: 0.9rem; color: var(--ink-faint); }
.checksum summary { cursor: pointer; }
.checksum code { display: block; word-break: break-all; margin-top: 6px; color: var(--ink-dim); }
.not-yet { margin-top: 18px; color: var(--ink-dim); font-size: 1.02rem; }

/* ---------- accessibility ---------- */
.a11y { display: grid; gap: 12px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .a11y { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .a11y { grid-template-columns: repeat(4, 1fr); } }
.a11y li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.a11y strong { display: block; }
.a11y span { color: var(--ink-dim); font-size: 0.98rem; }

/* ---------- faq ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-weight: 650; font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font: 600 1.6rem/1 var(--font-display); color: var(--gold);
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 18px; color: var(--ink-dim); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 56px; background: var(--bg); color: var(--ink-dim); font-size: 1rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.7em; }
.site-footer p { margin-bottom: 0.6em; }
.footer-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.95rem; color: var(--ink-faint); }
.footer-base a { color: var(--ink-dim); }

/* ---------- simple pages (/together, /press, 404) ---------- */
.page-hero { padding: clamp(40px, 8vw, 88px) 0 clamp(24px, 4vw, 40px); }
.page-hero h1 { font-size: clamp(2.2rem, 5.6vw, 3.8rem); max-width: 18ch; text-wrap: balance; }
.page-hero .lede { font-size: clamp(1.15rem, 2vw, 1.3rem); color: var(--ink-dim); max-width: 44ch; }
.page-hero .icon { width: 88px; height: 88px; margin-bottom: 20px; }
.device-cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .device-cards { grid-template-columns: 1fr 1fr; } }
.device-cards .platform { display: flex; flex-direction: column; }
.device-cards .platform > .btn { align-self: flex-start; }
.device-cards.first-ipad [data-for="ipad"] { order: -1; }
.factsheet { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.factsheet th, .factsheet td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.factsheet th { color: var(--ink-faint); font-weight: 600; width: 32%; }
.press-assets { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); list-style: none; padding: 0; margin: 0; }
.press-assets li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.press-assets img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-2); }
.press-assets .icon-tile img { object-fit: contain; padding: 14px; }
.press-assets div { padding: 10px 14px 14px; font-size: 0.98rem; }
.press-assets div span { display: block; color: var(--ink-faint); font-size: 0.9rem; }
.prose > * { max-width: 760px; }
.prose p { color: var(--ink-dim); }
.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.center-page img { margin: 0 auto 24px; width: 120px; }
.center-page h1 { font-size: clamp(2rem, 5vw, 3.2rem); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

[tabindex="-1"]:focus { outline: none; }
