/* Site 1 — "worn book parchment"
   Reference lock: Alison Roman (alisoneroman.com) as the primary direction —
   parchment canvas, serif carrying both display and body, 0px radius on every
   surface, very generous section air, one deep accent used sparingly.
   Borrowed only from Kinfolk: sharp rectangular image crops, ghost-outline
   controls, no rounded media.
   Rejected: rounded cards, shadows, any second accent colour, sans-serif body.

   Type is not loaded from a third party. The stack below resolves to Iowan Old
   Style or Palatino on Apple devices and to a Georgia-class face elsewhere —
   warm old-style figures either way, which is what the parchment needs. */

:root {
  --parchment: #f6f0e1;
  --parchment-deep: #efe8d6;
  --ink: #2a0f0c;
  --ink-soft: #58433d;
  --ink-mute: #857266;
  --rule: #ddd2ba;
  --rule-strong: #c6b895;
  --brick: #7d1409;          /* accent — links, one filled control, nothing else */
  --brick-wash: #f2e3d9;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;

  --gutter: clamp(1.25rem, 6vw, 5.5rem);
  --measure: 34rem;
  --wide: 71rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;      /* 19px — long-form wants a bigger base than UI does */
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}
@media (min-width: 48em) { body { font-size: 1.25rem; line-height: 1.65; } }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: underline; text-underline-offset: 0.16em;
    text-decoration-thickness: from-font; text-decoration-color: var(--rule-strong); }
a:hover { text-decoration-color: var(--brick); color: var(--brick); }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--parchment); padding: .75rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

.shell { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- Masthead ---------------------------------------------------------- */

.masthead { border-bottom: 1px solid var(--rule); }
.masthead-inner {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  align-items: baseline; justify-content: space-between;
  padding-block: 1.25rem;
}
.wordmark {
  font-size: 1.4rem; letter-spacing: -0.01em; text-decoration: none;
  font-variant-caps: small-caps; letter-spacing: .06em;
}
.nav { display: flex; flex-wrap: wrap; gap: 1.1rem;
       font-family: var(--sans); font-size: .8125rem; letter-spacing: .08em;
       text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--brick); }

/* ---- Home -------------------------------------------------------------- */

.intro { padding-block: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem); }
.intro-title {
  font-size: clamp(2.4rem, 7vw, 4.5rem); line-height: 1.04; font-weight: 400;
  letter-spacing: -0.02em; margin: 0 0 1rem; max-width: 18ch; text-wrap: balance;
}
.intro-dek { margin: 0; max-width: 46ch; color: var(--ink-soft); font-size: 1.05em; }

.lead-story { padding-block: clamp(2rem, 5vw, 3.5rem);
              border-block: 1px solid var(--rule); }
.lead-title { font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.1;
              font-weight: 400; margin: .4rem 0 .6rem; letter-spacing: -0.015em;
              text-wrap: balance; }
.lead-title a { text-decoration: none; }
.lead-title a:hover { text-decoration: underline; text-underline-offset: .12em; }
.lead-dek { margin: 0 0 .75rem; max-width: 52ch; color: var(--ink-soft); }

.kicker { font-family: var(--sans); font-size: .75rem; letter-spacing: .14em;
          text-transform: uppercase; color: var(--ink-mute); margin: 0; }
.kicker a { text-decoration: none; }
.meta { font-family: var(--sans); font-size: .8125rem; color: var(--ink-mute); margin: 0; }

.section-label {
  font-family: var(--sans); font-size: .75rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-mute); font-weight: 500;
  margin: 0 0 1.5rem; padding-bottom: .6rem; border-bottom: 1px solid var(--rule);
}
.stream, .topics { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.card-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 44em) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68em) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card-media img { aspect-ratio: 16/9; object-fit: cover; filter: saturate(.82) contrast(1.02); }
.card-title { font-size: 1.375rem; line-height: 1.18; font-weight: 400;
              margin: .45rem 0 .4rem; letter-spacing: -0.01em; text-wrap: balance; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-underline-offset: .12em; }
.card-dek { margin: 0 0 .5rem; font-size: .95em; color: var(--ink-soft); }
.card-media { display: block; margin-bottom: .9rem; }

.more { margin-top: 2.5rem; font-family: var(--sans); font-size: .9rem; }
.topic-list { list-style: none; padding: 0; margin: 0;
              display: grid; gap: .1rem; }
.topic-list li { display: flex; justify-content: space-between; gap: 1rem;
                 align-items: baseline; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.topic-list a { text-decoration: none; }
.count { font-family: var(--sans); font-size: .8rem; color: var(--ink-mute); }

/* ---- Article ----------------------------------------------------------- */

.post { max-width: var(--measure); margin-inline: auto;
        padding-inline: var(--gutter); padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.is-post main { padding-bottom: clamp(3rem, 7vw, 5rem); }

.crumbs { font-family: var(--sans); font-size: .75rem; letter-spacing: .1em;
          text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1.75rem; }
.crumbs a { text-decoration: none; }

.post-head h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.08; font-weight: 400;
  letter-spacing: -0.02em; margin: 0 0 .75rem; text-wrap: balance;
}
.dek { font-size: 1.1em; color: var(--ink-soft); margin: 0 0 1.25rem;
       line-height: 1.5; text-wrap: pretty; }
.byline { font-family: var(--sans); font-size: .8125rem; color: var(--ink-mute);
          margin: 0; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.byline .author { color: var(--ink); }
.sep { margin-inline: .4rem; }

/* The lede image breaks the measure — it is the one full-width moment in the
   article, which is why it earns the extra width. */
.lede { margin: 2rem calc(-1 * var(--gutter)) 2.5rem; }
@media (min-width: 52em) {
  .lede { margin-inline: calc((var(--measure) - min(56rem, 92vw)) / 2); }
}
.lede img { aspect-ratio: 16/9; object-fit: cover; filter: saturate(.82) contrast(1.02); }
figcaption, .credit { font-family: var(--sans); font-size: .78rem; color: var(--ink-mute);
                      margin-top: .5rem; line-height: 1.45; }

.toc { border: 1px solid var(--rule); padding: 1.1rem 1.25rem; margin-bottom: 2.5rem; }
.toc-label { font-family: var(--sans); font-size: .7rem; letter-spacing: .14em;
             text-transform: uppercase; color: var(--ink-mute); margin: 0 0 .6rem; }
.toc ol { margin: 0; padding-left: 1.1rem; font-size: .95em; }
.toc li { margin-bottom: .35rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.prose > p:first-of-type { font-size: 1.08em; }
.prose p { margin: 0 0 1.35em; text-wrap: pretty; }
.prose h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.2; font-weight: 400;
  letter-spacing: -0.015em; margin: 2.6em 0 .7em; text-wrap: balance;
}
.prose h3 { font-size: 1.2em; line-height: 1.3; font-weight: 400; font-style: italic;
            margin: 2em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1.35em; padding-left: 1.35em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--ink-mute); }
.prose a { text-decoration-color: var(--brick); color: var(--brick); }
.prose strong { font-weight: 600; }

.prose blockquote {
  margin: 2em 0; padding: 0; border: 0;
  font-size: 1.25em; line-height: 1.35; font-style: italic; color: var(--ink);
  text-indent: -0.4em;
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.75em 0; }

.prose table {
  width: 100%; border-collapse: collapse; margin: 2em 0;
  font-family: var(--sans); font-size: .875rem; line-height: 1.4;
}
.prose table :is(th, td) { text-align: left; padding: .7rem .8rem .7rem 0;
                           border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-weight: 600; border-bottom-color: var(--rule-strong); }
.table-scroll, .prose > div:has(> table) { overflow-x: auto; }

.prose figure { margin: 2.25em 0; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, monospace;
              font-size: .85em; background: var(--brick-wash); padding: .1em .35em; }
.prose pre { background: var(--parchment-deep); padding: 1rem; overflow-x: auto;
             font-size: .82rem; line-height: 1.5; }
.prose pre code { background: none; padding: 0; }

.faq { max-width: var(--measure); margin: 3rem auto 0; padding-inline: var(--gutter); }
.faq h2 { font-size: 1.5rem; font-weight: 400; margin: 0 0 1rem;
          padding-bottom: .6rem; border-bottom: 1px solid var(--rule); }
.faq dt { font-weight: 600; margin-top: 1.25rem; }
.faq dd { margin: .35rem 0 0; color: var(--ink-soft); }

.post-foot { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.author-note, .disclosure-note { font-family: var(--sans); font-size: .85rem;
                                 color: var(--ink-mute); line-height: 1.5; margin: 0 0 .5rem; }

.related { max-width: var(--wide); margin: clamp(3rem, 7vw, 5rem) auto 0;
           padding-inline: var(--gutter); border-top: 1px solid var(--rule);
           padding-top: clamp(2rem, 4vw, 3rem); }
.related h2 { font-family: var(--sans); font-size: .75rem; letter-spacing: .14em;
              text-transform: uppercase; color: var(--ink-mute); font-weight: 500;
              margin: 0 0 1.75rem; }

/* ---- Lists ------------------------------------------------------------- */

.list-head { padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; }
.list-head h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 400;
                letter-spacing: -0.02em; margin: .3rem 0 .5rem; }
.year { margin-bottom: 3rem; }
.year-label { font-family: var(--sans); font-size: .75rem; letter-spacing: .14em;
              text-transform: uppercase; color: var(--ink-mute); font-weight: 500;
              margin: 0 0 .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--rule-strong); }
.index-list { list-style: none; margin: 0; padding: 0; }
.index-list li { display: flex; flex-wrap: wrap; gap: .25rem 1rem;
                 justify-content: space-between; align-items: baseline;
                 padding: .65rem 0; border-bottom: 1px solid var(--rule); }
.index-list a { text-decoration: none; }
.index-list time { font-family: var(--sans); font-size: .78rem; color: var(--ink-mute);
                   white-space: nowrap; }

/* ---- Footer ------------------------------------------------------------ */

.site-footer { margin-top: clamp(3rem, 8vw, 6rem); border-top: 1px solid var(--rule);
               padding-block: 2.5rem 3.5rem; }
.footer-line { margin: 0 0 .75rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; font-family: var(--sans);
              font-size: .85rem; margin-bottom: 1rem; }
.footer-fine { font-family: var(--sans); font-size: .78rem; color: var(--ink-mute); margin: 0; }

/* ---- Topic cluster ------------------------------------------------------
   A cluster article points up to its pillar; the pillar lists the whole set.
   Both directions are load-bearing: the reader gets a way through the subject
   and the subject reads as one body of work rather than scattered posts. */

.series-up {
  font-family: var(--sans); font-size: .8125rem; color: var(--ink-mute);
  margin: 0 0 1.5rem; padding-bottom: .75rem; border-bottom: 1px solid var(--rule);
}
.series {
  margin: 2.75rem 0 0; padding: 0 0 1.25rem; border-top: 2px solid var(--rule-strong);
  
}
.series h2 {
  font-family: var(--sans); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 600; margin: 1.25rem 0 1rem;
}
.series-list { margin: 0; padding-left: 1.25rem; }
.series-list li { margin-bottom: .9rem; }
.series-list a { text-decoration: none; font-weight: 500; }
.series-list a:hover { text-decoration: underline; text-underline-offset: .16em; }
.series-dek {
  display: block; font-family: var(--sans); font-size: .8125rem; line-height: 1.5;
  color: var(--ink-soft); margin-top: .15rem;
}
.checked { font-family: var(--sans); font-size: .78rem; color: var(--ink-mute); margin: 0 0 .5rem; }
