/* Groggy Roads — marketing site.
   One visual world: a voxel daytime sky up top that turns to night navy by the footer.
   Display: Bungee. Body: Nunito. Palette lifted from the game's materials. */

:root {
  --sky: #bfe8ff;
  --sky-low: #e4f5ff;
  --grass: #9bd45e;
  --grass-2: #8fca52;
  --grass-dark: #4c7a2f;
  --asphalt: #4b4d57;
  --red: #e04b3f;
  --red-dark: #9c2c23;
  --amber: #e8a33d;
  --amber-ink: #8a5300;
  --navy: #0e1420;
  --navy-2: #151c2a;
  --navy-3: #1c2536;
  --cream: #fff6e0;
  --ink: #1b2130;
  --ink-soft: #4d5567;
  --line: rgba(27, 33, 48, 0.16);
  --line-dark: rgba(255, 246, 224, 0.14);

  --vice-groggy: #e8a33d;
  --vice-wired: #f4f4f4;
  --vice-nodding: #d7263d;
  --vice-farout: #3faa4f;

  --font-display: "Bungee", "Impact", "Arial Black", "Haettenschweiler", sans-serif;
  --font-body: "Nunito", "Segoe UI", "Trebuchet MS", system-ui, sans-serif;

  /* type scale */
  --t-eyebrow: 0.78rem;
  --t-small: 0.9rem;
  --t-body: 1.0625rem;
  --t-lede: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  --t-h3: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  --t-h2: clamp(1.85rem, 1.3rem + 2.6vw, 3.1rem);
  --t-h1: clamp(2.9rem, 1.6rem + 7.5vw, 6.6rem);

  --measure: 65ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --wrap: 78rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}
.dark :focus-visible,
.foot :focus-visible { outline-color: var(--amber); }

.eyebrow {
  font-size: var(--t-eyebrow);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.dark .eyebrow { color: rgba(255, 246, 224, 0.62); }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

/* ---------- header ---------- */
.top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  color: var(--ink);
}
.brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.top nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  font-weight: 700;
  font-size: var(--t-small);
}
.top nav a {
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.top nav a:hover { border-bottom-color: var(--ink); }
.top nav .nav-play {
  padding: 0.45rem 0.9rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 6px;
  border-bottom: 0;
}
.top nav .nav-play:hover { background: var(--red); }
@media (max-width: 40rem) {
  .top nav .nav-section { display: none; }
}

/* ---------- hero ---------- */
.sky {
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky) 55%, var(--sky-low) 100%);
  color: var(--ink);
}
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 14px solid var(--grass);
  box-shadow: 0 14px 0 var(--grass-2), 0 22px 0 var(--grass-dark);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 1.5rem var(--gutter) 1rem;
  max-width: 42rem;
}
.hero-copy .eyebrow { margin-bottom: 1rem; }
.hero h1 {
  font-size: var(--t-h1);
  letter-spacing: 0.01em;
  line-height: 0.92;
  color: var(--ink);
  text-shadow: 0 0.06em 0 var(--grass-dark);
}
.hero h1 .h1-sub {
  display: block;
  max-width: 40ch;
  text-wrap: pretty;
  margin-top: 0.7rem;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.85rem + 0.35vw, 1.15rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--ink-soft);
  text-shadow: none;
}
.hero .lede {
  margin-top: 1.25rem;
  font-size: var(--t-lede);
  font-weight: 700;
  max-width: 34ch;
  color: var(--ink);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  transition: transform 0.06s, box-shadow 0.06s;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 5px 0 var(--red-dark), 0 10px 18px rgba(14, 20, 32, 0.22);
}
.btn-secondary {
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0 5px 0 #050810, 0 10px 18px rgba(14, 20, 32, 0.22);
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--red-dark); }
.btn-secondary:active { box-shadow: 0 1px 0 #050810; }

.stores {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1.5px solid rgba(27, 33, 48, 0.35);
  border-radius: 999px;
  font-size: var(--t-small);
  font-weight: 700;
  color: var(--ink-soft);
}
.pill em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-ink);
}
.hero-note {
  margin-top: 1.25rem;
  font-size: var(--t-small);
  color: var(--ink-soft);
  font-weight: 700;
}

.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
}
.stage-box {
  position: relative;
  width: 100%;
  aspect-ratio: 17 / 12.5;      /* the diorama's own fit box, so it fills the width on phones */
  max-height: 32rem;
}
.stage-box canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.stage-caption,
.stage-fallback {
  margin: 0.25rem var(--gutter) 1.5rem auto;
  max-width: 26ch;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.stage-fallback { margin-left: var(--gutter); max-width: none; text-align: left; }

@media (min-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: stretch;
    min-height: calc(100svh - 4.25rem);
  }
  .hero-copy {
    align-self: center;
    padding: 3rem var(--gutter) 4rem;
  }
  .hero-stage {
    min-height: calc(100svh - 4.25rem);
    margin-top: 0;
  }
  .stage-box {
    flex: 1;
    aspect-ratio: auto;
    max-height: none;
    min-height: 0;
  }
  .stage-caption,
  .stage-fallback {
    position: absolute;
    right: var(--gutter);
    bottom: 0.9rem;
    margin: 0;
  }
  .stage-fallback { left: var(--gutter); right: auto; }
}

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { max-width: var(--measure); }
.section-head .eyebrow { margin-bottom: 0.75rem; }
.section h2 { font-size: var(--t-h2); }
.section-lede {
  margin-top: 1.1rem;
  font-size: var(--t-lede);
  max-width: 58ch;
}
.section-lede a { text-decoration-thickness: 2px; text-underline-offset: 0.15em; }

.light { background: var(--cream); color: var(--ink); }
.dark { background: var(--navy-2); color: var(--cream); }

/* ---------- roster ---------- */
.roster {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  column-gap: 2.5rem;
  margin-top: 2.75rem;
  border-top: 2px solid var(--ink);
}
.regular {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  padding: 1.35rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}
.regular .num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}
.regular h3 {
  margin-top: 0.35rem;
  font-size: var(--t-h3);
  text-transform: uppercase;
}
.regular .world {
  margin-top: 0.15rem;
  font-style: italic;
  font-weight: 700;
  color: var(--ink-soft);
}
.regular .bio {
  margin-top: 0.75rem;
  max-width: 30ch;
}
.regular dl {
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.15rem 0.75rem;
  font-size: var(--t-small);
  line-height: 1.45;
}
.regular dt {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--ink-soft);
  padding-top: 0.15rem;
}
.regular dd { margin: 0; }
.lock {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.lock::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  background: var(--amber);
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.18);
}
.lock.free::before { background: var(--grass); }

/* ---------- vices ---------- */
.vices {
  background:
    linear-gradient(180deg, rgba(232, 163, 61, 0.55) 0, rgba(232, 163, 61, 0) 11rem),
    var(--navy-2);
}
.vice-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0 2.5rem;
  margin-top: 3rem;
  border-top: 1px solid var(--line-dark);
}
.vice {
  padding: 1.5rem 0 1.75rem;
  border-bottom: 1px solid var(--line-dark);
}
.vice h3 {
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.2rem);
  color: var(--vice);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
}
.vice .effect {
  margin-top: 0.9rem;
  font-weight: 700;
  font-size: 1.05rem;
  max-width: 28ch;
}
.vice .names {
  margin-top: 0.75rem;
  font-size: var(--t-small);
  color: rgba(255, 246, 224, 0.72);
  max-width: 30ch;
}
.vice .meta {
  margin-top: 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vice);
}
.vice-swatch {
  display: inline-block;
  width: 0.62rem;
  height: 0.62rem;
  margin-right: 0.45rem;
  vertical-align: baseline;
  background: var(--vice);
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.3);
}

/* ---------- power-ups ---------- */
.powerups { background: var(--navy); }
.powerup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2.5rem 3rem;
  margin-top: 2.75rem;
}
.powerup { max-width: 44ch; }
.powerup h3 {
  font-size: var(--t-h3);
  text-transform: uppercase;
  color: var(--amber);
}
.powerup p { margin-top: 0.85rem; }
.powerup .how {
  margin-top: 0.9rem;
  font-size: var(--t-small);
  font-weight: 700;
  color: rgba(255, 246, 224, 0.72);
}
kbd {
  font-family: inherit;
  font-size: 0.82em;
  font-weight: 700;
  padding: 0.1em 0.45em;
  border: 1px solid rgba(255, 246, 224, 0.4);
  border-bottom-width: 3px;
  border-radius: 5px;
  color: var(--cream);
}

/* ---------- how it plays ---------- */
.how { background: var(--navy-3); }
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem 2.5rem;
  margin-top: 2.5rem;
}
.step { counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--amber);
  line-height: 1;
}
.step h3 {
  margin-top: 0.6rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.step p { margin-top: 0.6rem; font-size: 1rem; }
.how-cta {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.how-cta p { font-weight: 700; color: rgba(255, 246, 224, 0.8); }

/* ---------- more about the game ---------- */
.more { background: var(--navy); }
.more-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.more-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.4rem;
  text-decoration: none;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: rgba(255, 246, 224, 0.03);
}
.more-nav a:hover {
  border-color: var(--amber);
  background: rgba(255, 246, 224, 0.06);
}
.more-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--amber);
}
.more-blurb {
  font-size: var(--t-small);
  color: rgba(255, 246, 224, 0.78);
}

/* ---------- footer ---------- */
.foot {
  background: #090d15;
  color: var(--cream);
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--line-dark);
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem 2rem;
}
.foot-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: var(--t-small);
  font-weight: 700;
}
.foot nav a { text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.legal {
  margin-top: 2rem;
  font-size: var(--t-small);
  font-weight: 700;
  max-width: var(--measure);
}
.legal.small {
  margin-top: 0.75rem;
  font-weight: 400;
  font-size: 0.8rem;
  color: rgba(255, 246, 224, 0.62);
}

/* ---------- privacy page ---------- */
.doc { background: var(--cream); color: var(--ink); }
.doc .section-head { padding-bottom: 0; }
.doc h1 { font-size: var(--t-h2); }
.doc .effective {
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.doc .lede { margin-top: 1.25rem; font-size: var(--t-lede); }
.doc-body {
  max-width: var(--measure);
  margin-top: 2.5rem;
}
.doc-body h2 {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.doc-body h3 {
  margin-top: 1.9rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.doc-body p, .doc-body ul { margin-top: 0.85rem; }
.doc-body ul { padding-left: 1.2rem; }
.doc-body li + li { margin-top: 0.4rem; }
.doc-body a { text-decoration-thickness: 2px; text-underline-offset: 0.15em; overflow-wrap: anywhere; }
.doc .back { display: inline-block; margin-top: 2.5rem; font-weight: 700; }
.doc .cta { margin-top: 1.5rem; }
.doc .hero-note { margin-top: 1rem; }
.hero-disclaimer { margin-top: 0.5rem; font-weight: 400; font-size: 0.8rem; max-width: 34rem; }

/* a boxed aside: the trademark disclaimer, and anything else that must be seen */
.callout {
  margin-top: 1.5rem;
  padding: 0.95rem 1.15rem;
  border-left: 6px solid var(--amber);
  background: rgba(232, 163, 61, 0.16);
  font-size: var(--t-small);
  font-weight: 700;
  max-width: var(--measure);
}

/* ---------- FAQ ---------- */
.faq { margin-top: 0.85rem; }
.faq h3:first-child { margin-top: 0; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* disabled-looking CTA for things that are not out yet */
.btn.is-soon { opacity: 0.55; cursor: default; pointer-events: none; }
