/* =========================================================
   VSITS Theme — Main Stylesheet  v2.0
   Design: Hybrid A/B — Editorial Paper + Data Discipline
   Tokens from hybrid-tokens.css via Claude Design round 2
   ========================================================= */

/* ---------------------------------------------------------
   1. Design Tokens
   --------------------------------------------------------- */
:root {
    /* Type stacks */
    --serif: 'Newsreader', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    --sans:  'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    /* Aliases for legacy template references */
    --font-serif: var(--serif);
    --font-sans:  var(--sans);
    --font-mono:  var(--mono);

    /* Editorial Paper palette — OKLCH for predictable lightness shifts */
    --paper:        oklch(0.985 0.005 85);   /* page background */
    --paper-2:      oklch(0.965 0.008 85);   /* sidebars, inset cards */
    --paper-3:      oklch(0.945 0.012 85);   /* hover, masthead strip */
    --paper-rule:   oklch(0.88 0.012 85);    /* hairlines */
    --paper-rule-2: oklch(0.78 0.015 85);    /* stronger rules */

    --ink:          oklch(0.20 0.012 270);   /* primary text */
    --ink-2:        oklch(0.42 0.012 270);   /* secondary text, body dek */
    --ink-3:        oklch(0.58 0.010 270);   /* metadata */
    --ink-4:        oklch(0.72 0.008 270);   /* faint dividers */

    --copper:       oklch(0.55 0.13 50);     /* accent — links, ticks, tags */
    --copper-2:     oklch(0.48 0.14 50);     /* hover */
    --copper-soft:  oklch(0.92 0.04 50);     /* subscribe band, soft fills */

    /* Data treatment */
    --data-pos:     oklch(0.58 0.13 145);    /* positive deltas */
    --data-neg:     oklch(0.55 0.18 25);     /* negative deltas */

    /* Legacy aliases — keep for template compatibility */
    --rule:         var(--paper-rule);
    --rule2:        var(--paper-rule-2);
    --accent:       var(--copper);
    --accent-soft:  var(--copper-soft);
    --highlight:    var(--paper-3);

    /* Spacing — 8px grid */
    --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
    --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

    /* Layout */
    --max-width:     1280px;
    --content-width: 68ch;
    --gutter:        56px;
}

/* ---------------------------------------------------------
   2. Reset & Base
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
    line-height: 1.5;
    overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; transition: color .2s; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }

/* ---------------------------------------------------------
   3. Type Primitives  (from hybrid-tokens)
   --------------------------------------------------------- */

/* Eyebrow / label */
.cap {
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 500;
}

/* Monospace tabular numerals — used for ALL numbers */
.num {
    font-family: var(--mono);
    font-feature-settings: "tnum" 1, "ss01" 1, "zero" 1;
    font-variant-numeric: tabular-nums slashed-zero;
}

/* Metadata row dot separator */
.dot {
    display: inline-block;
    width: 3px; height: 3px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.5;
    vertical-align: middle;
    margin: 0 8px;
}

/* ---------------------------------------------------------
   4. Layout
   --------------------------------------------------------- */
.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 999;
    background: var(--copper);
    color: var(--paper);
    padding: 0.5rem 1rem;
    font-size: 13px;
    font-family: var(--mono);
}
.skip-link:focus { top: 0; }

/* ---------------------------------------------------------
   5. Header — Nav
   --------------------------------------------------------- */
.site-header {
    border-bottom: 1px solid var(--paper-rule);
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Brand */
.site-branding {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.site-name {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.site-name .accent { color: var(--copper); }

.site-tagline {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-3);
    padding-left: 14px;
    border-left: 1px solid var(--paper-rule);
}

/* Primary Nav */
.primary-nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    font-family: var(--sans);
    font-size: 13px;
}

.primary-nav a { color: var(--ink-2); }
.primary-nav a:hover { color: var(--ink); }

.primary-nav .current-menu-item a,
.primary-nav .current_page_item a { color: var(--ink); font-weight: 500; }

/* Subscribe CTA in nav */
.primary-nav .nav-subscribe a {
    color: var(--ink);
    font-weight: 500;
}
.primary-nav .nav-subscribe a:hover { color: var(--copper); }

/* Mobile toggle */
.menu-toggle {
    display: none;
    padding: 4px;
    color: var(--ink);
}

/* ---------------------------------------------------------
   6. Masthead Strip — live readings below the nav
   --------------------------------------------------------- */
.masthead-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px var(--gutter);
    background: var(--paper-3);
    border-bottom: 1px solid var(--paper-rule);
    flex-wrap: wrap;
    gap: 16px;
}

.masthead-reading {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.masthead-reading .r-key {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-3);
}

.masthead-reading .r-val {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    font-feature-settings: "tnum" 1, "zero" 1;
}

.masthead-reading .r-sub {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--ink-3);
}

/* ---------------------------------------------------------
   7. Buttons
   --------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
}
.btn-primary {
    background: var(--ink);
    color: var(--paper);
    border: none;
}
.btn-primary:hover { background: var(--copper); color: var(--paper); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--paper-rule-2);
}
.btn-ghost:hover { border-color: var(--ink); }

/* ---------------------------------------------------------
   8. Front Page Hero
   --------------------------------------------------------- */
.home-hero {
    padding: 72px var(--gutter) 64px;
    border-bottom: 1px solid var(--paper-rule);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: flex-end;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-eyebrow .tick {
    width: 6px; height: 6px;
    border-radius: 999px;
    background: var(--copper);
    flex-shrink: 0;
}

.hero-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 72px;
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0;
}

.hero-title em {
    font-style: italic;
    color: var(--copper);
}

.hero-lede {
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.55;
    color: var(--ink-2);
    margin-top: 28px;
    max-width: 640px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hero-byline {
    margin-top: 28px;
}

/* Hero stat sidebar */
.hero-stat-sidebar {
    background: var(--paper-2);
    border: 1px solid var(--paper-rule);
    padding: 28px;
    border-radius: 6px;
}

.hero-stat-sidebar .sidebar-cap {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-3);
    margin-bottom: 20px;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 24px;
}

.hero-stat-val {
    font-family: var(--serif);
    font-size: 52px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums slashed-zero;
}

.hero-stat-label {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-3);
    margin-top: 6px;
}

.hero-data-rows {
    border-top: 1px solid var(--paper-rule);
    padding-top: 16px;
}

.hero-data-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    padding: 10px 0;
    gap: 14px;
    align-items: baseline;
    border-top: 1px dashed var(--paper-rule);
}
.hero-data-row:first-child { border-top: none; }

.hero-data-row .row-num {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink);
    font-weight: 500;
    font-feature-settings: "tnum" 1, "zero" 1;
}

.hero-data-row .row-label {
    font-size: 12px;
    color: var(--ink-2);
    line-height: 1.45;
}

/* ---------------------------------------------------------
   9. Live Readings Band
   --------------------------------------------------------- */
.live-readings {
    padding: 32px var(--gutter) 36px;
    background: var(--readings-bg);
    color: var(--readings-fg);
}

.readings-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 22px;
}

.readings-header .readings-title {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--copper);
}

.readings-header .readings-ts {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--readings-ts);
    font-feature-settings: "tnum" 1;
}

.readings-header .readings-source {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.readings-header .readings-source:hover,
.readings-header .readings-source:focus-visible {
    opacity: 0.7;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.readings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.reading-item {
    padding: 18px 24px 18px 0;
    border-top: 1px solid var(--readings-rule);
}
.reading-item:nth-child(n+2) { padding-left: 24px; }
.reading-item:not(:nth-child(3n)) { border-right: 1px solid var(--readings-rule-soft); }
.reading-item:nth-child(3n+1) { padding-left: 0; }

.reading-key {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--readings-meta);
    margin-bottom: 8px;
    font-feature-settings: "tnum" 1;
}

.reading-val-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.reading-val {
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--readings-fg);
    font-variant-numeric: tabular-nums slashed-zero;
}

.reading-delta {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--readings-desc); /* muted by default — fallback state */
}
/* Live data only: green for positive, red for negative.
   When .readings-grid has .is-fallback, deltas stay muted so a
   stale "+14pt" doesn't read as fresh-and-good via color. */
.readings-grid:not(.is-fallback) .reading-delta { color: oklch(0.82 0.13 145); }
.readings-grid:not(.is-fallback) .reading-delta.neg { color: oklch(0.78 0.16 25); }

.reading-desc {
    font-size: 12px;
    color: var(--readings-desc);
    margin-top: 6px;
    font-family: var(--sans);
}

/* ---------------------------------------------------------
   10. Dispatch Cards  (home + post index)
   --------------------------------------------------------- */
.dispatches-section {
    padding: 56px var(--gutter) 80px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.dispatches-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 14px;
    margin-bottom: 4px;
}

.dispatches-head h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 32px;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.dispatches-head .all-link {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-2);
}

.dispatch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 56px;
}

/* Individual dispatch card */
.dispatch-card {
    padding-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

/* Left-column cards draw the vertical rule.
   NOTE: margin-right: -56px collapses the column-gap so the border
   lands at the midpoint. This only works for exactly 2 columns —
   if the grid ever changes to 3 cols, remove the negative margin
   and use a pseudo-element border instead. */
.dispatch-card:nth-child(odd) {
    padding-left: 16px;
    padding-right: 56px;
    border-right: 1px solid var(--paper-rule);
    margin-right: -56px;
}

/* Right-column cards need breathing room from the rule */
.dispatch-card:nth-child(even) {
    padding-left: 32px;
}

.dispatch-meta {
    display: flex;
    align-items: center;
    font-size: 0;
}

.dispatch-n { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.dispatch-tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--copper); }
.dispatch-mins { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

.dispatch-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.dispatch-title:hover { color: var(--copper); }

.dispatch-dek {
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-2);
}

.dispatch-date { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 4px; }

/* ---------------------------------------------------------
   11. Services Section
   --------------------------------------------------------- */
.services-section {
    padding: 72px var(--gutter);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: flex-start;
    border-top: 1px solid var(--paper-rule);
    max-width: var(--max-width);
    margin: 0 auto;
}

.services-intro .s-eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--copper);
    margin-bottom: 14px;
}

.services-intro h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.services-intro p {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.55;
    color: var(--ink-2);
    margin-top: 22px;
    max-width: 480px;
}

.services-list {
    list-style: none;
    border-top: 1px solid var(--paper-rule-2);
}

.service-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--paper-rule);
    align-items: baseline;
}

.service-n {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--copper);
    font-feature-settings: "tnum" 1;
}

.service-title {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--ink);
    margin-bottom: 4px;
}

.service-desc {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.5;
}

.service-meta {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-3);
    margin-right: 10px;
}

.service-arrow { font-size: 13px; color: var(--ink-3); }

/* ---------------------------------------------------------
   12. Subscribe Band
   --------------------------------------------------------- */
.subscribe-section {
    padding: 64px var(--gutter);
    background: var(--copper-soft);
    border-top: 1px solid var(--paper-rule);
    border-bottom: 1px solid var(--paper-rule);
}

.subscribe-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.subscribe-inner.compact { padding-top: 40px; padding-bottom: 40px; }

.subscribe-label {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--copper);
    margin-bottom: 12px;
}

.subscribe-headline {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.subscribe-form {
    display: flex;
    gap: 8px;
}

.subscribe-form input[type="email"] {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--ink-2);
    background: var(--paper);
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink);
    outline: none;
    border-radius: 4px;
}
.subscribe-form input[type="email"]:focus {
    border-color: var(--ink);
}

.subscribe-form button {
    padding: 14px 22px;
    background: var(--ink);
    color: var(--paper);
    border: none;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s;
}
.subscribe-form button:hover { background: var(--copper); }

/* ---------------------------------------------------------
   13. Site Footer
   --------------------------------------------------------- */
.site-footer {
    padding: 48px var(--gutter) 36px;
    background: var(--paper-2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto 36px;
}

.footer-brand .site-name { font-size: 22px; }

.footer-brand p {
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-2);
    margin-top: 12px;
    max-width: 360px;
}

.footer-col h4 {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ink-3);
    margin-bottom: 12px;
}

.footer-col ul { list-style: none; }
.footer-col li { padding: 5px 0; }
.footer-col a { color: var(--ink-2); font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--copper); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 18px;
    border-top: 1px solid var(--paper-rule);
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-3);
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-legal { display: flex; gap: 24px; }
.footer-bottom a { color: var(--ink-3); transition: color .2s; }
.footer-bottom a:hover { color: var(--copper); }

/* ---------------------------------------------------------
   13b. Studio Pull Quote
   --------------------------------------------------------- */
.studio-quote-wrap {
    padding: 56px var(--gutter);
    border-bottom: 1px solid var(--paper-rule);
    max-width: var(--max-width);
    margin: 0 auto;
}

.studio-quote {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.35;
    color: var(--ink);
    border-left: 3px solid var(--copper);
    padding: 4px 0 4px 32px;
    max-width: 72ch;
    margin: 0;
}

.studio-quote-attribution {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-3);
    padding-left: 35px;
    margin-top: 18px;
}

.studio-quote-attribution .provenance {
    margin-left: 12px;
    cursor: help;
    opacity: 0.6;
    text-decoration: none;
    color: inherit;
}

/* ---------------------------------------------------------
   14. Byline Component
   --------------------------------------------------------- */
.byline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.byline-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--paper-3);
    border: 1px solid var(--paper-rule);
    font-family: var(--serif);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.byline-info { display: flex; flex-direction: column; gap: 2px; }

.byline-name {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
}

.byline-meta {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-3);
    font-feature-settings: "tnum" 1;
}

/* ---------------------------------------------------------
   15. Single Post / Article Template
   --------------------------------------------------------- */
.single-post { padding: 0 0 5rem; }

/* Article header */
.article-header {
    padding: 72px var(--gutter) 48px;
    border-bottom: 1px solid var(--paper-rule);
}

.article-header-inner {
    max-width: 980px;
    margin: 0 auto;
}

.article-meta-row {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.article-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 64px;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.article-title em { font-style: italic; color: var(--copper); }

.article-dek {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.5;
    color: var(--ink-2);
    font-weight: 300;
    max-width: 720px;
    margin-top: 24px;
}

.article-header-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.article-share-btns {
    display: flex;
    gap: 8px;
}

.share-btn {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-2);
    background: var(--paper);
    border: 1px solid var(--paper-rule-2);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.share-btn:hover { border-color: var(--ink); color: var(--ink); }

/* 3-column article body */
.article-body {
    padding: 64px var(--gutter);
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: 48px;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Left sidebar — TOC */
.article-sidebar-left {
    position: sticky;
    top: 24px;
    align-self: flex-start;
    font-size: 12px;
}

.sidebar-cap {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-3);
    margin-bottom: 14px;
}

.article-toc {
    list-style: none;
    border-left: 1px solid var(--paper-rule);
}

.article-toc li {
    padding: 8px 14px;
    color: var(--ink-2);
}

.article-toc li.active {
    border-left: 2px solid var(--copper);
    margin-left: -1px;
    color: var(--ink);
}

.toc-n { font-family: var(--mono); color: var(--ink-3); margin-right: 8px; }

.reading-meta { display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); margin-top: 8px; }
.reading-meta .num { color: var(--ink-3); }

/* Main article column */
.article-main {
    max-width: 68ch;
}

/* Right sidebar — citations */
.article-sidebar-right {
    position: sticky;
    top: 24px;
    align-self: flex-start;
}

.citations-list { list-style: none; }
.citation-item {
    padding: 10px 0;
    border-top: 1px solid var(--paper-rule);
}

.citation-title {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
}

.citation-meta { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* Post content — article body styles */
.post-content { font-size: 19px; line-height: 1.65; color: var(--ink); overflow-wrap: break-word; }
.post-content > * + * { margin-top: 1.5em; }
.post-content img { max-width: 100%; height: auto; }

.post-content p { font-family: var(--serif); }

.post-content .lede {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 300;
    color: var(--ink-2);
    line-height: 1.6;
}

.post-content h2 {
    font-family: var(--serif);
    font-size: 34px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-top: 56px;
    margin-bottom: 20px;
}

.post-content h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    margin-top: 36px;
    margin-bottom: 12px;
}

.post-content h4 {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.post-content a {
    color: var(--copper);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.post-content a:hover { color: var(--copper-2); }

.post-content ul { padding-left: 1.5em; list-style: disc; }
.post-content ol { padding-left: 1.5em; list-style: decimal; }
.post-content li + li { margin-top: 0.375em; }
.post-content li::marker { color: var(--copper); }
.post-content strong { font-weight: 600; color: var(--ink); }
.post-content em { font-style: italic; }

/* Monospace treatment for inline numbers in article text */
.post-content .num {
    font-family: var(--mono);
    font-feature-settings: "tnum" 1, "zero" 1;
    font-variant-numeric: tabular-nums slashed-zero;
    color: var(--ink);
    font-weight: 500;
}

/* Code */
.post-content code {
    font-family: var(--mono);
    font-size: 0.85em;
    background: var(--paper-3);
    color: var(--copper);
    padding: 2px 6px;
    border-radius: 3px;
}

.post-content pre {
    background: var(--paper-3);
    color: var(--ink);
    padding: 20px 22px;
    border-radius: 4px;
    border: 1px solid var(--paper-rule);
    overflow-x: auto;
    margin: 20px 0;
}

.post-content pre code {
    background: none;
    color: var(--ink);
    padding: 0;
    font-size: 13px;
    line-height: 1.6;
}

/* Blockquote — pull quote style */
.post-content blockquote {
    font-family: var(--serif);
    font-style: italic;
    font-size: 26px;
    line-height: 1.35;
    color: var(--ink);
    border-left: 3px solid var(--copper);
    padding: 4px 0 4px 24px;
    margin: 40px 0;
    max-width: 60ch;
}

.post-content blockquote p { font-size: inherit; line-height: inherit; }

/* Update callout component */
.update-callout {
    border-left: 2px solid var(--copper);
    background: var(--paper-3);
    padding: 12px 16px;
    margin: 20px 0;
    font-family: var(--serif);
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.55;
}

.update-callout .update-label {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--copper);
    margin-bottom: 6px;
}

/* Figure & caption */
.post-content figure { margin: 36px 0; }
.post-content figcaption {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-3);
    text-align: center;
    margin-top: 10px;
    font-feature-settings: "tnum" 1;
}

/* Footnotes */
.post-content sup {
    color: var(--copper);
    font-family: var(--mono);
    font-size: 11px;
    margin-left: 2px;
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--paper-rule);
    margin: 48px 0 24px;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin: 2em 0;
}

.post-content th {
    text-align: left;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--ink);
}

.post-content td {
    font-family: var(--serif);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--paper-rule);
    vertical-align: top;
    font-size: 17px;
    line-height: 1.5;
}

.post-content tr:last-child td { border-bottom: none; }
.post-content tr:hover td { background: var(--paper-3); }

/* Post footer (tags + nav) */
.post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--paper-rule);
    max-width: 68ch;
    margin-left: auto;
    margin-right: auto;
}

.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }

.post-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--paper-rule);
    border-radius: 2px;
    transition: border-color .2s, color .2s;
}
.post-tag:hover { border-color: var(--copper); color: var(--copper); }

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.post-nav-item {
    padding: 1.25rem;
    border: 1px solid var(--paper-rule);
    transition: border-color .2s;
    border-radius: 4px;
}
.post-nav-item:hover { border-color: var(--ink); }
.post-nav-item.post-nav--next { text-align: right; }

.post-nav-label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    display: block;
    margin-bottom: 0.5rem;
}

.post-nav-title {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.35;
}

.post-nav-item a { color: inherit; }
.post-nav-item a:hover .post-nav-title { color: var(--copper); }

/* "Read next" block after article */
.article-next {
    padding: 56px var(--gutter);
    border-top: 1px solid var(--paper-rule);
    background: var(--paper-2);
}

.article-next .next-eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--copper);
    margin-bottom: 22px;
}

.article-next .next-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ---------------------------------------------------------
   16. Blog Archive / Index
   --------------------------------------------------------- */
.archive-header {
    padding: 56px var(--gutter) 32px;
    border-bottom: 1px solid var(--paper-rule);
}

.archive-eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--copper);
    margin-bottom: 14px;
}

.archive-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 60px;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.archive-title em { font-style: italic; color: var(--copper); }

.archive-dek {
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink-2);
    margin-top: 18px;
    max-width: 720px;
}

/* Stats rail */
.archive-rail {
    padding: 20px var(--gutter);
    background: var(--paper-3);
    display: flex;
    justify-content: space-between;
    gap: 32px;
    border-bottom: 1px solid var(--paper-rule);
    flex-wrap: wrap;
}

.rail-stat {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.rail-stat-val {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums slashed-zero;
}

.rail-stat-label {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-3);
}

/* Post list rows */
.post-list { list-style: none; }
.post-list li { padding: 0 var(--gutter); }

.post-row {
    display: grid;
    grid-template-columns: 70px 140px 1fr 240px 80px;
    gap: 28px;
    padding: 28px 0;
    border-top: 1px solid var(--paper-rule);
    align-items: baseline;
    transition: background .2s;
    cursor: pointer;
}

.post-row:hover { background: var(--paper-3); }

.post-num { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

.post-cat {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--copper);
}

.post-row .post-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 6px;
}

.post-row .post-excerpt {
    font-family: var(--serif);
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.5;
}

.post-row-meta {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-3);
    line-height: 1.7;
    font-feature-settings: "tnum" 1;
}

.post-mins { font-family: var(--mono); font-size: 12px; color: var(--ink-2); text-align: right; }

/* Archive pagination */
.archive-pagination {
    padding: 28px var(--gutter);
    border-top: 1px solid var(--paper-rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination-count { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

.pagination {
    padding: 3rem 0 2rem;
    font-family: var(--mono);
    font-size: 12px;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    white-space: nowrap;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid transparent;
    color: var(--ink-3);
    transition: all .2s;
    border-radius: 4px;
}
.pagination .page-numbers:hover { border-color: var(--paper-rule); color: var(--ink); }
.pagination .page-numbers.current {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.pagination .page-numbers.dots { border: none; }

/* ---------------------------------------------------------
   17. Pages (About, Services, Contact)
   --------------------------------------------------------- */
.page-content { padding: 5rem 0; }

.page-title-wrap {
    padding-bottom: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--paper-rule);
}

.page-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 1rem;
}

h1.page-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: -0.03em;
    line-height: 1.0;
    color: var(--ink);
}

.page-body { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.page-body > * + * { margin-top: 1.5em; }
.page-body a { color: var(--copper); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------
   18. 404 & Search
   --------------------------------------------------------- */
.error-404, .search-results { padding: 8rem var(--gutter); text-align: center; }

.error-code {
    font-family: var(--serif);
    font-size: 7rem;
    font-weight: 300;
    color: var(--paper-rule);
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
}

.error-404 h1 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.75rem;
}
.error-404 p { color: var(--ink-3); margin-bottom: 2rem; font-family: var(--mono); font-size: 13px; }

/* ---------------------------------------------------------
   19. Animations
   --------------------------------------------------------- */
@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.rise     { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.rise.d1  { animation-delay: .1s; }
.rise.d2  { animation-delay: .25s; }
.rise.d3  { animation-delay: .4s; }
.rise.d4  { animation-delay: .55s; }

/* ---------------------------------------------------------
   20. Responsive
   --------------------------------------------------------- */
@media (max-width: 1100px) {
    :root { --gutter: 40px; }
    .article-body { grid-template-columns: 180px 1fr 180px; gap: 32px; }
    .hero-title { font-size: 56px; }
    .services-section { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
    :root { --gutter: 24px; }

    .primary-nav { display: none; }
    .site-tagline { display: none; }
    .menu-toggle { display: flex; }
    .site-header { position: relative; }

    .primary-nav.is-open {
        display: block;
        position: absolute;
        top: 61px;
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--paper-rule);
        padding: 1rem 2rem;
        z-index: 49;
    }
    .primary-nav.is-open ul { flex-direction: column; gap: 0.5rem; }

    .masthead-strip { display: none; }

    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-stat-sidebar { display: none; }
    .hero-title { font-size: 48px; }

    .readings-grid { grid-template-columns: repeat(2, 1fr); }
    /* Reset 3-col padding rules from base styles, then redo for 2-col.
       Without this, item 4 lands flush-left (was leftmost in 3-col, isn't in 2-col). */
    .reading-item                 { padding-left: 24px; }
    .reading-item:nth-child(2n+1) { padding-left: 0; }
    .reading-item:not(:nth-child(3n)) { border-right: none; }
    .reading-item:not(:nth-child(2n)) { border-right: 1px solid var(--readings-rule-soft); }

    .dispatch-grid { grid-template-columns: 1fr; }
    .dispatch-card:nth-child(odd) { padding-right: 0; border-right: none; margin-right: 0; }

    .dispatches-head { flex-direction: column; align-items: flex-start; gap: 8px; }

    .services-section { grid-template-columns: 1fr; }

    .subscribe-inner { grid-template-columns: 1fr; }
    .subscribe-headline { font-size: 26px; }
    .subscribe-form { flex-direction: column; }
    .subscribe-form button { width: 100%; }

    .article-body { grid-template-columns: minmax(0, 1fr); }
    .article-main { min-width: 0; }
    .article-sidebar-left,
    .article-sidebar-right { display: none; }
    .article-title { font-size: 44px; }

    /* Keep wide tables from pushing the whole page past the viewport. */
    .post-content table { display: block; overflow-x: auto; max-width: 100%; }
    .post-content { hyphens: auto; }

    .archive-title { font-size: 44px; }
    .archive-rail { gap: 16px; }

    .post-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
    .post-num, .post-cat { padding-top: 0; }
    .post-row-meta { display: flex; gap: 16px; flex-wrap: wrap; }
    .post-mins { text-align: left; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .article-next .next-grid { grid-template-columns: 1fr; gap: 32px; }
    .post-nav { grid-template-columns: 1fr; }

    .archive-pagination { flex-direction: column; align-items: flex-start; gap: 12px; }
    .pagination { padding: 0; }

    .about-thesis-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
    .about-stats-grid  { grid-template-columns: repeat(2, 1fr) !important; gap: 24px !important; }
    .about-stat-value  { font-size: 38px !important; }
    .about-team-grid   { grid-template-columns: 1fr !important; }

    .services-layout     { grid-template-columns: 1fr !important; gap: 40px !important; }
    .services-steps-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .services-hero-title { font-size: 36px !important; }
    .service-item-row    { flex-direction: column !important; align-items: flex-start !important; gap: 4px; }
    .contact-hero-title      { font-size: 36px !important; }
    .contact-email-address   { font-size: 18px !important; padding: 12px 20px !important; }
}

@media (max-width: 560px) {
    :root { --gutter: 20px; }
    .hero-title { font-size: 36px; }
    .archive-title { font-size: 36px; }
    .article-title { font-size: 32px; }
    .post-content { font-size: 17px; }

    /* Tighter tables: less padding, smaller type, no-wrap on numeric values
       so the value column doesn't break. Labels still wrap. */
    .post-content th { padding: 0.5rem 0.625rem; font-size: 9px; }
    .post-content td { padding: 0.5rem 0.625rem; font-size: 14px; line-height: 1.4; }
    .post-content td + td { white-space: nowrap; }
    .readings-grid { grid-template-columns: 1fr; }
    /* 1-col: every item is leftmost; reset both padding and right-border. */
    .reading-item { padding-left: 0; border-right: none; }
    .footer-grid { grid-template-columns: 1fr; }
}
/* =========================================================
   APPEND TO assets/css/main.css — Section 21
   Page Section Utilities
   =========================================================
   This block consolidates the inline padding / max-width /
   border patterns that were duplicated across page-about.php,
   page-services.php, and page-contact.php. Add at the END of
   main.css, AFTER section 20 (Responsive) and BEFORE the
   closing media queries — actually, append at the very end;
   the responsive block at 880px overrides any conflicts.
   ========================================================= */

/* ---------------------------------------------------------
   21. Page Section Utilities
   --------------------------------------------------------- */

/* Hero block — used as the first <section> on About, Services, Contact.
   Replaces inline:  padding: 72px var(--gutter) 48px; max-width: var(--max-width); margin: 0 auto;
*/
.page-hero {
    padding: 80px var(--gutter) 48px;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Tighter top padding when the hero leads directly into a section
   with its own top border (e.g. services methodology). */
.page-hero--tight-bottom { padding-bottom: 24px; }

/* Hero title — common large serif treatment. Pages can still override
   max-width inline (services uses 18ch, about uses 18ch too, contact
   centers and uses none). */
.page-hero-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(44px, 5.5vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0;
}
.page-hero-title em {
    font-style: italic;
    color: var(--copper);
}

/* Hero lede paragraph */
.page-hero-lede {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.55;
    color: var(--ink-2);
    margin-top: 32px;
    max-width: 60ch;
}

/* Generic page-eyebrow — replaces inline `cap` + `color: var(--copper); margin-bottom: 18px` */
.page-eyebrow {
    color: var(--copper);
    margin-bottom: 18px;
}

/* Section eyebrow — softer color for section dividers (the "By the numbers"
   eyebrow, "How an engagement runs", etc.) */
.section-eyebrow {
    color: var(--ink-3);
    margin-bottom: 28px;
}

/* Standard page section — consistent vertical rhythm + max-width centering.
   Replaces:  padding: 64px var(--gutter); max-width: var(--max-width); margin: 0 auto; */
.page-section {
    padding: 64px var(--gutter);
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Variant: pulled tight to the section above (no top padding doubling). */
.page-section--tight-top { padding-top: 0; }

/* Variant: inset background — paper-2, full-bleed visually but content stays
   inside max-width via .page-band-inner. Used for the studio-quote band on
   About and the engagement-steps band on Services. */
.page-section--inset {
    background: var(--paper-2);
    padding: 48px var(--gutter);
    max-width: none;          /* allow full-bleed */
    margin: 0;
}

/* Full-bleed band (no max-width on outer; .page-band-inner re-centers). */
.page-band {
    padding: 64px var(--gutter);
}
.page-band--inset {
    background: var(--paper-2);
}
.page-band-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Hairline rule helpers — replace inline border-top/border-bottom.
   Use on any section that needs paper-rule top/bottom dividers. */
.section-rule-top    { border-top: 1px solid var(--paper-rule); }
.section-rule-bottom { border-bottom: 1px solid var(--paper-rule); }

/* ---------------------------------------------------------
   21b. Stat grids
   --------------------------------------------------------- */

/* Generic stat-row grid. Modifiers control column count.
   Replaces inline:
     display: grid; grid-template-columns: repeat(N, 1fr); gap: 40px;
*/
.stat-grid {
    display: grid;
    gap: 40px;
}
.stat-grid--2 { grid-template-columns: repeat(2, 1fr); }
.stat-grid--3 { grid-template-columns: repeat(3, 1fr); }
.stat-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Variant with the heavy ink rule on top + 32px breathing room.
   Used on About's "By the numbers" row. */
.stat-grid--ruled {
    border-top: 1px solid var(--ink);
    padding-top: 32px;
}

/* A single stat cell. Handles type sizing + accent variant.
   The .about-stat-value class is preserved so the existing
   responsive override in section 20 (font-size: 38px @ 880px)
   still applies — don't rename it. */
.stat-cell .about-stat-value {
    font-family: var(--serif);
    font-size: 52px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums slashed-zero;
}
.stat-cell .about-stat-value.is-accent {
    color: var(--copper);
}
.stat-cell-label {
    color: var(--ink-3);
    margin-top: 6px;
}

/* ---------------------------------------------------------
   21c. About thesis grid
   --------------------------------------------------------- */
.about-thesis-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 56px;
}

/* ---------------------------------------------------------
   21d. Services sticky sidebar card
   --------------------------------------------------------- */
.services-sticky-card {
    position: sticky;
    top: 24px;
    background: var(--paper-2);
    border: 1px solid var(--paper-rule);
    padding: 28px;
    border-radius: 6px;
}

.services-sticky-cta {
    display: block;
    margin-top: 22px;
    padding: 14px 16px;
    text-align: center;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    transition: background .2s;
}
.services-sticky-cta:hover {
    background: var(--copper);
    color: var(--paper);
}

/* ---------------------------------------------------------
   21e. Contact page
   --------------------------------------------------------- */
.contact-hero {
    padding: 120px var(--gutter);
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.contact-email-address {
    display: inline-block;
    font-family: var(--mono);
    font-size: 26px;
    color: var(--ink);
    margin-top: 40px;
    padding: 16px 32px;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    letter-spacing: -0.005em;
}

.contact-blurb {
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink-2);
    margin: 48px auto 0;
    max-width: 52ch;
}

.contact-links {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--paper-rule);
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link-cell { text-align: left; }

.contact-link-cell .num {
    font-size: 13px;
    color: var(--ink);
}

/* ---------------------------------------------------------
   21f. Responsive overrides
   The existing @media (max-width: 880px) block in section 20
   already handles services-layout / services-steps-grid /
   contact-hero-title / contact-email-address / about-thesis-grid
   / about-stats-grid — no changes needed there. The new
   .stat-grid utility inherits via the .about-stats-grid !important
   declarations (we keep that class on the About template for
   that reason). New rules below only.
   --------------------------------------------------------- */
@media (max-width: 880px) {
    .about-thesis-grid    { grid-template-columns: 1fr !important; gap: 24px !important; }
    .stat-grid--4         { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .contact-hero         { padding: 80px var(--gutter); }
    .services-sticky-card { position: static; }
}

@media (max-width: 560px) {
    .contact-email-address { font-size: 18px; padding: 12px 20px; }
    .stat-grid--4          { grid-template-columns: 1fr; }
}
/* ============================================================
   Section 22 — Theme toggle (segmented control)
   ------------------------------------------------------------
   Changes from previous version:
   - No more `margin-left: 28px` — the toggle is now a real
     <li> inside the primary-nav <ul>, so it inherits the 28px
     gap automatically.
   - Hide labels at ALL viewport sizes; rely on icons + tooltips.
     Saves ~120px of horizontal real estate and lines up with
     the masthead "system reading" aesthetic.
   - Slightly tighter padding (5px 9px) so the pill height
     matches the nav-link baseline (~28px tall).
   - Add `.theme-toggle-slot` rule to ensure the wrapper <li>
     doesn't pick up any inherited menu-item styling.
   ============================================================ */

/* Wrapper <li> — strip default menu-item treatment */
.primary-nav .theme-toggle-slot {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin: 0;
}
.primary-nav .theme-toggle-slot a { display: none; }  /* defensive: kill any anchor WP injects */

/* Segmented pill */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--paper-rule-2);
    border-radius: 999px;
    overflow: hidden;
    background: var(--paper);
    line-height: 1;
}

.theme-toggle__btn {
    padding: 5px 9px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--ink-3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .15s ease, background-color .15s ease;
}
.theme-toggle__btn:hover { color: var(--ink); }
.theme-toggle__btn:focus-visible {
    outline: 2px solid var(--copper);
    outline-offset: -2px;
}
.theme-toggle__btn[aria-pressed="true"] {
    background: var(--ink);
    color: var(--paper);
}
.theme-toggle__btn + .theme-toggle__btn {
    border-left: 1px solid var(--paper-rule-2);
}

.theme-toggle__icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* Visually hide the label text — kept in DOM for screen readers.
   This applies at ALL sizes; the icon + aria-label + title combo
   covers sighted and AT users. */
.theme-toggle__label {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile drawer: the .primary-nav ul flips to column at 880px,
   so the toggle slot naturally drops to its own row. Just give
   it a little breathing room. */
@media (max-width: 880px) {
    .primary-nav .theme-toggle-slot {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--paper-rule);
        align-self: flex-start;
    }
}
