:root {
  --paper: #f7f2e8;
  --paper-light: #fffdf8;
  --ink: #17231c;
  --muted: #5e675f;
  --forest: #234b36;
  --forest-light: #dfeade;
  --line: #d8d0c2;
  --accent: #a14c2b;
  --shadow: 0 18px 50px rgba(23, 35, 28, 0.09);
  --radius: 1rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a { color: var(--forest); text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid #d48c45; outline-offset: 3px; }

img { display: block; max-width: 100%; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--forest);
  border-radius: 0.5rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 242, 232, 0.96);
}

.site-header__inner,
.site-footer__inner,
.page-shell {
  width: min(74rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header__inner {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.85rem 1.25rem; }
.site-nav a { font-size: 0.92rem; font-weight: 650; text-decoration: none; }

.page-shell { padding-block: 1.15rem 4rem; }

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  padding: 0;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.55rem; color: #9b9488; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.25);
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.hero--plain { grid-template-columns: 1fr; }
.eyebrow { margin: 0 0 0.55rem; color: var(--accent); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.16; }
h1 { max-width: 22ch; margin: 0; font-size: clamp(2.15rem, 6vw, 4.4rem); letter-spacing: -0.035em; }
h2 { margin: 0 0 1rem; font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { margin: 0; font-size: 1.25rem; }
.lede { max-width: 68ch; margin: 1.1rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem); }

.hero-photo { overflow: hidden; margin: 0; border-radius: var(--radius); background: var(--forest-light); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-photo figcaption { padding: 0.75rem 0.9rem; color: var(--muted); font-size: 0.78rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.8rem;
  margin: 1.5rem 0 0;
}
.fact { padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 0.75rem; background: #fff; }
.fact__label { display: block; color: var(--muted); font-size: 0.76rem; font-weight: 750; letter-spacing: 0.05em; text-transform: uppercase; }
.fact__value { display: block; margin-top: 0.15rem; font-size: 1.03rem; font-weight: 750; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(15rem, 0.6fr); gap: 2rem; margin-top: 2rem; align-items: start; }
.stack > * + * { margin-top: 1.2rem; }
.panel { padding: clamp(1.15rem, 3vw, 1.8rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-light); }
.panel p:last-child, .panel ul:last-child, .panel ol:last-child { margin-bottom: 0; }
.panel--warning { border-color: #d6b78b; background: #fff9ef; }
.panel--positive { border-color: #adc5ae; background: #f2f8f1; }
.meta-list { list-style: none; padding: 0; margin: 0; }
.meta-list li + li { margin-top: 0.55rem; }

.route-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.85rem; }
.route-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-light); }
.route-card__number { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 999px; color: white; background: var(--forest); font-weight: 800; }
.route-card__title a { text-decoration-thickness: 1px; }
.route-card__meta { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.9rem; }
.route-card__summary { margin: 0.6rem 0 0; }
.status { display: inline-block; margin-top: 0.55rem; padding: 0.22rem 0.55rem; border-radius: 999px; color: #75501d; background: #f3e4c9; font-size: 0.78rem; font-weight: 750; }
.status--published { color: var(--forest); background: var(--forest-light); }

.score-table { width: 100%; border-collapse: collapse; }
.score-table th, .score-table td { padding: 0.75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.score-table th { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.score-table td:nth-child(2), .score-table td:nth-child(3) { white-space: nowrap; }
.score-table small { display: block; max-width: 72ch; margin-top: 0.25rem; color: var(--muted); }

.source-list { padding-left: 1.25rem; }
.source-list li + li { margin-top: 0.75rem; }
.source-meta { display: block; color: var(--muted); font-size: 0.82rem; }

.related-list { padding-left: 1.15rem; }
.related-list li + li { margin-top: 0.55rem; }

.callout { margin-top: 2rem; padding: 1.15rem 1.35rem; border-left: 4px solid var(--accent); background: #fff7e9; }
.callout p { margin: 0; }

.site-footer { border-top: 1px solid var(--line); background: #ece5d8; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.7rem 1.5rem; padding-block: 1.5rem; color: var(--muted); font-size: 0.88rem; }
.site-footer p { margin: 0; }

@media (max-width: 48rem) {
  .site-header__inner { align-items: flex-start; flex-direction: column; padding-block: 0.9rem; }
  .site-nav { justify-content: flex-start; }
  .hero, .content-grid { grid-template-columns: 1fr; }
  .hero { padding: 1.35rem; }
  .score-table { display: block; overflow-x: auto; }
}

@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  body { background: white; }
  .page-shell { width: 100%; padding: 0; }
  .hero, .panel, .route-card { box-shadow: none; break-inside: avoid; }
}
