/* Variant B — brand-native. Navy ground, game leads, history supports.
   Variant A is style.css. See ../../design-system/DESIGN-GUIDE.md.

   The :root block below is a copy of A's. Both are the design guide's tokens;
   if one changes, change both. Duplicated rather than @import-ed so each page
   still costs exactly one stylesheet request. */

@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/ebgaramond-subset.woff2') format('woff2');
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-600-subset.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #faf6ee;
  --paper-deep: #f2ece0;
  --ink: #1f1c17;
  --ink-soft: #4a443a;
  --rule: #d9d0bd;
  --navy: #0b1321;
  --navy-deep: #060b14;
  --surface: #343d4d;
  --aqua: #8cefe9;
  --slate: #8b95a6;
  --teal-ink: #0e6b66;

  --font-display: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-game: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --measure: 34rem;
  --column: min(100% - 2.5rem, 64rem);
}

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

body {
  margin: 0;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-game);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 6.5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.0625rem; }

p { margin: 0 0 1.1em; max-width: var(--measure); color: #d7dee8; }

a { color: var(--aqua); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 2px; }

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

.wrap { width: var(--column); margin-inline: auto; }
section { padding-block: clamp(3rem, 8vw, 5.5rem); }

.skip {
  position: absolute; left: -9999px;
  background: var(--aqua); color: var(--navy);
  padding: 0.6rem 1rem; z-index: 10; font-weight: 600;
}
.skip:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-family: var(--font-game);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aqua);
  margin: 0 0 1rem;
}

/* Hero ------------------------------------------------------------------ */
.hero { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 760px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}
.hero__logo { width: 168px; margin-bottom: 1.6rem; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: #e4eaf2; max-width: 30rem; }

.shots { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.shots img { border-radius: 14px; border: 1px solid rgba(140, 239, 233, 0.22); }
.shots .shot-1 { width: 68%; max-width: 290px; position: relative; z-index: 2; box-shadow: 0 24px 60px -24px #000; }
.shots .shot-2 { width: 48%; max-width: 205px; margin-left: -16%; margin-bottom: 7%; opacity: 0.78; }

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 48px; padding: 0.7rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font-game); font-size: 1rem; font-weight: 600;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn--store { background: var(--aqua); color: var(--navy); }
.btn--store:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -14px var(--aqua); }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn--ghost:hover { border-color: var(--aqua); color: var(--aqua); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.7rem; }
.actions__note { font-size: 0.8125rem; color: var(--slate); margin: 0.9rem 0 0; }

/* Steps on surface cards ------------------------------------------------- */
.cards { display: grid; gap: 1rem; margin-top: 2.2rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface);
  border: 1px solid rgba(140, 239, 233, 0.14);
  border-radius: 12px;
  padding: 1.4rem 1.4rem 1.5rem;
}
.card__n {
  font-family: var(--font-game); font-weight: 600;
  color: var(--aqua); font-size: 0.8125rem;
  letter-spacing: 0.1em; display: block; margin-bottom: 0.5rem;
}
.card h3 { margin-bottom: 0.35rem; color: #fff; }
.card p { margin: 0; font-size: 0.9375rem; color: #c8d2de; }

/* Hex tiles — the game's real tile shape -------------------------------- */
.tiles { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; margin-top: 2.4rem; }
.tile {
  position: relative;
  width: 58px; height: 52px;
  display: grid; place-items: center;
  color: var(--aqua);
}
.tile svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile b {
  position: relative;
  font-family: var(--font-game);
  font-size: 1.1rem; font-weight: 600;
  color: #fff;
}

/* The history inset — the paper layer, demoted to a card ----------------- */
.inset {
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid; gap: clamp(1.6rem, 4vw, 2.5rem);
}
@media (min-width: 760px) {
  .inset { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; }
}
.inset h2 { font-family: var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.inset p { color: var(--ink-soft); }
.inset .eyebrow { color: var(--teal-ink); }
.inset strong { color: var(--ink); }
.inset figure { margin: 0; }
.inset img { border-radius: 4px; filter: grayscale(0.9) contrast(1.08) sepia(0.12); }
.inset figcaption { font-size: 0.75rem; color: var(--ink-soft); margin-top: 0.7rem; line-height: 1.5; }
.count {
  font-family: var(--font-game); font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3rem); color: var(--teal-ink);
  line-height: 1; display: block; margin-bottom: 0.3rem;
}

/* Feedback — deliberately small ------------------------------------------ */
.feedback { border-top: 1px solid rgba(255,255,255,0.1); }
.feedback__row { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; }
.feedback h2 { margin: 0 0 0.25rem; font-size: clamp(1.3rem, 3vw, 1.6rem); }
.feedback p { margin: 0; max-width: 32rem; color: var(--slate); font-size: 0.9375rem; }

/* Footer ---------------------------------------------------------------- */
footer { background: var(--navy-deep); padding-block: 2.6rem; font-size: 0.875rem; color: var(--slate); }
footer img { width: 140px; margin-bottom: 1.1rem; }
footer p { color: var(--slate); max-width: 36rem; margin: 0; }
footer a { color: var(--aqua); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .btn:hover { transform: none; }
}

/* ===== PREVIEW SWITCHER ====================================================
   Review tool, not production. Delete this block and the matching markup in
   index.html / b.html before launch. See README.md.
   ========================================================================= */
/* Clearance so the fixed switcher never covers the end of the page.
   Lives in this block so removing the switcher removes it too. */
body { padding-bottom: 5.5rem; }

.switch {
  position: fixed;
  /* Bottom-RIGHT, not centre: centred it sat straight on top of the centred
     "Give feedback" call to action. */
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.4rem 0.3rem 0.85rem;
  background: var(--surface);
  border: 1px solid rgba(140, 239, 233, 0.28);
  border-radius: 999px;
  box-shadow: 0 6px 24px -8px #000;
  font-family: var(--font-game);
}
.switch__label {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-right: 0.15rem;
}
.switch__opt {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #c8d2de;
  text-decoration: none;
}
.switch__opt:hover { color: #fff; background: rgba(255,255,255,0.08); }
.switch__opt.is-on { background: var(--aqua); color: var(--navy); }
