@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Crimson+Pro:ital,wght@0,400;0,500;0,600;1,400&family=Martian+Mono:wght@500;700&display=swap');

:root {
  --ink: #23262b;
  --ink-soft: #3c4149;
  --haar: #eef1ee;
  --haar-deep: #dde3dd;
  --loch: #2f3f66;
  --loch-deep: #1c2438;
  --malt: #a8672a;
  --malt-deep: #7e4c1c;
  --granite: #74797a;
  --white: #ffffff;
  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Crimson Pro", Georgia, serif;
  --font-data: "Martian Mono", ui-monospace, monospace;
  --content-max: 76rem;
  --reading-max: 42rem;
  --step-0: clamp(.9rem, .86rem + .15vw, 1rem);
  --step-1: clamp(1.05rem, 1rem + .2vw, 1.2rem);
  --step-2: clamp(1.35rem, 1.2rem + .65vw, 1.8rem);
  --step-3: clamp(1.85rem, 1.5rem + 1.6vw, 2.9rem);
  --step-4: clamp(2.5rem, 1.85rem + 3vw, 4.4rem);
  --space-xs: clamp(.6rem, .5rem + .4vw, .9rem);
  --space-s: clamp(1rem, .8rem + .9vw, 1.6rem);
  --space-m: clamp(1.75rem, 1.3rem + 2vw, 3rem);
  --space-l: clamp(3rem, 2rem + 4.5vw, 6rem);
  --radius: .7rem;
  --shadow: 0 .5rem 1.5rem rgba(35, 38, 43, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--haar);
  font-family: var(--font-body);
  font-size: var(--step-1);
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: var(--loch); }
a:hover { color: var(--malt); }
:focus-visible { outline: .18rem solid var(--malt); outline-offset: .18rem; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { margin: 0; font-size: var(--step-4); font-weight: 700; letter-spacing: -.02em; }
h2 { margin: 0 0 .9rem; font-size: var(--step-3); }
h3 { margin: 0 0 .6rem; font-size: var(--step-2); }
p { max-width: 68ch; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; padding: .8rem 1.1rem; background: var(--malt); color: var(--white); }
.skip-link:focus { left: 1rem; top: 1rem; }
.shell { width: min(calc(100% - 2rem), var(--content-max)); margin-inline: auto; }
.marker-tag { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .8rem; font-family: var(--font-data); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--loch); }

/* passing-place diamond marker: recurring iconographic device */
.pp-mark { flex-shrink: 0; width: .85rem; height: .85rem; background: var(--ink); transform: rotate(45deg); }
.pp-mark--malt { background: var(--malt); }
.pp-mark--light { background: var(--haar); }

/* header */
.headroad {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--haar-deep);
}
.headroad-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.2rem;
  min-height: 4.6rem;
  padding-block: .7rem;
}
.wordmark { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; }
.wordmark span { display: block; font-family: var(--font-data); font-size: .62rem; font-weight: 500; letter-spacing: .05em; color: var(--granite); text-transform: uppercase; }
.mile-nav { display: flex; flex-wrap: wrap; gap: .3rem; }
.mile-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .9rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
}
.mile-nav a:hover { background: var(--haar); color: var(--loch); }
.mile-nav a[aria-current="page"] { background: var(--loch); color: var(--white); }
.nav-toggle { display: none; }

/* hero: "the passing place" — asymmetric split, road-marker rail down the left of the copy, full photo on the right, no eyebrow+3-stat-card default */
.opening { background: var(--white); }
.opening-grid { display: grid; gap: var(--space-m); padding-block: var(--space-l); }
.opening-copy { position: relative; padding-left: 1.4rem; }
.opening-copy::before {
  content: "";
  position: absolute;
  left: 0; top: .3rem; bottom: .3rem;
  width: .28rem;
  background: repeating-linear-gradient(180deg, var(--loch) 0 1.1rem, transparent 1.1rem 1.7rem);
}
.opening-copy .lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--ink-soft); }
.opening-stats { display: grid; gap: .5rem; margin: var(--space-s) 0; padding: 0; list-style: none; font-family: var(--font-data); font-size: .85rem; }
.opening-stats li { display: flex; gap: .6rem; align-items: baseline; }
.opening-stats strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); min-width: 6.5rem; }
.opening-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: var(--space-s); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.4rem; border-radius: var(--radius); font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--loch); color: var(--white); }
.btn-primary:hover { background: var(--loch-deep); color: var(--white); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { border-color: var(--malt); color: var(--malt); }
.opening-photo { position: relative; }

/* photo slots */
.photo-slot { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--haar-deep); min-height: 12rem; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-slot:not(:has(img)) { display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--granite); }
.photo-slot:not(:has(img))::after { content: attr(data-label); padding: .8rem 1rem; max-width: 85%; text-align: center; font-family: var(--font-data); font-size: .68rem; line-height: 1.5; color: var(--granite); }
.photo-slot--tall { aspect-ratio: 4/5; }
.photo-slot--wide { aspect-ratio: 16/9; }
.photo-slot--square { aspect-ratio: 1/1; }
.photo-slot figcaption { position: absolute; inset: auto 0 0; margin: 0; padding: .6rem .8rem; background: linear-gradient(0deg, rgba(28,36,56,.82), transparent); color: var(--white); font-family: var(--font-data); font-size: .68rem; line-height: 1.4; }

/* sections — a continuous roadside mile-marker spine down the content column,
   replacing full-width alternating-background stripes. Every .leg shares the
   page's one background; sections are distinguished by their position along
   the spine, not by a swapped background colour. */
.leg { padding-block: var(--space-l); }
.leg .shell { position: relative; padding-left: 3rem; }
.leg .shell::before {
  content: "";
  position: absolute;
  left: .7rem; top: .2rem; bottom: .2rem;
  width: .28rem;
  background: repeating-linear-gradient(180deg, var(--loch) 0 1.1rem, transparent 1.1rem 1.7rem);
}
.leg-marker {
  position: absolute;
  left: 0; top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  background: var(--loch);
  color: var(--white);
  font-family: var(--font-data);
  font-size: .68rem;
  font-weight: 700;
}
.leg-marker--malt { background: var(--malt); }
.section-head { display: grid; gap: .6rem; margin-bottom: var(--space-m); max-width: var(--reading-max); }
.section-head p { margin: 0; color: var(--ink-soft); }

/* stage / recurring card grid */
.stage-grid { display: grid; gap: var(--space-s); }
.stage-card {
  display: grid;
  gap: var(--space-s);
  padding: var(--space-s);
  background: var(--white);
  border-radius: calc(var(--radius) + .3rem);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}
.stage-card:hover { box-shadow: 0 .8rem 2rem rgba(35,38,43,.16); }
.stage-card-num { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .3rem; font-family: var(--font-data); font-size: .78rem; color: var(--loch); }
.stage-card h3 { margin-bottom: .3rem; }
.stage-card .stage-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin: .5rem 0 0; padding: 0; list-style: none; font-family: var(--font-data); font-size: .75rem; color: var(--granite); }

/* generic card */
.card-grid { display: grid; gap: var(--space-s); }
.card {
  padding: var(--space-s);
  background: var(--white);
  border-radius: calc(var(--radius) + .3rem);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .5rem; }

/* fact strip */
.fact-strip { display: grid; gap: 1px; margin: var(--space-s) 0; background: var(--haar-deep); border-radius: var(--radius); overflow: hidden; }
.fact-strip div { padding: 1rem 1.2rem; background: var(--white); }
.fact-strip dt { font-family: var(--font-data); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--granite); }
.fact-strip dd { margin: .3rem 0 0; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }

/* notice */
.notice { display: grid; gap: .6rem; margin: var(--space-s) 0; padding: var(--space-s); background: var(--haar-deep); border-radius: var(--radius); border-left: .3rem solid var(--malt); }
.notice h3 { margin: 0; font-size: 1.15rem; }
.notice p { margin: 0; max-width: none; }

/* the Passing-Place Protocol widget */
.protocol { padding: var(--space-s); background: var(--loch-deep); color: var(--haar); border-radius: calc(var(--radius) + .4rem); }
.protocol h2, .protocol h3 { color: var(--white); }
.protocol-lede { color: var(--haar-deep); max-width: var(--reading-max); }
.protocol-grid { display: grid; gap: var(--space-s); margin-top: var(--space-s); }
.protocol-inputs { display: grid; gap: var(--space-s); }
.protocol-field { display: grid; gap: .5rem; }
.protocol-field legend { font-family: var(--font-data); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--haar-deep); padding: 0; }
.protocol-options { display: grid; gap: .5rem; }
.protocol-options label {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 48px;
  padding: .6rem .9rem;
  background: rgba(238,241,238,.06);
  border: 1px solid rgba(238,241,238,.2);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .95rem;
}
.protocol-options input { width: 1.1rem; height: 1.1rem; flex-shrink: 0; accent-color: var(--malt); }
.protocol-options label:has(input:checked) { border-color: var(--malt); background: rgba(168,103,42,.18); }
.protocol-result { display: grid; align-content: start; gap: .7rem; padding: var(--space-s); background: rgba(238,241,238,.06); border: 1px solid rgba(238,241,238,.2); border-radius: var(--radius); }
.protocol-result[data-state="empty"] .protocol-verdict { color: var(--haar-deep); }
.protocol-verdict { margin: 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--white); }
.protocol-detail { margin: 0; color: var(--haar-deep); }
.protocol-rule { margin: 0; font-family: var(--font-data); font-size: .72rem; color: var(--malt); letter-spacing: .02em; }

/* fuel table */
.fuel-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.fuel-table th, .fuel-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--haar-deep); text-align: left; vertical-align: top; }
.fuel-table th { font-family: var(--font-data); font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--granite); }
.fuel-table td[data-risk="high"] { color: var(--malt-deep); font-weight: 600; }

/* recurring stage detail page template */
.stage-lead { padding-block: var(--space-l); background: var(--white); }
.stage-lead-grid { display: grid; gap: var(--space-m); align-items: center; }
.stage-lead .marker-tag { color: var(--malt); }
.stage-pager { display: flex; justify-content: space-between; gap: 1rem; padding: var(--space-s) 0; border-top: 1px solid var(--haar-deep); margin-top: var(--space-m); font-family: var(--font-data); font-size: .8rem; }
.stage-pager a { text-decoration: none; }
.stage-body { display: grid; gap: var(--space-l); }
.stage-section { display: grid; gap: var(--space-s); }
.stage-section > .section-head { margin-bottom: 0; max-width: none; }

/* checklist */
.checklist { display: grid; gap: .6rem; margin: var(--space-s) 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.checklist .pp-mark { margin-top: .3rem; }

/* legal */
.legal-body { display: grid; gap: var(--space-m); }
.legal-body h2 { font-size: var(--step-2); margin-top: var(--space-m); }
.legal-body h2:first-child { margin-top: 0; }
.legal-back { display: inline-block; margin-top: var(--space-m); }

/* footer */
.verge { background: var(--loch-deep); color: var(--haar-deep); padding-block: var(--space-l); }
.verge a { color: var(--haar); }
.verge-grid { display: grid; gap: var(--space-m); }
.verge-brand { display: flex; align-items: center; gap: .55rem; color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.verge nav { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; margin-top: var(--space-s); padding: 0; list-style: none; font-family: var(--font-data); font-size: .8rem; }
.verge nav a { text-decoration: none; }
.verge small { display: block; margin-top: var(--space-s); max-width: 60ch; font-size: .78rem; color: var(--granite); }

@media (min-width: 40rem) {
  .stage-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .fact-strip { grid-template-columns: repeat(3, 1fr); }
  .protocol-grid { grid-template-columns: 1.1fr .9fr; align-items: start; }
}
@media (min-width: 60rem) {
  .opening-grid { grid-template-columns: 1.05fr .95fr; align-items: center; }
  .stage-lead-grid { grid-template-columns: 1fr .85fr; }
  .stage-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .protocol-inputs { grid-template-columns: repeat(2, 1fr); }
  .verge-grid { grid-template-columns: 1.2fr 1fr; }
  .mile-nav { gap: .15rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* wordmark: the brand name was inheriting the small tagline style */
.wordmark strong { display: block; font: 700 1.3rem/1.05 var(--font-display); letter-spacing: -.01em; text-transform: none; color: var(--ink); }

/* aspect-ratio photo slots must not be forced wider than a phone by their min-height */
.photo-slot--wide, .photo-slot--tall, .photo-slot--square { min-height: 0; }
.card-grid > *, .stage-grid > * { min-width: 0; }

/* cookie choice (Google Ads consent) */
.consent-bar { position: fixed; z-index: 100; right: 0; bottom: 0; left: 0; display: grid; gap: .9rem; padding: 1.1rem clamp(1rem, 4vw, 3rem); border-top: 3px solid var(--malt); background: var(--loch-deep); color: var(--haar); }
.consent-bar[hidden] { display: none; }
.consent-bar p { max-width: 62rem; margin: 0; font-size: .95rem; line-height: 1.5; }
.consent-bar a { color: var(--white); }
.consent-bar__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.consent-bar__btn { min-width: 44px; min-height: 44px; padding: .5rem 1.3rem; border: 0; border-radius: var(--radius); background: var(--malt); color: var(--white); font: 600 .95rem var(--font-display); cursor: pointer; }
.consent-bar__btn--ghost { background: transparent; color: var(--haar); box-shadow: inset 0 0 0 1.5px var(--granite); }
.verge .consent-open { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
@media (min-width: 48rem) { .consent-bar { grid-template-columns: 1fr auto; align-items: center; } }
