/* Bison Empire — landing page.
   The design system is the game's own (webgame/src/ui/bison-ui.css):
   parchment for reading, ink for what frames it, hide red the one accent,
   brass the trim. The page is responsive; the game stage keeps its shape
   rather than its pixel size. */

:root {
  --accent:        #A33B1F;
  --accent-deep:   #8d3119;
  --ink:           #1B1610;
  --ink-deep:      #141009;
  --ink-mid:       #2E271B;
  --ink-soft:      #3A3227;
  --rule:          #4A3D2B;
  --parchment:     #F2EBDD;
  --parchment-lit: #FFF7EA;
  --sand:          #EDE4D3;
  --card:          #F6F1E5;
  --card-edge:     #DCD0B8;
  --muted-light:   #D8C7A2;
  --muted:         #B6A88C;
  --range:         #B8A066;
  --gold:          #C9922F;
  --sage:          #8FA36B;
  --shell:         #241D14;

  --serif: 'Zilla Slab', Georgia, 'Times New Roman', serif;
  --sans: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --page: 1440px;
  --gutter: clamp(20px, 5.5vw, 80px);
  --header-h: 72px;
  /* The game draws to whatever box it is given; 16:10 is a comfortable
     shape for its HUD and leaves the strip visible under it. */
  --game-ar: 1.6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--parchment-lit); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; }
a { color: inherit; }
section[id], [id="art-note"] { scroll-margin-top: 80px; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow--light { color: var(--muted-light); }
.eyebrow--gold { color: var(--gold); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border-radius: 3px; border: 0;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(27,22,16,.04); }
.btn--ghost-light { color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn--onDark { background: transparent; color: var(--parchment); border: 1px solid var(--rule); }
.btn--onDark:hover { border-color: var(--muted-light); }
.btn--dark { background: var(--ink); color: var(--parchment-lit); }
.btn--dark:hover { background: var(--ink-mid); }
.btn--glass { background: rgba(20,16,9,.45); color: #fff; border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(20,16,9,.65); border-color: #fff; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 12px; }
.btn--lg { height: 58px; padding: 0 34px; font-size: 15px; }

/* ── header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  min-height: var(--header-h); background: var(--ink-deep);
  display: flex; align-items: center;
}
.site-header .wrap { display: flex; align-items: center; gap: 30px; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; flex: none; }
/* The white bull, keyed off its black; the header is dark so it sits as drawn. */
.brand-mark { display: block; height: 40px; width: auto; }
.site-footer .brand-mark { height: 32px; }
/* The wordmark, in its parchment-on-dark drawing, keyed off its black. */
.brand-wordmark { display: block; height: 44px; width: auto; }
.site-footer .brand-wordmark { height: 36px; }
.brand span {
  font-family: var(--serif); font-weight: 700; font-size: 17px;
  letter-spacing: 0.14em; color: var(--parchment); white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 30px; flex: none; }
.site-nav a {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-light); text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--parchment-lit); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-cta .btn { height: 44px; padding: 0 22px; font-size: 12px; }
.steam-pill {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); text-decoration: none; border: 1px solid var(--rule);
  border-radius: 999px; padding: 8px 14px; white-space: nowrap;
}
.steam-pill:hover { border-color: var(--gold); }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end;
  background: var(--ink-deep); color: var(--parchment-lit); overflow: hidden;
}
.hero-art {
  position: absolute; inset: 0;
  background: url('assets/herd-1600.webp') center 42% / cover no-repeat;
}
.hero-art::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(20,16,9,.92) 0%, rgba(20,16,9,.55) 38%, rgba(20,16,9,.05) 70%),
    linear-gradient(to right, rgba(20,16,9,.55) 0%, rgba(20,16,9,0) 60%);
}
.hero-copy { position: relative; padding-top: clamp(120px, 18vh, 200px); padding-bottom: clamp(44px, 7vh, 80px); max-width: var(--page); width: 100%; }
.hero h1 { font-size: clamp(42px, 6.4vw, 86px); margin-top: 16px; max-width: 14ch; text-wrap: balance; }
.hero .lede { margin-top: 20px; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted-light); max-width: 54ch; }
.hero .cta-row { margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ── the game stage ──────────────────────────────────────────────────── */
.stage-section { background: var(--ink-deep); display: flex; align-items: center; justify-content: center; padding: 28px 0 0; }
.stage {
  position: relative;
  width: min(100%, calc((100vh - var(--header-h) - 100px) * var(--game-ar)));
  aspect-ratio: var(--game-ar);
  min-height: 420px;
  margin: 0 auto; background: var(--range); overflow: hidden;
}
.stage iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--range); }

/* Poster: what is there before anyone asks for the game. */
.stage-poster {
  position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center; gap: 24px; padding: 0 clamp(24px, 5%, 64px);
  background: radial-gradient(120% 90% at 50% 0%, #C9B27A 0%, var(--range) 55%, #9C8552 100%);
}
.poster-bull { width: 100%; max-width: 520px; justify-self: center; filter: drop-shadow(0 18px 24px rgba(20,16,9,.35)); }
.poster-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.poster-copy h2 { font-size: clamp(30px, 3.6vw, 48px); color: var(--ink); }
.poster-copy p { font-size: 15px; color: var(--ink-soft); max-width: 44ch; }
.stage-weight { font-size: 12px; color: var(--ink-soft); opacity: .8; }

.stage-loading {
  position: absolute; inset: 0; display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  background: var(--ink-deep); color: var(--parchment); text-align: center; padding: 24px;
}
.stage.is-loading .stage-loading { display: flex; }
.stage-loading .bar { width: min(340px, 70%); height: 3px; background: var(--rule); overflow: hidden; }
.stage-loading .bar i { display: block; height: 100%; width: 35%; background: var(--gold); animation: slide 1.25s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(400%); } }
.stage-loading small { color: var(--muted); font-size: 12px; }

.scroll-cue {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; cursor: pointer; padding: 4px 0;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue:hover { color: var(--parchment); }
.scroll-cue svg { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* ── under-stage strip ───────────────────────────────────────────────── */
.strip { background: var(--shell); border-top: 1px solid var(--rule); }
.strip .wrap {
  min-height: 60px; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-block: 12px;
}
.strip .strip-status { font-size: 13px; color: var(--muted); }
.strip .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── section heads ───────────────────────────────────────────────────── */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.sec-head .sub { font-size: 15px; color: var(--ink-soft); max-width: 48ch; }

/* ── two editions ────────────────────────────────────────────────────── */
.editions .wrap { padding-block: clamp(48px, 6vw, 80px); }
.editions .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.edition {
  position: relative; padding: 34px 32px 32px; border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.edition h3 { font-size: 30px; }
.edition .price { font-family: var(--serif); font-size: 44px; font-weight: 700; line-height: 1; }
.edition > p:not(.price):not(.eyebrow) { font-size: 15px; max-width: 52ch; }
.edition .btn { margin-top: auto; }
.ticks { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 7px; width: 10px; height: 5px; border-radius: 1px; background: var(--accent); }
.edition--free { background: var(--card); border: 1px solid var(--card-edge); color: var(--ink); }
.edition--free > p:not(.price):not(.eyebrow), .edition--free .ticks { color: var(--ink-soft); }
.edition--free .price { color: var(--accent); }
.edition--steam { background: var(--ink); color: var(--parchment-lit); border: 1px solid var(--ink-mid); }
.edition--steam .eyebrow { color: var(--gold); }
.edition--steam .price { color: var(--gold); }
.edition--steam > p:not(.price):not(.eyebrow), .edition--steam .ticks { color: var(--muted-light); }
.edition--steam .ticks li::before { background: var(--gold); }
.edition--steam .btn--dark { background: var(--parchment-lit); color: var(--ink); }
.edition--steam .btn--dark:hover { background: #fff; }
.edition-bull {
  position: absolute; right: -8%; top: -4%; width: 62%; opacity: .22; pointer-events: none;
  filter: grayscale(.2);
}
.edition--steam > * { position: relative; }

/* ── the simulation ──────────────────────────────────────────────────── */
.sim { background: var(--sand); border-top: 1px solid var(--card-edge); border-bottom: 1px solid var(--card-edge); }
.sim .wrap { padding-block: clamp(44px, 5vw, 64px); }
.sim .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 32px; }
.sim article { padding: 26px 24px; background: var(--card); border: 1px solid var(--card-edge); border-radius: 4px; }
.sim h3 { font-size: 20px; margin-top: 16px; }
.sim p { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }

/* ── the herd ────────────────────────────────────────────────────────── */
.herd .wrap { padding-block: clamp(48px, 6vw, 80px); }
.plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.plate { margin: 0; background: var(--card); border: 1px solid var(--card-edge); border-radius: 4px; padding: 18px 18px 20px; }
.plate img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(20,16,9,.18)); }
.plate figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.plate figcaption strong { color: var(--ink); font-weight: 600; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.range figure { margin: 0; }
.range img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; border: 1px solid var(--card-edge); }
.range figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.plates-note { margin-top: 24px; font-size: 13px; color: var(--ink-soft); max-width: 78ch; }

/* ── steam ───────────────────────────────────────────────────────────── */
.steam { position: relative; background: var(--ink-deep); color: var(--parchment-lit); overflow: hidden; }
.steam-art {
  position: absolute; inset: 0;
  background: url('assets/herd-steam-1600.webp') 62% 45% / cover no-repeat;
}
.steam-art::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(20,16,9,.94) 0%, rgba(20,16,9,.86) 36%, rgba(20,16,9,.35) 68%, rgba(20,16,9,.15) 100%),
    linear-gradient(to top, rgba(20,16,9,.7) 0%, rgba(20,16,9,0) 40%);
}
.steam .wrap { position: relative; padding-block: clamp(64px, 8vw, 120px); min-height: min(90vh, 780px); display: flex; align-items: center; }
.steam-copy { max-width: 560px; }
.steam h2 { font-size: clamp(32px, 4.2vw, 54px); margin-top: 14px; max-width: 16ch; text-wrap: balance; }
.steam-copy > p { margin-top: 20px; font-size: 16px; color: var(--muted-light); max-width: 58ch; }
.roadmap { list-style: none; margin-top: 26px; display: grid; gap: 10px; font-size: 14px; color: var(--parchment); }
.roadmap li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.14); }
.roadmap span { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.steam .cta-row { margin-top: 30px; }
.steam-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ── closer ──────────────────────────────────────────────────────────── */
.closer { background: var(--accent); color: #fff; }
.closer .wrap {
  min-height: 260px; display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; padding-block: clamp(44px, 5vw, 60px);
}
.closer h2 { font-size: clamp(30px, 4vw, 44px); max-width: 20ch; color: #fff; }
.closer .btn--primary { background: var(--parchment-lit); color: var(--accent); }
.closer .btn--primary:hover { background: #fff; }

/* ── footer ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink-deep); color: var(--muted-light); border-top: 1px solid var(--ink-mid); }
.site-footer .wrap {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px; padding-block: 48px;
}
.site-footer h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--parchment); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { font-size: 14px; color: var(--muted-light); text-decoration: none; }
.site-footer a:hover { color: var(--parchment-lit); }
.site-footer .colophon { font-size: 13px; color: var(--muted); max-width: 40ch; margin-top: 14px; }
.legal { border-top: 1px solid var(--ink-mid); }
.legal .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; }
.legal p { font-size: 13px; color: var(--muted); }

/* ── responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .steam-pill { display: none; }
  .site-nav { gap: 22px; }
}
@media (max-width: 960px) {
  .brand-mark { height: 32px; }
}
@media (max-width: 980px) {
  .editions .grid { grid-template-columns: 1fr; }
  .steam-art { background-position: 70% 50%; }
  .steam-art::after { background: linear-gradient(to top, rgba(20,16,9,.9) 0%, rgba(20,16,9,.82) 55%, rgba(20,16,9,.45) 100%); }
  .plates { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .range { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .site-nav, .steam-pill { display: none; }
  .site-header .wrap { gap: 14px; }
  .hero { min-height: 70vh; }
  .stage { width: 100%; min-height: 0; aspect-ratio: 4 / 3; }
  .stage-poster { grid-template-columns: 1fr; padding: 24px; text-align: center; }
  .poster-bull { display: none; }
  .poster-copy { align-items: center; }
}
@media (max-width: 480px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .cta-row { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage-loading .bar i { animation: none; width: 100%; }
  .scroll-cue svg { animation: none; }
}
