/* fonts.css */
/* Self-hosted fonts (SIL Open Font License 1.1, see /assets/fonts/OFL.txt). No third-party requests.
   Inter carries an optical-size axis (opsz 14–32): headlines get the tighter Display cut automatically.
   Source Serif 4 is only used for pull quotes and the optional "editorial-serif" preset. */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("/assets/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("/assets/fonts/source-serif-4-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url("/assets/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url("/assets/fonts/source-serif-4-latin-ext-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-ext-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* tokens.css */
/* Design tokens. --brand and --highlight are overridden per site from validated settings. */
:root {
  /* colour: white page, charcoal text, one brand colour, one restrained accent */
  --ink: #111816;
  --text: #2a302e;
  --muted: #5b6562;
  --paper: #ffffff;
  --surface: #f3f5f4;
  --rule: #e2e7e5;
  --brand: #0d6b58;
  --brand-deep: #0a5446;
  --brand-soft: #e7f1ee;
  --highlight: #4d7c0f;
  --accent-bright: #c5ec7a;
  --accent-vivid: #8cc63f;
  --footer-bg: #0a1f1b;
  --footer-text: #b9c4c0;
  --footer-muted: #8fa19b;
  --footer-rule: #1d3530;
  --footer-accent: #c5ec7a;

  /* type families */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", "Source Serif Pro", Georgia, Cambria, "Times New Roman", serif;
  --font-display: var(--font-sans);
  --font-body: var(--font-sans);
  --font-quote: var(--font-serif);

  /* fluid type scale (mobile → desktop) */
  --fs-hero: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);
  --fs-h1: clamp(2rem, 1.45rem + 2.1vw, 3.1rem);
  --fs-deck: clamp(1.125rem, 1.06rem + 0.3vw, 1.3rem);
  --fs-h2: clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem);
  --fs-h3: clamp(1.2rem, 1.12rem + 0.35vw, 1.4rem);
  --fs-card: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);
  --fs-body: clamp(1.0625rem, 1.03rem + 0.15vw, 1.1575rem);
  --fs-ui: 0.9375rem;
  --fs-meta: 0.8125rem;
  --fs-label: 0.75rem;

  /* spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-gap: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);

  /* layout */
  --wrap: 80rem;
  --gutter: 20px;
  --article-col: 42rem;
  --radius: 6px;
  --radius-media: 10px;
  --header-height: 4rem;

  /* motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; --header-height: 4.5rem; } }

@supports (color: color-mix(in oklab, red, blue)) {
  :root {
    --brand-deep: color-mix(in oklab, var(--brand) 80%, #000000);
    --brand-soft: color-mix(in oklab, var(--brand) 9%, #ffffff);
  }
}
/* the bright accent follows the site's highlight hue */
@supports (color: oklch(from red l c h)) {
  :root {
    --accent-bright: oklch(from var(--highlight) 0.9 0.17 h);
    --accent-vivid: oklch(from var(--highlight) 0.76 0.19 h);
  }
}

/* "editorial-serif" preset: serif headlines, for sites with a more traditional identity. */
.preset-editorial-serif {
  --font-display: var(--font-serif);
}

/* base.css */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--font-display); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color 0.15s var(--ease); }
a:hover { color: var(--brand-deep); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }
main:focus { outline: none; }

::selection { background: var(--accent-bright); color: var(--ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-4); top: -10rem; z-index: 100;
  background: var(--ink); color: #fff; padding: var(--space-3) var(--space-4);
  font-weight: 600; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: var(--space-3); color: #fff; }

/* small shared text styles */
.kicker {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 var(--space-2);
}
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { color: var(--brand-deep); text-decoration: underline; }

.meta {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.meta-sep { margin: 0 0.5em; opacity: 0.6; }

.button {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px;
  padding: 0 var(--space-5);
  background: var(--ink); color: #fff;
  font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-ui);
  text-decoration: none; border-radius: 999px;
  transition: background-color 0.2s var(--ease);
}
.button:hover { background: var(--brand); color: #fff; }

/* text link with a moving arrow, used for "all articles" style links */
.arrow-link {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-sans); font-size: var(--fs-ui); font-weight: 600;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.arrow-link span { color: var(--brand); transition: transform 0.2s var(--ease); }
.arrow-link:hover { color: var(--brand); }
.arrow-link:hover span { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* layout.css */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { display: block; padding-block: var(--space-6) var(--section-gap); }
@media (min-width: 1024px) { main { padding-top: var(--space-7); } }
.page-listing main { padding-top: 0; }
/* a page ending in a tinted band meets the footer directly */
.page-home main:has(.topics > .band:last-child):not(:has(.more-link)) { padding-bottom: 0; }

/* full-width tinted band (breaks out of .wrap without extra markup) */
.band {
  background: var(--surface);
  box-shadow: 0 0 0 100vmax var(--surface);
  clip-path: inset(0 -100vmax);
}

/* breadcrumbs */
.breadcrumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2);
  font-family: var(--font-sans); font-size: var(--fs-meta); color: var(--muted);
  margin: 0 0 var(--space-5);
}
.breadcrumbs li { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.breadcrumbs li + li::before { content: "›"; color: var(--muted); opacity: 0.6; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current] { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28ch; }

/* section headings: no rules, just type and space */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5);
  margin: var(--section-gap) 0 var(--space-6);
}
.section-heading { min-width: 0; }
.section-title {
  font-size: var(--fs-h2); font-weight: 750; letter-spacing: -0.025em; line-height: 1.15;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-title::before {
  content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 2px;
  background: var(--brand); box-shadow: 0.35rem 0.35rem 0 var(--accent-bright);
  transform: translateY(-0.2em);
}
.section-description { margin-top: var(--space-2); max-width: 40rem; color: var(--muted); font-size: 0.975rem; line-height: 1.5; }
.section-more { flex: none; padding-bottom: 0.2rem; }
@media (max-width: 639px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
}

.more-link { margin-top: var(--space-8); text-align: center; }
.more-link a {
  display: inline-flex; align-items: center; gap: 0.5em; min-height: 48px; padding: 0 1.5rem;
  border: 1px solid var(--rule); border-radius: 999px;
  font-weight: 600; color: var(--ink); text-decoration: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.more-link a:hover { border-color: var(--ink); background: var(--surface); }
.more-link a span { color: var(--brand); }

/* notices / empty states */
.notice {
  background: var(--surface);
  padding: var(--space-6);
  border-radius: var(--radius-media);
  font-family: var(--font-sans);
  color: var(--text);
  max-width: 44rem;
}
.notice p + p, .notice p + ul { margin-top: var(--space-3); }
.notice-title { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.notice--home { margin-top: var(--space-6); }

.topic-links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.topic-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; color: var(--ink); text-decoration: none;
}
.topic-links a:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- listing (category / author / older home pages): a section header ---------- */
.listing-hero { background: var(--surface); padding-block: var(--space-5) var(--space-7); }
@media (min-width: 1024px) { .listing-hero { padding-block: var(--space-6) var(--space-8); } }
.listing-hero-inner { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 768px) {
  .listing-hero-inner.has-art { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-8); }
}
.listing-art .cover { box-shadow: 0 30px 60px -40px rgb(10 31 27 / 0.45); }
@media (max-width: 767px) { .listing-art { display: none; } }

.listing-header { display: flex; gap: var(--space-5); align-items: flex-start; }
.listing-header h1 { font-size: var(--fs-hero); font-weight: 780; line-height: 1.04; letter-spacing: -0.035em; }
.listing-intro { font-size: var(--fs-deck); color: var(--muted); line-height: 1.5; max-width: 38rem; margin-top: var(--space-4); }
.listing-header .meta {
  display: inline-flex; margin-top: var(--space-5); padding: 0.3rem 0.75rem;
  background: var(--paper); border-radius: 999px; color: var(--text); font-weight: 550;
}
.listing-body { padding-top: var(--space-7); }
@media (min-width: 1024px) { .listing-body { padding-top: var(--space-8); } }
.page-home .listing-hero { padding-bottom: var(--space-6); }

.monogram {
  flex: none; display: inline-grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--brand); color: #ffffff;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em;
}
.monogram--large { width: 4.5rem; height: 4.5rem; font-size: 1.4rem; }

/* pagination */
.pagination {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  margin-top: var(--space-8);
  font-family: var(--font-sans); font-size: var(--fs-ui);
}
.pagination-step { min-width: 6rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.pagination-step:hover { color: var(--brand); }
.pagination-step:last-child { text-align: right; }
.pagination-pages { list-style: none; display: flex; gap: var(--space-1); }
.pagination-page {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px;
  color: var(--text); text-decoration: none; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.pagination-page:hover { background: var(--surface); color: var(--ink); }
.pagination-page.is-current { background: var(--ink); color: var(--paper); font-weight: 700; }

/* 404 and static pages */
.not-found { padding-block: var(--space-7) var(--space-5); max-width: 44rem; }
.not-found .kicker { font-size: var(--fs-meta); }
.not-found h1, .static-page h1 { font-size: var(--fs-hero); font-weight: 780; line-height: 1.05; letter-spacing: -0.035em; margin-bottom: var(--space-4); }
.not-found-text { font-size: var(--fs-deck); color: var(--muted); margin-bottom: var(--space-6); }
.not-found .topic-links { margin-top: var(--space-6); }
.static-page { max-width: var(--article-col); padding-block: var(--space-6); }

/* header.css */
/* One compact sticky bar: wordmark + navigation. */
.masthead {
  position: sticky; top: 0; z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  min-height: var(--header-height);
}

.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 1.3rem; line-height: 1; letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none;
  flex: none;
}
@media (min-width: 1024px) { .wordmark { font-size: 1.4rem; } }
.wordmark:hover { color: var(--ink); }
.wordmark-mark {
  flex: none; display: inline-flex; align-items: flex-end; justify-content: center; gap: 0.1em;
  width: 1.6em; height: 1.6em; padding-bottom: 0.34em;
  background: var(--brand); border-radius: 0.4em;
}
.wordmark-mark > span { display: block; width: 0.22em; border-radius: 0.07em; background: #ffffff; }
.wordmark-mark > span:nth-child(1) { height: 0.4em; }
.wordmark-mark > span:nth-child(2) { height: 0.65em; }
.wordmark-mark > span:nth-child(3) { height: 0.9em; background: var(--accent-bright); }
.wordmark-a { font-weight: 800; }
.wordmark-b { font-weight: 500; color: var(--brand); }
.wordmark-logo { max-height: 2.5rem; width: auto; }

/* inline navigation (wide screens) */
.sitenav { display: flex; align-items: center; }
.sitenav-list { display: none; list-style: none; gap: var(--space-1); }
.sitenav-list a {
  display: inline-flex; align-items: center; min-height: 2.25rem;
  padding: 0 0.7rem; border-radius: 999px;
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 550; letter-spacing: -0.005em;
  color: var(--text); text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.sitenav-list a:hover { background: var(--surface); color: var(--ink); }
.sitenav-list a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-deep); }

/* disclosure menu (no JavaScript) */
.sitenav-toggle {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 44px; padding: 0 1rem 0 0.9rem;
  border: 1px solid var(--rule); border-radius: 999px;
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600; color: var(--ink);
  cursor: pointer; list-style: none; user-select: none;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.sitenav-toggle:hover { border-color: var(--ink); }
.sitenav-toggle::-webkit-details-marker { display: none; }
.sitenav-icon, .sitenav-icon::before, .sitenav-icon::after {
  display: block; width: 16px; height: 2px; background: currentColor; border-radius: 1px;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.sitenav-icon { position: relative; }
.sitenav-icon::before, .sitenav-icon::after { content: ""; position: absolute; left: 0; }
.sitenav-icon::before { top: -5px; }
.sitenav-icon::after { top: 5px; }
.sitenav-menu[open] .sitenav-toggle { background: var(--ink); border-color: var(--ink); color: #fff; }
.sitenav-menu[open] .sitenav-icon { background: transparent; }
.sitenav-menu[open] .sitenav-icon::before { transform: translateY(5px) rotate(45deg); }
.sitenav-menu[open] .sitenav-icon::after { transform: translateY(-5px) rotate(-45deg); }

.sitenav-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 24px 40px -28px rgb(17 24 22 / 0.35);
  padding: var(--space-5) var(--gutter) var(--space-6);
}
.sitenav-panel-title {
  font-size: var(--fs-label); font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--space-2);
}
.sitenav-panel-list { list-style: none; display: grid; }
@media (min-width: 640px) { .sitenav-panel-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); } }
.sitenav-panel-list a {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px;
  font-family: var(--font-sans); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.sitenav-panel-list a::after { content: "→"; color: var(--brand); font-weight: 500; transition: transform 0.2s var(--ease); }
.sitenav-panel-list a:hover::after { transform: translateX(3px); }
.sitenav-panel-list a[aria-current="page"] { color: var(--brand); }

@media (min-width: 1280px) {
  .sitenav-list { display: flex; }
  .sitenav-menu { display: none; }
}

/* covers.css */
/* Decorative covers. The SVG holds geometry only; every colour below derives from --brand and
   --highlight, so a site's settings recolour all covers. Three tones keep pages rhythmic. */
.cover {
  position: relative; overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--cv-bg);
  isolation: isolate;
}
.cover--16x9 { aspect-ratio: 16 / 9; }
.cover--21x9 { aspect-ratio: 16 / 9; }
.cover--3x2 { aspect-ratio: 3 / 2; }
.cover--4x3 { aspect-ratio: 4 / 3; }
.cover--1x1 { aspect-ratio: 1 / 1; }
.cover--topic { aspect-ratio: 4 / 3; }
@media (min-width: 768px) { .cover--21x9 { aspect-ratio: 2 / 1; } }
@media (min-width: 1200px) { .cover--21x9 { aspect-ratio: 21 / 9; } }

.cover-art { width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }

/* tones */
.cover--deep {
  --cv-bg: linear-gradient(155deg, color-mix(in oklab, var(--brand) 88%, #ffffff) 0%, var(--brand) 38%, color-mix(in oklab, var(--brand) 52%, #000000) 100%);
  --cv-f1: color-mix(in oklab, var(--brand) 28%, #ffffff);
  --cv-f2: color-mix(in oklab, var(--brand) 62%, #ffffff);
  --cv-f3: color-mix(in oklab, var(--brand) 84%, #ffffff);
  --cv-line: #ffffff;
  --cv-wash: color-mix(in oklab, var(--brand) 72%, #ffffff);
  --cv-grid: rgb(255 255 255 / 0.16);
  --cv-acc: var(--accent-bright);
}
.cover--mist {
  --cv-bg: linear-gradient(160deg, color-mix(in oklab, var(--brand) 5%, #ffffff) 0%, color-mix(in oklab, var(--brand) 15%, #ffffff) 100%);
  --cv-f1: var(--brand);
  --cv-f2: color-mix(in oklab, var(--brand) 48%, #ffffff);
  --cv-f3: color-mix(in oklab, var(--brand) 22%, #ffffff);
  --cv-line: color-mix(in oklab, var(--brand) 70%, #000000);
  --cv-wash: color-mix(in oklab, var(--brand) 40%, #ffffff);
  --cv-grid: color-mix(in oklab, var(--brand) 26%, transparent);
  --cv-acc: var(--accent-vivid);
}
.cover--sage {
  --cv-bg: linear-gradient(160deg, color-mix(in oklab, var(--accent-bright) 26%, #ffffff) 0%, color-mix(in oklab, var(--accent-bright) 48%, #ffffff) 100%);
  --cv-f1: color-mix(in oklab, var(--brand) 70%, #000000);
  --cv-f2: color-mix(in oklab, var(--brand) 40%, #ffffff);
  --cv-f3: color-mix(in oklab, var(--brand) 20%, #ffffff);
  --cv-line: color-mix(in oklab, var(--brand) 70%, #000000);
  --cv-wash: color-mix(in oklab, var(--brand) 45%, #ffffff);
  --cv-grid: color-mix(in oklab, var(--brand) 24%, transparent);
  --cv-acc: var(--brand);
}

/* paint */
.cv-f1 { fill: var(--cv-f1); }
.cv-f2 { fill: var(--cv-f2); }
.cv-f3 { fill: var(--cv-f3); }
.cv-acc { fill: var(--cv-acc); }
.cv-halo { fill: none; stroke: var(--cv-acc); stroke-width: 3; opacity: 0.6; }
.cv-line { fill: none; stroke: var(--cv-line); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.cv-line--thin { stroke-width: 3; opacity: 0.45; }
.cv-wash { fill: var(--cv-wash); opacity: 0.35; }
.cv-wash--strong { opacity: 0.75; }
.cv-line--soft { stroke: var(--cv-f3); stroke-width: 16; }
.cv-grid { fill: none; stroke: var(--cv-grid); stroke-width: 2; }
.cv-base { fill: none; stroke: var(--cv-line); stroke-width: 3; opacity: 0.5; }
.cv-mark { fill: none; stroke: var(--cv-line); stroke-width: 2; stroke-dasharray: 6 10; opacity: 0.55; }
.cv-dots { fill: none; stroke: var(--cv-grid); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 0 40; }
.cv-ring { fill: none; stroke: var(--cv-grid); stroke-width: 2; }
.cv-ring--dotted { stroke-width: 6; stroke-linecap: round; stroke-dasharray: 0 30; }
.cv-seg { fill: none; stroke-width: 96; }
.cv-bar { fill: none; stroke-width: 22; stroke-linecap: round; }
.cv-s1 { stroke: var(--cv-f1); }
.cv-s2 { stroke: var(--cv-f2); }
.cv-s3 { stroke: var(--cv-f3); }
.cv-sacc { stroke: var(--cv-acc); }

/* teasers.css */
/* ---------- teaser base: no boxes; image, label, headline and meta do the work ---------- */
.teaser { position: relative; display: grid; gap: var(--space-4); align-content: start; }
.teaser-media, .teaser-body { min-width: 0; }
.teaser-title {
  font-size: var(--fs-card); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}
.teaser-link { color: var(--ink); text-decoration: none; transition: color 0.2s var(--ease); }
.teaser-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.teaser:hover .teaser-link { color: var(--brand); }
.teaser:hover .cover-art { transform: scale(1.035); }
.teaser-link:focus-visible { outline: none; }
.teaser:has(.teaser-link:focus-visible) { outline: 2px solid var(--brand); outline-offset: 6px; border-radius: var(--radius-media); }
.teaser-excerpt {
  font-size: 0.95rem; line-height: 1.55; color: var(--muted);
  margin-bottom: var(--space-3);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.teaser .kicker { margin-bottom: var(--space-2); }

/* ---------- grids ---------- */
.teaser-grid { display: grid; gap: var(--space-7) var(--space-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .teaser-grid--2, .teaser-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .teaser-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .teaser-grid--2 { column-gap: var(--space-7); }
  .teaser-grid--2 .teaser-title { font-size: var(--fs-h3); }
  .teaser-grid--1 > .teaser { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-7); }
}

/* mobile: grid teasers become calm rows with a square thumbnail */
@media (max-width: 639px) {
  .teaser-grid { gap: var(--space-5); }
  .teaser-grid > .teaser { grid-template-columns: minmax(0, 1fr) 5.5rem; gap: var(--space-4); }
  .teaser-grid > .teaser .teaser-media { grid-column: 2; grid-row: 1; }
  .teaser-grid > .teaser .cover { aspect-ratio: 1 / 1; border-radius: var(--radius); }
  .teaser-grid > .teaser .teaser-excerpt { display: none; }
  .teaser-grid > .teaser .teaser-title { font-size: 1.075rem; }
}

/* ---------- front page: lead block ---------- */
.lead-block { display: grid; gap: var(--space-7); }
.teaser--lead { gap: var(--space-5); }
.teaser--lead .teaser-title {
  font-size: var(--fs-hero); font-weight: 780; line-height: 1.06; letter-spacing: -0.035em;
  margin-bottom: var(--space-4);
}
.teaser--lead .kicker { font-size: var(--fs-meta); }
.teaser--lead .teaser-excerpt { font-size: var(--fs-deck); line-height: 1.5; color: var(--muted); -webkit-line-clamp: 3; max-width: 44rem; }

.lead-secondary { display: grid; gap: var(--space-5); align-content: start; }
.teaser--compact { grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.teaser--compact .cover { border-radius: var(--radius); }
.teaser--compact .teaser-title { font-size: 1.05rem; line-height: 1.3; }
.teaser--compact .kicker { margin-bottom: 0.3rem; }

@media (min-width: 1024px) {
  .lead-block--lead-with-sidebar { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); column-gap: var(--space-8); }
  .lead-block--lead-with-sidebar .lead-secondary { gap: 0; }
  .lead-block--lead-with-sidebar .teaser--compact { grid-template-columns: minmax(0, 1fr) 6.5rem; padding-block: var(--space-5); border-top: 1px solid var(--rule); }
  .lead-block--lead-with-sidebar .teaser--compact:first-child { border-top: 0; padding-top: 0; }
  .lead-block--lead-with-sidebar .teaser--compact .teaser-media { grid-column: 2; grid-row: 1; }
  .lead-block--lead-with-sidebar .teaser--compact .teaser-title { font-size: 1.125rem; }

  .lead-block--lead-grid .teaser--lead { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: var(--space-8); }
  .lead-block--lead-grid .lead-secondary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
}

/* ---------- front page: topic sections ---------- */
.topic-section { margin-top: var(--section-gap); }
.topic-section .section-head { margin-top: 0; }
.topic-section.band { padding-block: calc(var(--section-gap) * 0.85); }
.topic-grid { display: grid; gap: var(--space-7) var(--space-6); }

/* one large story + compact list */
.teaser--feature .teaser-title { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.025em; }
.topic-rest { display: grid; gap: var(--space-5); align-content: start; }
@media (min-width: 768px) {
  .topic-section--feature .topic-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: var(--space-8); }
  .topic-section--feature.is-reversed .topic-rest { order: -1; }
  .topic-section--pair .topic-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); column-gap: var(--space-7); align-items: start; }
  .topic-section--pair .teaser--standard { padding-top: var(--space-8); }
  .topic-section--trio .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* spotlight: cover and text side by side */
.teaser--spotlight .teaser-title,
.teaser--wide .teaser-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 750; line-height: 1.12; letter-spacing: -0.03em; margin-bottom: var(--space-4); }
.teaser--spotlight .teaser-excerpt,
.teaser--wide .teaser-excerpt { font-size: 1.05rem; -webkit-line-clamp: 4; max-width: 34rem; }
@media (min-width: 768px) {
  .teaser--spotlight { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; column-gap: var(--space-8); }
  .is-reversed .teaser--spotlight { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .is-reversed .teaser--spotlight .teaser-media { order: 2; }
}

/* ---------- category page: featured story ---------- */
.teaser--wide { gap: var(--space-5); margin-bottom: var(--space-8); }
@media (min-width: 768px) {
  .teaser--wide { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; column-gap: var(--space-8); }
}

/* article.css */
/* ---------- article header ---------- */
/* starts on the reading column's left edge, may run wider to the right */
.article-header { max-width: 50rem; margin-left: max(0px, calc(50% - var(--article-col) / 2)); margin-right: auto; }
.article-header .kicker { font-size: var(--fs-meta); margin-bottom: var(--space-4); }
.article-header h1 {
  font-size: var(--fs-h1); font-weight: 780;
  line-height: 1.08; letter-spacing: -0.035em;
}
.article-deck {
  font-size: var(--fs-deck); line-height: 1.5; color: var(--muted);
  margin-top: var(--space-5); max-width: 44rem;
}

.byline { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-6); }
.byline-name { font-weight: 650; font-size: 0.95rem; color: var(--ink); }
.byline-name a { color: inherit; text-decoration: none; }
.byline-name a:hover { color: var(--brand); text-decoration: underline; }
.byline-meta { display: flex; flex-wrap: wrap; column-gap: 0.5em; font-size: var(--fs-meta); color: var(--muted); font-variant-numeric: tabular-nums; }
.byline-meta > span + span::before { content: "·"; margin-right: 0.5em; opacity: 0.6; }

.article-cover { max-width: 76rem; margin: var(--space-7) auto var(--space-7); }
@media (min-width: 1024px) { .article-cover { margin-bottom: var(--space-8); } }

/* ---------- layout: centred reading column, contents in a quiet rail on wide screens ---------- */
.article-main { max-width: var(--article-col); margin-inline: auto; }
.article-aside { max-width: var(--article-col); margin: 0 auto var(--space-7); }

.toc {
  background: var(--surface); border-radius: var(--radius-media);
  padding: var(--space-4) var(--space-5) var(--space-5);
  font-family: var(--font-sans);
}
.toc-title { font-size: var(--fs-label); font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-3); }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 0.15rem; }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 1.9rem 1fr; font-size: 0.9rem; line-height: 1.4; }
.toc li::before { content: counter(toc, decimal-leading-zero); color: var(--brand); font-weight: 650; font-size: 0.8rem; font-variant-numeric: tabular-nums; padding-top: 0.3rem; }
.toc a { color: var(--text); text-decoration: none; display: block; padding-block: 0.25rem; }
.toc a:hover { color: var(--brand); }

@media (min-width: 1200px) {
  .article.has-toc .article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--article-col)) minmax(0, 1fr);
    column-gap: var(--space-8);
  }
  .article.has-toc .article-aside { grid-column: 1; justify-self: end; width: 100%; max-width: 15rem; margin: 0; }
  .article.has-toc .toc {
    position: sticky; top: calc(var(--header-height) + var(--space-6));
    background: none; padding: 0;
  }
  .article.has-toc .toc li { grid-template-columns: 1fr; border-left: 2px solid var(--rule); padding-left: var(--space-4); transition: border-color 0.2s var(--ease); }
  .article.has-toc .toc li::before { display: none; }
  .article.has-toc .toc li:hover { border-left-color: var(--brand); }
  .article.has-toc .toc a { color: var(--muted); font-size: 0.875rem; }
  .article.has-toc .toc a:hover { color: var(--ink); }
  .article.has-toc .article-main { grid-column: 2; max-width: none; margin: 0; }
}

/* ---------- long-form body ---------- */
.article-body {
  font-size: var(--fs-body); line-height: 1.75; color: var(--text);
  counter-reset: section;
}
@media (max-width: 639px) { .article-body { hyphens: auto; -webkit-hyphens: auto; } }
.article-body > * + * { margin-top: 1.25em; }
.article-body > p:first-child { font-size: 1.15em; line-height: 1.65; color: var(--ink); }

.article-body h2 {
  font-size: var(--fs-h2); font-weight: 750; line-height: 1.2; letter-spacing: -0.028em;
  margin-top: 2.4em;
}
/* numbered sections, matching the table of contents */
.has-toc .article-body h2 { counter-increment: section; }
.has-toc .article-body h2::before {
  content: counter(section, decimal-leading-zero);
  display: block; margin-bottom: 0.55rem;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.article-body h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; letter-spacing: -0.018em; margin-top: 1.9em; }
.article-body h2 + *, .article-body h3 + * { margin-top: 0.65em; }
.article-body a { color: var(--brand); text-decoration-color: color-mix(in oklab, var(--brand) 40%, transparent); }
.article-body a:hover { text-decoration-color: currentColor; }
.article-body strong { font-weight: 650; color: var(--ink); }

/* lists: quiet bullets; ordered lists read as numbered steps */
.article-body ul { list-style: none; padding-left: 0; }
.article-body ul > li { position: relative; padding-left: 1.4em; }
.article-body ul > li::before {
  content: ""; position: absolute; left: 0.2em; top: 0.72em;
  width: 0.4em; height: 0.4em; border-radius: 2px; background: var(--brand);
}
.article-body li + li { margin-top: 0.55em; }
.article-body ol { list-style: none; padding-left: 0; counter-reset: step; display: grid; gap: 0.75em; }
.article-body ol > li + li { margin-top: 0; }
.article-body ol > li {
  counter-increment: step; position: relative;
  padding: 0.15em 0 0 2.75rem; min-height: 2rem;
}
.article-body ol > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.05em;
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: 0.875rem; font-weight: 700; font-variant-numeric: tabular-nums;
}

/* ordinary quotes: pull quote (the one place the serif appears) */
.article-body blockquote {
  margin: 2em 0; padding: 0.2em 0 0.2em 1.5rem;
  border-left: 3px solid var(--accent-vivid);
  font-family: var(--font-quote); font-style: italic; font-size: 1.35em; line-height: 1.45;
  color: var(--ink);
}
/* "Tipp:" callout */
.article-body blockquote.callout-tip {
  font-family: var(--font-sans); font-style: normal; font-size: 0.97em; line-height: 1.65; color: var(--text);
  background: var(--brand-soft); border-left: 0;
  padding: 1.35rem 1.5rem 1.4rem; border-radius: var(--radius-media);
}
.article-body blockquote.callout-tip > p:first-child > strong:first-child {
  display: table; margin-bottom: 0.6rem; padding: 0.2rem 0.6rem; border-radius: 999px;
  background: var(--brand); color: #ffffff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.article-body blockquote > * + * { margin-top: 0.8em; }

.article-body code { font-size: 0.88em; background: var(--surface); padding: 0.1em 0.35em; border-radius: 4px; }
.article-body hr { border: 0; height: 1px; background: var(--rule); margin-block: 2.75em; }
.article-body img { border-radius: var(--radius-media); }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.9rem; display: block; overflow-x: auto; font-variant-numeric: tabular-nums; }
.article-body th, .article-body td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--rule); }
.article-body th { color: var(--ink); font-weight: 650; background: var(--surface); border-bottom: 0; }

/* related solution: separate from the editorial text, quiet, one link */
.related-solution {
  margin-top: var(--space-8);
  padding: var(--space-5) var(--space-5) var(--space-6);
  border: 1px solid var(--rule); border-radius: var(--radius-media);
}
@media (min-width: 640px) { .related-solution { padding: var(--space-6) var(--space-6) var(--space-6); } }
.related-solution-kicker {
  font-size: var(--fs-label); font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--space-3);
}
.related-solution-title { font-size: var(--fs-h3); font-weight: 750; line-height: 1.25; letter-spacing: -0.02em; }
.related-solution-text { margin-top: var(--space-2); color: var(--text); line-height: 1.6; max-width: 36rem; }
.related-solution-link { margin-top: var(--space-4); }
.related-solution + .disclaimer { margin-top: var(--space-6); }

.disclaimer {
  margin-top: var(--space-8); padding-top: var(--space-5);
  border-top: 1px solid var(--rule);
  font-size: 0.85rem; line-height: 1.6; color: var(--muted);
}

/* ---------- reading suggestions: a full-width band closing the page ---------- */
.related {
  margin-top: var(--section-gap);
  padding-block: calc(var(--section-gap) * 0.85);
  background: var(--surface);
}
.related .section-head { margin-top: 0; }
.page-article main:has(> .related:last-child) { padding-bottom: 0; }

/* footer.css */
.site-footer {
  background: var(--footer-bg); color: var(--footer-text);
  font-family: var(--font-sans); font-size: 0.925rem; line-height: 1.6;
}
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: #ffffff; }
.site-footer :focus-visible { outline-color: var(--footer-accent); }

.footer-grid { display: grid; gap: var(--space-7); padding-block: var(--space-8) var(--space-7); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 1.2fr); gap: var(--space-8); padding-top: var(--space-9); }
  .footer-grid--two { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}

.footer-wordmark { display: flex; font-size: 1.4rem; margin-bottom: var(--space-4); }
.footer-wordmark .wordmark-text { color: #ffffff; letter-spacing: -0.03em; line-height: 1; align-self: center; }
.footer-wordmark .wordmark-b { color: var(--footer-accent); }
.footer-wordmark .wordmark-mark { margin-right: 0.55rem; }
.footer-description { max-width: 30rem; }
.footer-small { margin-top: var(--space-3); color: var(--footer-muted); font-size: 0.85rem; }

.footer-heading {
  font-size: var(--fs-label); font-weight: 650;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--footer-muted);
  margin-bottom: var(--space-4);
}
.footer-topics ul { list-style: none; display: grid; gap: var(--space-2); }
.footer-topics a { text-decoration: none; color: var(--footer-text); }
.footer-topics a:hover { color: #ffffff; text-decoration: underline; }

/* related product: small, transparent, one link */
.related-product {
  align-self: start;
  padding: var(--space-5) var(--space-5) var(--space-6);
  border: 1px solid var(--footer-rule); border-radius: var(--radius-media);
}
.related-product-name { color: #ffffff; font-weight: 650; margin-bottom: var(--space-2); }
.related-product-text { color: var(--footer-text); max-width: 30rem; }
.site-footer .related-product-link {
  display: inline-flex; align-items: center; gap: 0.4em; margin-top: var(--space-4);
  font-weight: 600; text-decoration: none; color: var(--footer-accent);
}
.site-footer .related-product-link:hover { text-decoration: underline; }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-6);
  position: relative;
  padding-block: var(--space-5) var(--space-6);
  font-size: 0.85rem; color: var(--footer-muted);
}
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--footer-rule); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.footer-links a { color: var(--footer-text); text-decoration: none; }
.footer-links a:hover { color: #ffffff; text-decoration: underline; }

/* print.css */
@media print {
  :root { --paper: #ffffff; --text: #000000; --ink: #000000; --muted: #333333; }
  body { font-size: 11pt; }
  .skip-link, .sitenav, .article-aside, .article-cover, .related, .site-footer, .pagination, .cover, .listing-art { display: none !important; }
  .masthead { position: static; border-bottom: 1px solid #000; }
  .band, .listing-hero { background: none; box-shadow: none; }
  main { padding: 0; }
  .article-body { font-size: 11pt; line-height: 1.5; }
  .article-body a::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #333; }
  .article-body blockquote.callout-tip { background: none; border: 1px solid #999; }
  .disclaimer { border-top: 1px solid #999; }
}

