/* Layout idea: a quiet reading column, one list of titles on the home view, one page per thesis. */
:root {
  --bg: #f4f6f4;
  --surface: #ffffff;
  --ink: #1a201e;
  --muted: #5b6561;
  --rule: #d8ddd9;
  --accent: #0e5a63;
  --accent-soft: #e1eff0;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1514;
    --surface: #161d1b;
    --ink: #e5ebe8;
    --muted: #9aa6a1;
    --rule: #28322f;
    --accent: #6cc6d1;
    --accent-soft: #17302f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1514;
  --surface: #161d1b;
  --ink: #e5ebe8;
  --muted: #9aa6a1;
  --rule: #28322f;
  --accent: #6cc6d1;
  --accent-soft: #17302f;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: 720px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
header.site { border-bottom: 1px solid var(--rule); background: var(--surface); }
header.site .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.tagline { color: var(--muted); font-size: 0.9rem; }
main { padding: 32px 0 56px; }
.intro { margin: 0 0 28px; color: var(--muted); max-width: 56ch; }
.list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--rule); }
.item { display: block; padding: 22px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; }
.item:hover .item-title { color: var(--accent); }
.meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.chip { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.02em; }
.item-title { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; line-height: 1.25; margin: 0 0 6px; text-wrap: balance; }
.item-dek { margin: 0; color: var(--muted); max-width: 60ch; }
.back { display: inline-block; margin-bottom: 22px; font-size: 0.9rem; }
article h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.18; letter-spacing: -0.015em; margin: 0 0 12px; text-wrap: balance; }
article .dek { font-size: 1.1rem; color: var(--muted); margin: 0 0 14px; max-width: 58ch; }
article .meta { margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.prose { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.7; max-width: 66ch; }
.prose p { margin: 0 0 1.05em; }
.prose h2 { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.25; margin: 2em 0 0.6em; text-wrap: balance; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.05em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { font-weight: 700; }
.tw { overflow-x: auto; margin: 1.3em 0 1.6em; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-family: var(--font-body); font-size: 0.88rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; background: var(--accent-soft); color: var(--ink); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; }
.sources { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--rule); font-family: var(--font-body); font-size: 0.88rem; color: var(--muted); }
.sources h2 { font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.6em; color: var(--muted); }
.sources ul { padding-left: 1.1em; margin: 0; }
.sources li { margin-bottom: 0.3em; }
.disclaimer { margin-top: 1.6em; font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--rule); font-size: 0.92rem; }
footer.site { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.82rem; padding: 20px 0 32px; }
[hidden] { display: none !important; }
@media (max-width: 480px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .prose { font-size: 1.04rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .item-title { transition: color 0.15s ease; }
}

.prose p.sig { margin-top: 1.6em; font-family: var(--font-body); font-size: 0.95rem; color: var(--muted); line-height: 1.5; }
