/* Drift: THE STRIP, per Docs/apps/drift-elevation.md "v3: THE STRIP" (ruled 2026-09-18).
   A mileage strip: a ribbon you follow, real photographs threaded on it as beads at their
   distance. Petrol ground, signal yellow rule, the numbered scale is the site's chrome, same
   as the app's. Re-skinned from THE FOLD (raspberry, no photos) now that the app has photos. */

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

:root {
  --accent: #FFC400;
  --on-accent: #231A00;
  --second: #45D693;
  --ground: #143C46;
  --surface: #1C4C58;
  --ink: #EFF7F5;
  --dim: #8FB3B8;
  --rule: #27606E;
  --shadow: rgba(6, 22, 26, .45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #FFD230;
    --on-accent: #241900;
    --second: #6BF0B6;
    --ground: #06161A;
    --surface: #0D242A;
    --ink: #E8F3F0;
    --dim: #7FA0A5;
    --rule: #1B3439;
    --shadow: rgba(0, 0, 0, .6);
  }
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  background: var(--ground);
  color: var(--ink);
  line-height: 1.65;
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.display { font-family: "Bricolage Grotesque", -apple-system, system-ui, sans-serif; font-weight: 600; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.measure { max-width: 60ch; }

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.rule { height: 1px; background: var(--rule); border: 0; }

.label {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- Header ---- */
header.band {
  display: flex;
  justify-content: center;
  padding: 22px 24px;
}
.wordmark {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.wordmark .dot { color: var(--accent); }

/* ---- Hero: full-bleed photo, scrim, copy at the foot ---- */
.hero {
  position: relative;
  width: 100%;
  min-height: 420px;
  max-height: 640px;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
}
.hero .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 22, 26, .05) 0%, rgba(6, 22, 26, .35) 45%, rgba(6, 22, 26, .92) 100%);
}
.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 24px 36px;
  text-align: center;
}
h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 5.6vw, 52px);
  letter-spacing: -.02em;
  line-height: 1.08;
  max-width: 18ch;
  margin: 0 auto;
  color: #FFFFFF;
  text-wrap: balance;
}
.hero .sub {
  font-size: clamp(15px, 2vw, 18px);
  color: #E4EEEC;
  max-width: 54ch;
  margin: 16px auto 0;
}

.store {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 28px;
  background: var(--accent);
  border-radius: 999px;
  color: var(--on-accent);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: opacity .18s ease;
}
.store:hover { opacity: .88; }
.store .free {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .78;
}

/* ---- Sections ----
   section.wrap (0,1,1) rather than section (0,0,1) so this actually wins over .wrap's own
   "padding: 0 24px" shorthand instead of being silently overwritten by it. */
section.wrap { padding: 76px 24px; }

h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -.015em;
  line-height: 1.12;
  margin-top: 12px;
  text-wrap: balance;
}
p.lead { color: var(--dim); font-size: 17px; margin-top: 14px; }

/* ---- The strip: the rule runs the height of the three stops, each a bead and two lines ---- */
.strip {
  position: relative;
  margin-top: 44px;
  padding-left: 34px;
}
.strip::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--accent);
}
.stop {
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 20px;
  align-items: center;
  padding: 26px 0;
}
.stop:first-child { padding-top: 0; }
.stop:last-child { padding-bottom: 0; }
.stop-n {
  position: absolute;
  left: -34px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--ink);
}
.stop-tick {
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--ground);
}
.stop-photo {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 0 0 3px var(--ground), 0 0 0 5px var(--accent);
}
.stop-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stop h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 5px;
}
.stop p { color: var(--dim); font-size: 15.5px; max-width: 52ch; }

/* ---- The ledger ---- */
.ledger { margin-top: 34px; max-width: 540px; }
.ledger .r {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  font-size: 16.5px;
  border-bottom: 1px solid var(--rule);
}
.ledger .r .fill { flex: 1; border-bottom: 1px dotted var(--rule); transform: translateY(-5px); }
.ledger .r .v {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ledger .r.hot .v { color: var(--accent); }
.afterledger { color: var(--dim); font-size: 16px; margin-top: 26px; max-width: 60ch; }

/* ---- Coming from 1.x ---- */
.wind-down {
  margin-top: 22px;
  padding: 20px 22px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 4px 14px 14px 4px;
}
.wind-down p { color: var(--dim); font-size: 15.5px; }
.wind-down p + p { margin-top: 10px; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--rule); padding: 46px 24px 70px; text-align: center; color: var(--dim); }
footer nav { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; font-size: 15px; margin-bottom: 22px; }
footer .fine { font-size: 13px; color: var(--dim); line-height: 1.75; opacity: .85; }
footer .fine a { color: var(--dim); text-decoration: underline; }

/* ---- Legal pages ---- */
.legal { max-width: 680px; margin: 0 auto; padding: 72px 24px 96px; }
.legal h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 5vw, 42px);
  max-width: none;
  margin: 0 0 6px;
  text-align: left;
  color: var(--ink);
}
.legal .updated {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}
.legal h2 {
  font-size: 14px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 36px 0 10px;
}
.legal p, .legal li { color: var(--dim); font-size: 16.5px; }
.legal ul { padding-left: 22px; margin: 12px 0; }
.legal li { margin-bottom: 4px; }
.legal .back { display: inline-block; margin-top: 48px; font-size: 15px; }

@media (max-width: 720px) {
  section.wrap { padding: 56px 24px; }
  .stop { grid-template-columns: 64px 1fr; gap: 16px; padding: 20px 0; }
  .stop-photo { width: 64px; height: 64px; border-radius: 13px; }
  .strip { padding-left: 30px; }
  .stop-n { left: -30px; width: 18px; }
}
