
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg: #f5f4f0;
    --surface: #ffffff;
    --surface-2: #eeece6;
    --ink: #15171a;
    --text: #3c4145;
    --muted: #5a6065;   
    --faint: #6a7075;   
    --line: #e3e0d9;
    --line-strong: #cdc9c0;
    --accent: #0f7a3d;
    --accent-hover: #0b5e2f;
    --accent-soft: #e7f2ea;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Archivo Black', var(--font-sans);
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    --fs-12: .75rem;
    --fs-13: .8125rem;
    --fs-14: .875rem;
    --fs-15: .9375rem;
    --fs-16: 1rem;
    --fs-17: 1.0625rem;
    --fs-20: 1.25rem;
    --fs-23: 1.4375rem;
    --fs-h1: clamp(1.875rem, 1.45rem + 1.5vw, 2.375rem);
    --s-1: .25rem;
    --s-2: .5rem;
    --s-3: .75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-7: 2.5rem;
    --s-8: 3.5rem;
    --s-9: 5rem;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-pill: 999px;
    --container: 1440px;
    --measure: 800px;
    --toc-col: 260px;
    --below-header: calc(var(--gh-h, 60px) + var(--s-5));
}
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; scroll-padding-top: var(--below-header); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
    display: flex; flex-direction: column; min-height: 100vh;
    font-family: var(--font-sans);
    font-size: var(--fs-16); line-height: 1.6;
    background: var(--bg); color: var(--text);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "cv05" 1;
}
@supports (min-height: 100dvh) { body { min-height: 100dvh; } }
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
h1, h2, h3 { color: var(--ink); line-height: 1.25; text-wrap: balance; font-weight: 600; }
time, .num, .delta { font-variant-numeric: tabular-nums; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-5); }
.measure { max-width: var(--measure); }
.skip { position: fixed; top: -100px; left: var(--s-4); z-index: 100; padding: var(--s-2) var(--s-4); background: var(--ink); color: var(--surface); border-radius: var(--r-sm); }
.skip:focus { top: var(--s-4); }
.page-head { padding-block: var(--s-7) var(--s-6); border-bottom: 1px solid var(--line); }
.page-head h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h1); letter-spacing: -.02em; line-height: 1.12; max-width: 28ch; }
.page-head .lead { max-width: 70ch; margin-top: var(--s-3); font-size: var(--fs-17); color: var(--muted); }
.page-meta { margin-top: var(--s-4); font-size: var(--fs-14); color: var(--faint); }
.page-meta a { color: var(--muted); }
.page-meta a:hover { color: var(--ink); }
.page-meta .sep { padding-inline: var(--s-2); color: var(--line-strong); }
.section-body { padding-block: var(--s-6) var(--s-9); }
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.chip {
    padding: var(--s-1) var(--s-3);
    font-size: var(--fs-13); color: var(--muted);
    background: transparent; border: 1px solid var(--line); border-radius: var(--r-pill);
    cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.entries { border-top: 1px solid var(--line); }
.entry {
    position: relative;
    display: grid; grid-template-columns: 184px 1fr; gap: var(--s-6);
    padding: var(--s-5) 0;
    border-bottom: 1px solid var(--line);
}
.entry[hidden] { display: none; }
.entry-side { display: flex; flex-direction: column; gap: var(--s-1); font-size: var(--fs-13); color: var(--faint); }
.entry-side .topic { color: var(--muted); }
.entry-side time { font-family: var(--font-mono); font-size: var(--fs-12); }
.entry h3 { font-size: var(--fs-20); letter-spacing: -.01em; }
.entry h3 a::after { content: ""; position: absolute; inset: 0; }
.entry:hover h3, .entry:focus-within h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.entry p { margin-top: var(--s-2); max-width: 78ch; font-size: var(--fs-15); color: var(--muted); }
.entry .flag { margin-top: var(--s-3); display: inline-block; font-size: var(--fs-12); color: var(--faint); border: 1px dashed var(--line-strong); border-radius: var(--r-sm); padding: 0 var(--s-2); }
.empty { padding-block: var(--s-6); color: var(--muted); }
.pulse-intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-5); }
.pulse-intro .count { font-family: var(--font-mono); font-size: var(--fs-13); color: var(--accent); }
.pulse-intro p { font-size: var(--fs-14); color: var(--muted); max-width: 60ch; }
.signal { position: relative; display: grid; grid-template-columns: 42px 1fr auto; gap: var(--s-4); align-items: baseline; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.signal:first-child { border-top: 1px solid var(--line); }
.signal .num { font-family: var(--font-mono); font-size: var(--fs-13); color: var(--faint); }
.signal h3 { font-size: var(--fs-20); letter-spacing: -.01em; }
.signal h3 a::after { content: ""; position: absolute; inset: 0; }
.signal:hover h3, .signal:focus-within h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.signal p { margin-top: var(--s-2); max-width: 76ch; font-size: var(--fs-15); color: var(--muted); }
.delta { font-family: var(--font-mono); font-size: var(--fs-13); color: var(--accent); }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.topic-card {
    display: flex; flex-direction: column; gap: var(--s-2);
    padding: var(--s-5);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    transition: border-color .15s ease;
}
.topic-card:hover { border-color: var(--ink); }
.topic-card h2 { font-size: var(--fs-17); }
.topic-card:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.topic-card p { font-size: var(--fs-14); color: var(--muted); }
.topic-card .count { margin-top: auto; padding-top: var(--s-3); font-family: var(--font-mono); font-size: var(--fs-12); color: var(--faint); }
.article { display: grid; grid-template-columns: minmax(0, var(--measure)) var(--toc-col); justify-content: start; gap: var(--s-9); padding-block: var(--s-7) var(--s-9); align-items: start; }
.prose { font-size: var(--fs-17); line-height: 1.7; color: var(--text); }
.prose > * + * { margin-top: var(--s-4); }
.prose > h2 + *, .prose > h3 + * { margin-top: var(--s-3); }
.prose h2 { margin-top: var(--s-7); font-size: var(--fs-23); letter-spacing: -.015em; }
.prose h3 { margin-top: var(--s-6); font-size: var(--fs-17); }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .17em; }
.prose a:hover { color: var(--accent-hover); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul, .prose ol { padding-left: var(--s-5); }
.prose li + li { margin-top: var(--s-2); }
.prose li::marker { color: var(--faint); }
.prose blockquote { padding-left: var(--s-5); border-left: 2px solid var(--accent); color: var(--ink); }
.prose code { font-family: var(--font-mono); font-size: .875em; padding: .1em .3em; background: var(--surface-2); border-radius: var(--r-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-15); }
.prose th, .prose td { padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--line); text-align: left; }
.prose th { font-size: var(--fs-13); font-weight: 600; color: var(--muted); }
.prose figure, .prose img { border-radius: var(--r-md); }
.summary { padding: var(--s-4) var(--s-5); background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 0 var(--r-md) var(--r-md) 0; }
.summary .label { display: block; margin-bottom: var(--s-1); font-size: var(--fs-13); font-weight: 600; color: var(--accent); }
.summary p { font-size: var(--fs-16); color: var(--ink); line-height: 1.6; }
.flag-note { padding: var(--s-3) var(--s-4); font-size: var(--fs-14); color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r-md); }
.toc { position: sticky; top: var(--below-header); font-size: var(--fs-14); }
.toc .label { display: block; margin-bottom: var(--s-3); font-size: var(--fs-13); font-weight: 600; color: var(--ink); }
.toc ol { list-style: none; border-left: 1px solid var(--line); }
.toc li + li { margin-top: var(--s-2); }
.toc a { display: block; padding-left: var(--s-3); margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); line-height: 1.4; transition: color .15s ease, border-color .15s ease; }
.toc a:hover { color: var(--ink); border-left-color: var(--line-strong); }
.toc .back { display: inline-block; margin-top: var(--s-5); color: var(--muted); }
.toc .back:hover { color: var(--ink); }
@media (max-width: 960px) {
    .article { grid-template-columns: 1fr; gap: var(--s-6); }
    .toc { position: static; order: -1; padding-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
    .topic-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .container { padding-inline: var(--s-4); }
    .page-head { padding-block: var(--s-6) var(--s-5); }
    .entry { grid-template-columns: 1fr; gap: var(--s-2); }
    .entry-side { flex-direction: row; gap: var(--s-3); }
    .signal { grid-template-columns: 28px 1fr; }
    .signal .delta { grid-column: 2; }
    .topic-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
