:root {
  --font-body: "Atkinson Hyperlegible", "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Crimson Pro", "Iowan Old Style", "Songti SC", Georgia, serif;
  --bg: #f4f1e8;
  --surface: #fffdf8;
  --surface-raised: #ffffff;
  --surface-muted: #eae6db;
  --ink: #17201b;
  --ink-soft: #4e5a52;
  --ink-faint: #6d776f;
  --line: #d5d0c4;
  --line-strong: #a9afa7;
  --accent: #176b4d;
  --accent-strong: #0d543b;
  --accent-soft: #dcece3;
  --accent-ink: #09412d;
  --amber: #9b5f12;
  --amber-soft: #f5e7cb;
  --blue: #315f79;
  --blue-soft: #dde9ef;
  --danger: #a53a34;
  --focus: #0878c9;
  --shadow: 0 18px 48px rgba(38, 45, 40, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shell: 1180px;
  --ease: 180ms ease;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101411;
    --surface: #171d19;
    --surface-raised: #1b221d;
    --surface-muted: #202822;
    --ink: #eef2ed;
    --ink-soft: #bdc8c0;
    --ink-faint: #95a399;
    --line: #354038;
    --line-strong: #536157;
    --accent: #67d4a3;
    --accent-strong: #8be1b8;
    --accent-soft: #17392b;
    --accent-ink: #b7f0d3;
    --amber: #e7b86d;
    --amber-soft: #3b301f;
    --blue: #8bc1df;
    --blue-soft: #1d3440;
    --danger: #f18f88;
    --focus: #63b8ed;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
  }
}

:root[data-theme="dark"] {
  --bg: #101411;
  --surface: #171d19;
  --surface-raised: #1b221d;
  --surface-muted: #202822;
  --ink: #eef2ed;
  --ink-soft: #bdc8c0;
  --ink-faint: #95a399;
  --line: #354038;
  --line-strong: #536157;
  --accent: #67d4a3;
  --accent-strong: #8be1b8;
  --accent-soft: #17392b;
  --accent-ink: #b7f0d3;
  --amber: #e7b86d;
  --amber-soft: #3b301f;
  --blue: #8bc1df;
  --blue-soft: #1d3440;
  --danger: #f18f88;
  --focus: #63b8ed;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 30rem),
    var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
a {
  touch-action: manipulation;
}

button {
  font: inherit;
}

svg {
  display: block;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bg);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 32px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.header-inner {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  color: var(--accent);
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary-nav a,
.theme-toggle {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 650;
  text-decoration: none;
  transition: color var(--ease), background var(--ease);
}

.primary-nav a:hover,
.theme-toggle:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.theme-toggle {
  width: 44px;
  padding: 0;
}

.theme-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-moon,
:root[data-theme="dark"] .theme-icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-icon-moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-sun {
    display: none;
  }
  :root:not([data-theme="light"]) .theme-icon-moon {
    display: block;
  }
}

.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--amber) 42%, var(--line));
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  color: var(--ink);
  font-size: 14px;
}

.notice svg {
  width: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  align-items: end;
  gap: clamp(40px, 7vw, 100px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1,
.report-header h1,
.simple-hero h1,
.topic-hero h1 {
  margin: 0;
  max-width: 850px;
  font-family: var(--font-display);
  font-size: clamp(45px, 7vw, 82px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 em,
.report-header h1 em {
  color: var(--accent);
  font-weight: 500;
}

.hero-lead,
.report-header > div > p:last-child,
.simple-hero > p:last-child,
.topic-hero > p {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  transition: background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.button-primary {
  background: var(--accent-strong);
  color: #fff;
}

:root[data-theme="dark"] .button-primary {
  color: #0a2d20;
}

.button-primary:hover {
  background: var(--accent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 24%, transparent);
}

.button-secondary {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.brief-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}

.brief-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-faint);
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.run-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-weight: 800;
}

.run-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent);
}

.brief-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
}

.brief-metrics div {
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brief-metrics div:nth-child(even) {
  border-right: 0;
}

.brief-metrics div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.brief-metrics dt {
  color: var(--ink-faint);
  font-size: 13px;
}

.brief-metrics dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 38px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
}

.pipeline-mini {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--ink-faint);
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.pipeline-mini span {
  white-space: nowrap;
}

.pipeline-mini .active {
  color: var(--accent);
}

.pipeline-mini i {
  height: 1px;
  flex: 1;
  min-width: 8px;
  margin: 0 8px;
  background: var(--line-strong);
}

.section {
  padding-block: 72px;
}

.section-muted {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-muted) 58%, transparent);
}

.section.flush {
  padding-bottom: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2,
.method-note h2,
.analysis-section h2,
.analysis-columns h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-link,
.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.section-link:hover,
.text-link:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.text-link svg,
.topic-card svg,
.archive-list svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.paper-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.paper-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.paper-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--ink) 7%, transparent);
}

.paper-card[hidden] {
  display: none;
}

.paper-card-rail {
  width: 4px;
  flex: 0 0 auto;
  background: var(--accent);
}

.paper-card[data-bucket="scan"] .paper-card-rail {
  background: var(--blue);
}

.paper-card[data-bucket="exploration"] .paper-card-rail {
  background: var(--amber);
}

.paper-card-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.paper-meta-row {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.badge,
.topic-label,
.scope-label {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.badge {
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-scan {
  background: var(--blue-soft);
  color: var(--blue);
}

.badge-exploration {
  background: var(--amber-soft);
  color: var(--amber);
}

.topic-label {
  max-width: 100%;
  overflow: hidden;
  background: var(--surface-muted);
  color: var(--ink-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-label:hover {
  color: var(--accent);
}

.scope-label {
  padding-inline: 0;
  color: var(--ink-faint);
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-weight: 650;
}

.paper-heading-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
}

.paper-heading-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.paper-heading-row h3 a {
  text-decoration: none;
}

.paper-heading-row h3 a:hover {
  color: var(--accent);
}

.authors {
  margin: 9px 0 0;
  color: var(--ink-faint);
  font-size: 13px;
  line-height: 1.45;
}

.score-block {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.score-block strong {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
}

.score-block span {
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 10px;
}

.score-track {
  height: 3px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-muted);
}

.score-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.paper-judgement {
  margin: 18px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.aspect-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.aspect-list li {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 11px;
}

.paper-actions {
  display: flex;
  min-height: 44px;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 22px;
}

.quiet-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.quiet-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.compact-list,
.report-list {
  display: grid;
  gap: 14px;
}

.paper-card-compact .paper-heading-row h3 {
  font-size: 21px;
}

.paper-card-compact .paper-card-body {
  padding: 18px 22px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(420px, 1fr);
  gap: clamp(48px, 8vw, 110px);
}

.split-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.section-intro {
  max-width: 540px;
  color: var(--ink-soft);
}

.topic-grid {
  display: grid;
  gap: 10px;
}

.topic-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  grid-template-rows: auto auto;
  min-height: 104px;
  align-items: center;
  gap: 2px 12px;
  padding: 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-decoration: none;
  transition: border-color var(--ease), background var(--ease);
}

.topic-card:hover {
  border-color: var(--accent);
  background: var(--surface-raised);
}

.topic-index {
  grid-row: 1 / 3;
  color: var(--accent);
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

.topic-card strong {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}

.topic-card > span:nth-of-type(2) {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-card svg {
  grid-column: 3;
  grid-row: 1 / 3;
  color: var(--ink-faint);
}

.archive-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.archive-strip a {
  display: grid;
  min-height: 96px;
  align-content: center;
  padding: 16px 20px;
  border-right: 1px solid var(--line);
  text-decoration: none;
}

.archive-strip a:last-child {
  border-right: 0;
}

.archive-strip a:hover {
  background: var(--surface-muted);
}

.archive-strip time {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}

.archive-strip span {
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 12px;
}

.empty-state {
  padding: 36px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 74%, transparent);
}

.empty-state.large {
  padding-block: 72px;
  text-align: center;
}

.empty-state h2,
.empty-state h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
}

.empty-state p {
  max-width: 680px;
  margin: 8px auto 0;
  color: var(--ink-soft);
}

.page-shell {
  padding-block: 36px 80px;
}

.breadcrumb {
  display: flex;
  min-height: 44px;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--ink-faint);
  font-size: 13px;
}

.breadcrumb a {
  font-weight: 700;
  text-decoration: none;
}

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

.report-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 46px 0 42px;
}

.report-header h1,
.simple-hero h1,
.topic-hero h1 {
  font-size: clamp(44px, 7vw, 74px);
}

.report-header > .button {
  flex: 0 0 auto;
  margin-bottom: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.stats-grid div {
  display: grid;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.stats-grid div:last-child {
  border-right: 0;
}

.stats-grid span {
  color: var(--ink-faint);
  font-size: 12px;
}

.stats-grid strong {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 34px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
}

.filter-bar {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.filter-chip {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 750;
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}

.filter-chip span {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  border-radius: 99px;
  background: var(--surface-muted);
  font-size: 11px;
}

.filter-chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.filter-chip.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.filter-empty {
  padding: 32px;
  color: var(--ink-soft);
  text-align: center;
}

.method-note {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 48px;
  margin-top: 72px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
}

.method-note ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-note li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.method-note li:first-child {
  padding-top: 0;
}

.method-note li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.method-note li > span {
  color: var(--accent);
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-weight: 800;
}

.method-note li strong {
  display: block;
}

.method-note li p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.run-warnings {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.run-warnings summary {
  min-height: 44px;
  cursor: pointer;
  color: var(--amber);
  font-weight: 800;
}

.run-warnings li {
  display: list-item;
  padding: 4px 0;
  border: 0;
}

.paper-hero {
  padding: 44px 0 38px;
  border-bottom: 1px solid var(--line);
}

.paper-hero h1 {
  max-width: 980px;
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.paper-byline {
  max-width: 900px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.paper-hero-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
}

.score-lockup {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.score-lockup strong {
  font-family: var(--font-display);
  font-size: 48px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
}

.score-lockup span {
  color: var(--ink-faint);
  font-size: 13px;
}

.paper-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.paper-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(38px, 7vw, 90px);
  padding-top: 48px;
}

.paper-analysis {
  min-width: 0;
}

.analysis-lead {
  padding: 28px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--accent-soft);
}

.analysis-lead h2 {
  margin: 0;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: clamp(27px, 4vw, 39px);
  font-weight: 600;
  line-height: 1.15;
}

.analysis-lead > p:last-child {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.analysis-section,
.analysis-columns {
  margin-top: 46px;
}

.analysis-section h2,
.analysis-columns h2 {
  font-size: 29px;
}

.analysis-section > p,
.analysis-columns p,
.analysis-columns li {
  color: var(--ink-soft);
}

.analysis-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px;
}

.analysis-columns ul {
  padding-left: 20px;
}

.analysis-columns li + li {
  margin-top: 8px;
}

.muted {
  color: var(--ink-faint) !important;
}

.evidence-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.evidence-list blockquote {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.evidence-list span {
  color: var(--accent);
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.evidence-list p {
  margin: 7px 0 0;
  color: var(--ink-soft);
}

.abstract-panel {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.abstract-panel summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.abstract-panel p {
  max-width: 75ch;
  color: var(--ink-soft);
  line-height: 1.8;
}

.paper-sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
}

.side-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.side-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.side-card dl div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.side-card dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.side-card dt {
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.side-card dd {
  overflow-wrap: anywhere;
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.topic-hero,
.simple-hero {
  padding: 48px 0;
}

.topic-hero .button {
  margin-top: 28px;
}

.question-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.question-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: var(--ink-soft);
}

.archive-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.archive-list > a {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto 24px;
  align-items: center;
  gap: 24px;
  min-height: 94px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background var(--ease);
}

.archive-list > a:last-child {
  border-bottom: 0;
}

.archive-list > a:hover {
  background: var(--surface-muted);
}

.archive-list time {
  display: block;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
}

.archive-list a > div > span {
  color: var(--ink-faint);
  font-size: 12px;
}

.archive-list dl {
  display: flex;
  gap: 24px;
  margin: 0;
}

.archive-list dl div {
  display: grid;
  min-width: 48px;
  text-align: right;
}

.archive-list dt {
  color: var(--ink-faint);
  font-size: 10px;
  text-transform: uppercase;
}

.archive-list dd {
  margin: 1px 0 0;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.archive-list svg {
  color: var(--ink-faint);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-muted) 68%, transparent);
}

.footer-inner {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-inner strong {
  font-family: var(--font-display);
  font-size: 22px;
}

.footer-inner p {
  margin: 4px 0 0;
  color: var(--ink-faint);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  color: var(--ink-faint);
  font-size: 12px;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 980px) {
  .hero-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .brief-card {
    max-width: 620px;
  }

  .paper-grid {
    grid-template-columns: 1fr;
  }

  .archive-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-strip a:nth-child(2) {
    border-right: 0;
  }

  .archive-strip a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid div:nth-child(3) {
    border-right: 0;
  }

  .stats-grid div:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .method-note {
    grid-template-columns: 1fr;
  }

  .paper-layout {
    grid-template-columns: 1fr;
  }

  .paper-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-copy small,
  .primary-nav a:nth-child(2) {
    display: none;
  }

  .primary-nav a {
    padding-inline: 10px;
  }

  .hero {
    padding: 48px 0;
  }

  .hero-grid {
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(41px, 13vw, 58px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions,
  .paper-source-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .paper-source-actions .button {
    width: 100%;
  }

  .section {
    padding-block: 52px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .paper-card-body {
    padding: 18px;
  }

  .paper-heading-row {
    display: grid;
  }

  .score-block {
    display: flex;
    align-items: baseline;
    gap: 5px;
    justify-self: start;
  }

  .score-block strong {
    font-size: 28px;
  }

  .topic-card {
    grid-template-columns: 34px 1fr auto;
  }

  .archive-strip {
    grid-template-columns: 1fr;
  }

  .archive-strip a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .archive-strip a:last-child {
    border-bottom: 0;
  }

  .report-header {
    align-items: start;
    flex-direction: column;
    padding-top: 32px;
  }

  .report-header > .button {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid div,
  .stats-grid div:nth-child(3) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .stats-grid div:nth-child(even) {
    border-right: 0;
  }

  .stats-grid div:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .method-note {
    gap: 28px;
    padding: 24px 20px;
  }

  .paper-hero-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .analysis-columns,
  .paper-sidebar {
    grid-template-columns: 1fr;
  }

  .archive-list > a {
    grid-template-columns: 1fr 18px;
    gap: 14px;
  }

  .archive-list dl {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: start;
  }

  .archive-list dl div {
    text-align: left;
  }

  .archive-list svg {
    grid-column: 2;
    grid-row: 1;
  }

  .footer-inner {
    align-items: start;
    flex-direction: column;
    justify-content: center;
    padding-block: 32px;
  }
}

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

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .paper-actions,
  .filter-bar,
  .paper-source-actions {
    display: none !important;
  }

  :root {
    --bg: #fff;
    --surface: #fff;
    --surface-raised: #fff;
    --surface-muted: #f3f3f3;
    --ink: #111;
    --ink-soft: #333;
    --ink-faint: #555;
    --line: #bbb;
  }

  body {
    background: #fff;
  }

  .paper-card,
  .brief-card,
  .analysis-lead {
    box-shadow: none;
    break-inside: avoid;
  }
}

