:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --paper-2: #ebe4d8;
  --surface: #fffdf8;
  --ink: #171513;
  --muted: #68615a;
  --line: #d4ccbf;
  --red: #c8322a;
  --red-dark: #93251f;
  --green: #287052;
  --amber: #916419;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 88% -8rem, rgb(200 50 42 / 9%), transparent 32rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  margin: 0;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.skip-link { background: var(--ink); color: white; left: 1rem; padding: .7rem 1rem; position: fixed; top: -5rem; z-index: 50; }
.skip-link:focus { top: 1rem; }
.shell { margin-inline: auto; max-width: 1240px; padding-inline: 32px; }
.sr-only { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

.site-header { border-bottom: 1px solid var(--line); padding-block: 22px; }
.header-inner { align-items: center; display: flex; justify-content: space-between; }
.brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.brand span { color: var(--red); margin-left: 3px; }
.header-note { color: var(--muted); font-size: .75rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }

.intro { align-items: end; display: grid; gap: 56px; grid-template-columns: 1.5fr .7fr; min-height: 410px; padding-block: 72px 54px; }
.eyebrow { color: var(--red-dark); font-size: .72rem; font-weight: 800; letter-spacing: .14em; margin: 0 0 16px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.045em; line-height: .94; }
h1 { font-size: clamp(4rem, 9vw, 7.8rem); margin: 0; }
h2 { font-size: clamp(2.4rem, 5vw, 4.8rem); margin: 0; }
.intro-copy > p { color: #3d3935; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.42; }
.freshness { align-items: center; border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: .78rem; gap: 9px; margin-top: 30px; padding-top: 16px; }
.status-dot { background: currentColor; border-radius: 50%; flex: 0 0 auto; height: 7px; width: 7px; }
.freshness[data-state="available"] { color: var(--green); }
.freshness[data-state="partial"], .freshness[data-state="stale"] { color: var(--amber); }
.freshness[data-state="unavailable"] { color: var(--muted); }

.chart-section { background: var(--ink); color: var(--surface); padding-block: 60px 44px; }
.chart-heading { align-items: end; display: flex; gap: 30px; justify-content: space-between; }
.chart-heading .eyebrow { color: #f08076; }
.headline-metric { text-align: right; }
.metric-value { display: block; font-family: var(--serif); font-size: clamp(3rem, 7vw, 6.2rem); letter-spacing: -.06em; line-height: .8; }
.metric-label { color: #aaa39a; display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; margin-top: 15px; text-transform: uppercase; }

.chart-frame { margin-top: 42px; min-height: 330px; position: relative; }
.chart-y-label { color: #8b857e; font-size: .65rem; font-weight: 800; left: -40px; letter-spacing: .12em; position: absolute; text-transform: uppercase; top: 50%; transform: rotate(-90deg); }
.growth-chart { display: block; height: auto; max-height: 430px; min-height: 260px; overflow: visible; width: 100%; }
.chart-grid { stroke: #373431; stroke-width: 1; }
.chart-grid-label { fill: #8b857e; font: 18px var(--sans); }
.chart-baseline { stroke: #8b857e; stroke-dasharray: 7 8; stroke-width: 1.5; }
.chart-baseline-label { fill: #aaa39a; font: 700 17px var(--sans); }
.chart-area { fill: url(#chart-area-fill); }
.chart-line { fill: none; stroke: #ed5a50; stroke-linecap: round; stroke-linejoin: round; stroke-width: 5; }
.chart-point { fill: var(--ink); stroke: #f08076; stroke-width: 4; }
.chart-point-current { fill: #ed5a50; stroke: #fff; stroke-width: 4; }
.chart-axis-labels { color: #8b857e; display: flex; font-size: .7rem; font-weight: 750; justify-content: space-between; letter-spacing: .08em; text-transform: uppercase; }
.chart-caption { border-top: 1px solid #373431; display: grid; gap: 30px; grid-template-columns: 1fr auto; margin-top: 22px; padding-top: 18px; }
.chart-caption p { color: #bcb5ad; font-size: .8rem; margin: 0; }
.chart-caption p:last-child { text-align: right; }

.journey-section { padding-block: 72px 90px; }
.journey-heading { align-items: end; display: grid; gap: 40px; grid-template-columns: 1fr 420px; margin-bottom: 38px; }
.journey-heading > p { color: var(--muted); margin: 0; }
.tabs-wrap { position: relative; }
.day-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 5px 5px 18px; scroll-behavior: smooth; scrollbar-color: var(--red) var(--paper-2); scrollbar-width: thin; }
.day-tab { background: transparent; border: 1px solid var(--line); color: var(--muted); cursor: pointer; flex: 0 0 96px; font: inherit; min-height: 82px; padding: 12px 10px; position: relative; text-align: left; }
.day-tab:hover { border-color: var(--ink); color: var(--ink); }
.day-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: white; }
.day-tab-number { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1; }
.day-tab-date { display: block; font-size: .65rem; font-weight: 750; letter-spacing: .08em; margin-top: 9px; text-transform: uppercase; }
.day-tab::after { background: var(--line); border-radius: 50%; bottom: 9px; content: ""; height: 5px; position: absolute; right: 9px; width: 5px; }
.day-tab[data-state="complete"]::after { background: var(--green); }
.day-tab[data-state="current"]::after { background: var(--red); box-shadow: 0 0 0 3px rgb(200 50 42 / 18%); }
.day-tab[aria-selected="true"]::after { background: #f08076; }
.day-tab[data-state="future"] { color: #8c857e; }
.tabs-fade { bottom: 17px; pointer-events: none; position: absolute; top: 0; width: 30px; z-index: 2; }
.tabs-fade-left { background: linear-gradient(90deg, var(--paper), transparent); left: 0; }
.tabs-fade-right { background: linear-gradient(-90deg, var(--paper), transparent); right: 0; }

.day-panel { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 60px rgb(47 37 24 / 7%); margin-top: 26px; min-height: 300px; padding: 34px; }
.panel-header { align-items: start; border-bottom: 1px solid var(--line); display: flex; gap: 30px; justify-content: space-between; padding-bottom: 28px; }
.panel-header h3 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; margin-bottom: 9px; }
.panel-header p { color: var(--muted); margin: 0; }
.state-pill { align-items: center; border: 1px solid currentColor; border-radius: 99px; color: var(--muted); display: inline-flex; font-size: .66rem; font-weight: 800; gap: 7px; letter-spacing: .1em; padding: 7px 10px; text-transform: uppercase; }
.state-pill::before { background: currentColor; border-radius: 50%; content: ""; height: 6px; width: 6px; }
.state-pill[data-state="complete"], .state-pill[data-state="verified"] { color: var(--green); }
.state-pill[data-state="partial"] { color: var(--amber); }

.day-metrics { background: var(--line); display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr); margin-top: 28px; }
.day-metric { background: var(--surface); min-height: 132px; padding: 20px; }
.day-metric-label { color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.day-metric-value { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.045em; line-height: 1; margin: 18px 0 8px; }
.day-metric-note { color: var(--muted); font-size: .72rem; }

.evidence-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; margin-top: 38px; }
.evidence-column h4 { font-size: .72rem; letter-spacing: .12em; margin: 0 0 14px; text-transform: uppercase; }
.evidence-list { border-top: 1px solid var(--line); }
.evidence-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.evidence-item-head { align-items: baseline; display: flex; gap: 15px; justify-content: space-between; }
.evidence-item-head strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.evidence-item p { color: var(--muted); font-size: .86rem; margin: 9px 0 12px; }
.evidence-link { color: var(--red-dark); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.evidence-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.mini-metrics { color: var(--muted); display: flex; flex-wrap: wrap; font-size: .7rem; gap: 8px 15px; }
.answer { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.answer[data-answer="true"] { color: var(--green); }
.empty-day { align-items: center; display: grid; min-height: 240px; padding: 35px 0; }
.empty-day-inner { max-width: 590px; }
.empty-day h3 { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; line-height: 1.1; margin-bottom: 14px; }
.empty-day p { color: var(--muted); }
.data-note { border-left: 3px solid var(--amber); color: var(--muted); font-size: .8rem; margin-top: 25px; padding: 10px 14px; }

.skeleton { animation: pulse 1.4s ease-in-out infinite; background: var(--paper-2); border-radius: 3px; display: block; min-height: 1em; }
.chart-section .skeleton { background: #35312e; }
.block-wide { height: 30px; margin-bottom: 30px; width: 70%; }
.block-mid { height: 90px; margin-bottom: 30px; width: 45%; }
@keyframes pulse { 50% { opacity: .48; } }

.site-footer { border-top: 1px solid var(--line); padding-block: 30px 54px; }
.footer-inner { color: var(--muted); display: flex; font-size: .76rem; gap: 30px; justify-content: space-between; }
.footer-inner p { margin: 0; }

@media (max-width: 820px) {
  .shell { padding-inline: 20px; }
  .intro { align-items: start; grid-template-columns: 1fr; min-height: 0; padding-block: 52px 44px; }
  .intro-copy { max-width: 600px; }
  .journey-heading { display: block; }
  .journey-heading > p { margin-top: 22px; }
  .day-metrics { grid-template-columns: 1fr 1fr; }
  .evidence-grid { grid-template-columns: 1fr; }
  .chart-caption { display: block; }
  .chart-caption p:last-child { margin-top: 8px; text-align: left; }
}

@media (max-width: 520px) {
  .header-note { font-size: .62rem; }
  .intro { gap: 32px; }
  .chart-section { padding-block: 45px 34px; }
  .chart-heading { align-items: start; display: block; }
  .headline-metric { margin-top: 28px; text-align: left; }
  .growth-chart { min-height: 230px; }
  .chart-y-label { display: none; }
  .journey-section { padding-block: 52px 68px; }
  .day-panel { padding: 22px 18px; }
  .panel-header { display: block; }
  .panel-header .state-pill { margin-top: 18px; }
  .day-metrics { grid-template-columns: 1fr; }
  .day-metric { min-height: 105px; }
  .day-tab { flex-basis: 82px; }
  .footer-inner { display: block; }
  .footer-inner p + p { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html, .day-tabs { scroll-behavior: auto; }
  .skeleton { animation: none; }
}
