  /* ─────────────────────────────────────────────────────────────────────────
     TOKENS — lifted from the design system, with site-specific tightening.
     ───────────────────────────────────────────────────────────────────────── */
  :root {
    --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

    --scale: 1.250;
    --fs-base: 16px;
    --fs-xs:   calc(var(--fs-base) / var(--scale));
    --fs-sm:   calc(var(--fs-base) * 0.9375);
    --fs-md:   var(--fs-base);
    --fs-lg:   calc(var(--fs-base) * var(--scale));
    --fs-xl:   calc(var(--fs-base) * var(--scale) * var(--scale));
    --fs-2xl:  calc(var(--fs-base) * var(--scale) * var(--scale) * var(--scale));
    --fs-3xl:  calc(var(--fs-base) * var(--scale) * var(--scale) * var(--scale) * var(--scale));
    --fs-4xl:  calc(var(--fs-base) * var(--scale) * var(--scale) * var(--scale) * var(--scale) * var(--scale));
    --fs-5xl:  calc(var(--fs-base) * var(--scale) * var(--scale) * var(--scale) * var(--scale) * var(--scale) * var(--scale));

    --paper:    oklch(0.995 0.001 90);
    --ink-50:   oklch(0.975 0.002 90);
    --ink-100:  oklch(0.945 0.003 90);
    --ink-200:  oklch(0.905 0.003 90);
    --ink-300:  oklch(0.815 0.004 90);
    --ink-400:  oklch(0.690 0.004 90);
    --ink-500:  oklch(0.555 0.005 90);
    --ink-600:  oklch(0.440 0.005 90);
    --ink-700:  oklch(0.330 0.005 90);
    --ink-800:  oklch(0.220 0.005 90);
    --ink-900:  oklch(0.150 0.004 90);
    --ink-1000: oklch(0.090 0.003 90);
    --ink: var(--ink-1000);

    --accent:      oklch(0.68 0.13 42);
    --accent-soft: oklch(0.96 0.03 42);
    --accent-ink:  oklch(0.54 0.14 38);
    --accent-fg:   #ffffff;

    --bg:           var(--paper);
    --bg-elev:      #ffffff;
    --fg:           var(--ink-1000);
    --fg-muted:     var(--ink-500);
    --fg-subtle:    var(--ink-400);
    --border:       var(--ink-200);
    --border-strong:var(--ink-300);
    --hairline:     var(--ink-100);

    --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; --s-10: 128px;

    --r-1: 2px;  --r-2: 5px;  --r-3: 8px;  --r-pill: 999px;

    --rail: 100px;          /* mono side-rail width  */
    --content-w: 640px;     /* reading column        */
    --max-w: 1180px;        /* rail + content + air  */
  }

  html[data-theme="dark"] {
    --paper:    oklch(0.185 0.008 250);
    --ink-50:   oklch(0.225 0.008 250);
    --ink-100:  oklch(0.265 0.008 250);
    --ink-200:  oklch(0.315 0.008 250);
    --ink-300:  oklch(0.395 0.008 250);
    --ink-400:  oklch(0.495 0.006 250);
    --ink-500:  oklch(0.610 0.005 250);
    --ink-600:  oklch(0.720 0.005 250);
    --ink-700:  oklch(0.810 0.004 250);
    --ink-800:  oklch(0.880 0.003 250);
    --ink-900:  oklch(0.945 0.002 250);
    --ink-1000: oklch(0.985 0.002 250);
    --bg:       var(--paper);
    --bg-elev:  oklch(0.225 0.008 250);
    --border:    var(--ink-200);
    --border-strong: var(--ink-300);
    --hairline:  var(--ink-100);
  }

  /* ─────────────────────────────────────────────────────────────────────────
     BASE
     ───────────────────────────────────────────────────────────────────────── */
  *,*::before,*::after { box-sizing: border-box; }
  html,body { margin: 0; padding: 0; }
  html { background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
  body {
    font-family: var(--font-sans);
    font-size: var(--fs-md);
    line-height: 1.6;
    font-feature-settings: "ss01", "cv11";
    color: var(--fg);
    background: var(--bg);
    min-height: 100vh;
    text-wrap: pretty;
  }
  ::selection { background: var(--accent); color: var(--accent-fg); }

  a { color: inherit; text-decoration: none; }
  p { margin: 0; }
  h1,h2,h3,h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
  hr { border: 0; height: 1px; background: var(--hairline); margin: 0; }

  /* Focus rings — keyboard accessibility */
  a:focus-visible,
  button:focus-visible,
  summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
  }
  .floatnav a.fn-item:focus-visible,
  .themetoggle:focus-visible,
  .topbrand:focus-visible {
    outline-offset: 2px;
    border-radius: 999px;
  }

  /* ─────────────────────────────────────────────────────────────────────────
     FLOATING TOP BAR — brand (left), nav (center), theme toggle (right)
     ───────────────────────────────────────────────────────────────────────── */
  .topbar {
    position: fixed;
    top: 14px;
    left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 20px;
    pointer-events: none;
  }
  .topbar > * { pointer-events: auto; }

  /* Shared pill chrome */
  .pill-chrome {
    background: color-mix(in oklch, var(--bg) 72%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    backdrop-filter: saturate(180%) blur(22px);
    border: 1px solid color-mix(in oklch, var(--ink-200) 55%, transparent);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.55) inset,
      0 8px 26px -10px rgba(20, 20, 30, 0.18),
      0 1px 3px rgba(20, 20, 30, 0.05);
  }
  html[data-theme="dark"] .pill-chrome {
    background: color-mix(in oklch, var(--ink-50) 80%, transparent);
    border-color: color-mix(in oklch, var(--ink-300) 60%, transparent);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.04) inset,
      0 10px 36px -12px rgba(0,0,0,0.6),
      0 1px 3px rgba(0,0,0,0.3);
  }

  /* Brand (left) — plain text, no pill. Fades away once the page scrolls. */
  .topbrand {
    display: inline-flex;
    align-items: center;
    padding: 6px 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg);
    white-space: nowrap;
    transition: opacity .25s ease, transform .25s ease, color .15s ease;
  }
  .topbrand:hover { color: var(--accent-ink); }
  .topbrand.is-hidden {
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
  }

  /* Nav pill (center) */
  .floatnav {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    border-radius: 999px;
    max-width: calc(100vw - 220px);
  }
  /* Brand inside the nav pill — shown only when the outside brand is hidden */
  .floatnav .fn-brand {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg);
    white-space: nowrap;
    border-right: 1px solid color-mix(in oklch, var(--ink-200) 65%, transparent);
    margin-right: 3px;
    max-width: 0;
    padding-left: 0;
    padding-right: 0;
    margin-right: 0;
    border-right-color: transparent;
    overflow: hidden;
    opacity: 0;
    transition: max-width .35s cubic-bezier(.4,0,.2,1), padding .35s ease, margin .35s ease, opacity .25s ease .05s, border-color .25s ease;
  }
  .floatnav.is-condensed .fn-brand {
    max-width: 200px;
    padding: 6px 12px 6px 14px;
    margin-right: 3px;
    border-right-color: color-mix(in oklch, var(--ink-200) 65%, transparent);
    opacity: 1;
  }
  .floatnav .fn-brand:hover { color: var(--accent-ink); }
  .floatnav .fn-items {
    display: flex;
    align-items: center;
    gap: 1px;
  }
  .floatnav a.fn-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: -0.005em;
    border-radius: 999px;
    color: var(--fg-muted);
    transition: color .15s ease, background .2s ease, transform .04s ease;
    white-space: nowrap;
  }
  .floatnav a.fn-item:hover { color: var(--fg); background: color-mix(in oklch, var(--ink-100) 70%, transparent); }
  .floatnav a.fn-item[aria-current="true"] {
    background: var(--ink-1000);
    color: var(--paper);
  }
  html[data-theme="dark"] .floatnav a.fn-item[aria-current="true"] { background: var(--ink-1000); color: var(--ink-50); }
  .floatnav a.fn-item svg {
    width: 13px; height: 13px;
    flex-shrink: 0;
    stroke-width: 1.5;
  }
  .floatnav a.fn-item[aria-current="true"] svg { opacity: 0.95; }

  /* Theme toggle pill (right) */
  .themetoggle {
    appearance: none;
    width: 36px; height: 36px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid color-mix(in oklch, var(--ink-200) 55%, transparent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fg);
    cursor: pointer;
    font: inherit;
    transition: transform .15s ease, color .15s ease, background .2s ease;
  }
  .themetoggle:hover { color: var(--accent-ink); }
  .themetoggle:active { transform: scale(0.94); }
  .themetoggle svg { width: 15px; height: 15px; stroke-width: 1.6; }
  .themetoggle .icon-sun { display: none; }
  html[data-theme="dark"] .themetoggle .icon-sun  { display: block; }
  html[data-theme="dark"] .themetoggle .icon-moon { display: none; }

  /* Reserve top space so the first scroll isn't hidden under the bar */
  main { padding-top: 112px; }

  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 oklch(0.65 0.18 145 / 0.5); }
    70% { box-shadow: 0 0 0 6px oklch(0.65 0.18 145 / 0); }
    100% { box-shadow: 0 0 0 0 oklch(0.65 0.18 145 / 0); }
  }

  /* ─────────────────────────────────────────────────────────────────────────
     LAYOUT — every section uses the rail+content grid
     ───────────────────────────────────────────────────────────────────────── */
  main { padding: 0 0 var(--s-10); }
  .wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--s-6);
  }
  .section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-6);
    padding: var(--s-8) 0;
    border-top: 1px solid var(--hairline);
  }
  .section:first-of-type { border-top: 0; }
  .rail { display: none; }

  /* Full-viewport sections on laptops & up.
     We subtract the sticky header so the content still lands inside the viewport. */
  @media (min-width: 1024px) {
    .section {
      min-height: calc(100vh - 60px);
      align-content: center;
    }
    .hero {
      min-height: 100vh;
    }
    /* Contact closes the page — short copy shouldn't get stretched to a full viewport. */
    #contact.section {
      min-height: 0;
      padding-bottom: var(--s-7);
    }
  }
  .body { min-width: 0; }
  .h-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fg-subtle);
    margin-bottom: var(--s-3);
  }
  h2.h-section {
    font-size: var(--fs-2xl);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: var(--s-5);
  }

  /* ─────────────────────────────────────────────────────────────────────────
     HERO
     ───────────────────────────────────────────────────────────────────────── */
  .hero { padding: var(--s-9) 0 var(--s-7); grid-template-columns: 1fr; }
  .hero-lede {
    font-size: clamp(36px, 4vw, 45px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 400;
    max-width: 100%;
    margin-bottom: var(--s-6);
    color: var(--fg);
  }
  .hero-lede em {
    font-style: normal;
    background: linear-gradient(transparent 70%, var(--accent-soft) 70%);
    padding: 0 2px;
  }
  @keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  .hero-lede strong {
    font-weight: 600;
    background: linear-gradient(90deg, #c4b5fd, #6fa3ef, #ffffff, #c4b5fd);
    background-size: 300% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 14s ease infinite;
  }
  /* Light mode: dull orange → blue → indigo */
  html[data-theme="light"] .hero-lede strong {
    background: linear-gradient(90deg, #c47c3a, #2563eb, #4f46e5, #c47c3a);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hero-lede .hero-light { font-weight: 300; }
  .hero-lede .underscore {
    display: inline-block;
    width: 0.4em;
    border-bottom: 0.05em solid var(--accent);
    margin-left: 0.04em;
    transform: translateY(-0.12em);
  }
  .hero-body {
    color: var(--fg-muted);
    font-size: var(--fs-lg);
    max-width: 56ch;
    line-height: 1.55;
  }
  .hero-body a.inline-link {
    color: var(--fg);
    border-bottom: 1px solid var(--ink-300);
    padding-bottom: 1px;
  }
  .hero-body a.inline-link:hover { border-bottom-color: var(--fg); }

  /* ─────────────────────────────────────────────────────────────────────────
     ABOUT
     ───────────────────────────────────────────────────────────────────────── */
  .about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
    gap: var(--s-7);
    align-items: center;
  }
  .about-body p:not(.h-eyebrow) + p:not(.h-eyebrow) { margin-top: var(--s-4); }
  .about-body p:not(.h-eyebrow) { color: var(--fg-muted); font-size: var(--fs-md); line-height: 1.65; max-width: 60ch; }
  .about-body strong { color: var(--fg); font-weight: 500; }
  .about-portrait {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    perspective: 1200px;
  }
  .about-portrait .card {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-3);
    box-shadow: 0 18px 40px -22px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.06);
    cursor: pointer;
    overflow: hidden;
    transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease, opacity .4s ease;
    transform-origin: 50% 50%;
    will-change: transform;
    appearance: none;
    font: inherit;
    color: inherit;
    text-align: left;
  }
  html[data-theme="dark"] .about-portrait .card { background: oklch(0.30 0.008 250); border-color: var(--border-strong); }
  .about-portrait .card img {
    display: block;
    width: 100%;
    height: calc(100% - 28px);
    object-fit: cover;
    border-radius: var(--r-2);
    pointer-events: none;
    filter: saturate(0.95);
  }
  .about-portrait .card figcaption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--s-3);
    padding: 6px 4px 0;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fg-muted);
  }
  .about-portrait .card figcaption .where { color: var(--fg-subtle); }

  /* Stack positions */
  .about-portrait .card[data-pos="0"] { transform: rotate(0deg) translate(0, 0) scale(1); z-index: 4; }
  .about-portrait .card[data-pos="1"] { transform: rotate(-7deg) translate(-7%, 4%) scale(0.96); z-index: 3; }
  .about-portrait .card[data-pos="2"] { transform: rotate(6deg) translate(7%, 7%) scale(0.92); z-index: 2; }
  .about-portrait .card[data-pos="3"] { transform: rotate(-4deg) translate(2%, 10%) scale(0.88); z-index: 1; }
  .about-portrait .card[data-pos="3"] { opacity: 0.85; }

  /* Hover lift on the front card */
  .about-portrait:hover .card[data-pos="0"] {
    transform: rotate(0deg) translate(0, -2%) scale(1.04);
    box-shadow: 0 28px 60px -24px rgba(0,0,0,0.45), 0 4px 10px rgba(0,0,0,0.08);
  }
  .about-portrait:hover .card[data-pos="1"] { transform: rotate(-9deg) translate(-10%, 5%) scale(0.94); }
  .about-portrait:hover .card[data-pos="2"] { transform: rotate(8deg) translate(10%, 8%) scale(0.90); }

  /* Position indicator under the deck */
  .about-portrait + .deck-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: var(--s-4);
  }
  .deck-dots button {
    appearance: none;
    width: 22px; height: 3px;
    background: var(--ink-200);
    border: 0;
    border-radius: 2px;
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, width .2s ease;
  }
  .deck-dots button[aria-current="true"] {
    background: var(--accent);
    width: 28px;
  }
  .deck-dots button:hover { background: var(--ink-400); }
  .deck-dots button[aria-current="true"]:hover { background: var(--accent); }

  /* ─────────────────────────────────────────────────────────────────────────
     SCENES — three photo trio near footer
     ───────────────────────────────────────────────────────────────────────── */
  .scenes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
  }
  .scene {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
  }
  .scene-img {
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: var(--r-2);
    overflow: hidden;
    background: var(--ink-100);
    border: 1px solid var(--border);
  }
  .scene-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .3s ease;
    filter: saturate(0.95);
  }
  .scene:hover .scene-img img { transform: scale(1.03); filter: saturate(1.05); }
  .scene figcaption {
    display: flex;
    justify-content: space-between;
    gap: var(--s-3);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 2px;
  }
  .scene figcaption .where { color: var(--fg-muted); }

  /* ─────────────────────────────────────────────────────────────────────────
     WRITING
     ───────────────────────────────────────────────────────────────────────── */
  .writing-intro {
    color: var(--fg-muted);
    font-size: var(--fs-md);
    max-width: 56ch;
    margin-bottom: var(--s-6);
  }
  .writing-intro .nb {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fg-subtle);
    margin-right: 8px;
  }
  .post-list {
    border-top: 1px solid var(--border-strong);
    margin-bottom: var(--s-5);
  }
  .post-row {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: var(--s-5);
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--hairline);
    align-items: baseline;
    transition: padding-left .15s ease;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
  }
  .post-row:hover { padding-left: 6px; }
  .post-row:hover .post-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-300); }
  .post-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
  .post-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--fg-subtle);
  }
  .writing-all { margin-top: var(--s-4); font-size: 14px; color: var(--fg-muted); }
  .writing-all a:hover { color: var(--accent-ink); }
  .post-title { font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.015em; }
  .post-excerpt { font-size: 14px; color: var(--fg-muted); margin-top: 4px; max-width: 56ch; line-height: 1.55; }
  .post-arrow {
    font-family: var(--font-mono); font-size: 11px; color: var(--fg-subtle);
    white-space: nowrap;
    align-self: center;
  }
  .post-row[data-state="loading"] .post-title,
  .post-row[data-state="loading"] .post-excerpt,
  .post-row[data-state="loading"] .post-date {
    color: transparent; background: var(--ink-100); border-radius: 2px;
    user-select: none;
    animation: shimmer 1.4s ease-in-out infinite;
  }
  @keyframes shimmer {
    0%,100% { opacity: 0.6; }
    50% { opacity: 0.95; }
  }

  /* ─────────────────────────────────────────────────────────────────────────
     SUBSCRIBE CARD — standout CTA tinted with the accent
     ───────────────────────────────────────────────────────────────────────── */
  .subscribe {
    position: relative;
    margin-top: var(--s-6);
    padding: var(--s-7);
    background: var(--ink-50);
    border: 1px solid var(--border);
    border-radius: var(--r-3);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 1fr);
    gap: var(--s-6);
    align-items: center;
    overflow: hidden;
  }
  /* Decorative diagonal stripe in the top right */
  .subscribe::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 140px; height: 140px;
    background:
      repeating-linear-gradient(
        135deg,
        transparent 0 10px,
        var(--ink-200) 10px 11px
      );
    mask-image: radial-gradient(circle at top right, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at top right, #000 0%, transparent 70%);
    pointer-events: none;
  }
  .subscribe-head { position: relative; z-index: 1; }
  .subscribe-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-muted);
    margin-bottom: var(--s-3);
  }
  .subscribe-label::before {
    content: "";
    display: inline-block;
    width: 16px; height: 1px;
    background: var(--fg-muted);
  }
  .subscribe-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--fg);
    margin: 0 0 var(--s-3);
    max-width: 22ch;
  }
  .subscribe-title em {
    font-style: normal;
    color: var(--fg);
  }
  .subscribe-copy {
    font-size: 15px;
    color: var(--fg-muted);
    line-height: 1.55;
    max-width: 36ch;
    margin: 0 0 var(--s-4);
  }
  .subscribe-copy b { color: var(--fg); font-weight: 500; }
  .subscribe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fg-subtle);
  }
  .subscribe-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }
  .subscribe-meta span::before {
    content: "✓";
    color: var(--fg-muted);
    font-weight: 600;
  }
  .subscribe-form {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    min-height: 58px;
    margin: 0;
    padding: var(--s-4);
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--r-2);
    box-shadow: 0 6px 20px -10px rgba(20,20,30,0.18);
  }
  html[data-theme="dark"] .subscribe-form { background: var(--ink-50); border-color: var(--border-strong); }
  .subscribe-form > .form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-subtle);
    margin-bottom: var(--s-2);
  }
  /* Custom subscribe form */
  .sf-row {
    display: flex;
    gap: var(--s-2);
    align-items: center;
  }
  .sf-input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 var(--s-3);
    font-family: var(--font-sans);
    font-size: 14px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-2);
    color: var(--fg);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
  }
  .sf-input::placeholder { color: var(--fg-subtle); }
  .sf-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px oklch(0.68 0.13 42 / 0.12);
  }
  html[data-theme="dark"] .sf-input { background: var(--ink-100); border-color: var(--border-strong); }
  .sf-btn:disabled { opacity: 0.6; cursor: not-allowed; }
  .sf-msg {
    font-size: 13px;
    margin-top: var(--s-2);
    min-height: 18px;
    line-height: 1.5;
    display: none;
  }
  .sf-msg.visible { display: block; }
  .sf-msg.success { color: oklch(0.48 0.14 145); }
  .sf-msg.error   { color: oklch(0.50 0.18 25); }

  @media (max-width: 720px) {
    .subscribe {
      grid-template-columns: 1fr;
      gap: var(--s-4);
      padding: var(--s-5);
      margin-top: var(--s-5);
    }
    .subscribe::before { width: 90px; height: 90px; }
  }
  .btn {
    appearance: none;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    padding: 9px 14px;
    border-radius: var(--r-2);
    border: 1px solid transparent;
    background: var(--ink-1000);
    color: var(--paper);
    cursor: pointer;
    transition: background .12s ease, transform .04s ease;
    display: inline-flex; align-items: center; gap: 8px;
    letter-spacing: -0.005em;
    white-space: nowrap;
  }
  .btn:hover { background: var(--ink-800); }
  .btn--accent { background: var(--accent); color: var(--accent-fg); }
  .btn--accent:hover { background: var(--accent-ink); }
  .btn-arrow { width: 12px; height: 12px; }

  /* ─────────────────────────────────────────────────────────────────────────
     FAQ
     ───────────────────────────────────────────────────────────────────────── */
  .faq-intro {
    color: var(--fg-muted);
    font-size: var(--fs-md);
    max-width: 56ch;
    margin-bottom: var(--s-6);
  }
  .faq-intro .nb {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fg-subtle);
    margin-right: 8px;
  }
  .faq {
    border-top: 1px solid var(--border-strong);
  }
  .faq details {
    border-bottom: 1px solid var(--hairline);
  }
  .faq summary {
    list-style: none;
    cursor: pointer;
    padding: var(--s-4) 0;
    display: grid;
    grid-template-columns: 28px 1fr 18px;
    gap: var(--s-3);
    align-items: baseline;
    font-size: var(--fs-md);
    font-weight: 500;
    color: var(--fg);
    letter-spacing: -0.012em;
    transition: color .12s ease;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary:hover { color: var(--accent-ink); }
  .faq summary .q-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-subtle);
    font-weight: 400;
    align-self: center;
  }
  .faq summary .q-chev {
    width: 12px; height: 12px;
    color: var(--fg-subtle);
    transition: transform .2s ease;
    align-self: center;
  }
  .faq details[open] summary .q-chev { transform: rotate(180deg); }
  .faq details[open] summary { color: var(--accent-ink); }
  .faq-answer {
    padding: 0 0 var(--s-5) 40px;
    color: var(--fg-muted);
    font-size: 15px;
    line-height: 1.65;
    max-width: 100ch;
  }

  /* ─────────────────────────────────────────────────────────────────────────
     ELSEWHERE / CONTACT
     ───────────────────────────────────────────────────────────────────────── */
  .elsewhere-intro {
    color: var(--fg-muted);
    font-size: var(--fs-md);
    max-width: 56ch;
    margin-bottom: var(--s-5);
  }
  .elsewhere-intro .handle {
    font-family: var(--font-mono);
    color: var(--fg);
    background: var(--ink-50);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 13px;
  }
  .links {
    border-top: 1px solid var(--border-strong);
  }
  .link-row {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: var(--s-5);
    padding: var(--s-3) 0;
    align-items: center;
    border-bottom: 1px solid var(--hairline);
    transition: padding-left .15s ease;
  }
  .link-row:hover { padding-left: 6px; }
  .link-row:last-child { border-bottom: 1px solid var(--border-strong); }
  .link-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-subtle);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .link-where {
    font-size: 14px;
    color: var(--fg);
  }
  .link-where small { color: var(--fg-muted); font-size: 13px; margin-left: 6px; }
  .link-go {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-subtle);
  }
  .link-row:hover .link-go { color: var(--accent-ink); }

  .contact-body p {
    color: var(--fg-muted);
    font-size: var(--fs-md);
    line-height: 1.65;
    max-width: 56ch;
  }
  .contact-body p strong { color: var(--fg); font-weight: 500; }

  /* ─────────────────────────────────────────────────────────────────────────
     FOOTER — fat light footer with link columns + brutalist wordmark
     ───────────────────────────────────────────────────────────────────────── */
  footer.site-foot {
    margin-top: var(--s-9);
    background: var(--ink-50);
    color: var(--fg);
    overflow: hidden;
    border-top: 1px solid var(--hairline);
  }
  html[data-theme="dark"] footer.site-foot { background: var(--ink-50); }
  .brutal-wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: var(--s-8) var(--s-6) var(--s-3);
  }
  .foot-cols {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: var(--s-6);
    padding-bottom: var(--s-6);
    border-bottom: 1px solid var(--hairline);
  }
  .foot-col h5 {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fg-subtle);
    font-weight: 500;
    margin: 0 0 var(--s-3);
  }
  .foot-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
  }
  .foot-col a {
    color: var(--fg-muted);
    transition: color .12s ease;
  }
  .foot-col a:hover { color: var(--fg); }
  .foot-col p {
    font-size: 13px;
    color: var(--fg-muted);
    line-height: 1.55;
    max-width: 30ch;
  }
  .foot-col p strong { color: var(--fg); font-weight: 500; }

  .brutal-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--s-4);
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-subtle);
    padding: var(--s-6) 0 var(--s-3);
    flex-wrap: wrap;
  }
  .brutal-meta-top b { color: var(--fg-muted); font-weight: 400; }

  .brutal-wordmark {
    margin: var(--s-4) 0 0;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: clamp(56px, 17vw, 220px);
    letter-spacing: -0.055em;
    line-height: 0.82;
    text-transform: uppercase;
    color: var(--ink-100);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.08em;
    white-space: nowrap;
  }
  html[data-theme="dark"] .brutal-wordmark { color: var(--ink-100); }

  .brutal-meta-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: var(--s-4) var(--s-6) var(--s-5);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--s-3);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-subtle);
    flex-wrap: wrap;
    border-top: 1px solid var(--hairline);
  }
  .brutal-meta-bottom a { color: var(--fg-muted); }
  .brutal-meta-bottom a:hover { color: var(--fg); }

  @media (max-width: 720px) {
    .foot-cols { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
    .brutal-wordmark { font-size: 22vw; letter-spacing: -0.06em; }
    .brutal-wrap { padding: var(--s-7) 28px var(--s-3); }
    .brutal-meta-bottom { padding: var(--s-3) 28px var(--s-4); }
  }

  /* ─────────────────────────────────────────────────────────────────────────
     RESPONSIVE
     Three breakpoints: tablet (≤ 1024px), small tablet / large phone (≤ 720px),
     and small phone (≤ 480px). Tokens shift, layouts collapse, type scales.
     ───────────────────────────────────────────────────────────────────────── */

  /* TABLET — ≤ 1024px */
  @media (max-width: 1024px) {
    :root {
      --content-w: 100%;
      --s-8: 56px;
      --s-9: 72px;
    }
    .wrap { padding: 0 var(--s-5); }
    .section { padding: var(--s-7) 0; }
    .hero { padding: var(--s-8) 0 var(--s-6); }
    .about-grid { gap: var(--s-6); }
    .foot-cols { grid-template-columns: 1.4fr 1fr 1fr; }
    .foot-cols .foot-col:nth-child(4) { grid-column: 1 / -1; border-top: 1px solid var(--hairline); padding-top: var(--s-5); }
    .brutal-wordmark { font-size: 18vw; }
  }

  /* SMALL TABLET / LARGE PHONE — ≤ 720px */
  @media (max-width: 720px) {
    :root {
      --s-7: 40px;
      --s-8: 48px;
      --s-9: 56px;
      --s-10: 80px;
    }
    .wrap { padding: 0 28px; }
    .section { grid-template-columns: 1fr; gap: var(--s-3); padding: var(--s-6) 0; }
    .hero { padding: var(--s-6) 0 var(--s-4); }

    /* Hero scales down */
    .hero-lede {
      font-size: clamp(28px, 7vw, 40px);
      letter-spacing: -0.03em;
      max-width: 22ch;
    }
    .hero-body { font-size: var(--fs-md); }

    h2.h-section { font-size: clamp(22px, 5vw, 28px); }

    /* About: stack portrait under copy */
    .about-grid { grid-template-columns: 1fr; gap: var(--s-5); }
    .about-portrait-wrap { order: 2; }
    .about-portrait { max-width: 280px; margin-left: auto; margin-right: auto; }

    /* Writing rows collapse */
    .post-row {
      grid-template-columns: 1fr;
      gap: 4px;
      padding: var(--s-3) 0;
    }
    .post-row .post-arrow { display: none; }
    .post-date { font-size: 11px; }
    .post-title { font-size: var(--fs-md); }

    .subscribe {
      grid-template-columns: 1fr;
      gap: var(--s-4);
      padding: var(--s-5);
    }
    .subscribe .btn { width: max-content; }

    /* FAQ: tighter padding, no left indent on answers */
    .faq summary {
      grid-template-columns: 22px 1fr 16px;
      gap: var(--s-2);
      padding: var(--s-3) 0;
      font-size: 15px;
    }
    .faq-answer { padding: 0 0 var(--s-4) 0; font-size: 14px; }

    /* Elsewhere: stack */
    .link-row {
      grid-template-columns: 1fr;
      gap: 2px;
      padding: var(--s-3) 0;
    }
    .link-row .link-go { display: none; }
    .link-where small { display: block; margin-left: 0; margin-top: 2px; }

    /* Footer cols collapse to single column */
    .foot-cols { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
    .foot-cols .foot-col:nth-child(4) { padding-top: 0; border-top: 0; }
    .brutal-wordmark { font-size: 22vw; letter-spacing: -0.06em; }
    .brutal-meta-top, .brutal-meta-bottom { font-size: 10px; }

    /* Nav pill / brand / theme toggle tighten */
    .topbar { top: 10px; padding: 0 28px; gap: 6px; justify-content: flex-start; }
    .themetoggle { margin-left: auto; }
    /* Collapse the faded-out brand so the nav pill snaps to the left edge */
    .topbrand.is-hidden { width: 0; overflow: hidden; padding-left: 0; padding-right: 0; }
    .topbrand { padding: 7px 12px; font-size: 12px; }
    .floatnav { padding: 3px; gap: 2px; max-width: none; }
    .floatnav a.fn-item { padding: 7px 9px; font-size: 12px; }
    .floatnav a.fn-item span.label { display: none; }
    .floatnav a.fn-item svg { width: 15px; height: 15px; }
    .themetoggle { width: 32px; height: 32px; }
    main { padding-top: 84px; }
  }

  /* SMALL PHONE — ≤ 480px */
  @media (max-width: 520px) {
    .sf-row { flex-direction: column; align-items: stretch; }
    .sf-btn { width: 100%; justify-content: center; }
  }
  @media (max-width: 480px) {
    .wrap { padding: 0 28px; }
    .topbar { padding: 0 var(--s-4); }
    .brutal-wrap { padding: var(--s-6) 28px var(--s-3); }
    .hero-lede { font-size: clamp(26px, 8vw, 34px); }
    h2.h-section { font-size: 22px; }
    .topbar { gap: 4px; padding: 0 28px; }
    .topbrand { padding: 6px 10px; }
    .topbrand .label { font-size: 12px !important; }
    .foot-cols { grid-template-columns: 1fr; gap: var(--s-4); }
    .foot-cols .foot-col { border-top: 1px solid var(--hairline); padding-top: var(--s-4); }
    .foot-cols .foot-col:first-child { border-top: 0; padding-top: 0; }
    .brutal-meta-top, .brutal-meta-bottom {
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
    }
    .about-portrait { max-width: 240px; }
    .deck-dots button { width: 18px; }
    .deck-dots button[aria-current="true"] { width: 22px; }
  }

  /* ── Essays (added by build-essays.js) ─────────────────────────────────── */
  .essay, .essay-index, .essay-more { max-width: 720px; margin: 0 auto; }
  .essay, .essay-index { padding-top: 104px; } /* clears the fixed top bar */
  .essay-index { padding-bottom: var(--s-8); }
  .essay-head { padding: 0 0 var(--s-6); border-bottom: 1px solid var(--hairline); }
  .essay-head .h-eyebrow a:hover, .essay-all a:hover, .essay-byline a:hover { color: var(--accent-ink); }
  .essay-title { font-size: var(--fs-3xl); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 var(--s-4); text-wrap: balance; }
  .essay-lede { font-size: var(--fs-lg); line-height: 1.5; color: var(--fg-muted); margin-bottom: var(--s-4); }
  .essay-byline { font-size: 14px; color: var(--fg-muted); }
  .essay-byline a { color: var(--fg); border-bottom: 1px solid var(--border-strong); }
  .essay-body { padding: var(--s-6) 0; font-size: 17px; line-height: 1.75; color: var(--ink-800); }
  .essay-body > * + * { margin-top: 1.1em; }
  .essay-body h2 { font-size: var(--fs-xl); margin-top: 2em; color: var(--fg); }
  .essay-body h3 { font-size: var(--fs-lg); margin-top: 1.6em; color: var(--fg); }
  .essay-body strong { color: var(--fg); font-weight: 600; }
  .essay-body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
  .essay-body ul, .essay-body ol { padding-left: 1.3em; }
  .essay-body li + li { margin-top: .4em; }
  .essay-body hr { margin: 2.2em 0; }
  .essay-body > hr:first-child { display: none; } /* the header already has a rule */
  .essay-body blockquote { margin-left: 0; padding-left: var(--s-4); border-left: 2px solid var(--accent); color: var(--fg-muted); }
  .essay-body aside { display: flex; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-3); background: var(--ink-50); border: 1px solid var(--hairline); font-size: 16px; }
  .essay-body figure { margin: 2em 0; }
  .essay-body img { display: block; width: 100%; height: auto; border-radius: var(--r-3); }
  .essay-body figcaption { margin-top: var(--s-2); font-size: 13px; color: var(--fg-subtle); text-align: center; }
  .essay-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); padding-bottom: var(--s-6); }
  .essay-tags span { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-muted); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 4px 10px; }
  .essay-subscribe { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); padding: var(--s-5); border: 1px solid var(--border); border-radius: var(--r-3); background: var(--bg-elev); margin-top: var(--s-6); }
  .essay-subscribe .h-eyebrow { width: 100%; margin: 0; }
  .essay-subscribe p:not(.h-eyebrow) { flex: 1 1 260px; color: var(--fg-muted); }
  .essay-more { padding: var(--s-7) 0 var(--s-8); }
  .essay-all { margin-top: var(--s-5); font-size: 14px; color: var(--fg-muted); }
  @media (max-width: 720px) {
    .essay, .essay-index { padding-top: 84px; }
    .essay-title { font-size: var(--fs-2xl); }
    .essay-body { font-size: 16px; }
    .essay-subscribe .btn { width: 100%; justify-content: center; }
  }
