/* =========================================================
   Explore With Us — homepage (teaser)
   Rebuilt to ../brand/design-tokens.md (Ride Book v3).

   Look & feel taken from the Rodiar demo3 (Rider's Club) theme,
   values sampled from the live page. This site runs the theme's
   black-band treatment across the whole page — dark only, no toggle:
     accent   #E23A2E  red (the dark-ground lift of Rodiar's #D72323)
     heading  #FFFFFF  Oswald 700 uppercase, tracking normal
     body     #B3B3B3  Yantramanav 400
     ground   #000000  pure black, with #0C0C0C / #101010 bands
     shape    zero radius, plain rectangles, no skew
     kicker   red label preceded by a 20x2px red dash
     .out     one outlined "ghost" word per major heading
   No grain / texture overlay — Rodiar demo3 has none.

   Pared back to a teaser while the ride book is written: hero,
   one teaser band, CTA, footer. Detail-section styles (featured
   ride, route cards + table, steps, FAQ, quote, notice) were
   removed with their markup — restore from git history when the
   full page comes back.
   Keep the token block below in sync with design-tokens.md (dark column).
   ========================================================= */

/* ---------- TOKENS (dark — the only theme) ---------- */
:root {
  --bg:          #000000;
  --bg-2:        #0C0C0C;   /* barely-lifted band */
  --surface:     #101010;   /* cards, panels */
  --surface-2:   #161616;   /* zebra rows, insets */
  --heading:     #FFFFFF;
  --text:        #B3B3B3;   /* body */
  --text-dim:    #8C8C8C;   /* captions, meta */
  --line:        #262626;   /* hairlines */
  --accent:      #E23A2E;   /* the one accent */
  --accent-2:    #F0554A;   /* hover / pressed */
  --on-accent:   #FFFFFF;
  --outline:     #3A3A3A;   /* ghost-word stroke */

  --maxw:   1200px;
  --pad:    clamp(1.25rem, 5vw, 3rem);
  --nav-h:  112px;
  --r:      0px;
  --section-y: clamp(3.75rem, 9vw, 7rem);

  --f-display: "Oswald", "Arial Narrow", Arial, sans-serif;
  --f-body:    "Yantramanav", "Helvetica Neue", Arial, sans-serif;

  --t-micro:  .14s;
  --t-reveal: .5s;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--heading);
  text-wrap: balance;
}

p { margin: 0; }
ul { margin: 0; padding: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; display: block; }
b, strong { font-weight: 700; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #FFFFFF; }

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- KICKER (red label + 20x2px red dash) ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: "";
  flex: none;
  width: 20px;
  height: 2px;
  background: var(--accent);
}

/* ---------- OUTLINED GHOST WORD ---------- */
.out {
  color: transparent;
  -webkit-text-stroke: 1px var(--outline);
}

/* ---------- SHARED TEXT ---------- */
.lead { max-width: 58ch; margin-top: 1.1rem; font-size: 1.1rem; color: var(--text); }
.caption { font-size: .8125rem; line-height: 1.6; color: var(--text-dim); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: 1.25rem 2.5rem;          /* 20px 40px */
  border: 2px solid var(--accent);
  border-radius: var(--r);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .8125rem;              /* 13px */
  line-height: 1;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t-micro) var(--ease),
              border-color var(--t-micro) var(--ease),
              color var(--t-micro) var(--ease);
}
.btn .arw { transition: transform var(--t-micro) var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }

.btn--ghost { background: transparent; border-color: var(--heading); color: var(--heading); }
.btn--ghost:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.btn--sm { padding: .8rem 1.6rem; font-size: .72rem; }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 1.5rem; width: 100%; }

.wordmark {
  display: inline-flex;
  align-items: center;
}
.wordmark img {
  display: block;
  height: 96px;
  width: auto;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.9rem; }

/* ---------- SECTION RHYTHM ---------- */
.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--line); }
.section--tint { background: var(--bg-2); }
.section--dark { background: #000000; color: #B3B3B3; border-top: 0; }
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #FFFFFF; }
.section--dark .out { -webkit-text-stroke-color: rgba(255, 255, 255, .22); }
.section--dark .lead { color: #B3B3B3; }

.section-head { max-width: 62ch; margin-bottom: 2.8rem; }
.section-head h2 { margin-top: .9rem; font-size: clamp(1.9rem, 4.4vw, 2.75rem); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: #000000;
  color: #FFFFFF;
  overflow: hidden;
}
.hero::after {          /* one restrained red wash, no texture */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 88% 8%, rgba(215, 35, 35, .30), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-block: clamp(4.5rem, 13vw, 9.5rem); }
.hero .kicker { color: var(--accent); }
.hero h1 {
  margin-top: 1.2rem;
  max-width: 16ch;
  font-size: clamp(2.9rem, 8.5vw, 5.6rem);
  line-height: 1.05;
  color: #FFFFFF;
}
.hero h1 .out { -webkit-text-stroke-color: rgba(255, 255, 255, .34); }
.hero__sub { max-width: 46ch; margin-top: 1.5rem; font-size: 1.2rem; color: #C4C4C4; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.3rem; }
.hero .btn--ghost { border-color: #FFFFFF; color: #FFFFFF; }
.hero .btn--ghost:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  margin-top: 2.8rem;
  padding-top: 1.7rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-family: var(--f-display);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9A9A9A;
}
.hero__meta b { color: #FFFFFF; font-weight: 500; }

/* ---------- TEASER STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .14);
}
.stat { padding: 2rem 1rem 1.8rem; background: #000000; text-align: center; }
.stat .n {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  line-height: 1;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}
.stat .l {
  display: inline-block;
  margin-top: .75rem;
  padding-top: .7rem;
  border-top: 2px solid var(--accent);
  font-family: var(--f-display);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8C8C8C;
}

/* ---------- CTA BAND ---------- */
.cta {
  position: relative;
  padding-block: clamp(4rem, 10vw, 7rem);
  background: #000000;
  color: #FFFFFF;
  text-align: center;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 50% 0%, rgba(215, 35, 35, .28), transparent 62%);
  pointer-events: none;
}
.cta .container { position: relative; z-index: 1; }
.cta .kicker { justify-content: center; color: var(--accent); }
.cta h2 { margin-top: .9rem; font-size: clamp(2rem, 5.5vw, 3.2rem); color: #FFFFFF; }
.cta p { margin: 1.1rem auto 0; max-width: 44ch; color: #C4C4C4; }
.cta .btn { margin-top: 2.1rem; }
.cta .caption { margin-top: 1.3rem; color: #9A9A9A; }

/* ---------- FOOTER ---------- */
.site-footer {
  padding-block: 3.4rem;
  background: #000000;
  color: #B3B3B3;
  font-size: .9rem;
}
.site-footer .container { display: grid; gap: 2rem; }
@media (min-width: 760px) { .site-footer .container { grid-template-columns: 1.6fr 1fr; } }
.site-footer h4 { margin-bottom: 1rem; font-size: .8rem; letter-spacing: .12em; color: #FFFFFF; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer a { color: #CFCFCF; }
.site-footer a:hover { color: var(--accent); }
.site-footer .parent {
  font-family: var(--f-display);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.site-footer .parent b { color: var(--accent); font-weight: 600; }
.site-footer .legal { max-width: 42ch; margin-top: .9rem; font-size: .82rem; color: #8C8C8C; }
.site-footer .colophon {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid #262626;
  font-family: var(--f-display);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8C8C8C;
}

/* ---------- MOTION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   RIDE LOG — blog index + article pages
   Same tokens as the rest of the site; the article column is
   narrowed to a readable measure. Posts live in /blog/ and
   load this sheet as ../styles.css.
   ========================================================= */

/* ---------- HEADER TEXT LINK (beside the nav button) ---------- */
.nav__link {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--heading);
}
.nav__link:hover { color: var(--accent); }
.nav__link[aria-current="page"] { color: var(--accent); }

/* ---------- ARTICLE SHELL ---------- */
.article { padding-block: clamp(3rem, 8vw, 5.5rem); }
.article .container { max-width: 760px; }

.article-hero { margin-bottom: 2.6rem; }
.article-hero h1 {
  margin-top: 1.1rem;
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  line-height: 1.08;
  color: var(--heading);
}
.article-hero .lead { margin-top: 1.4rem; font-size: 1.2rem; color: var(--text); }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.8rem;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.article-meta b { color: var(--heading); font-weight: 500; }

/* ---------- ARTICLE BODY RHYTHM ---------- */
.article-body > * + * { margin-top: 1.5rem; }
.article-body h2 {
  margin-top: 2.8rem;
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
}
.article-body h3 { margin-top: 2rem; font-size: 1.2rem; }
.article-body p { color: var(--text); }
.article-body strong { color: var(--heading); }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* red-bar list bullets (12x2px, per the tokens doc) */
.article-body ul { list-style: none; display: grid; gap: .7rem; padding-left: 0; }
.article-body ul li { position: relative; padding-left: 1.6rem; }
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

/* ---------- FIGURES / PHOTO PLACEHOLDERS ---------- */
.figure { margin: 2.4rem 0; }
.figure img, .figure video { width: 100%; border: 1px solid var(--line); }
.figure--sm { max-width: 420px; }
.figure--sm img, .figure--sm video { width: 100%; }
.figure-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin: 2.4rem 0;
}
.figure-pair .figure { margin: 0; }
.figure-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 620px) { .figure-pair { grid-template-columns: 1fr 1fr; } }
.figure figcaption {
  margin-top: .7rem;
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--text-dim);
}
.figure--placeholder .ph {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 2rem;
  border: 1px dashed var(--line);
  background: var(--surface);
  font-family: var(--f-display);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
}

/* ---------- CALLOUT (draft note / "verify before you go") ---------- */
.callout {
  padding: 1.2rem 1.4rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}
.callout .callout__label {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--heading);
}
.callout p { margin-top: .4rem; font-size: .95rem; color: var(--text); }

/* ---------- THE RUN — facts box ---------- */
.runbox {
  margin: 2.6rem 0;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--accent);
  background: var(--surface);
}
.runbox h3 {
  margin: 0;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
  letter-spacing: .12em;
}
.runbox dl { margin: 0; padding: .4rem 1.3rem 1rem; }
.runbox .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
}
.runbox .row:last-child { border-bottom: 0; }
.runbox dt {
  color: var(--text-dim);
  font-family: var(--f-display);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.runbox dd { margin: 0; color: var(--heading); text-align: right; }

/* ---------- INLINE TODO MARKER (remove as you fill posts in) ---------- */
.todo {
  color: var(--accent);
  border-bottom: 1px dashed var(--accent);
  font-style: italic;
}

/* ---------- ARTICLE FOOTER NAV ---------- */
.article-nav {
  margin-top: 3.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-family: var(--f-display);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- RIDE LOG INDEX ---------- */
.postlist { display: grid; gap: 1.4rem; margin-top: 2.6rem; }
@media (min-width: 720px) { .postlist { grid-template-columns: 1fr 1fr; } }

.post-card {
  display: flex;
  flex-direction: column;
  padding: 1.8rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--accent);
}
.post-card h3 { margin-top: .7rem; font-size: 1.3rem; }
.post-card .excerpt { margin-top: .75rem; font-size: .96rem; color: var(--text); }
.post-card .article-meta { margin-top: 1.1rem; margin-bottom: 1.2rem; padding-top: .9rem; }
.post-card .read {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-display);
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.post-card .read .arw { transition: transform var(--t-micro) var(--ease); }
.post-card .read:hover .arw { transform: translateX(4px); }
