/* Starfall business website.
   World pages (home) use the game's navy and prerendered art.
   Document pages (support, FAQ, policies) switch to a cool chart-paper surface for long reading. */

@font-face {
  font-family: "Big Shoulders";
  src: url("/assets/fonts/big-shoulders-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@property --progress {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 62%;
}

:root {
  --void: #06111c;
  --navy: #0a1826;
  --hull: #122638;
  --steel: #2b4760;
  --starlight: #e3ecf2;
  --haze: #a9bdcc;
  --ion: #86c8ee;
  --flare: #f3a549;

  --paper: #edf1f3;
  --ink: #0e1f2e;
  --ink-soft: #435a6c;
  --rule: #c5d1d9;
  --link-ink: #0b5a8c;
  --flare-ink: #8a4608;
  --mark: #ffe28f;

  --display: "Big Shoulders", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: 2.375rem;
  --step-4: 3.25rem;

  --gutter: clamp(1rem, 4.5vw, 2.5rem);
  --wide: 72rem;
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--starlight);
  background: var(--navy);
}
body.theme-document { background: var(--paper); color: var(--ink); }

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

h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5em; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: 0.005em; }
h3 { font-size: var(--step-1); font-weight: 700; }
p, ul, ol, dl { margin: 0 0 1em; }

a { color: var(--ion); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.theme-document main a { color: var(--link-ink); }

:focus-visible { outline: 3px solid var(--flare); outline-offset: 3px; border-radius: 2px; }
.theme-document main :focus-visible { outline-color: var(--flare-ink); }
main:focus { outline: none; }

.skip-link {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 10;
  padding: 0.6rem 1rem; background: var(--flare); color: var(--void); font-weight: 700;
}
.skip-link:focus { top: 0.75rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

mark.placeholder {
  background: var(--mark); color: var(--ink);
  padding: 0 0.25em; border-radius: 2px;
  outline: 1px dashed var(--flare-ink);
  font-style: normal;
}

/* Preview bar and header */

.preview-bar { background: var(--flare); color: var(--void); padding-inline: var(--gutter); }
.preview-bar p { max-width: var(--wide); margin: 0 auto; padding-block: 0.45rem; font-size: var(--step--1); font-weight: 700; }

.site-header { background: var(--void); border-bottom: 1px solid var(--steel); padding-inline: var(--gutter); }
.site-header__inner {
  max-width: var(--wide); margin: 0 auto; min-height: 3.75rem; padding-block: 0.35rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.25rem 1rem; flex-wrap: wrap;
}
.wordmark {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 6.5vw, 1.9rem); line-height: 1;
  color: var(--starlight); text-decoration: none; letter-spacing: 0.01em;
}
.primary-nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem clamp(0.75rem, 3.5vw, 1.25rem); flex-wrap: wrap; }
@media (max-width: 22.5rem) { .primary-nav a { font-size: var(--step--1); } }
.primary-nav a {
  display: inline-block; padding-block: 0.6rem; color: var(--haze); text-decoration: none; font-weight: 700;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--starlight); box-shadow: inset 0 -2px 0 var(--flare); }

/* Home: hero */

.hero { position: relative; background: var(--void); isolation: isolate; }
.hero__art { position: absolute; inset: 0; z-index: -1; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 40%; }
.hero__art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 17, 28, 0.15) 0%, rgba(6, 17, 28, 0.35) 45%, rgba(6, 17, 28, 0.94) 82%, var(--navy) 100%);
}
.hero__inner {
  max-width: var(--wide); margin: 0 auto; padding-inline: var(--gutter);
  min-height: min(46rem, 86svh); display: flex; flex-direction: column; justify-content: flex-end; padding-block: 5rem 2.5rem;
}
.hero h1 {
  /* Sized for the 9-character name "VoidMarch" at 320px. Recheck at 320px whenever brand.name changes. */
  font-size: clamp(3.5rem, 19.5vw, 12.5rem); line-height: 0.8; margin: 0 0 1.25rem;
  text-shadow: 0 2px 30px rgba(6, 17, 28, 0.6);
}
.hero__lede { font-size: var(--step-1); line-height: 1.45; max-width: 34rem; margin-bottom: 1.25rem; }
.hero__status {
  display: inline-flex; align-items: baseline; gap: 0.6rem; margin: 0 0 1.75rem;
  padding: 0.5rem 0.85rem; border: 1px solid var(--steel); background: rgba(10, 24, 38, 0.85); border-radius: 4px;
  font-size: var(--step--1); max-width: 34rem;
}
.hero__status::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--flare); transform: translateY(-0.05em); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }
.button {
  display: inline-block; padding: 0.8rem 1.25rem; min-height: 2.75rem; border-radius: 4px;
  font-weight: 700; text-decoration: none; line-height: 1.2;
}
.button--primary { background: var(--flare); color: var(--void); }
.button--quiet { color: var(--starlight); box-shadow: inset 0 0 0 1px var(--steel); }
.button--quiet:hover { box-shadow: inset 0 0 0 2px var(--haze); }

/* Home: sections */

.section { max-width: var(--wide); margin: 0 auto; padding: 3.5rem var(--gutter); }
.section + .section { border-top: 1px solid var(--hull); }
.section h2 { font-size: clamp(2.5rem, 12vw, 3.25rem); }
.section__intro { max-width: var(--measure); color: var(--haze); font-size: var(--step-1); line-height: 1.5; }

.also { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--hull); }
.also li { padding: 1rem 0; border-bottom: 1px solid var(--hull); display: grid; gap: 0.2rem; }
.also strong { font-size: var(--step-1); }
.also span { color: var(--haze); }
@media (min-width: 52rem) {
  .also { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}

.availability { display: grid; gap: 0; margin: 2rem 0 0; border-top: 1px solid var(--hull); max-width: 46rem; }
.availability > div { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--hull); }
.availability dt { font-weight: 700; }
.availability dd { margin: 0; color: var(--haze); }

.plain-list { padding-left: 1.2rem; }
.plain-list li + li { margin-top: 0.4rem; }

/* Document pages */

.document { max-width: var(--wide); margin: 0 auto; padding: 2.5rem var(--gutter) 4rem; }
.document__head { max-width: 46rem; margin-bottom: 2rem; }
.document h1 { font-size: clamp(2.75rem, 11vw, 4.25rem); line-height: 0.95; }
.document__lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }
.document__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 1rem 0; font-size: var(--step--1); }
.document__meta dt { color: var(--ink-soft); }
.document__meta dd { margin: 0; font-weight: 700; }

.draft-banner {
  border-left: 6px solid var(--flare-ink); background: #fbe9cf; color: var(--ink);
  padding: 0.9rem 1.1rem; border-radius: 0 4px 4px 0; margin-top: 1.25rem;
}
.draft-banner p { margin: 0; }

.notice {
  border-left: 6px solid var(--link-ink); background: #dde9f1; padding: 0.9rem 1.1rem; border-radius: 0 4px 4px 0; margin: 1.5rem 0; max-width: 46rem;
}
.notice p:last-child { margin-bottom: 0; }

.toc { max-width: 46rem; border-block: 1px solid var(--rule); padding-block: 1rem; margin-bottom: 2rem; }
.toc h2 { font-family: var(--body); font-size: var(--step-0); font-weight: 700; margin-bottom: 0.5rem; }
.toc ol { margin: 0; padding-left: 1.4rem; }
@media (min-width: 52rem) { .toc ol { columns: 2; column-gap: 3rem; } }
.toc li { break-inside: avoid; padding-block: 0.15rem; }

.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.75rem, 7.5vw, 2.375rem); margin-top: 2.5rem; padding-top: 0.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose li + li { margin-top: 0.35rem; }
.prose code { font-size: 0.92em; background: #dfe6eb; padding: 0.05em 0.3em; border-radius: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

.drafting-note {
  border: 1px dashed var(--flare-ink); background: #f7efe3; padding: 0.8rem 1rem; margin: 1.25rem 0; border-radius: 4px;
  font-size: var(--step--1);
}
.drafting-note p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; border: 1px solid var(--rule); border-radius: 4px; background: #f7f9fa; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: var(--step--1); line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); }
thead th { background: #e1e8ed; }
tbody tr:last-child td { border-bottom: 0; }

.routes { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: 46rem; border-top: 1px solid var(--rule); }
.routes > li { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.routes h3 { margin-bottom: 0.35rem; }
.routes p:last-child, .routes ul:last-child { margin-bottom: 0; }

.steps { padding-left: 1.4rem; }
.steps li + li { margin-top: 0.5rem; }

/* Footer */

.site-footer { background: var(--void); color: var(--haze); border-top: 1px solid var(--steel); padding-inline: var(--gutter); font-size: var(--step--1); }
.site-footer__inner { max-width: var(--wide); margin: 0 auto; padding-block: 2.5rem 2rem; }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.5rem 2rem; }
.footer-nav h2 { font-family: var(--body); font-size: var(--step-0); font-weight: 700; color: var(--starlight); margin-bottom: 0.5rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav a { display: inline-block; padding-block: 0.3rem; color: var(--haze); }
.footer-nav a:hover { color: var(--starlight); }
.footer-legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--hull); max-width: 46rem; }
.footer-legal p { margin-bottom: 0.4rem; }

@media (forced-colors: active) {
  .button--primary { border: 2px solid ButtonText; }
}

/* Public prelaunch brand: existing orbital mark, wordmark and category subtitle. */
.brand-lockup { display:flex; align-items:center; gap:0.65rem; padding-block:0.5rem; }
.brand-lockup img { width:48px; height:48px; flex-shrink:0; }
.brand-lockup__text { display:flex; flex-direction:column; gap:0.35rem; }
.brand-tagline { font-family:var(--body); font-size:0.75rem; font-weight:400; line-height:1.3; letter-spacing:0.03em; color:var(--haze); }
@media (max-width:40rem) { .brand-lockup { padding-block:0.6rem; } .site-header__inner:has(.brand-lockup) { padding-bottom:0.5rem; } }

/* Ordinary numeral glyphs keep the copyright year legible. */
.footer-legal { font-family: Arial, Helvetica, sans-serif; font-variant-numeric: normal; font-feature-settings: "zero" 0; }
.brand-lockup img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
