/* Insights — editorial stylesheet. System fonts only; no network assets. */
:root {
  --paper: #fbfaf7;
  --ink: #1c1b19;
  --muted: #5d5a54;
  --rule: #dcd8cf;
  --rule-soft: #ebe8e1;
  --accent: #1f4f6e;
  --accent-ink: #163b53;
  --mark: #fff3c4;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Charter", "Bitstream Charter", "Source Serif Pro", "Noto Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --measure: 68ch;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #161615; --ink: #e9e6df; --muted: #a9a49a; --rule: #3a3833; --rule-soft: #2a2926; --accent: #8ec2e3; --accent-ink: #b5d7ee; --mark: #3b3420; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
/* Immediate native anchor navigation keeps sources and contents predictable. */
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 1.1875rem; line-height: 1.65;
  font-kerning: normal; font-variant-numeric: oldstyle-nums proportional-nums;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }
.skip { position: absolute; left: 1rem; top: -4rem; padding: .6rem 1rem; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 1rem; z-index: 10; }
.skip:focus { top: 1rem; }

/* Masthead */
.masthead { max-width: 76rem; margin: 0 auto; padding: 1.25rem 1.25rem 1rem; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-family: var(--sans); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em; }
.brand:hover { color: var(--accent); }
.mark { color: var(--accent); flex: none; }

/* Layout */
.layout { max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; }
.article { max-width: var(--measure); margin: 0 auto; }
@media (min-width: 68rem) {
  .layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; }
  .article { margin: 0; }
}

/* Article header */
.article-head { padding: 3rem 0 2rem; border-bottom: 1px solid var(--rule); margin-bottom: 2rem; }
.kicker, .section-label { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.85rem); margin: 0 0 1.1rem; line-height: 1.12; }
.dek { font-size: 1.2rem; color: var(--muted); margin: 0 0 1.75rem; font-style: italic; }
.facts { display: flex; flex-wrap: wrap; gap: .75rem 2.25rem; margin: 0; font-family: var(--sans); font-size: .9rem; }
.facts div { min-width: 9rem; }
.facts dt { color: var(--muted); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.facts dd { margin: .15rem 0 0; }

/* Prose */
.prose p, .prose ul { margin: 0 0 1.15em; }
.prose h2 { font-size: 1.6rem; margin: 2.75em 0 .75em; padding-top: .9em; border-top: 1px solid var(--rule-soft); }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.25rem; margin: 2em 0 .6em; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--muted); }
.prose strong { font-weight: 650; }
.prose .flow { font-family: var(--sans); font-size: 1.02rem; line-height: 1.5; padding: 1rem 0 1rem 1.1rem; border-left: 3px solid var(--accent); margin: 1.6em 0; }
.cite { font-family: var(--sans); font-size: .72em; vertical-align: .35em; line-height: 0; text-decoration: none; padding: 0 .08em; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.cite:hover, .cite:focus-visible { text-decoration: underline; }
:target { scroll-margin-top: 1.5rem; }
.sources li:target, .cite:target { background: var(--mark); }

/* Tables */
.table-wrap { margin: 1.75rem 0 2rem; }
table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .9rem; line-height: 1.5; font-variant-numeric: lining-nums; }
thead th { text-align: left; vertical-align: bottom; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); padding: .5rem .75rem .5rem 0; }
tbody th, tbody td { text-align: left; vertical-align: top; padding: .8rem .75rem .8rem 0; border-bottom: 1px solid var(--rule); }
tbody th { font-weight: 600; }
@media (min-width: 68rem) {
  /* Wider tables may extend beyond the reading column into the gutter on large screens. */
  .table-wrap { margin-right: -8rem; }
}
@media (max-width: 47.99rem) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  tbody tr { border-top: 2px solid var(--ink); padding: .4rem 0 .9rem; }
  tbody th, tbody td { border: 0; padding: .35rem 0; }
  tbody th { font-size: 1rem; padding-top: .6rem; }
  tbody td::before, tbody th::before { content: attr(data-label); display: block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: .1rem; }
}

/* Sources */
.sources { list-style: none; padding: 0; margin: 2rem 0 0; font-family: var(--sans); font-size: .9rem; line-height: 1.55; }
.sources li { padding: .7rem .5rem .7rem 3rem; text-indent: -2.5rem; border-top: 1px solid var(--rule-soft); }
.src-num { display: inline-block; width: 2.5rem; text-indent: 0; font-variant-numeric: tabular-nums lining-nums; color: var(--muted); font-weight: 600; }
.src-url { word-break: break-all; }
.backrefs { white-space: nowrap; margin-left: .25rem; }
.backrefs a { text-decoration: none; padding: 0 .15rem; }
.backrefs sup { font-size: .7em; }

/* Contents */
.toc ol { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: .875rem; line-height: 1.4; }
.toc li a { display: block; padding: .4rem 0 .4rem .75rem; border-left: 2px solid var(--rule); color: var(--muted); text-decoration: none; }
.toc li a:hover { color: var(--accent); border-left-color: var(--accent); }
.toc-title { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; }
.toc-side { display: none; }
.toc-inline { margin: 0 0 2.25rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-family: var(--sans); }
.toc-inline summary { cursor: pointer; padding: .8rem 0; font-size: .9rem; font-weight: 600; min-height: 44px; }
.toc-inline ol { padding-bottom: 1rem; }
@media (min-width: 68rem) {
  .toc-side { display: block; position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; padding: 3.25rem 0 2rem; }
  .toc-inline { display: none; }
}

/* Unobtrusive reading progress: CSS scroll timeline only, no script. */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { display: block; position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); animation: progress linear both; animation-timeline: scroll(root); z-index: 5; }
    @keyframes progress { to { transform: scaleX(1); } }
  }
}

/* Home */
.home { max-width: 46rem; margin: 0 auto; padding: 3.5rem 1.25rem 2rem; }
.home-head h1 { margin-bottom: .6rem; }
.home-dek { color: var(--muted); font-size: 1.15rem; margin: 0 0 3rem; }
.entries { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.entry { padding: 1.75rem 0 2rem; border-bottom: 1px solid var(--rule); }
.entry h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem); margin: .4rem 0 .7rem; }
.entry h2 a { color: var(--ink); text-decoration: none; }
.entry h2 a:hover { color: var(--accent); text-decoration: underline; }
.entry-meta { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin: 0; }
.entry-dek { margin: 0; color: var(--muted); }

/* Colophon */
.colophon { max-width: 76rem; margin: 5rem auto 0; padding: 1.5rem 1.25rem 3rem; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.colophon p { margin: 0 0 .5rem; max-width: 60ch; }
.brand-small { font-size: .9rem; }

@media (max-width: 30rem) {
  body { font-size: 1.125rem; line-height: 1.62; }
  .article-head { padding-top: 2rem; }
  .sources li { padding-left: 2.6rem; text-indent: -2.1rem; }
  .src-num { width: 2.1rem; }
}

/* Print */
@media print {
  :root { --paper: #fff; --ink: #000; --muted: #333; --accent: #000; }
  body { font-size: 11pt; line-height: 1.45; }
  .skip, .toc, .progress, .backrefs, .masthead { display: none !important; }
  .layout { display: block; padding: 0; max-width: none; }
  .article { max-width: none; }
  .table-wrap { margin-right: 0; }
  a { color: inherit; text-decoration: none; }
  .src-url { text-decoration: underline; }
  h2, h3 { break-after: avoid; }
  tr, .sources li, .flow { break-inside: avoid; }
  .colophon { margin-top: 2rem; }
}
