/* Luxury Knitwear Index — "The Swatch Book"
   Colour = fibre, pattern = construction. Syne / Instrument Serif / DM Mono.
   Tokens on :root, dark mode via prefers-color-scheme, no framework. */

:root {
  --bg: #f4ecdc;
  --tag: #fbf7ee;
  --ink: #1a1815;
  --ink-2: #3a352d;
  --muted: #6f665a;
  --rule: #d7ccb6;
  --accent: #6b1f2a;        /* oxblood */
  --accent-ink: #6b1f2a;
  --accent-fg: #f4ecdc;
  --saffron: #e0a12b;
  --focus: #2a4fa3;
  --display: 'Syne', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --mono: 'DM Mono', ui-monospace, 'Courier New', monospace;
  --maxw: 1200px;
  --measure: 64ch;
  --r: 12px;
  --shadow: 0 18px 30px -18px rgba(26, 24, 21, 0.45), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  --tag-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1815; --tag: #2a2621; --ink: #f4ecdc; --ink-2: #d9d0bf; --muted: #a3998a; --rule: #3a352d;
    --accent: #6b1f2a; --accent-ink: #e0a12b; --accent-fg: #f4ecdc; --focus: #8ab4ff;
    --tag-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1815; --tag: #2a2621; --ink: #f4ecdc; --ink-2: #d9d0bf; --muted: #a3998a; --rule: #3a352d;
  --accent: #6b1f2a; --accent-ink: #e0a12b; --accent-fg: #f4ecdc; --focus: #8ab4ff; --tag-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--display); font-size: 1rem; line-height: 1.55; font-weight: 500; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-decoration-thickness: 1.5px; text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--tag); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 0 0 .5em; text-transform: uppercase; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.75rem); line-height: .92; }
h2 { font-size: clamp(1.7rem, 3vw, 2.75rem); margin-top: 2em; }
h3 { font-size: 1.25rem; margin-top: 1.5em; letter-spacing: -0.02em; }
h1 em, h2 em, .turn { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -0.01em; color: var(--accent-ink); font-size: 1.12em; }
p { margin: 0 0 1.1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono, .eyebrow, .card__meta, .breadcrumbs, .tag--meta, .letters, .results-meta, .byline, .sources { font-family: var(--mono); font-weight: 400; }
.eyebrow { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .75rem; }
hr { border: 0; border-top: 1.5px solid var(--ink); margin: 3rem 0; }
.wrap { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }

/* ---------- Swatches ---------- */
.sw { background-color: var(--sw, #6b1f2a); border-radius: 8px; box-shadow: var(--shadow); }
.sw-rib { background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 5px, rgba(255,255,255,.14) 5px 7px, transparent 7px 12px); }
.sw-jersey { background-image: repeating-linear-gradient(120deg, rgba(255,255,255,.16) 0 3px, transparent 3px 9px), repeating-linear-gradient(60deg, rgba(0,0,0,.12) 0 3px, transparent 3px 9px); }
.sw-fairisle { background-image: radial-gradient(circle at 6px 6px, rgba(244,236,220,.95) 2.5px, transparent 3px), radial-gradient(circle at 18px 18px, rgba(26,24,21,.85) 2.5px, transparent 3px); background-size: 24px 24px; }
.sw-cable { background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.16) 0 8px, transparent 8px 22px), repeating-linear-gradient(-45deg, rgba(255,255,255,.18) 0 8px, transparent 8px 22px); }
.sw-honey { background-image: radial-gradient(circle at 10px 10px, transparent 6px, rgba(0,0,0,.14) 7px, transparent 8px); background-size: 20px 20px; }
.sw-stripe { background-image: repeating-linear-gradient(0deg, rgba(244,236,220,.9) 0 10px, transparent 10px 26px); }

/* Paper tag */
.tag { background: var(--tag); box-shadow: var(--tag-shadow); border-radius: 2px; padding: 1rem 1.25rem; }
.tag--meta { font-size: .72rem; padding: .5rem .75rem; line-height: 1.4; }
.tag--tilt-l { transform: rotate(-1deg); }
.tag--tilt-r { transform: rotate(1deg); }
.tag .eyebrow { margin-bottom: .4rem; }
.tag .serif, .tag p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.35; margin: 0; }

/* Pills */
.pill, .btn { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1rem; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; font: 700 .85rem/1 var(--display); text-decoration: none; cursor: pointer; white-space: nowrap; }
.pill:hover, .btn:hover { background: var(--ink); color: var(--bg); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); padding: .85rem 1.4rem; font-size: .95rem; }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); }
.btn--ghost { border-color: var(--rule); }
.pill[aria-current="page"], .pill--on { background: var(--ink); color: var(--bg); }

/* ---------- Header / footer ---------- */
.site-header { padding: 1.1rem 0; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 2.4rem; height: 2.4rem; border-radius: 4px; --sw: #6b1f2a; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; text-transform: uppercase; }
.brand__name em { font-style: normal; color: var(--accent-ink); }
.site-nav { display: flex; gap: .4rem; flex-wrap: wrap; }
.site-nav a { padding: .55rem .9rem; }
.site-footer { margin-top: 6rem; padding: 2.5rem 0 3rem; border-top: 1.5px solid var(--ink); }
.site-footer__inner { display: grid; gap: 1.5rem; }
.site-footer__brand { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; font-size: 1.1rem; margin-bottom: .25rem; }
.site-footer__brand em { font-style: normal; color: var(--accent-ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.site-footer nav a { padding: .5rem .85rem; border-radius: 999px; border: 1.5px solid var(--rule); text-decoration: none; color: var(--ink-2); font: 700 .8rem/1 var(--display); }
.site-footer nav a:hover { border-color: var(--ink); color: var(--ink); }
@media (min-width: 720px) { .site-footer__inner { grid-template-columns: 1fr auto; } .site-footer__inner > p { grid-column: 1 / -1; } }

.breadcrumbs { font-size: .72rem; margin: 1rem 0 0; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: '/'; margin-right: .35rem; color: var(--rule); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs li[aria-current] { color: var(--ink); }

/* ---------- Home ---------- */
.hero { display: grid; gap: 2.5rem; padding: 3rem 0 3rem; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding: 4rem 0 3.5rem; } }
.hero__copy { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.hero__copy h1 { margin: 0; font-size: clamp(2.6rem, 5.1vw, 4.9rem); overflow-wrap: anywhere; }
.hero .lede { font-size: 1.1rem; line-height: 1.5; max-width: 40ch; color: var(--ink-2); margin: 0; }
.hero__cta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.hero__cta .mono { font-size: .72rem; color: var(--muted); }
.answer { max-width: 34rem; }
.answer:not(.tag) { border-left: 2px solid var(--accent-ink); padding: .25rem 0 .25rem 1.25rem; margin: 0 0 2rem; font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; }
.answer p strong { font-family: var(--mono); font-weight: 400; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); display: block; margin-bottom: .4rem; }

.collage { position: relative; height: 520px; }
.collage .sw { position: absolute; width: 34%; aspect-ratio: 5 / 4.2; }
.collage .tag { position: absolute; z-index: 2; }
.collage .c1 { left: 0; top: 5%; transform: rotate(-6deg); }
.collage .c2 { left: 32%; top: 0; transform: rotate(3deg); }
.collage .c3 { left: 65%; top: 7%; transform: rotate(-2deg); }
.collage .c4 { left: 8%; top: 52%; transform: rotate(2deg); }
.collage .c5 { left: 41%; top: 48%; transform: rotate(-4deg); }
.collage .c6 { left: 71%; top: 56%; transform: rotate(5deg); }
.collage .t1 { left: 5%; top: 36%; transform: rotate(-6deg); }
.collage .t2 { left: 40%; top: 32%; transform: rotate(3deg); }
.collage .t3 { left: 70%; top: 41%; transform: rotate(-2deg); }
.collage .t4 { left: 13%; top: 84%; transform: rotate(2deg); }
.collage .t5 { left: 46%; top: 80%; transform: rotate(-4deg); }
.collage .t6 { left: 74%; top: 89%; transform: rotate(5deg); }
@media (max-width: 959px) { .collage { height: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; } .collage .sw { position: static; width: auto; transform: none; } .collage .tag { display: none; } }

.stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; }
.stats div { font-family: var(--display); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.04em; line-height: 1; }
.stats span { display: block; font-family: var(--mono); font-weight: 400; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .4rem; }

.featured { display: grid; border-radius: 16px; overflow: hidden; margin: 1rem 0 0; }
@media (min-width: 800px) { .featured { grid-template-columns: 1fr 1fr; } }
.featured__swatch { min-height: 260px; display: flex; align-items: flex-end; padding: 1.5rem; box-shadow: none; border-radius: 0; }
.featured__body { background: #1a1815; color: #f4ecdc; padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.featured__body .eyebrow { color: var(--saffron); margin: 0; }
.featured__body h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.featured__body p { color: #d9d0bf; max-width: 44ch; margin: 0; }
.featured__body .btn { border-color: #f4ecdc; color: #f4ecdc; }
.featured__body .btn--primary { background: #f4ecdc; color: #1a1815; }
.featured__body .btn:hover { background: #f4ecdc; color: #1a1815; }
.featured__actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.key { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; padding: 2.5rem 0 0; font-family: var(--mono); font-size: .72rem; }
.key__label { letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.key__items { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.key__items span { display: inline-flex; align-items: center; gap: .4rem; }
.key__items i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

/* Filters */
.filters { display: grid; gap: .6rem; padding: 1rem 0; margin: 2rem 0 1rem; position: sticky; top: 0; background: var(--bg); z-index: 5; }
@media (min-width: 860px) { .filters { grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: end; } }
.filters label { display: block; font-family: var(--mono); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.filters input, .filters select { width: 100%; font: 700 .85rem var(--display); padding: .65rem 1rem; background: var(--tag); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; }
.filters input { font-family: var(--mono); font-weight: 400; }
.filters button { font: 700 .85rem var(--display); padding: .65rem 1rem; background: transparent; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; cursor: pointer; }
.filters button:hover { background: var(--ink); color: var(--bg); }
.results-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; font-size: .75rem; color: var(--muted); }
.letters { display: flex; flex-wrap: wrap; gap: .15rem .55rem; }
.letters a { color: var(--muted); text-decoration: none; }
.letters a:hover { color: var(--accent-ink); }

/* Index cards */
.index-group { margin-top: 2.5rem; }
.index-group__letter { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; font-size: 2.6rem; color: var(--accent-ink); margin: 0 0 1rem; line-height: 1; }
.cards { display: grid; gap: 1.5rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); list-style: none; padding: 0; margin: 0; }
.card { display: flex; flex-direction: column; gap: .6rem; }
.card[hidden] { display: none; }
.card__swatch { height: 170px; transition: transform .2s ease; }
.card:hover .card__swatch { transform: rotate(-1.5deg) scale(1.02); }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.card h3 { margin: 0; font-size: 1.3rem; letter-spacing: -0.03em; text-transform: none; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card { position: relative; }
.card h3 a:hover { color: var(--accent-ink); }
.card__meta { font-size: .7rem; color: var(--muted); line-height: 1.45; }
.card__speciality { font-size: .9rem; color: var(--ink-2); margin: 0; line-height: 1.4; }
.tier { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.card--featured .card__swatch { box-shadow: var(--shadow), 0 0 0 3px var(--bg), 0 0 0 4.5px var(--accent-ink); }
.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); border: 1.5px dashed var(--rule); border-radius: var(--r); margin-top: 2rem; }
.empty[hidden] { display: none; }
.tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.tag-chip { font-family: var(--mono); font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); padding: .15rem .45rem; border: 1px solid var(--rule); border-radius: 999px; }

/* ---------- Detail pages ---------- */
.page-head { padding: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: 1rem; }
.page-head .dek { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.2; color: var(--ink-2); max-width: 34ch; margin: 0; }
.page-head .byline { font-size: .72rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.page-head .pills { display: flex; flex-wrap: wrap; gap: .5rem; }

.brand-hero { display: grid; gap: 2.5rem; padding: 1.5rem 0 2.5rem; align-items: center; }
@media (min-width: 900px) { .brand-hero { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); } }
.brand-hero__art { position: relative; aspect-ratio: 6 / 5; }
.brand-hero__art .sw { position: absolute; inset: 0 6% 6% 0; transform: rotate(-3deg); border-radius: 10px; }
.brand-hero__art .tag { position: absolute; left: 6%; bottom: 0; transform: rotate(2deg); display: flex; flex-direction: column; gap: .2rem; }
.brand-hero__art .tag b { color: var(--accent-ink); font-weight: 400; }

.detail { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .detail { grid-template-columns: minmax(0, 1fr) 340px; gap: 4rem; align-items: start; } }
.detail > * { min-width: 0; }
.detail__aside { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: 1.5rem; }
.prose { max-width: var(--measure); font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; font-weight: 400; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.2em 0 .6em; }
.prose h3 { font-family: var(--display); font-size: 1.15rem; text-transform: uppercase; margin: 1.8em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent-ink); }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 2px solid var(--accent-ink); font-style: italic; color: var(--ink-2); }
.prose figure { margin: 2rem 0; }
.prose figcaption { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-top: .5rem; }
.prose code { font-family: var(--mono); font-size: .85em; background: var(--tag); padding: .05em .3em; }
.prose .callout { font-family: var(--display); font-weight: 500; font-size: 1rem; line-height: 1.45; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose .answer { margin-bottom: 2rem; }
.prose .answer p { font-size: 1.35rem; }
.tldr { margin: 0 0 2rem; }
.tldr h2 { margin: 0 0 .5rem; font-family: var(--mono); font-weight: 400; font-size: .7rem; letter-spacing: .16em; color: var(--accent-ink); }
.tldr ul { margin: 0; padding: 0; list-style: none; font-family: var(--serif); font-size: 1.05rem; line-height: 1.4; display: flex; flex-direction: column; gap: .4rem; }
.tldr li::before { content: '— '; color: var(--accent-ink); }

.factcards { display: grid; gap: .75rem; list-style: none; padding: 0; margin: 0 0 1rem; font-family: var(--display); font-weight: 500; font-size: .95rem; line-height: 1.45; }
@media (min-width: 700px) { .factcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.factcards li { border: 1.5px solid var(--ink); border-radius: var(--r); padding: 1rem 1.2rem; display: flex; gap: .9rem; }
.factcards li::before { counter-increment: fact; content: counter(fact, decimal-leading-zero); font-family: var(--mono); font-size: .75rem; color: var(--accent-ink); padding-top: .15rem; }
.factcards { counter-reset: fact; }

.facts { display: flex; flex-direction: column; gap: .9rem; }
.facts h2 { margin: 0; font-family: var(--mono); font-weight: 400; font-size: .68rem; letter-spacing: .16em; color: var(--accent-ink); }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0; font-family: var(--mono); font-size: .75rem; line-height: 1.5; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts .btn { justify-content: center; }
.aside-block h2 { font-family: var(--mono); font-weight: 400; font-size: .68rem; letter-spacing: .16em; color: var(--accent-ink); margin: 0 0 .5rem; }
.aside-block ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .35rem; font-weight: 700; font-size: .9rem; }
.aside-block a { color: var(--ink); text-decoration: none; }
.aside-block a:hover { color: var(--accent-ink); }
.toc ul { font-weight: 700; }

.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.minis li { position: relative; display: flex; flex-direction: column; gap: .4rem; }
.minis .sw { height: 96px; }
.minis a { font-family: var(--display); font-weight: 800; font-size: .95rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.minis a::after { content: ''; position: absolute; inset: 0; }
.minis .card__meta { font-size: .65rem; }
.mini-row { display: flex; gap: .6rem; align-items: center; }
.mini-row .sw { width: 56px; height: 42px; flex: none; border-radius: 6px; }

.swatch-strip { display: flex; gap: 6px; height: 14px; border-radius: 999px; overflow: hidden; margin: .5rem 0 0; }
.swatch-strip div { flex: 1; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1.5px solid var(--ink); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .8rem; }
th, td { text-align: left; padding: .7rem .9rem; border-top: 1px solid var(--rule); vertical-align: top; }
thead th { background: var(--ink); color: var(--bg); border: 0; font-weight: 500; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
tbody tr:first-child td { border-top: 0; }
caption { caption-side: bottom; text-align: left; font-family: var(--mono); font-size: .72rem; color: var(--muted); padding: .6rem .9rem; }

/* FAQ */
.faq { margin-top: 3rem; max-width: var(--measure); }
.faq h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.faq__item { border-top: 1.5px solid var(--ink); }
.faq__item:last-child { border-bottom: 1.5px solid var(--ink); }
.faq__item summary { cursor: pointer; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-family: var(--serif); font-size: 1.7rem; color: var(--accent-ink); line-height: 1; }
.faq__item[open] summary::after { content: '–'; }
.faq__item summary h3 { margin: 0; font-size: 1.05rem; text-transform: none; letter-spacing: -0.02em; }
.faq__answer { padding: 0 0 1rem; color: var(--ink-2); font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; }

/* Lists of pages */
.grid-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-list li { border: 1.5px solid var(--ink); border-radius: var(--r); padding: 1.1rem 1.2rem; position: relative; }
.grid-list h3 { margin: 0 0 .3rem; font-size: 1.25rem; text-transform: none; letter-spacing: -0.03em; }
.grid-list h3 a { color: var(--ink); text-decoration: none; }
.grid-list h3 a::after { content: ''; position: absolute; inset: 0; }
.grid-list li:hover { background: var(--tag); }
.grid-list p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.article-list { list-style: none; padding: 0; margin: 0; }
.article-list li { padding: 1.5rem 0; border-top: 1.5px solid var(--ink); }
.article-list h3 { margin: .25rem 0 .4rem; font-size: 1.6rem; text-transform: none; letter-spacing: -0.03em; }
.article-list h3 a { color: var(--ink); text-decoration: none; }
.article-list h3 a:hover { color: var(--accent-ink); }
.article-list p { margin: 0 0 .5rem; color: var(--ink-2); font-family: var(--serif); font-size: 1.1rem; }
.article-list .eyebrow { margin-bottom: .25rem; }

/* Glossary */
.glossary dt { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; margin-top: 1.75rem; scroll-margin-top: 1rem; }
.glossary dd { margin: .3rem 0 0; max-width: var(--measure); color: var(--ink-2); font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; }

/* Sources */
.sources { font-size: .75rem; color: var(--muted); margin-top: 2.5rem; }
.sources h2 { font-family: var(--mono); font-weight: 400; font-size: .68rem; letter-spacing: .16em; color: var(--accent-ink); margin: 0 0 .5rem; }
.sources ol { padding-left: 1.2rem; }
.sources a { word-break: break-all; }

/* Related */
.related { margin-top: 3rem; padding-top: 1.5rem; border-top: 1.5px solid var(--ink); }
.related h2 { margin-top: 0; font-size: 1.4rem; }
.related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.related li a { display: inline-block; padding: .5rem .9rem; border: 1.5px solid var(--rule); border-radius: 999px; text-decoration: none; font: 700 .8rem/1 var(--display); color: var(--ink-2); }
.related li a:hover { border-color: var(--ink); color: var(--ink); }

/* Illustrations */
.figure-svg { width: 100%; height: auto; display: block; }
.figure-svg text { font-family: var(--mono); font-size: 12px; fill: var(--muted); }
.figure-svg .stroke { stroke: var(--accent-ink); fill: none; stroke-width: 2; }
.figure-svg .stroke-thin { stroke: var(--ink-2); fill: none; stroke-width: 1; }
.figure-svg .fill { fill: var(--rule); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card__swatch { transition: none; } }
@media print { .site-header, .site-footer, .filters, .skip { display: none; } body { background: #fff; color: #000; } }
