:root {
  --ink: #17262e;
  --muted: #63717a;
  --paper: #f5f0e7;
  --white: #fffdf9;
  --line: #d9d1c5;
  --red: #b22d42;
  --teal: #146c78;
  --gold: #a66a12;
  --purple: #74518d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.7; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; }
.topline { height: 6px; background: var(--red); }
.shell { width: min(1080px, calc(100% - 42px)); margin: 0 auto; }
.back { display: inline-flex; margin-top: 26px; color: var(--muted); font-size: 13px; font-weight: 750; text-decoration: none; }
.back:hover { color: var(--red); }
.hero { padding: 58px 0 52px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 13px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.1; }
h1 { max-width: 1020px; margin: 0; font-size: clamp(45px, 7vw, 78px); letter-spacing: -.042em; }
.dek { max-width: 900px; margin: 24px 0 0; color: #3f5059; font-family: Georgia, "Times New Roman", serif; font-size: clamp(19px, 2.4vw, 26px); line-height: 1.45; }
.article { padding: 62px 0 76px; }
.article > p, .article > h2 { max-width: 790px; margin-right: auto; margin-left: auto; }
.article > p { margin-top: 0; margin-bottom: 28px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.72; }
.article > h2 { margin-top: 64px; margin-bottom: 20px; font-size: clamp(32px, 4vw, 44px); letter-spacing: -.025em; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; width: min(1020px, 100%); margin: 44px auto 58px; }
.stat { padding: 23px; border-top: 4px solid var(--teal); background: rgba(255, 253, 249, .86); }
.stat.emphasis { border-top-color: var(--red); }
.stat strong { display: block; margin-bottom: 9px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(31px, 3.8vw, 43px); font-weight: 500; line-height: 1; }
.stat span { color: var(--muted); font-size: 13px; line-height: 1.45; }

.plot { width: min(960px, 100%); margin: 42px auto 46px; }
.plot-wide { width: min(1040px, 100%); }
.plot img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--white); box-shadow: 0 14px 34px rgba(24, 35, 42, .08); }
.plot figcaption { margin: 11px 8px 0; color: var(--muted); font-size: 13px; }

.table-wrap { width: min(1040px, 100%); margin: 36px auto 44px; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 10px 26px rgba(24, 35, 42, .05); }
.table-wrap table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 14px; line-height: 1.4; }
.compact-table { width: min(900px, 100%); }
.compact-table table { min-width: 680px; }
th, td { padding: 14px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); background: #f1ece3; font-size: 11px; letter-spacing: .045em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.negative { color: var(--red); font-weight: 750; }
.table-note { margin: 0; padding: 11px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.callout { width: min(900px, 100%); margin: 48px auto 56px; padding: 28px 32px; border-left: 5px solid var(--gold); background: #fbf5e8; }
.callout.positive { border-left-color: var(--teal); background: #edf5f3; }
.callout h3 { margin: 0 0 10px; font-size: 28px; }
.callout p { margin: 0; color: #3f5059; font-size: 16px; }

.metric-definition { width: min(900px, 100%); margin: 50px auto 58px; padding: 31px 34px; border-top: 4px solid var(--purple); background: rgba(255, 253, 249, .85); }
.metric-kicker { margin: 0 0 5px; color: var(--purple); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.metric-definition h3 { margin: 0 0 15px; font-size: 34px; }
.metric-definition > p:last-child { margin: 0; color: #3f5059; font-size: 17px; }

.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: min(960px, 100%); margin: 39px auto 48px; }
.route-grid article { padding: 25px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.route-grid span { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.route-grid strong { display: block; margin: 8px 0 11px; font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 500; line-height: 1.1; }
.route-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: min(980px, 100%); margin: 39px auto 48px; }
.time-grid article { padding: 25px; border-top: 4px solid var(--gold); background: rgba(255, 253, 249, .87); }
.time-grid strong { display: block; margin-bottom: 11px; font-family: Georgia, "Times New Roman", serif; font-size: 31px; font-weight: 500; line-height: 1.1; }
.time-grid span { display: block; color: var(--muted); font-size: 14px; line-height: 1.55; }

.recommendations { width: min(920px, 100%); margin: 68px auto 56px; padding-top: 48px; border-top: 2px solid var(--ink); }
.recommendations > h2 { max-width: 820px; margin: 0 0 34px; font-size: clamp(34px, 4.8vw, 51px); letter-spacing: -.025em; }
.recommendation { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 27px 0; border-top: 1px solid var(--line); }
.recommendation-number { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: var(--white); background: var(--red); font-family: Georgia, "Times New Roman", serif; font-size: 22px; }
.recommendation h3 { margin: 2px 0 11px; font-size: 29px; }
.recommendation p { margin: 0; color: #3c4c55; font-size: 17px; }

.article > .closing { margin-top: 48px; font-size: 23px; line-height: 1.6; }
.methodology { width: min(920px, 100%); margin: 70px auto 0; padding: 29px 31px; border-left: 5px solid var(--teal); background: rgba(255, 253, 249, .82); }
.methodology h2 { margin: 0 0 14px; font-size: 27px; }
.methodology p { margin: 0 0 13px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.methodology p:last-child { margin-bottom: 0; }
.author-note { width: min(920px, 100%); margin: 42px auto 0; padding: 25px 30px; border-top: 3px solid var(--purple); border-bottom: 1px solid var(--line); }
.author-note h2 { margin: 0 0 8px; font-size: 24px; }
.author-note p { max-width: 780px; margin: 0; color: #3c4c55; font-size: 16px; }
.footer { padding: 35px 0 55px; border-top: 1px solid var(--line); }
.footer a { color: var(--muted); font-size: 13px; font-weight: 750; text-decoration: none; }
.footer a:hover { color: var(--red); }

@media (max-width: 820px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .route-grid, .time-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 28px, 1080px); }
  .hero { padding: 42px 0 38px; }
  .article { padding-top: 44px; }
  .article > p { font-size: 18px; line-height: 1.65; }
  .stat-grid { grid-template-columns: 1fr; gap: 10px; }
  .stat { padding: 20px; }
  .plot { width: calc(100% + 14px); margin: 34px 0 38px -7px; }
  .plot img { border-radius: 5px; }
  .table-wrap { width: calc(100% + 14px); margin-left: -7px; border-radius: 4px; }
  .callout, .metric-definition, .methodology, .author-note { padding: 23px 21px; }
  .recommendation { grid-template-columns: 42px 1fr; gap: 13px; }
  .recommendation-number { width: 34px; height: 34px; font-size: 18px; }
  .recommendation h3 { font-size: 24px; }
  .recommendation p { font-size: 16px; }
}

@media print {
  .back, .footer { display: none; }
  body { background: #fff; }
  .shell { width: 100%; }
  .stat, .plot, .callout, .metric-definition, .route-grid article, .time-grid article, .recommendation, .methodology, .author-note { break-inside: avoid; }
}
