/* ==========================================================================
   Stargazing from Salt Lake City — Outdoor Quarterly Feature
   Libre Baskerville + Mulish, sage-grey LIGHT magazine site
   §4.6 of DESIGN.md
   ========================================================================== */

/* ---- Google Fonts imported in <head> of each page ---- */
/* Libre Baskerville 400-italic / 700 + Mulish 400 / 500 / 600 */

:root {
  /* Palette §4.6 */
  --bg:         #f2f4f0;
  --surface:    #ffffff;
  --text:       #1c2520;
  --muted:      #5d6e62;
  --accent:     #2d6a4f;  /* forest green — links, borders, chapter bars */
  --accent-2:   #e9a820;  /* amber — CTAs */
  --border:     #d4ddd6;

  /* Derived */
  --accent-hover: #235840;
  --cta-text:   #1c2520;  /* dark text on amber CTA */
  --radius:     6px;      /* max per spec */

  /* Layout */
  --max-w:    78rem;
  --content-w: 65ch;     /* spec: body column max-width 65ch */
}

/* ------------------------------------------------------------------ */
/* Reset & base                                                        */
/* ------------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Mulish", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------------ */
/* Typography                                                          */
/* ------------------------------------------------------------------ */

h1, h2, h3, h4 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Fluid type — H1/body ratio ≥ 4:1 at desktop (4rem / 1rem = 4:1) */
h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  margin: 3rem 0 1rem;
}

h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  margin: 2rem 0 0.75rem;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}

p {
  margin-bottom: 1.2rem;
  max-width: var(--content-w);
}

/* Body links — forest green with underline */
a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-color: rgba(45, 106, 79, 0.4);
}

a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

ul, ol {
  margin: 0 0 1.25rem 1.4rem;
}

li {
  margin-bottom: 0.6rem;
  max-width: var(--content-w);
}

strong {
  font-weight: 600;
}

/* Italic deck / lede via Libre Baskerville italic */
.lede, .deck {
  font-family: "Libre Baskerville", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text);
  max-width: 52ch;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Pull quote — italic Baskerville pulled verbatim from copy */
.pull-quote {
  font-family: "Libre Baskerville", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  line-height: 1.45;
  color: var(--accent);
  border-left: 4px solid var(--accent);
  padding: 1rem 0 1rem 1.5rem;
  margin: 3rem 0;
  max-width: 54ch;
}

.pull-quote cite {
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  font-family: "Mulish", sans-serif;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ------------------------------------------------------------------ */
/* Accessibility                                                       */
/* ------------------------------------------------------------------ */

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 200;
  font-family: "Mulish", sans-serif;
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ------------------------------------------------------------------ */
/* Header / Nav                                                        */
/* ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 244, 240, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.brand {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand span {
  color: var(--accent);
}

/* Hamburger */
.nav-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.nav-toggle-btn .bar,
.nav-toggle-btn .bar::before,
.nav-toggle-btn .bar::after {
  content: "";
  position: absolute;
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-btn .bar {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.nav-toggle-btn .bar::before {
  top: -8px;
  left: 0;
}

.nav-toggle-btn .bar::after {
  top: 8px;
  left: 0;
}

.nav-links {
  list-style: none;
  margin: 0;
  flex-basis: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav.open .nav-links {
  max-height: 32rem;
  padding-top: 0.75rem;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  display: block;
  padding: 0.7rem 0.25rem;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-family: "Mulish", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

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

/* Book a Tour CTA in nav */
.nav-links .nav-cta {
  background: var(--accent-2);
  color: var(--cta-text);
  border-radius: var(--radius);
  border-bottom: none;
  text-align: center;
  font-weight: 600;
  margin-top: 0.6rem;
  padding: 0.6rem 1rem;
  min-height: 44px;
}

.nav-links .nav-cta:hover {
  background: #d4951a;
  color: var(--cta-text);
}

@media (min-width: 880px) {
  .nav-toggle-btn {
    display: none;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-basis: auto;
    max-height: none;
    overflow: visible;
  }

  .site-nav.open .nav-links {
    padding-top: 0;
  }

  .nav-links a {
    border-bottom: none;
    padding: 0.4rem 0.65rem;
    min-height: 0;
  }

  .nav-links .nav-cta {
    margin-top: 0;
    margin-left: 0.5rem;
    padding: 0.5rem 1.1rem;
    min-height: 0;
  }
}

/* ------------------------------------------------------------------ */
/* Hero — 85vh full-bleed photo, bottom gradient ≤ 0.45               */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: -2;
}

/* Bottom gradient — max 0.45 opacity at darkest point */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    transparent 20%,
    rgba(10, 20, 14, 0.15) 50%,
    rgba(10, 20, 14, 0.44) 75%,
    rgba(10, 20, 14, 0.44) 100%
  );
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.hero h1 {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
  max-width: 22ch;
}

.hero .lede {
  color: rgba(255, 255, 255, 0.92);
  max-width: 50ch;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.hero .btn-row {
  margin-top: 0;
}

/* Sub-page hero: shorter */
.hero.hero-page {
  min-height: 44vh;
  align-items: flex-end;
}

.hero.hero-page .hero-inner {
  padding-bottom: 3rem;
}

.hero.hero-page h1 {
  max-width: 30ch;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-block;
  background: var(--accent-2);
  color: var(--cta-text);
  font-family: "Mulish", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  transition: background 0.15s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #d4951a;
  color: var(--cta-text);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #ffffff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

@media (max-width: 600px) {
  .btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
  }
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ------------------------------------------------------------------ */
/* Chapter-title bars — §4.6 signature layout element                 */
/* ------------------------------------------------------------------ */
/* Full-width rule, 2px solid green top border, no fill.
   Chapter number (Mulish 500) left-aligned small,
   Section title (Baskerville 700) beside it,
   Drive-time indicator right-aligned.                                */

.chapter-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 2px solid var(--accent);
  padding-top: 0.8rem;
  margin: 4rem 0 1.5rem;
  /* Break out of content column */
  width: 100%;
}

.chapter-bar .chapter-num {
  font-family: "Mulish", sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-right: 0.75rem;
  white-space: nowrap;
}

.chapter-bar .chapter-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  flex: 1;
  margin: 0;
}

.chapter-bar .drive-time {
  font-family: "Mulish", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}

/* ------------------------------------------------------------------ */
/* Inline drive-time badges — §4.6 signature detail                   */
/* 4px radius, #2d6a4f bg, white text, Mulish 600, inline             */
/* ------------------------------------------------------------------ */

.drive-badge {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-family: "Mulish", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.15em 0.55em;
  border-radius: 4px;
  line-height: 1.5;
  vertical-align: middle;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Layout — content column                                             */
/* ------------------------------------------------------------------ */

main { display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 4rem 1.5rem 0;
}

/* At desktop give slightly more breathing room */
@media (min-width: 768px) {
  .content { padding-top: 6rem; }
}

/* Wide elements break out of the text column — safe, no negative margins */
.content .table-wrap,
.content .photo-figure,
.content .photo-grid {
  width: 100%;
}

@media (min-width: 900px) {
  /* Break out to a wider measure on large screens using container query fallback */
  .content .table-wrap,
  .content .photo-figure,
  .content .photo-grid {
    max-width: 56rem;
    width: 56rem;
  }
}

/* Breadcrumb */
.breadcrumbs {
  font-family: "Mulish", sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

/* ------------------------------------------------------------------ */
/* Full-bleed photo break (mid-article)                               */
/* ------------------------------------------------------------------ */

.photo-break {
  position: relative;
  /* Negative margin full-bleed; body has overflow-x:hidden to prevent scroll */
  width: calc(100vw);
  margin-left: calc(-50vw + 50%);
  height: clamp(280px, 38vh, 480px);
  overflow: hidden;
  isolation: isolate;
}

.photo-break img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo-break::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(10,20,14,0.35) 100%);
}

.photo-break figcaption {
  position: absolute;
  bottom: 0.75rem;
  left: 1.5rem;
  right: 1.5rem;
  color: rgba(255,255,255,0.85);
  font-family: "Mulish", sans-serif;
  font-size: 0.875rem;
  z-index: 1;
}

/* ------------------------------------------------------------------ */
/* Photo figures (inline)                                             */
/* ------------------------------------------------------------------ */

.photo-figure {
  margin: 2.5rem 0;
}

.photo-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.photo-figure figcaption {
  font-family: "Mulish", sans-serif;
  font-size: 0.875rem;
  color: var(--muted);
  padding: 0.55rem 0.25rem 0;
  line-height: 1.5;
  max-width: var(--content-w);
}

/* ------------------------------------------------------------------ */
/* Tables — green header row per spec                                 */
/* ------------------------------------------------------------------ */

.table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Mulish", sans-serif;
  font-size: 0.94rem;
  min-width: 28rem;
}

caption {
  caption-side: top;
  text-align: left;
  padding: 0.9rem 1rem 0.5rem;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

/* Green header row per §4.6 */
thead th {
  background: var(--accent);
  color: #ffffff;
  font-family: "Mulish", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tbody tr {
  background: var(--surface);
}

tbody tr:nth-child(even) {
  background: var(--bg);
}

tbody tr:last-child td {
  border-bottom: none;
}

td.win, .highlight {
  color: var(--accent);
  font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Cards — white, 1px border, 3px green top border                   */
/* ------------------------------------------------------------------ */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

@media (min-width: 700px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}

.card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 0.75rem;
  max-width: none;
}

.card a.more {
  font-family: "Mulish", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Photo card grid (lodging)                                          */
/* ------------------------------------------------------------------ */

.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

@media (min-width: 600px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

.photo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
}

.photo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.photo-card figcaption {
  padding: 0.85rem 1rem;
  font-family: "Mulish", sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.photo-card figcaption strong {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

/* ------------------------------------------------------------------ */
/* Inline CTA card                                                    */
/* ------------------------------------------------------------------ */

.cta-inline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  margin: 2.5rem 0;
}

.cta-inline p {
  max-width: none;
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------------ */
/* Full-bleed CTA band — §4.6: #2d6a4f section, white Baskerville    */
/* heading, #e9a820 button dark text                                  */
/* ------------------------------------------------------------------ */

.cta-band {
  background: var(--accent);
  padding: 5rem 1.5rem;
  text-align: center;
  margin-top: 5rem;
}

.cta-band h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 1rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 46ch;
  margin: 0 auto 1.75rem;
}

.cta-band .btn {
  background: var(--accent-2);
  color: var(--cta-text);
}

.cta-band .btn:hover {
  background: #d4951a;
}

/* ------------------------------------------------------------------ */
/* FAQ — Baskerville question, green +/- toggle                       */
/* ------------------------------------------------------------------ */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.faq-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  -webkit-appearance: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary h2,
.faq-item summary h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
  flex: 1;
}

.faq-toggle {
  font-family: "Mulish", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.15s ease;
  user-select: none;
}

/* Show − when open, + when closed */
.faq-toggle::before { content: "+"; }
.faq-item[open] .faq-toggle::before { content: "−"; }

.faq-body {
  padding: 0 0 1.5rem;
}

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

/* Fallback for non-details FAQ */
.faq-item.static {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.3rem 1.4rem;
  margin-bottom: 1rem;
}

.faq-item.static h2,
.faq-item.static h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 0.65rem;
}

/* ------------------------------------------------------------------ */
/* Ranked list (dl.ranked)                                            */
/* ------------------------------------------------------------------ */

dl.ranked dt {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 2.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

dl.ranked dd {
  margin: 0.5rem 0 0;
}

/* ------------------------------------------------------------------ */
/* Misc                                                               */
/* ------------------------------------------------------------------ */

.meta-line {
  font-family: "Mulish", sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ------------------------------------------------------------------ */
/* Footer                                                             */
/* ------------------------------------------------------------------ */

.site-footer {
  background: var(--text);
  border-top: 3px solid var(--accent);
  padding: 3.5rem 1.5rem 2.5rem;
  font-family: "Mulish", sans-serif;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0;
}

.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.site-footer h4 {
  font-family: "Libre Baskerville", Georgia, serif;
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.site-footer p { max-width: 38ch; }

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
  max-width: none;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-2);
}

.footer-note {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
}

/* ------------------------------------------------------------------ */
/* Mobile tweaks                                                      */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
  .hero {
    min-height: 75vh;
  }

  .hero.hero-page {
    min-height: 40vh;
  }

  .chapter-bar {
    flex-direction: column;
    gap: 0.25rem;
  }

  .chapter-bar .drive-time {
    text-align: left;
  }

  .content {
    padding-top: 3rem;
  }
}

/* ------------------------------------------------------------------ */
/* Scroll-reveal (§2 — with @supports + reduced-motion guard)         */
/* ------------------------------------------------------------------ */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: fade-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }

    @keyframes fade-up {
      from {
        opacity: 0.85;
        translate: 0 1.5rem;
      }
      to {
        opacity: 1;
        translate: 0 0;
      }
    }
  }
}
