:root {
  color-scheme: light;
  --paper: #fffdf9;
  --wash: #f6efe5;
  --ink: #26231e;
  --muted: #5e564c;
  --accent: #963b22;
  --rule: #ded5c9;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.85 system-ui, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  overflow-wrap: anywhere;
}
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.45; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 0 0 .7rem; }
h3 { font-size: 1.15rem; margin: 1.65rem 0 .5rem; }
p { margin: 0 0 1em; }
main { padding-bottom: 1.5rem; }
.page-width { width: min(100% - 2rem, 48rem); margin-inline: auto; }
.muted { color: var(--muted); font-size: .9rem; }
.skip-link { position: absolute; left: 1rem; top: 1rem; padding: .35rem .7rem; background: var(--paper); z-index: 1; }
.skip-link:not(:focus) { clip-path: inset(50%); }
.site-header { border-bottom: 1px solid var(--rule); }
.site-nav, .site-links, .site-footer .page-width {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem 1.15rem;
}
.site-nav { padding-block: .85rem; }
.site-nav a { color: var(--ink); }
.brand { font-size: 1.2rem; font-weight: 750; letter-spacing: .08em; text-decoration: none; }
.site-links, .site-footer { font-size: .9rem; }
.hero { background: var(--wash); border-bottom: 1px solid var(--rule); padding-bottom: clamp(2.2rem, 6vw, 4rem); }
.breadcrumbs { padding-block: 1rem; font-size: .85rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .6rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .6rem; }
.hero h1 {
  font: 500 clamp(3.5rem, 11vw, 7rem)/1.05 Georgia, "Times New Roman", serif;
  margin: clamp(1.1rem, 4vw, 2.7rem) 0 1rem;
}
.hero-lead { font-size: clamp(1.13rem, 3.5vw, 1.6rem); font-weight: 650; line-height: 1.6; margin-bottom: .75rem; }
.intro { max-width: 42rem; }
.jump-links { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; margin-top: 1.5rem; }
.jump-links a { padding-block: .2rem; }
.page-section { padding: clamp(2rem, 5vw, 3rem) 0; border-bottom: 1px solid var(--rule); }
.page-section:last-child { border-bottom: 0; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1.3rem 0; border-block: 1px solid var(--rule); }
.metrics div { padding: .9rem .8rem; }
.metrics div + div { border-left: 1px solid var(--rule); }
.metrics dt { color: var(--muted); font-size: .82rem; }
.metrics dd { margin: 0; font-size: clamp(1.5rem, 5vw, 2.2rem); line-height: 1.35; font-variant-numeric: tabular-nums; }
.metrics dd span { font-size: .9rem; margin-left: .25em; }
.chart { margin: 1.6rem 0 2rem; }
.chart:last-child { margin-bottom: 0; }
.chart a:has(img) { display: block; }
.chart img { display: block; width: 100%; height: auto; background: #111; border-radius: .4rem; }
.chart figcaption { margin: .65rem 0 0; }
.chart figcaption p { margin: .2rem 0; }
.resources { padding: 0; margin: 0; list-style: none; }
.resources li + li { border-top: 1px solid var(--rule); padding-top: .9rem; }
.resources h3 { margin: .4rem 0; }
.resources p { margin-bottom: .6rem; }
.site-footer { border-top: 1px solid var(--rule); background: var(--wash); padding: 1.2rem 0; }
.site-footer small { color: var(--muted); }

.report-header { padding: 1.5rem 0; }
.report-header h1 { margin: .25rem 0 1rem; font-size: clamp(1.65rem, 4.8vw, 2.7rem); }
.report-number { font-weight: 700; color: var(--accent); margin: 0; }
.report-meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .15rem 1rem; margin: 0; font-size: .9rem; }
.report-meta dt { color: var(--muted); }
.report-meta dd { margin: 0; }
.toc { background: var(--wash); padding: 1.1rem 1.4rem; border-radius: .4rem; }
.toc h2 { font-size: 1.15rem; }
.toc ol { columns: 2 16rem; padding-left: 1.6em; margin: 0; }
.toc li { break-inside: avoid; }
.report-content section { padding: 1.9rem 0 1rem; border-bottom: 1px solid var(--rule); }
.report-content li { margin: .2rem 0; }
.table-scroll { overflow-x: auto; margin: 1rem 0; }
.table-scroll table { border-collapse: collapse; width: 100%; font-size: .9rem; font-variant-numeric: tabular-nums; }
.table-scroll :is(th, td) { border-bottom: 1px solid var(--rule); padding: .55em .7em; text-align: left; }
.table-scroll thead { background: var(--wash); }
.table-scroll .numeric { text-align: right; white-space: nowrap; }
.report-content blockquote { margin: .5rem 0 1.15rem; padding: .7rem 1rem; border-inline-start: 3px solid var(--rule); background: var(--wash); }
.report-content blockquote p { margin: 0; }
.report-credits { padding-top: 1.3rem; }
.report-credits p { margin: .25rem 0; }

@media (max-width: 30rem) {
  .metrics { grid-template-columns: 1fr; }
  .metrics div + div { border-left: 0; border-top: 1px solid var(--rule); }
}
