/* The Ride Reports — road book stylesheet.
   Theme from the Ridgeback Road cover: near-black fog green, off-white title type,
   cover red, cream road-book paper. Layout rules below the theme head are carried over
   from the Odometer Equity stylesheet so every page keeps its structure. */

/* Self-hosted fonts (SIL OFL 1.1; licenses in /fonts/). */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/Cinzel-Black.woff") format("woff"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Oswald-Medium.woff") format("woff"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Oswald-SemiBold.woff") format("woff"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/SourceSerif4-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/SourceSerif4-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/SourceSerif4-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/SourceSerif4-Italic-latin.woff2") format("woff2"); }

:root {
  --asphalt: #0c1315;
  --asphalt-2: #121c1f;
  --asphalt-3: #142022;
  --night: #070c0e;
  --line: #2a3b40;
  --line-soft: #22333a;
  --ink: #e8ecf0;
  --muted: #b3c0c2;
  --faint: #8c9c9e;
  --amber: #c9a24a;
  --amber-soft: #dcc07e;
  --amber-dim: #6d5a2c;
  --ice: #9cc3c0;
  --ice-deep: #6f8d8c;
  --red: #961412;
  --red-text: #e0584f;
  --paper: #efe7d2;
  --paper-edge: #d9ceb0;
  --paper-ink: #1c1b18;
  --paper-muted: #5a5446;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --header-h: 4.25rem;
  --measure: 68ch;
  --wide: 1120px;
  --display: "Cinzel", Georgia, "Times New Roman", serif;
  --label: "Oswald", "Arial Narrow", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Source Serif 4", Georgia, serif;
}


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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(201, 162, 74, 0.08), transparent 55%),
    radial-gradient(900px 420px at -10% 20%, rgba(156, 195, 192, 0.06), transparent 50%),
    var(--asphalt);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ice);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--amber-soft);
}

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--amber);
  color: #070c0e;
  padding: 0.6rem 0.9rem;
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.75rem 1.25rem;
  background: rgba(16, 17, 20, 0.92);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}

.brand:hover {
  color: var(--amber-soft);
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-name small {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--amber-soft);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--amber);
  color: var(--amber-soft);
}

.site-nav ul {
  display: flex;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--amber);
}

.wrap {
  width: min(var(--wide), calc(100% - 2.5rem));
  margin-inline: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2.5rem;
  align-items: end;
}

.kicker {
  margin: 0 0 0.8rem;
  color: var(--amber-soft);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.92;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(4.2rem, 11vw, 8.4rem);
  font-weight: 800;
}

h1 span {
  display: block;
}

h1 .ice {
  color: var(--ice);
}

.lede {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  font-size: 1.28rem;
  line-height: 1.45;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  background: var(--amber);
  color: #14120c;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.btn:hover {
  background: var(--amber-soft);
  color: #14120c;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

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

.hero-figure {
  margin: 0;
}

.hero-figure svg {
  width: 100%;
  height: auto;
  display: block;
}

.figcaption,
.note {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.hero-figure figcaption {
  margin-top: 0.6rem;
}

.legend {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.85rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.swatch {
  display: inline-block;
  width: 1.4rem;
  height: 3px;
  margin-right: 0.45rem;
  vertical-align: middle;
}

.swatch.amber { background: var(--amber); }
.swatch.ice { background: var(--ice); }

section {
  padding: 4.25rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.75rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.section-head p {
  margin: 0;
  max-width: 36ch;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.panel {
  background: var(--asphalt-2);
  border: 1px solid var(--line-soft);
  padding: 1.5rem 1.4rem 1.4rem;
  min-height: 100%;
}

.panel.adv {
  box-shadow: inset 3px 0 0 var(--amber);
}

.panel.sport {
  box-shadow: inset 3px 0 0 var(--ice);
}

.panel h3 {
  margin: 0.35rem 0 0.8rem;
  font-size: 2.2rem;
}

.panel p {
  margin: 0 0 0.9rem;
}

.panel p:last-child {
  margin-bottom: 0;
}

.tag {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tag.adv { color: var(--amber-soft); }
.tag.sport { color: var(--ice); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--asphalt-2);
  border: 1px solid var(--line-soft);
  color: inherit;
  text-decoration: none;
  min-height: 100%;
}

.card:hover {
  border-color: var(--amber);
  color: inherit;
}

.card:hover h3 {
  color: var(--amber-soft);
}

.card-art {
  height: 140px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--asphalt-3);
}

.card-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.card-body {
  padding: 1.1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.card h3 {
  margin: 0;
  font-size: 1.85rem;
  text-transform: uppercase;
}

.index-no {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--amber);
  letter-spacing: 0.08em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.card .more {
  margin-top: auto;
  padding-top: 0.8rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice);
}

.journal-tease {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(201, 162, 74, 0.08), transparent 42%),
    var(--asphalt-2);
  border: 1px solid var(--line-soft);
  padding: 1.5rem;
}

.pull {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
}

.page-hero {
  padding: 3.2rem 0 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}

.page-hero h1 {
  font-size: clamp(3.4rem, 8vw, 6.2rem);
}

.page-hero .lede {
  font-size: 1.18rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

.route {
  display: grid;
  grid-template-columns: minmax(200px, 240px) 1fr;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.route-meta {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  overflow-wrap: break-word;
}

.route-meta strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--amber-soft);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.route h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.route p {
  margin: 0 0 0.75rem;
  max-width: var(--measure);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.bike-block {
  padding: 1.6rem 0 0.4rem;
}

.bike-block h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
}

.intro-copy {
  max-width: var(--measure);
}

.bike-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.story {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.story header p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.85rem;
}

.story h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.story .body {
  max-width: 68ch;
}

.disclaimer {
  margin: 0 0 0.5rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--ice);
  background: var(--asphalt-2);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.9rem;
}

.help-box {
  margin: 0 0 1.1rem;
  padding: 0.85rem 1rem 1rem;
  border-left: 3px solid var(--amber);
  background: var(--asphalt-2);
  max-width: 70ch;
}

.help-box h2 {
  margin: 0 0 0.5rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.help-box ol {
  margin: 0 0 0.5rem;
  padding-left: 1.25rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.9rem;
}

.help-box li + li {
  margin-top: 0.28rem;
}

.help-box p {
  margin: 0;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 0.85rem;
}


.gear-list {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.gear-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line-soft);
  max-width: 70ch;
}

.gear-list li strong {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-footer {
  margin-top: 1rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.88rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.draft-note {
  margin: 1rem 0 0;
  max-width: 70ch;
  color: var(--faint);
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 0;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-bottom: 0.5rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line-soft);
  }

  .site-nav a {
    width: 100%;
    padding: 0.2rem 0;
  }

  .hero-grid,
  .split,
  .cards,
  .journal-tease,
  .route,
  .bike-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.6rem 0 2.2rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-art {
    height: 120px;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(var(--wide), calc(100% - 1.5rem));
  }

  h1 {
    font-size: clamp(3.3rem, 18vw, 4.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

.wordmark {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
}

.prose p {
  max-width: var(--measure);
}

.fine {
  color: var(--faint);
  font-family: var(--sans);
  font-size: 0.85rem;
}

.journal-tease h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 0.2rem 0 0.8rem;
}

.bike-name {
  margin: 0 0 0.55rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.anchor-mark {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.2rem 0.5rem;
  background: var(--amber);
  color: #14120c;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.closing {
  margin-top: 0.5rem;
  max-width: var(--measure);
}

article + article.route,
.route + .route {
  margin-top: 0;
}

.lede-sub {
  font-size: 1.05rem;
  color: var(--muted);
}

/* Compact per-day blocks on multi-day and meal-enhanced routes */
.day-block {
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line, #2a3b40);
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
}
.day-block h3 {
  margin: 0 0 0.45rem;
  font-family: var(--label);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.day-block p {
  margin: 0.28rem 0;
  font-size: 0.95rem;
}
.day-block .meal,
.day-block .stay {
  color: var(--text, #e8ecf0);
}
.day-block .sq {
  color: var(--muted, #b3c0c2);
}


/* Language switch in header */
.lang-switch {
  margin: 0;
  padding: 0.35rem 0.75rem;
  font-family: var(--serif);
  font-size: 0.9rem;
}
.lang-switch a {
  color: var(--ice);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.lang-switch a:hover {
  border-bottom-color: var(--ice);
}

/* Page keyword search (routes + saddle-tested indexes; added Oct 26, 2026) */
.page-search {
  margin: 0 0 1.25rem;
}
.page-search[hidden] {
  display: none !important;
}
.page-search-label {
  display: block;
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
}
.page-search-input {
  display: block;
  width: 100%;
  max-width: 40rem;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--asphalt-2);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
}
.page-search-input:focus {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
}
.page-search-help,
.page-search-status {
  margin: 0.35rem 0 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
}
.page-search-status {
  margin-top: 0.25rem;
}

/* Thanksgiving 2026 pick box (added Nov 26, 2026). Used on the homepage and the Thanksgiving trip pages. */
.pick-box { max-width: var(--measure, 70ch); margin: 0 0 1.4rem; padding: 0.9rem 1.1rem; border: 1px solid #2a3b40; border-left: 5px solid #c9a24a; border-radius: 6px; background: rgba(201, 162, 74, 0.08); }
.pick-box h2, .pick-box h3 { margin: 0 0 0.45rem; font-size: 1.1rem; }
.pick-box p, .pick-box li { margin: 0.3rem 0; }
.pick-box ul { margin: 0.3rem 0; padding-left: 1.2rem; }
.pick-box .pick-label { display: inline-block; margin: 0 0 0.35rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #c9a24a; }
.pick-box a.pick-link { font-weight: 700; }

/* Open in Google Maps links beside GPX downloads (added Nov 26, 2026). */
.maps-open { font-weight: 600; }

/* ===== The Ride Reports road-book theme layer ===== */
body {
  background:
    radial-gradient(1200px 560px at 78% -120px, #1b2c2e 0, rgba(12, 19, 21, 0) 70%),
    var(--asphalt);
}
a { color: var(--ice); text-decoration-color: rgba(224, 88, 79, 0.8); }
a:hover { color: #fff; }
:focus-visible { outline-color: var(--amber); }
.skip { background: var(--paper); color: var(--paper-ink); font-family: var(--label); }

/* Labels in Oswald caps */
.kicker, .tag, .site-nav a, .btn, .pill, .legend, .nav-toggle, .anchor-mark, .route-meta strong,
.card .more, .pick-box .pick-label, .page-search-label, .index-no {
  font-family: var(--label);
}
.kicker { color: var(--muted); font-weight: 500; letter-spacing: 0.22em; }
.kicker a { color: var(--muted); }
.tag.adv, .tag.sport, .tag { color: var(--red-text); }
.tag.sport { color: var(--ice); }
.index-no { color: var(--red-text); font-weight: 600; font-size: 1.15rem; }

/* Headings in Cinzel Black (wider than the old condensed face, so sizes come down) */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.025em;
}
h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); line-height: 1; }
h1 .ice { color: var(--ink); }
h1 a, h2 a, h3 a { color: var(--ink); text-decoration-color: rgba(224, 88, 79, 0.85); }
h1 a:hover, h2 a:hover, h3 a:hover { color: #fff; }
.hero h1::after, .page-hero h1::after {
  content: ""; display: block; width: min(240px, 50%); height: 3px; margin-top: 1.3rem; background: var(--red);
}
.page-hero h1 { font-size: clamp(2.05rem, 5vw, 3.7rem); max-width: 24ch; }
.page-hero h1::after { width: 160px; margin-top: 1rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.panel h3 { font-size: 1.5rem; }
.card h3 { font-size: 1.18rem; line-height: 1.2; }
.route h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.15; }
.bike-block h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.story h2, .journal-tease h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.bike-name { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.wordmark { font-family: var(--display); font-weight: 900; font-size: 1.2rem; letter-spacing: 0.08em; }
.pull { color: #d8e0e2; }

/* Header: night bar with a dashed centerline under it */
.site-header { background: rgba(7, 12, 14, 0.94); border-bottom: 1px solid var(--line); }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--amber-dim) 0 22px, transparent 22px 36px);
}
.brand-mark { width: 40px; height: 40px; }
.brand-name { font-family: var(--display); font-weight: 900; font-size: 1.3rem; letter-spacing: 0.06em; line-height: 1.1; }
.brand-name small { font-family: var(--label); font-size: 0.7rem; letter-spacing: 0.24em; color: var(--red-text); }
.brand:hover { color: var(--ink); }
.site-nav a { font-size: 0.88rem; letter-spacing: 0.14em; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red-text); }
.nav-toggle { letter-spacing: 0.14em; }
.nav-toggle:hover { border-color: var(--red-text); color: var(--ink); }

/* Buttons */
.btn { background: var(--red); color: #fff; border: 1px solid var(--red-text); letter-spacing: 0.14em; font-weight: 500; font-size: 0.85rem; }
.btn:hover { background: #b01a17; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ice-deep); }
.btn-ghost:hover { background: var(--asphalt-2); color: var(--ink); border-color: var(--ink); }

/* Sections read as road-book legs: double rule on top and a numbered leg label */
main { counter-reset: leg; }
.section-head { border-top: 3px double var(--amber-dim); padding-top: 1.1rem; }
.section-head h2::before {
  counter-increment: leg;
  content: "Leg " counter(leg, decimal-leading-zero);
  display: block; margin-bottom: 0.45rem;
  font-family: var(--label); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.24em; color: var(--red-text);
}
.section-head p { font-family: var(--serif); }

/* Cards and panels */
.card { background: var(--asphalt-2); border: 1px solid var(--line); border-top: 3px solid var(--red); }
.card:hover { border-color: var(--line); border-top-color: var(--amber); background: #17252a; }
.card:hover h3 { color: #fff; }
.card .more { color: var(--ink); letter-spacing: 0.14em; }
.card-art { background: var(--asphalt-3); }
.panel { background: var(--asphalt-2); border-color: var(--line); }
.panel.adv { box-shadow: inset 3px 0 0 var(--amber); }
.panel.sport { box-shadow: inset 3px 0 0 var(--ice-deep); }
.journal-tease { background: var(--asphalt-2); border-left: 3px solid var(--amber-dim); }
.anchor-mark { background: var(--red); color: #fff; }
.pill { border-color: var(--line); }

/* Route pages */
.route { border-bottom: 1px solid var(--line); }
.route-meta strong { color: var(--red-text); letter-spacing: 0.16em; }
.disclaimer { border-left-color: var(--ice-deep); background: var(--asphalt-2); }
.help-box { border-left-color: var(--red); background: var(--asphalt-2); }
.help-box h2 { font-family: var(--label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.95rem; }
.day-block {
  border: 1px solid var(--line); border-radius: 0; background: var(--asphalt-2);
  border-left: 3px solid var(--red); padding-left: 1.1rem;
}
.day-block h3 { font-family: var(--label); font-weight: 600; font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; }
.day-block .meal, .day-block .stay { color: var(--ink); }
.day-block .sq { color: var(--muted); }

/* Trip pages: ruled day headings like a road-book sheet */
.trip-page .trip h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.15; }
.trip-page .trip h3 {
  font-family: var(--label); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.1em; line-height: 1.35;
  padding: 0.55rem 0 0.45rem; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
}
.trip-page .trip li::marker { color: var(--red-text); }
.trip-page .trip th { font-family: var(--label); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--ink); }
.trip-page .trip td { border-bottom: 1px solid var(--line); }
.trip-page .trip .weather-box { border: 1px solid var(--line); border-left: 4px solid var(--ice-deep); border-radius: 0; background: var(--asphalt-2); }
.trip-page .trip .weather-box h2 { font-family: var(--label); font-weight: 600; font-size: 1rem; letter-spacing: 0.12em; }

/* Pick boxes become cream road-book paper with a red margin and ruled lines */
.pick-box {
  position: relative;
  border: 1px solid var(--paper-edge); border-left: 1px solid var(--paper-edge); border-radius: 0;
  color: var(--paper-ink);
  padding: 1.4rem 1.4rem 1.3rem 3.6rem;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent 2.6rem, rgba(150, 20, 18, 0.45) 2.6rem, rgba(150, 20, 18, 0.45) calc(2.6rem + 2px), transparent calc(2.6rem + 2px)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(28, 27, 24, 0.07) 31px 32px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}
.pick-box h2, .pick-box h3 { color: var(--paper-ink); font-size: 1.2rem; line-height: 1.2; }
.pick-box strong { color: var(--paper-ink); }
.pick-box a, .pick-box a.pick-link { color: var(--red); text-decoration-color: var(--red); }
.pick-box a:hover { color: #5c0b0a; }
.pick-box .pick-label { color: var(--red); font-weight: 600; letter-spacing: 0.18em; }
.pick-box li::marker { color: var(--red); }
.trip-page .trip .pick-box h2 { font-size: 1.35rem; }

/* Search box */
.page-search-input { border-radius: 0; background: var(--asphalt-2); border-color: var(--line); }
.page-search-input:focus { outline-color: var(--amber); }
.page-search-label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; }

/* Photo strips and maps */
.photo-strip a:hover img, .photo-strip a:focus-visible img { border-color: var(--red-text); }

/* Footer with dashed centerline */
.site-footer { position: relative; background: var(--night); border-top: 1px solid var(--line); margin-top: 2.5rem; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--amber-dim) 0 22px, transparent 22px 36px);
}
.site-footer nav a { font-family: var(--label); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }
.draft-note { color: var(--muted); }

@media (max-width: 860px) {
  .site-nav a { padding: 0.2rem 0; }
}
@media (max-width: 520px) {
  h1 { font-size: clamp(2.3rem, 11.5vw, 3.2rem); }
  .page-hero h1 { font-size: clamp(1.8rem, 8.6vw, 2.5rem); }
  .brand-name { font-size: 1.08rem; }
  .pick-box { padding-left: 3rem; background-image:
    linear-gradient(90deg, transparent 2.1rem, rgba(150, 20, 18, 0.45) 2.1rem, rgba(150, 20, 18, 0.45) calc(2.1rem + 2px), transparent calc(2.1rem + 2px)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(28, 27, 24, 0.07) 31px 32px); }
}

/* Compact bikes block on the homepage (rides stay first). */
.bikes-compact { padding-top: 2.4rem; padding-bottom: 2.4rem; }
.bikes-compact .section-head h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.bikes-compact .cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.bikes-compact .card h3 { font-size: 1.05rem; }
.bikes-compact .card p { font-size: 0.92rem; }
