/*
Theme Name: Incredible Nest
Theme URI: https://incredible-nest.local
Author: Incredible Nest
Description: Quiet editorial theme for a parenting publication. Warm near-white paper, Figtree, charcoal and butter, thin rules. Built from the approved home mockup (see DESIGN.md).
Version: 0.2.0
Requires at least: 6.4
Requires PHP: 8.0
License: Proprietary
Text Domain: incredible-nest
*/

/* Fonts, self-hosted (SIL Open Font License; see assets/fonts/OFL-*.txt). Figtree is a variable font. */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/figtree-latin-ext.woff2) format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/figtree-latin.woff2) format('woff2'); 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: 'Figtree'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/figtree-italic-latin-ext.woff2) format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/figtree-italic-latin.woff2) format('woff2'); 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: 'Young Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/youngserif-latin-ext.woff2) format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Young Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/youngserif-latin.woff2) format('woff2'); 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; }


:root {
  --paper: #fbfaf6; --linen: #f1eee6; --card: #fff;
  --stone: #6f685c; --charcoal: #3b3a36;
  --butter: #f3dc8a; --butter-pale: #f9edbe;
  --ink: #262520; --ink-muted: #5c5a52; --hairline: #e3dfd3; --sand: #e6e2d8;
  --serif: "Figtree", system-ui, sans-serif;
  --wordmark: "Young Serif", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  --gutter: 1rem; --margin: 1.25rem; --wrap: 1240px;
  --ease-out: cubic-bezier(.23,1,.32,1);
  --logo: 3.5rem; --brand-gap: .85rem; /* nav indent = logo + gap, so categories start under the site title */
}
@media (min-width: 768px)  { :root { --gutter: 1.5rem; --margin: 2rem; } }
@media (min-width: 1024px) { :root { --gutter: 2rem;   --margin: 3rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; accent-color: var(--charcoal); scrollbar-color: #6f685c var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; caret-color: var(--charcoal); }
::selection { background: rgba(243,220,138,.55); }
img, svg { display: block; max-width: 100%; }
a, button { touch-action: manipulation; }
.btn, .search-btn, .nav a { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
h1,h2,h3 { overflow-wrap: break-word; font-family: var(--serif); font-weight: 700; line-height: 1.18; letter-spacing: -.025em; text-wrap: balance; margin: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:empty, .ruler .desc:empty { display: none; }
a { color: var(--charcoal); text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--margin) * 2); margin-inline: auto; padding-inline: var(--margin); }
.skip { position: absolute; left: .5rem; top: .5rem; z-index: 50; padding: .6rem 1rem; background: var(--charcoal); color: #fff; border-radius: 4px; transform: translateY(-200%); }
.skip:focus { transform: none; }
h1.sr { font-size: 2rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }


/* ---------- Masthead ---------- */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: var(--brand-gap); text-decoration: none; color: var(--ink); }
.brand img { width: var(--logo); height: var(--logo); flex: none; }
.brand__name { display: block; white-space: nowrap; font: 400 clamp(1.5rem, 1.2rem + 1.6vw, 2.25rem)/1 var(--wordmark); letter-spacing: -.01em; }
@media (max-width: 639px) { :root { --logo: 2.75rem; --brand-gap: .6rem; } }
.nest { color: var(--stone); } /* stone accent: 5.3:1 on paper, 4.8:1 on linen */
.brand__tag { display: none; margin-top: .3rem; font: 400 .9375rem/1.2 var(--serif); color: var(--ink-muted); }
@media (min-width: 640px) { .brand__tag { display: block; } }

.tools { display: flex; align-items: center; gap: 1.5rem; }
.tools .search-btn { margin-right: -.75rem; }
.tools ul { display: none; gap: 1.5rem; list-style: none; margin: 0; padding: 0; font-size: .9375rem; }
@media (min-width: 640px) { .tools ul { display: flex; } }
.tools ul a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink-muted); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .tools ul a:hover { color: var(--charcoal); text-decoration: underline; } }
.search-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 9999px; color: var(--ink-muted); transition: background-color .2s, color .2s; }
@media (hover: hover) and (pointer: fine) { .search-btn:hover { background: var(--linen); color: var(--charcoal); } }
.search-btn svg { width: 1.25rem; height: 1.25rem; }

.nav { position: sticky; top: 0; z-index: 20; background: var(--paper); }
.nav.is-stuck { box-shadow: 0 1px 0 var(--hairline); } /* sand hairline only while the bar floats over content */
.nav-gap { height: 6.5rem; background: var(--sand); } /* empty grey-sand band under the categories */
.nav__row { display: flex; gap: 1.75rem; overflow-x: auto; scrollbar-width: none; list-style: none; margin: 0; padding: 0; }
.nav__row::-webkit-scrollbar { display: none; }
.nav__bar { display: flex; align-items: center; }
.nav__stages { flex: 1; min-width: 0; justify-content: flex-start; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .9375rem; padding-right: 2rem; }
@media (max-width: 639px) { .nav__stages { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); } }
@media (min-width: 640px) { .nav__stages { gap: 3rem; justify-content: space-between; padding-right: 0; } }

/* Compact bar: once the masthead has scrolled away, the logo and name join the categories. */
.nav__brand { display: inline-flex; align-items: center; gap: var(--brand-gap); flex: none; overflow: hidden; max-width: 0; opacity: 0; visibility: hidden; color: var(--ink); text-decoration: none; border-bottom: 0 !important; min-height: 2.75rem;
  transition: max-width 260ms var(--ease-out), opacity 200ms, visibility 0s 260ms; }
.nav__brand img { width: var(--logo); height: var(--logo); flex: none; }
.nav__brandname { font: 400 1.75rem/1 var(--wordmark); letter-spacing: -.01em; white-space: nowrap; }
.nav__search { flex: none; max-width: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity 200ms, visibility 0s 200ms, background-color .2s, color .2s; }
.nav.is-stuck .nav__brand { max-width: 20rem; padding-right: 2.75rem; opacity: 1; visibility: visible; transition: max-width 260ms var(--ease-out), opacity 200ms, visibility 0s; }
.nav.is-stuck .nav__search { max-width: 2.75rem; margin-left: 1.5rem; margin-right: -.75rem; opacity: 1; visibility: visible; transition: opacity 200ms, visibility 0s, background-color .2s, color .2s; }
@media (max-width: 639px) { .nav__brandname { display: none; } .nav.is-stuck .nav__brand { max-width: 4rem; padding-right: 1.25rem; } }
@media (min-width: 640px) {
  /* before it sticks, the empty brand slot keeps the first category under the site title */
  .nav:not(.is-stuck) .nav__brand { max-width: calc(var(--logo) + var(--brand-gap)); }
}
@media (prefers-reduced-motion: reduce) { .nav__brand, .nav__search { transition-duration: .01ms !important; } }
.nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; transition: color 200ms, border-color 200ms; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--charcoal); border-bottom-color: rgba(111,104,92,.45); } }
.nav [aria-current] { color: var(--charcoal); border-bottom-color: var(--charcoal); }

/* ---------- Phone and tablet (< 1024px): no category row; menu button left, logo + title, search right ---------- */
.menu { display: none; position: relative; flex: none; }
.menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin-left: -.75rem; border-radius: 9999px; color: var(--ink); transition: background-color .2s; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 1.5rem; height: 1.5rem; }
.menu > summary:active, .menu[open] > summary { background: var(--linen); }
@media (hover: hover) and (pointer: fine) { .menu > summary:hover { background: var(--linen); } }
@media (max-width: 1023px) {
  .menu { display: block; }
  .masthead { justify-content: flex-start; gap: .5rem; }
  .masthead .tools { margin-left: auto; }
  /* the sticky bar takes no space; it overlays the page once the masthead has scrolled away */
  .nav { height: 0; }
  .nav.is-stuck { box-shadow: none; }
  .nav__bar { position: absolute; top: 0; left: 0; right: 0; width: 100%; background: var(--paper); box-shadow: 0 1px 0 var(--hairline); padding-block: .45rem; gap: .5rem; opacity: 0; visibility: hidden; transition: opacity 200ms, visibility 0s 200ms; }
  .nav.is-stuck .nav__bar { opacity: 1; visibility: visible; transition: opacity 200ms, visibility 0s; }
  .nav__stages { display: none; }
  .nav .nav__brand, .nav.is-stuck .nav__brand, .nav:not(.is-stuck) .nav__brand { max-width: none; padding-right: 0; opacity: 1; visibility: visible; overflow: visible; transition: none; }
  .nav .nav__brandname { display: block; white-space: nowrap; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 1.75rem); }
  .nav .nav__search, .nav.is-stuck .nav__search { max-width: 2.75rem; margin-left: auto; margin-right: -.75rem; opacity: 1; visibility: visible; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { .nav__bar { transition-duration: .01ms !important; } }

/* ---------- Main categories: two rows on desktop, dropdown with subcategories on hover or focus ---------- */
@media (min-width: 1024px) {
  .nav__stages { display: grid; grid-template-columns: repeat(4, max-content); justify-content: space-between; column-gap: 2rem; row-gap: 0; overflow: visible; padding-right: 0; }
  .nav__stages > li { position: relative; }
  .nav__stages > li > a { min-height: 2.5rem; }
  .nav__stages > li:hover > a, .nav__stages > li:focus-within > a { color: var(--charcoal); border-bottom-color: rgba(111,104,92,.45); }
  /* each category drops a plain vertical list straight down from itself */
  .sub { position: absolute; z-index: 30; top: 100%; left: -1rem; min-width: 16rem; margin: 0; padding: .35rem 1rem; list-style: none; background: var(--card); border: 1px solid var(--hairline); border-radius: 4px; box-shadow: 0 4px 18px -4px rgba(38,37,32,.12);
    text-transform: none; letter-spacing: 0; font-size: .9375rem; font-weight: 400; opacity: 0; visibility: hidden; transition: opacity 120ms var(--ease-out), visibility 0s 120ms; }
  .nav__stages > li:nth-child(4n) .sub { left: auto; right: -1rem; }
  .nav__stages > li:hover > .sub, .nav__stages > li:focus-within > .sub { opacity: 1; visibility: visible; transition: opacity 120ms var(--ease-out), visibility 0s; }
  .sub a { min-height: 2.25rem; border-bottom: 0; }
  .sub li + li { border-top: 1px solid var(--hairline); }
}
/* phone and tablet: the menu is a full screen layer over the page, not a dropdown */
.menu__panel { display: none; }
.menu[open] > .menu__panel { display: flex; flex-direction: column; position: fixed; z-index: 100; inset: 0; margin: 0; padding: 0; background: var(--paper); overflow-y: auto; border: 0; border-radius: 0; box-shadow: none; min-width: 0; }
body:has(.menu[open]) { overflow: hidden; }
.menu__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex: none; padding: 1rem var(--margin); box-shadow: 0 1px 0 var(--hairline); }
.menu__close { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin-right: -.75rem; border: 0; border-radius: 9999px; background: transparent; color: var(--ink); cursor: pointer; }
.menu__close svg { width: 1.5rem; height: 1.5rem; }
.menu__close:active { background: var(--linen); }
.menu__list { list-style: none; margin: 0; padding: .5rem var(--margin) 2rem; }
.menu__list > li + li { border-top: 1px solid var(--hairline); }
.menu__list a { display: flex; align-items: center; min-height: 2.75rem; color: var(--ink); text-decoration: none; }
.msub summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 3.25rem; font-weight: 600; font-size: .9375rem; letter-spacing: .06em; text-transform: uppercase; }
.msub summary::-webkit-details-marker { display: none; }
.msub summary::after { content: ""; width: .5rem; height: .5rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform 160ms var(--ease-out); }
.msub[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.msub ul { list-style: none; margin: 0 0 .5rem; padding: 0 0 0 .75rem; }
.msub ul a { min-height: 2.5rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.msub ul .more a { font-weight: 600; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* ---------- Generic ---------- */
main { padding-block: 2rem 0; }
.section { margin-top: 4.5rem; }
.stage-first { margin-bottom: 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem 1.5rem; padding-bottom: .9rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--ink); }
.sec-head h2 { font-size: 1.75rem; }
.sec-head p { margin: 0; color: var(--ink-muted); font-size: .9375rem; }
.sec-head a { font-weight: 600; font-size: .9375rem; }
.sec-head--bare { border-bottom: 0; margin-bottom: 1.25rem; padding-bottom: 0; }
@media (max-width: 899px) { .sec-head--bare { border-bottom: 1px solid var(--ink); padding-bottom: .9rem; margin-bottom: 0; } }
@media (min-width: 1024px) { .section { margin-top: 6rem; } .sec-head h2 { font-size: 2rem; } }

.ph { background: var(--sand); border: 1px solid var(--hairline); border-radius: 4px; aspect-ratio: 16/10; display: grid; place-items: end start; padding: .6rem .75rem; font-size: .8125rem; color: var(--ink-muted); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .9rem; margin: 0; font-size: .875rem; color: var(--ink-muted); }
.meta a { display: inline-block; padding-block: .15rem; font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .meta a:hover { text-decoration: underline; } }
.title-link { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .title-link:hover { color: var(--charcoal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; } }
.btn { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .7rem 1.6rem; font: 600 .9375rem/1 var(--sans); letter-spacing: .02em; text-decoration: none; border: 1px solid var(--charcoal); border-radius: 4px; color: var(--charcoal); transition: background-color 200ms, color 200ms, transform 160ms var(--ease-out); }
.btn:active { transform: scale(.97); }
/* touch feedback: taps show a visible press (tap highlight is off), 120ms ease-out on release */
.ruler a, .future__list a, .title-link, .meta a, .foot li a { transition: opacity 120ms var(--ease-out); }
.ruler a:active, .future__list a:active, .title-link:active, .meta a:active, .foot li a:active, .nav a:active { opacity: .55; }
.search-btn:active { background: var(--linen); transform: scale(.92); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--charcoal); color: #fff; } }
.btn--solid { background: var(--charcoal); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn--solid:hover { background: var(--ink); border-color: var(--ink); } }
.btn--quiet { border-color: transparent; text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) { .btn--quiet:hover { background: transparent; color: var(--ink); } }

/* ---------- Lead ---------- */
.lead-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .lead-grid { grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 3.5rem; } }
.lead .ph { aspect-ratio: 16/9; margin-bottom: 1.25rem; }
.lead h2 { font-size: clamp(2rem, 1.3rem + 2.3vw, 3.125rem); line-height: 1.1; letter-spacing: -.03em; margin: .6rem 0 1rem; }
.lead p.dek { font-size: 1.1875rem; color: var(--ink-muted); max-width: 56ch; }
.support { list-style: none; margin: 0; padding: 0; }
.support li { display: grid; grid-template-columns: minmax(0,1fr) 6.5rem; gap: 1rem; padding-block: 1.35rem; border-top: 1px solid var(--hairline); }
.support li:first-child { padding-top: 0; border-top: 0; }
.support h3 { font-size: 1.3125rem; line-height: 1.28; margin: .3rem 0 .45rem; }
.support p { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--ink-muted); }
.support .ph { aspect-ratio: 1; order: 2; padding: 0; place-items: center; font-size: 0; }

/* ---------- Stage ruler ---------- */
.ruler { list-style: none; margin: 0; padding: 0; display: grid; }
.ruler a { display: grid; gap: .15rem; padding: 1.1rem 0; color: var(--ink); text-decoration: none; border-top: 1px solid var(--hairline); }
.ruler li:last-child a { border-bottom: 1px solid var(--hairline); }
.ruler .name { font: 700 1.5rem/1.15 var(--serif); }
.ruler .age { font-size: .875rem; font-weight: 600; letter-spacing: .02em; color: var(--charcoal); }
.ruler .desc { font-size: .9375rem; line-height: 1.5; color: var(--ink-muted); max-width: 34ch; }
@media (hover: hover) and (pointer: fine) { .ruler a:hover .name { color: var(--charcoal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; } }
@media (min-width: 900px) {
  /* Doorframe growth chart: a ruled line with a tall tick at every stage */
  .ruler { position: relative; grid-template-columns: repeat(var(--n, 5), minmax(0,1fr)); border-top: 1px solid var(--ink); }
  /* minor ticks: 4 per stage, like marks on a doorframe */
  .ruler::before { content: ""; position: absolute; inset: 0 0 auto 0; height: .55rem; pointer-events: none;
    background: repeating-linear-gradient(to right, rgba(38,37,32,.55) 0 1px, transparent 1px calc(100% / (var(--n, 5) * 4))); }
  .ruler { grid-template-rows: repeat(3, auto); }
  .ruler li { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
  .ruler a { position: relative; display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; row-gap: .15rem; padding: 4rem 1.25rem 0 1.1rem; border: 0 !important; }
  /* major tick at every stage */
  .ruler a::before { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: calc(2rem + var(--k, 0) * .3rem); background: var(--ink); transform: scaleY(.714); transform-origin: top; transition: transform 250ms var(--ease-out), background-color 200ms; }
  .ruler a:focus-visible::before { transform: none; background: var(--charcoal); }
  @media (hover: hover) and (pointer: fine) { .ruler a:hover::before { transform: none; background: var(--charcoal); } }
}

@media (max-width: 899px) {
  /* Vertical doorframe ruler: a ruled line down the left with a tick at every stage, smaller type */
  .ruler { position: relative; margin-top: 1.25rem; }
  .ruler::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--ink); pointer-events: none; }
  .ruler li:last-child a { border-bottom: 0; }
  .ruler a { position: relative; gap: .1rem; padding: .95rem 0 1.1rem 1.75rem; border-top: 0; }
  .ruler .name { font-size: 1.3125rem; line-height: 1.15; }
  .ruler .age { font-size: .8125rem; }
  .ruler .desc { font-size: .875rem; line-height: 1.45; max-width: 36ch; }
  /* major tick at every stage, and three minor ticks inside it */
  .ruler a::before { content: ""; position: absolute; left: 0; top: 0; width: 1.1rem; height: 1px; background: var(--ink); transform-origin: left; transition: transform 250ms var(--ease-out), background-color 200ms; }
  .ruler a::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: .5rem; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(38,37,32,.55) 0 1px, transparent 1px 25%); }
  .ruler a:focus-visible::before { transform: scaleX(1.5); background: var(--charcoal); }
  @media (hover: hover) and (pointer: fine) { .ruler a:hover::before { transform: scaleX(1.5); background: var(--charcoal); } }
}

/* One authored moment: the doorframe ruler is drawn once on load. */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  @keyframes ruler-sweep { from { clip-path: inset(0 100% 0 0); } }
  @keyframes tick-rise { from { transform: scaleY(0); } }
  .ruler::before { animation: ruler-sweep 600ms var(--ease-out) both; }
  .ruler a::before { animation: tick-rise 320ms var(--ease-out) backwards; /* each tick lands as the sweep reaches it (ease-out sweep: gaps grow toward the end, so the stagger is not uniform) */
    animation-delay: calc(40ms + 260ms * var(--i, 0) * var(--i, 0) / (var(--n, 5) * var(--n, 5))); }
  .ruler li:nth-child(2) a::before { --i: 1; } .ruler li:nth-child(3) a::before { --i: 2; } .ruler li:nth-child(4) a::before { --i: 3; }
  .ruler li:nth-child(5) a::before { --i: 4; } .ruler li:nth-child(6) a::before { --i: 5; } .ruler li:nth-child(7) a::before { --i: 6; }
}

@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  /* the same moment on a phone: the line is drawn top to bottom, each tick lands as it passes */
  @keyframes ruler-sweep-v { from { clip-path: inset(0 0 100% 0); } }
  @keyframes tick-grow { from { transform: scaleX(0); } }
  @keyframes tick-fade { from { opacity: 0; } }
  .ruler::before { animation: ruler-sweep-v 700ms var(--ease-out) both; }
  .ruler a::before { animation: tick-grow 320ms var(--ease-out) backwards; animation-delay: calc(40ms + 340ms * var(--i, 0) * var(--i, 0) / (var(--n, 5) * var(--n, 5))); }
  .ruler a::after { animation: tick-fade 320ms var(--ease-out) backwards; animation-delay: calc(40ms + 340ms * var(--i, 0) * var(--i, 0) / (var(--n, 5) * var(--n, 5))); }
  .ruler li:nth-child(2) a { --i: 1; } .ruler li:nth-child(3) a { --i: 2; } .ruler li:nth-child(4) a { --i: 3; }
  .ruler li:nth-child(5) a { --i: 4; } .ruler li:nth-child(6) a { --i: 5; } .ruler li:nth-child(7) a { --i: 6; } .ruler li:nth-child(8) a { --i: 7; }
}

/* ---------- Topic directory ---------- */
.future { background: var(--linen); border: 1px solid var(--hairline); border-radius: 8px; padding: 2rem 1.25rem; display: grid; gap: 2rem 4rem; }
.future h2 { font-size: clamp(2rem, 1.3rem + 2.3vw, 3.125rem); line-height: 1.08; letter-spacing: -.03em; max-width: 11ch; }
.future__intro p { margin: 1rem 0 1.75rem; max-width: 34ch; color: var(--ink-muted); }
.future__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.future__list a { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem; row-gap: .15rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(38,37,32,.35); color: var(--ink); text-decoration: none; }
.future__list .t { grid-column: 1; font: 700 1.375rem/1.2 var(--serif); }
.future__list .q { grid-column: 1; font-size: .9375rem; line-height: 1.5; color: var(--ink-muted); }
.future__list svg { grid-column: 2; grid-row: 1 / span 2; width: 1.5rem; height: 1.5rem; color: var(--stone); transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .future__list a:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; } .future__list a:hover svg { transform: translateX(4px); color: var(--charcoal); } }
@media (min-width: 900px) { .future { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; padding: 3.5rem 3rem; } }

/* ---------- Latest ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.75rem var(--gutter); }
@media (min-width: 640px)  { .grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 3.25rem 2rem; } }
.grid .ph { margin-bottom: .9rem; }
.grid .no-img { /* fallback used by the WordPress theme when a story has no photo */ border-top: 1px solid var(--ink); padding-top: 1rem; }
.grid .no-img h3 { font-size: 1.5rem; }
.grid h3 { font-size: 1.3125rem; line-height: 1.3; margin: .35rem 0 .5rem; }
.grid p { margin: 0 0 .6rem; font-size: .9375rem; line-height: 1.55; color: var(--ink-muted); }
.more { margin-top: 3rem; text-align: center; }

/* ---------- Mission ---------- */
.mission { margin-top: 6rem; padding: 3.5rem 1.5rem; text-align: center; border-block: 1px solid var(--ink); }
.mission h2 { letter-spacing: -.025em; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); max-width: 22ch; margin: 0 auto 1rem; }
.mission p { max-width: 52ch; margin: 0 auto 1.75rem; color: var(--ink-muted); }
.mission .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* ---------- Footer ---------- */
footer { margin-top: 0; background: var(--linen); }
.foot { display: grid; gap: 2.5rem; padding-block: 3rem 2rem; }
@media (min-width: 768px) { .foot { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; } }
.foot p.about { max-width: 36ch; margin: 1rem 0 0; font-size: .9375rem; color: var(--ink-muted); }
.foot h2 { font: 700 1.3125rem/1.2 var(--serif); margin: 0 0 .5rem; }
.foot ul { list-style: none; margin: 0; padding: 0; font-size: .9375rem; }
.foot li a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink-muted); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot li a:hover { color: var(--charcoal); text-decoration: underline; } }
.legal { padding-block: 1.25rem 2rem; border-top: 1px solid var(--hairline); font-size: .875rem; color: var(--ink-muted); }


/* Dev-only data toggle (mockup chrome, not part of the design) */
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; } }

/* ---------- Header search: the lupa opens a field in the header ---------- */
.hsearch { display: none; align-items: center; gap: .75rem; width: 36rem; max-width: 100%; }
.hsearch label { flex: none; font-weight: 700; color: var(--ink); }
.hsearch__box { flex: 1; min-width: 0; display: flex; height: 3rem; background: var(--card); border: 1px solid var(--ink); border-radius: 4px; overflow: hidden; }
.hsearch__box:focus-within { outline: 2px solid var(--stone); outline-offset: 2px; }
.hsearch input { flex: 1; min-width: 0; height: 100%; padding: 0 1rem; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); }
.hsearch input::placeholder { color: #767469; opacity: 1; }
.hsearch input::-webkit-search-cancel-button { display: none; }
.hsearch button[type="submit"] { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 100%; border: 0; background: var(--charcoal); color: #fff; cursor: pointer; transition: background-color .2s; }
.hsearch button[type="submit"] svg { width: 1.25rem; height: 1.25rem; }
.hsearch button[type="submit"]:active { background: var(--ink); }
@media (hover: hover) and (pointer: fine) { .hsearch button[type="submit"]:hover { background: var(--ink); } }
.hsearch__close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin-right: -.75rem; border: 0; border-radius: 9999px; background: transparent; color: var(--ink-muted); cursor: pointer; transition: background-color .2s, color .2s; }
.hsearch__close svg { width: 1.5rem; height: 1.5rem; }
.hsearch__close:active { background: var(--linen); }
@media (hover: hover) and (pointer: fine) { .hsearch__close:hover { background: var(--linen); color: var(--ink); } }
.nav__hsearch { flex: 0 1 36rem; width: auto; min-width: 0; }
.search-open .masthead .hsearch { display: flex; }
.search-open .masthead .search-btn { display: none; }
.search-open .masthead .tools { flex: 1; min-width: 0; justify-content: flex-end; }
.search-open .nav.is-stuck .nav__bar .hsearch { display: flex; margin-left: auto; }
.search-open .nav.is-stuck .nav__stages, .search-open .nav.is-stuck .nav__menu, .search-open .nav.is-stuck .nav__bar .search-btn { display: none; }
@media (max-width: 639px) {
  .search-open .masthead .menu, .search-open .masthead .brand__name, .search-open .nav.is-stuck .nav__brandname { display: none; }
  .search-open .masthead .tools { margin-left: 0; }
  .hsearch label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hsearch { gap: .25rem; }
}

/* ---------- Inner pages: category and search ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .1rem .6rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: .875rem; color: var(--ink-muted); }
.crumbs li + li::before { content: "/"; margin-right: .6rem; color: var(--ink-muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 2rem; color: var(--ink-muted); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--charcoal); text-decoration: underline; } }
.page-head { margin: 0 0 2.5rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--ink); }
.page-head h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); line-height: 1.05; letter-spacing: -.03em; max-width: 18ch; }
.page-head .dek { margin: 1rem 0 0; max-width: 58ch; font-size: 1.1875rem; color: var(--ink-muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.chips a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem; background: var(--card); border: 1px solid var(--hairline); border-radius: 4px; color: var(--ink); font-size: .9375rem; font-weight: 600; text-decoration: none; transition: border-color 160ms, opacity 120ms var(--ease-out); }
.chips a:active { opacity: .55; }
@media (hover: hover) and (pointer: fine) { .chips a:hover { border-color: var(--charcoal); } }
.chips a[aria-current] { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.chips__label { margin: 1.5rem 0 0; font-size: .875rem; color: var(--ink-muted); }
.chips__label + .chips { margin-top: .6rem; }
.pagination { margin-top: 3.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 .9rem; border: 1px solid var(--hairline); border-radius: 4px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .pagination a.page-numbers:hover { border-color: var(--charcoal); } }
.pagination a.page-numbers:active { opacity: .55; }
.pagination .page-numbers.current { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; }

.count { margin: 0 0 .5rem; font-size: .9375rem; color: var(--ink-muted); }
mark { background: rgba(243,220,138,.55); color: inherit; padding-inline: .1em; border-radius: 2px; }
.empty { padding: 3rem 0 2rem; text-align: center; }
.empty h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.empty p { margin: 0 auto 1.25rem; max-width: 46ch; color: var(--ink-muted); }
.empty .chips { justify-content: center; margin-top: 0; }

/* Search page: a warm band with the field, and results as boxes in a row */
body.search .nav-gap { display: none; }
body.search main { padding-top: 0; }
.search-band { --band: var(--linen); background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); padding: 2rem 0 2.25rem; margin-bottom: 2.5rem; }
.search-band h1 { margin: 0 0 .6rem; font-size: 1rem; line-height: 1.3; letter-spacing: 0; font-weight: 700; color: var(--ink); }
.sfield { max-width: 47rem; }
.sfield__box { display: flex; align-items: center; height: 3.5rem; background: var(--card); border: 1px solid var(--ink); border-radius: 4px; overflow: hidden; }
.sfield__box:focus-within { outline: 2px solid var(--stone); outline-offset: 2px; }
.sfield__box:has(input:placeholder-shown) .sfield__clear { display: none; }
.sfield input { flex: 1; min-width: 0; height: 100%; padding: 0 1rem 0 .25rem; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.0625rem; color: var(--ink); }
.sfield input:placeholder-shown { padding-left: 1rem; }
.sfield input::placeholder { color: #767469; opacity: 1; }
.sfield input::-webkit-search-cancel-button { display: none; }
.sfield__clear { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 100%; padding-left: .25rem; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.sfield__clear svg { width: 1.25rem; height: 1.25rem; }
.sfield__go { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 100%; border: 0; background: var(--charcoal); color: #fff; cursor: pointer; transition: background-color .2s; }
.sfield__go svg { width: 1.25rem; height: 1.25rem; }
.sfield__go:active { background: var(--ink); }
@media (hover: hover) and (pointer: fine) { .sfield__go:hover { background: var(--ink); } .sfield__clear:hover { color: var(--charcoal); } }
.count { margin: 0 0 1rem; font-size: .9375rem; color: var(--ink-muted); }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .results { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) { .results { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .results { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.results li { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--hairline); border-radius: 4px; overflow: hidden; transition: border-color 160ms; }
@media (hover: hover) and (pointer: fine) { .results li:hover { border-color: var(--charcoal); } }
.results .ph { order: -1; display: block; aspect-ratio: 16/10; padding: 0; font-size: 0; border: 0; border-bottom: 1px solid var(--hairline); border-radius: 0; }
.results li > div { padding: 1rem 1.1rem 1.25rem; }
.results h2 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.02em; margin: .4rem 0 .5rem; }
.results p { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--ink-muted); }
.results .meta { margin: 0; }

/* ==========================================================================
   WordPress additions (not in the mockup)
   ========================================================================== */
:root { --measure: 720px; }
h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
a.ph { display: block; padding: 0; overflow: hidden; }
.msub__single { display: flex; align-items: center; min-height: 3.25rem; font-weight: 600; font-size: .9375rem; letter-spacing: .06em; text-transform: uppercase; }
.support .no-img { grid-template-columns: 1fr; }
/* story cards without a photo (archive, search, related) */
.grid .story.no-img { border-top: 1px solid var(--ink); padding-top: 1rem; }

/* ==========================================================================
   Archive, search, single article and page
   ========================================================================== */
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; padding-bottom: .9rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--ink); }
.section__title { font-size: 1.75rem; }

.article { max-width: var(--measure); margin-inline: auto; }
.article__head { margin-bottom: 2rem; }
.article__title { font-size: 2.125rem; line-height: 1.12; letter-spacing: -.03em; margin-bottom: 1rem; }
@media (min-width: 1024px) { .article__title { font-size: 2.75rem; } }
.article__figure { max-width: calc(var(--measure) + 12rem); margin: 0 auto 2.5rem; }
.article__figure .thumb { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--sand); border: 1px solid var(--hairline); border-radius: 4px; }
.article__figure .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article__figure figcaption { margin-top: .6rem; font-size: .875rem; color: var(--ink-muted); }

.entry > * { max-width: 100%; }
.entry p, .entry li { max-width: 72ch; }
.entry h2 { font-size: 1.75rem; margin: 2.5em 0 .6em; }
.entry h3 { font-size: 1.375rem; margin: 2em 0 .5em; }
.entry h4 { font-size: 1.125rem; margin: 1.75em 0 .4em; }
.entry ul, .entry ol { padding-left: 1.4em; margin: 0 0 1.25em; }
.entry li { margin-bottom: .4em; }
.entry li::marker { color: var(--stone); }
.entry a { color: var(--charcoal); text-underline-offset: .2em; text-decoration-thickness: 1px; }
.entry blockquote { margin: 2em 0; padding: 1.25rem 0; border-block: 1px solid var(--hairline); font-size: 1.375rem; line-height: 1.5; color: var(--ink); }
.entry blockquote p:last-child { margin-bottom: 0; }
.entry img { border-radius: 4px; }
.entry figure { margin: 2em 0; }
.entry figcaption { margin-top: .5rem; font-size: .875rem; color: var(--ink-muted); }
.entry hr { border: 0; border-top: 1px solid var(--hairline); margin: 2.5em 0; }
.entry table { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.entry th, .entry td { padding: .65em .8em; border: 1px solid var(--hairline); text-align: start; vertical-align: top; }
.entry th { background: var(--linen); font-weight: 600; }

/* Blocks generated by the seo-automation plugin, restyled with theme tokens. */
.seo-presentation :where(th, td) { border-color: var(--hairline); }
.seo-presentation :where(th) { background: var(--linen); }
.seo-presentation :where(a) { color: var(--charcoal); }
.seo-presentation :where(a:focus-visible), .seo-table-scroll:focus-visible { outline-color: var(--charcoal); }
.seo-summary { padding: 1.25rem 1.5rem; border: 1px solid var(--hairline); border-radius: 8px; background: var(--linen); }
.seo-summary > :first-child { margin-top: 0; }
.seo-summary > :last-child { margin-bottom: 0; }

.article__foot { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--hairline); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.tags a { display: inline-block; padding: .3rem .8rem; border-radius: 9999px; background: var(--linen); border: 1px solid var(--hairline); font-size: .875rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.tags a:hover { border-color: var(--charcoal); }
.related { margin-top: 4rem; }

/* ---------- Single article ---------- */
.post__head { max-width: 56rem; }
.post__head h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); line-height: 1.07; letter-spacing: -.03em; max-width: 22ch; }
.post__dek { margin: 1.1rem 0 0; max-width: 50ch; font-size: 1.25rem; line-height: 1.5; color: var(--ink-muted); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1rem; margin: 1.5rem 0 0; font-size: .9375rem; color: var(--ink-muted); }
.post__meta a { display: inline-block; padding-block: .15rem; font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .post__meta a:hover { text-decoration: underline; } }
.post__figure { margin: 2rem 0 0; }
.post__figure .ph { aspect-ratio: 16/9; }
@media (min-width: 1024px) { .post__figure .ph, .post__figure img { aspect-ratio: 2/1; object-fit: cover; } }
.post__figure img { width: 100%; height: auto; border-radius: 4px; }
.post__figure figcaption { margin-top: .6rem; font-size: .875rem; color: var(--ink-muted); }
.post__layout { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 1024px) {
  .post__layout { grid-template-columns: minmax(0, 42rem) 15rem; justify-content: space-between; gap: 4rem; margin-top: 3.5rem; }
  .post__toc { grid-column: 2; grid-row: 1; align-self: start; }
  .post__body { grid-column: 1; grid-row: 1; }
}

.toc { font-size: .9375rem; }
.toc h2 { font: 700 1rem/1.2 var(--sans); letter-spacing: 0; margin: 0 0 .5rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.toc li { border-bottom: 1px solid var(--hairline); }
.toc a { display: flex; align-items: center; min-height: 2.75rem; padding-block: .4rem; color: var(--ink-muted); text-decoration: none; line-height: 1.35; transition: color 160ms, opacity 120ms var(--ease-out); }
.toc a:active { opacity: .55; }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--charcoal); text-decoration: underline; } }
.toc a[aria-current="true"] { color: var(--ink); font-weight: 600; }
@media (max-width: 1023px) { .toc { padding: 1.25rem 1.25rem .5rem; background: var(--linen); border: 1px solid var(--hairline); border-radius: 8px; } .toc ol { border-top-color: rgba(38,37,32,.35); } .toc li:last-child { border-bottom: 0; } }
@media (min-width: 1024px) { .toc { position: sticky; top: 6rem; } }

.prose { font-size: 1.125rem; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { max-width: 68ch; }
.prose p { margin: 0 0 1.25em; }
.prose h2 { font-size: 1.75rem; line-height: 1.2; margin: 2.6em 0 .65em; scroll-margin-top: 5.5rem; }
.prose h3 { font-size: 1.3125rem; line-height: 1.25; margin: 2em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose li::marker { color: var(--stone); }
.prose a { color: var(--charcoal); text-underline-offset: .2em; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) { .prose a:hover { text-decoration-thickness: 2px; } }
.prose blockquote { margin: 2.25em 0; padding: 1.4rem 0; border-block: 1px solid var(--ink); font: 600 1.5rem/1.4 var(--sans); letter-spacing: -.015em; text-wrap: balance; color: var(--ink); }
.prose blockquote p { margin: 0; max-width: none; }
.prose figure { margin: 2.25em 0; }
.prose figure .ph { aspect-ratio: 3/2; }
.prose figcaption { margin-top: .55rem; font-size: .875rem; line-height: 1.5; color: var(--ink-muted); }
.seo-summary { margin: 0 0 2.25em; padding: 1.5rem 1.5rem 1.25rem; background: var(--linen); border: 1px solid var(--hairline); border-radius: 8px; }
.seo-summary h2 { font-size: 1.25rem; margin: 0 0 .75rem; }
.seo-summary ul { margin: 0; padding-left: 1.2em; }
.seo-summary li { font-size: 1.0625rem; line-height: 1.55; margin-bottom: .5em; }
.seo-summary li:last-child { margin-bottom: 0; }
.seo-table-scroll { margin: 2em 0; overflow-x: auto; }
.seo-table-scroll:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.prose caption { text-align: start; font-weight: 700; margin-bottom: .6rem; }
.prose th, .prose td { padding: .75em .9em; border: 1px solid var(--hairline); text-align: start; vertical-align: top; min-width: 8ch; }
.prose th { background: var(--linen); font-weight: 600; }
.seo-image-credits { margin: 3rem 0 0; font-size: .875rem; line-height: 1.5; color: var(--ink-muted); }
.seo-image-credits p { margin: 0; }
.post__foot { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); }
.post__foot h2 { font: 700 1rem/1.2 var(--sans); letter-spacing: 0; margin: 0 0 .75rem; }
.post__foot .chips { margin-top: 0; }
.prose .seo-summary { border: 1px solid var(--butter); background: var(--butter-pale); padding: 1.5rem 1.5rem 1.25rem; }
.prose .seo-summary > :first-child { margin-top: 0; }
.prose .seo-summary > :last-child { margin-bottom: 0; }
.prose .seo-presentation { margin-block: 2em; }
.prose img { height: auto; border-radius: 4px; }
body.single .nav-gap { display: none; }
@media print { .post__toc { display: none; } }

.readmore { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .75rem; margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); }
.readmore__label { margin: 0; font-weight: 700; font-size: 1.0625rem; color: var(--ink); }
.readmore .chips { margin: 0; flex: 1 1 20rem; min-width: 0; }
.prose .chips { padding: 0; }
.prose .chips li { margin: 0; padding: 0; }

.foot__brand { display: grid; justify-items: center; align-content: start; text-align: center; }
.foot__brand .brand__name { font-size: 1.75rem; }
.foot .foot__brand p.about { margin: 1rem auto 0; }
.foot__logo { width: 7rem; height: 7rem; margin-top: 1.75rem; }

/* ---------- Static pages (About, Contact, Editorial policy, Privacy) ---------- */
.page__head { max-width: 56rem; margin: 0 0 2.5rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--ink); }
.page__head h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); line-height: 1.05; letter-spacing: -.03em; max-width: 18ch; }
.page__head .dek { margin: 1rem 0 0; max-width: 52ch; font-size: 1.1875rem; color: var(--ink-muted); }
.page__layout { display: grid; gap: 2.5rem; }

@media (min-width: 1024px) {
  .page__layout { grid-template-columns: minmax(0, 42rem) 15rem; justify-content: space-between; gap: 4rem; }
  .page__nav { order: 0; grid-column: 2; grid-row: 1; align-self: start; position: sticky; top: 6rem; }
  .page__body { grid-column: 1; grid-row: 1; }
}
.page__nav h2 { font: 700 1rem/1.2 var(--sans); letter-spacing: 0; margin: 0 0 .5rem; }
.page__nav ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); font-size: .9375rem; }
.page__nav li { border-bottom: 1px solid var(--hairline); }
.page__nav a { display: flex; align-items: center; min-height: 2.75rem; color: var(--ink-muted); text-decoration: none; transition: color 160ms, opacity 120ms var(--ease-out); }
.page__nav a:active { opacity: .55; }
@media (hover: hover) and (pointer: fine) { .page__nav a:hover { color: var(--charcoal); text-decoration: underline; } }
.page__nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.page__layout--single { grid-template-columns: minmax(0, 42rem); }
body.page .nav-gap { display: none; }

/* ---------- Contact form ---------- */
.cform { display: grid; gap: 1.25rem; max-width: 36rem; margin: 1.75rem 0 2.5rem; }
.cform__row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .cform__row { grid-template-columns: 1fr 1fr; } }
.cform label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .9375rem; color: var(--ink); }
.cform .opt { font-weight: 400; color: var(--ink-muted); }
.cform input, .cform select, .cform textarea { width: 100%; min-height: 3rem; padding: .65rem 1rem; font: inherit; font-size: 1.0625rem; color: var(--ink); background: var(--card); border: 1px solid var(--ink); border-radius: 4px; }
.cform textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.cform select { appearance: none; padding-right: 2.75rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23262520' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 1.25rem; }
.cform input:focus-visible, .cform select:focus-visible, .cform textarea:focus-visible { outline: 2px solid var(--stone); outline-offset: 2px; }
.cform input::placeholder, .cform textarea::placeholder { color: #767469; opacity: 1; }
.cform [aria-invalid="true"] { border-width: 2px; }
.cform__hint { margin: .35rem 0 0; font-size: .875rem; color: var(--ink-muted); }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform .btn { justify-self: start; cursor: pointer; }
.cform__note { margin: 0; font-size: .875rem; color: var(--ink-muted); }
.cform__msg { max-width: 36rem; margin: 1.75rem 0 0; padding: 1rem 1.25rem; border-radius: 8px; font-weight: 600; }
.cform__msg p { margin: 0; }
.cform__msg--ok { background: var(--butter-pale); border: 1px solid var(--butter); }
.cform__msg--err { background: var(--linen); border: 1px solid var(--ink); }

body.error404 .nav-gap { display: none; }
.nf { display: grid; justify-items: center; text-align: center; padding-block: 0 1rem; }
.nf__hero { display: grid; justify-items: center; width: 100%; max-width: 44rem; margin-top: 1rem; padding: 3rem 1.5rem 3.25rem; background: var(--sand); border-radius: 8px; }
.nf__icon { width: clamp(6rem, 5rem + 6vw, 9rem); height: auto; color: var(--ink-muted); }
.nf h1 { margin-top: 1.5rem; font-size: clamp(2.5rem, 1.6rem + 3.5vw, 4.25rem); line-height: 1.05; letter-spacing: -.03em; }
.nf__text { max-width: 38ch; margin: 1rem 0 0; font-size: 1rem; color: var(--ink-muted); }
.nf .sfield { width: 100%; max-width: 36rem; margin-top: 2.5rem; text-align: start; }
.nf > p:last-child { margin: 2rem 0 0; }
body.error404 main { padding-top: 0; padding-bottom: 4rem; }

@media (pointer: coarse) { .crumbs a { min-height: 2.75rem; } }

/* ---------- Polish: values grid, growth ticks, image hover, motion ---------- */
@media (min-width: 900px) {
  .ruler li:nth-child(2) a { --k: 1; } .ruler li:nth-child(3) a { --k: 2; } .ruler li:nth-child(4) a { --k: 3; }
  .ruler li:nth-child(5) a { --k: 4; } .ruler li:nth-child(6) a { --k: 5; } .ruler li:nth-child(7) a { --k: 6; }
}
.prose .values { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.75rem 2.25rem; margin: 1.5rem 0 2rem; }
.prose .values > div { padding-top: 1rem; border-top: 1px solid var(--ink); }
.prose .values h3 { margin: 0 0 .4rem; font-size: 1.25rem; }
.prose .values p { margin: 0; max-width: none; font-size: 1rem; line-height: 1.55; color: var(--ink-muted); }
.story .ph img, .results .ph img { transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .story:hover .ph img, .results li:hover .ph img { transform: scale(1.03); } }
@media (prefers-reduced-motion: no-preference) {
  @keyframes menu-in { from { opacity: 0; transform: translateY(8px); } }
  @keyframes hsearch-in { from { opacity: 0; transform: translateX(8px); } }
  @keyframes crack-draw { from { stroke-dashoffset: 1; } }
  .menu[open] > .menu__panel { animation: menu-in 220ms var(--ease-out); }
  .search-open .hsearch { animation: hsearch-in 180ms var(--ease-out); }
  .nf__crack { stroke-dasharray: 1; stroke-dashoffset: 0; animation: crack-draw 700ms var(--ease-out) 250ms backwards; }
  @supports selector(::details-content) {
    :root { interpolate-size: allow-keywords; }
    .msub::details-content { block-size: 0; overflow: clip; transition: block-size 220ms var(--ease-out), content-visibility 220ms allow-discrete; }
    .msub[open]::details-content { block-size: auto; }
  }
}

.cat-banner { margin: 1.75rem 0 0; }
.cat-banner .ph { aspect-ratio: 2 / 1; padding: 0; overflow: hidden; }
.cat-banner img { width: 100%; height: 100%; object-fit: cover; }
.cat-banner figcaption { margin-top: .5rem; font-size: .8125rem; color: var(--ink-muted); }
@media (min-width: 900px) { .cat-banner .ph { aspect-ratio: 7 / 2; } }

/* Category pages: image first, then the title and description centred */
.page-head--cat { text-align: center; }
.page-head--cat .cat-banner { margin: 0 0 2rem; text-align: start; }
.page-head--cat .crumbs ol { justify-content: center; }
.page-head--cat h1 { margin-top: .25rem; max-width: none; font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.page-head--cat .dek { margin: 1.25rem auto 0; max-width: 46ch; }
.page-head--cat .chips { justify-content: center; }

@media print {
  header, .nav, .nav-gap, footer, .pagination, .related { display: none; }
  body { background: #fff; font-size: 12pt; }
}
