/* V-Line Racer, coming soon. The game's Carbon Signal look: near-black carbon, signal yellow, chalk text.
   Layout: one column on phones; the hero splits into words | phone from 860px. */
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/Barlow-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/Barlow-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --carbon: #08090B;
  --card: #141518;
  --cell: #111215;
  --line: #26282E;
  --chalk: #F4F4F5;
  --steel: #C5CAD3;
  --steel-dim: #A0A6B1;
  --signal: #FFD23F;
  --orange: #FF7A1A;
  --cyan: #4CC9F0;
  --bronze: #C98A55;
  --silver: #C4CBD4;
  --gold: #E8B54A;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--carbon);
  color: var(--chalk);
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--signal); }
a:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---- top ---- */
.top { padding-block: 22px 0; }
.top img { width: 168px; height: auto; }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; }
.hero .wrap { display: grid; gap: 36px; padding-block: 28px 64px; align-items: center; }
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 11vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--signal); display: block; }
.hero .lede { color: var(--steel); max-width: 34ch; margin: 18px 0 0; font-size: 1.15rem; }
.soon {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 28px; padding: 14px 24px 14px 18px;
  background: var(--signal); color: var(--carbon);
  border-radius: 999px;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.35rem, 5.4vw, 1.75rem); letter-spacing: 0.02em; line-height: 1;
}
.soon svg { width: 22px; height: 26px; flex: none; }
.note { color: var(--steel-dim); font-size: 0.95rem; margin: 14px 0 0; }

/* the drawn line behind the phone (the logo's hyphen, cyan to yellow) */
.stage { position: relative; display: grid; justify-items: center; }
.stage .swoosh { position: absolute; inset: -6% -40% auto; width: 180%; height: auto; pointer-events: none; opacity: 0.9; }

.phone {
  position: relative;
  width: min(300px, 78vw);
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(160deg, #3A3D45, #1C1D21 40%, #2C2F36);
  box-shadow: 0 0 0 1px #000, 0 30px 70px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone .screen { border-radius: 37px; overflow: hidden; background: var(--cell); aspect-ratio: 360 / 779; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone.sm { width: min(220px, 62vw); padding: 7px; border-radius: 34px; }
.phone.sm .screen { border-radius: 28px; aspect-ratio: 390 / 844; }

/* ---- sections ---- */
section { padding-block: 0; }
.band { border-top: 1px solid var(--line); }
.band > .wrap { padding-block: 64px; }
.eyebrow {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.95rem; color: var(--signal); margin: 0 0 10px;
}
h2 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2rem, 7.5vw, 3rem); line-height: 1; margin: 0; text-wrap: balance;
}

/* how it plays: three beats */
.beats { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 56px; counter-reset: beat; }
.beat { display: grid; gap: 22px; justify-items: center; align-content: start; text-align: center; } /* start: rows stretched to the tallest beat and the frames grew past their screens */
.beat .txt { max-width: 34ch; }
.beat h3 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 2rem; line-height: 1; margin: 0 0 8px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.beat h3::before {
  counter-increment: beat; content: counter(beat);
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--signal); color: var(--carbon); font-size: 1.25rem;
}
.beat p { margin: 0; color: var(--steel); }
.beat strong { color: var(--chalk); font-weight: 800; }

/* packs strip */
.strip-head { display: grid; gap: 10px; }
.strip-head p { margin: 0; color: var(--steel); max-width: 52ch; }
.strip {
  list-style: none; margin: 32px 0 0; padding: 0 0 12px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 62vw); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.pack { scroll-snap-align: start; background: var(--card); border-radius: 18px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.pack img { width: 100%; aspect-ratio: 360 / 609; object-fit: cover; }
.pack .meta { padding: 14px 16px 16px; }
.pack h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.45rem; line-height: 1; margin: 0; }
.pack .car { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; color: var(--signal); margin: 6px 0 4px; }
.pack p { margin: 0; color: var(--steel-dim); font-size: 0.95rem; line-height: 1.4; }

/* closing line */
.closer .wrap { padding-block: 64px 72px; text-align: center; display: grid; justify-items: center; gap: 4px; }
.closer .soon { margin-top: 20px; }

/* footer */
footer { border-top: 1px solid var(--line); }
footer .wrap { padding-block: 28px 36px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; color: var(--steel-dim); font-size: 0.95rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--steel); text-decoration: none; }
footer a:hover { color: var(--signal); }

/* legal pages */
.legal .wrap { max-width: 720px; padding-block: 24px 64px; }
.legal h1 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.2rem, 9vw, 3rem); line-height: 1; margin: 32px 0 8px; }
.legal h2 { font-size: 1.5rem; margin: 36px 0 10px; color: var(--signal); }
.legal p, .legal li { color: var(--steel); }
.legal ul { padding-left: 1.2em; margin: 0; display: grid; gap: 10px; }
.legal .updated { color: var(--steel-dim); margin-top: 0; }
.back { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; }

@media (min-width: 640px) {
  .strip { grid-auto-columns: 230px; }
}
@media (min-width: 860px) {
  .top img { width: 200px; }
  .hero .wrap { grid-template-columns: 1.15fr 1fr; gap: 48px; padding-block: 40px 88px; }
  .beats { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .band > .wrap { padding-block: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .strip { scroll-behavior: auto; }
}
