*, *::before, *::after { box-sizing: border-box; }
    html, body { margin: 0; padding: 0; background: #f8f7f2; color: #0c1710; }
    body {
      font-family: 'Inter', system-ui, sans-serif;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-x: clip;
    }
    ::selection { background: #0c1710; color: #f6f3ec; }
    a { color: inherit; }
    button { font: inherit; }

    body::after {
      content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
      mix-blend-mode: overlay; opacity: 0.06;
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    }

    /* ─────────── wordmark ─────────── */
    .boswell-wm {
      display: inline-block; position: relative;
      font-family: 'Fraunces', serif; font-weight: 400;
      line-height: 1; letter-spacing: -0.035em;
      white-space: nowrap; padding-top: 0.18em;
    }
    .boswell-wm .nucleus, .boswell-wm .bond { position: absolute; pointer-events: none; }
    .boswell-wm .nucleus { width: 0.055em; height: 0.055em; border-radius: 50%; background: currentColor; }
    .boswell-wm .bond { height: 0.12em; top: 0.04em; }
    .boswell-wm .bond .atom-l, .boswell-wm .bond .atom-r {
      position: absolute; top: 50%; width: 0.08em; height: 0.08em;
      border-radius: 50%; background: currentColor; transform: translate(-50%, -50%);
    }
    .boswell-wm .bond .atom-l { left: 0; }
    .boswell-wm .bond .atom-r { left: 100%; }
    .boswell-wm .bond .line {
      position: absolute; top: 50%; left: 0.04em; right: 0.04em;
      height: 0.022em; border-radius: 0.011em; background: currentColor; transform: translateY(-50%);
    }

    /* ─────────── nav ─────────── */
    .nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      transition: background 240ms ease, border-color 240ms ease;
      background: rgba(248, 247, 242, 0.10);
      backdrop-filter: blur(14px) saturate(140%);
      -webkit-backdrop-filter: blur(14px) saturate(140%);
      border-bottom: 1px solid transparent;
    }
    .nav.is-solid {
      background: rgba(248, 247, 242, 0.45);
      border-bottom-color: rgba(12, 23, 16, 0.08);
    }
    .nav-inner {
      max-width: 1320px; margin: 0 auto; padding: 0 32px;
      height: 68px;
      display: grid; grid-template-columns: 1fr auto 1fr;
      align-items: center; gap: 32px;
    }
    .nav-logo { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; color: #0c1710; }
    .nav-links { display: flex; align-items: center; gap: 4px; justify-content: center; }
    .nav-link {
      font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 450;
      color: #0c1710; text-decoration: none;
      letter-spacing: -0.005em; opacity: 0.78;
      padding: 8px 14px; border-radius: 8px;
      transition: opacity 180ms ease, background 180ms ease;
    }
    .nav-link:hover { opacity: 1; background: rgba(12, 23, 16, 0.04); }
    .nav-link.is-active { opacity: 1; }
    .nav-actions { display: flex; align-items: center; gap: 14px; justify-content: flex-end; }
    .nav-signin { font-family: 'Inter', sans-serif; font-size: 13.5px; color: #0c1710; text-decoration: none; opacity: 0.7; }
    .nav-cta {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 10px 18px; border-radius: 999px;
      font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 500;
      text-decoration: none; background: #0c1710; color: #f8f7f2;
      border: 1px solid #0c1710;
    }

    /* ─────────── reading progress bar (sits above nav, like product/legal pages) ─────────── */
    .read-progress {
      position: fixed; left: 0; right: 0; top: 0;
      height: 2px; z-index: 200;
      background: transparent;
      pointer-events: none;
    }
    .read-progress-bar {
      height: 100%;
      background: linear-gradient(90deg, #b55a3c 0%, #d99878 100%);
      width: 0%;
      transition: width 80ms linear;
    }

    /* ─────────── article hero ─────────── */
    .art-hero {
      /* defaults; per-topic variants below override these */
      --hero-color: #cfe6dc;
      --hero-tint:  #f1efe6;
      --hero-accent:#3b8a5c;

      position: relative;
      padding: 140px 28px 80px;
      overflow: hidden;
      background:
        radial-gradient(1300px 800px at 88% -8%, var(--hero-color), transparent 58%),
        radial-gradient(900px 600px at 0% 105%, var(--hero-tint), transparent 60%),
        #f8f7f2;
    }
    .art-hero[data-topic="weight"]    { --hero-color:#e6dec4; --hero-tint:#f1e8d4; --hero-accent:#b88c70; }
    .art-hero[data-topic="recovery"]  { --hero-color:#cfe6dc; --hero-tint:#e8f3ed; --hero-accent:#3b8a5c; }
    .art-hero[data-topic="hormones"]  { --hero-color:#e7d8d0; --hero-tint:#f3e8e0; --hero-accent:#b88c70; }
    .art-hero[data-topic="longevity"] { --hero-color:#d6dee4; --hero-tint:#e8eef3; --hero-accent:#6f8090; }
    .art-hero[data-topic="skin"]      { --hero-color:#dfd8e6; --hero-tint:#ede8f3; --hero-accent:#9b88a8; }
    .art-hero[data-topic="cognitive"] { --hero-color:#d4c8d9; --hero-tint:#e8e0ed; --hero-accent:#5e4870; }
    .art-hero[data-topic="safety"]    { --hero-color:#e0d8c8; --hero-tint:#f0e8d8; --hero-accent:#8a7c5e; }
    .art-hero[data-topic="care"]      { --hero-color:#cfd9d2; --hero-tint:#e3ede8; --hero-accent:#5a7068; }
    .art-hero[data-topic="basics"]    { --hero-color:#e8e4d8; --hero-tint:#f3efe5; --hero-accent:#b55a3c; }

    /* Big soft orb in the corner — uses topic color */
    .art-hero-orb {
      position: absolute;
      right: -180px; top: -180px;
      width: 720px; height: 720px;
      border-radius: 999px;
      background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.85) 0%, var(--hero-color) 35%, transparent 70%);
      opacity: 0.6;
      filter: blur(24px);
      pointer-events: none;
      z-index: 0;
    }

    /* Oversized topic glyph as background art */
    .art-hero-glyph {
      position: absolute;
      right: 6%;
      top: 18%;
      font-family: 'JetBrains Mono', monospace;
      font-size: clamp(220px, 32vw, 480px);
      line-height: 1;
      color: var(--hero-accent);
      opacity: 0.18;
      pointer-events: none;
      user-select: none;
      z-index: 0;
      letter-spacing: -0.03em;
    }

    /* Inner stays a sane width and reserves a glyph zone on the right
       so headlines + dek never push under the glyph */
    .art-hero-inner {
      position: relative;
      max-width: 1240px;
      margin: 0 auto;
      padding-right: clamp(0px, 26%, 360px);
      z-index: 1;
    }
    .art-hero-inner > * { max-width: 760px; }
    .art-back {
      display: inline-flex; align-items: center; gap: 8px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
      color: #0c1710; text-decoration: none; opacity: 0.65;
      transition: opacity 180ms ease;
      margin-bottom: 48px;
    }
    .art-back:hover { opacity: 1; }
    .art-meta-top {
      display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
      color: #0c1710; opacity: 0.65;
      margin-bottom: 28px;
    }
    .art-meta-top .art-tag {
      padding: 4px 10px; border-radius: 999px;
      background: rgba(12, 23, 16, 0.06);
    }
    .art-h1 {
      font-family: 'Fraunces', serif;
      font-weight: 360;
      font-size: clamp(40px, 5.6vw, 88px);
      line-height: 0.98;
      letter-spacing: -0.04em;
      color: #0c1710;
      margin: 0 0 32px;
      max-width: 880px;
      text-wrap: balance;
    }
    .art-h1 em { font-style: italic; font-weight: 320; }
    .art-dek {
      font-family: 'Fraunces', serif;
      font-weight: 360;
      font-size: clamp(20px, 2.2vw, 26px);
      line-height: 1.4;
      letter-spacing: -0.015em;
      color: #0c1710; opacity: 0.78;
      margin: 0 0 56px;
      max-width: 720px;
      text-wrap: pretty;
    }
    .art-meta {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0;
      padding: 24px 0;
      border-top: 1px solid rgba(12, 23, 16, 0.10);
      border-bottom: 1px solid rgba(12, 23, 16, 0.10);
    }
    .art-meta-cell {
      padding: 0 28px;
      border-left: 1px solid rgba(12, 23, 16, 0.08);
      display: flex; flex-direction: column; gap: 6px;
    }
    .art-meta-cell:first-child { border-left: none; padding-left: 0; }
    .art-meta-key {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
      color: #0c1710; opacity: 0.55;
    }
    .art-meta-val {
      font-family: 'Fraunces', serif;
      font-size: 17px; font-weight: 420; letter-spacing: -0.01em;
      color: #0c1710;
    }

    /* ─────────── article body layout ─────────── */
    .art-shell {
      position: relative;
      padding: 80px 28px 120px;
      background: #f8f7f2;
    }
    .art-shell-inner {
      max-width: 1240px; margin: 0 auto;
      display: grid;
      grid-template-columns: 240px 1fr;
      gap: 80px;
      align-items: start;
    }

    /* ─────────── sticky TOC ─────────── */
    .art-toc {
      position: sticky;
      top: 100px;
      max-height: calc(100vh - 120px);
      overflow-y: auto;
      padding-right: 8px;
      scrollbar-width: thin;
    }
    .art-toc-title {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
      color: #0c1710; opacity: 0.55;
      margin: 0 0 20px;
    }
    .art-toc-list {
      list-style: none; padding: 0; margin: 0;
      display: flex; flex-direction: column; gap: 2px;
    }
    .art-toc-item a {
      display: grid;
      grid-template-columns: 28px 1fr;
      gap: 12px;
      padding: 8px 12px;
      margin-left: -12px;
      border-radius: 6px;
      font-family: 'Inter', sans-serif;
      font-size: 13px; line-height: 1.4;
      color: #0c1710;
      text-decoration: none;
      opacity: 0.6;
      transition: opacity 180ms ease, background 180ms ease, color 180ms ease;
    }
    .art-toc-item a:hover { opacity: 1; background: rgba(12, 23, 16, 0.04); }
    .art-toc-item.is-active a {
      opacity: 1;
      background: rgba(181, 90, 60, 0.08);
      color: #b55a3c;
    }
    .art-toc-num {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      font-variant-numeric: tabular-nums;
      opacity: 0.65;
    }
    .art-toc-divider {
      height: 1px;
      background: rgba(12, 23, 16, 0.10);
      margin: 24px 0;
    }
    .art-toc-cta {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 10px 14px;
      border-radius: 999px;
      background: #0c1710; color: #f6f3ec;
      font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 500;
      text-decoration: none;
      border: 1px solid #0c1710;
    }

    /* ─────────── article body ─────────── */
    .art-body {
      max-width: 720px;
      font-family: 'Inter', sans-serif;
      font-size: 17px;
      line-height: 1.7;
      color: #0c1710;
    }
    .art-body p, .art-body ul, .art-body ol {
      margin: 0 0 24px;
      text-wrap: pretty;
    }
    .art-body p {
      color: #0c1710;
      opacity: 0.85;
    }
    .art-body strong { font-weight: 600; opacity: 1; color: #0c1710; }
    .art-body a {
      color: #0c1710;
      text-decoration: underline;
      text-decoration-color: rgba(181, 90, 60, 0.5);
      text-decoration-thickness: 1.5px;
      text-underline-offset: 3px;
      transition: text-decoration-color 180ms ease;
    }
    .art-body a:hover { text-decoration-color: #b55a3c; }
    .art-body ul, .art-body ol {
      padding-left: 24px;
    }
    .art-body li {
      margin-bottom: 10px;
      opacity: 0.85;
    }
    .art-body li::marker {
      color: #b55a3c;
      font-family: 'JetBrains Mono', monospace;
    }

    .art-section { scroll-margin-top: 100px; }
    .art-section-label {
      display: flex; align-items: center; gap: 14px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
      color: #0c1710; opacity: 0.55;
      margin-bottom: 16px;
      margin-top: 56px;
    }
    .art-section-num { font-variant-numeric: tabular-nums; }
    .art-section-rule { width: 28px; height: 1px; background: currentColor; opacity: 0.4; }

    .art-h2 {
      font-family: 'Fraunces', serif;
      font-weight: 380;
      font-size: clamp(28px, 3.2vw, 40px);
      line-height: 1.05;
      letter-spacing: -0.03em;
      color: #0c1710;
      margin: 0 0 28px;
      text-wrap: balance;
    }
    .art-h2 em { font-style: italic; }

    /* drop cap on first paragraph */
    .art-section--first > p:first-of-type::first-letter {
      font-family: 'Fraunces', serif;
      font-weight: 360;
      font-size: 84px;
      line-height: 0.85;
      float: left;
      padding: 6px 14px 0 0;
      color: #0c1710;
    }

    /* pull quote */
    .art-pullquote {
      margin: 56px -40px;
      padding: 40px 40px;
      border-top: 1px solid rgba(181, 90, 60, 0.4);
      border-bottom: 1px solid rgba(181, 90, 60, 0.4);
      position: relative;
    }
    .art-pullquote-mark {
      font-family: 'Fraunces', serif;
      font-style: italic;
      font-size: 96px;
      line-height: 0.7;
      color: #b55a3c;
      opacity: 0.5;
      position: absolute;
      top: 32px; left: -8px;
      pointer-events: none;
    }
    .art-pullquote blockquote {
      font-family: 'Fraunces', serif;
      font-style: italic;
      font-weight: 360;
      font-size: clamp(24px, 2.6vw, 32px);
      line-height: 1.25;
      letter-spacing: -0.02em;
      color: #0c1710;
      margin: 0;
      padding-left: 40px;
      text-wrap: balance;
    }

    /* sources */
    .art-sources {
      margin-top: 80px;
      padding-top: 32px;
      border-top: 1px solid rgba(12, 23, 16, 0.10);
    }
    .art-sources-label {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
      color: #0c1710; opacity: 0.55;
      margin: 0 0 20px;
    }
    .art-sources ul { list-style: none; padding: 0; margin: 0; }
    .art-sources li {
      padding: 14px 0;
      border-bottom: 1px solid rgba(12, 23, 16, 0.08);
      opacity: 1;
      margin: 0;
    }
    .art-sources li:last-child { border-bottom: none; }
    .art-sources li a {
      font-family: 'Inter', sans-serif;
      font-size: 14px;
      text-decoration: none;
      display: inline-flex; align-items: center; gap: 8px;
    }
    .art-sources li a::after {
      content: '↗';
      font-size: 11px;
      opacity: 0.6;
    }

    /* ─────────── related guides ─────────── */
    .related {
      padding: 100px 28px 120px;
      background: linear-gradient(180deg, #f8f7f2 0%, #f1efe6 100%);
      border-top: 1px solid rgba(12, 23, 16, 0.08);
    }
    .related-inner { max-width: 1240px; margin: 0 auto; }
    .related-header {
      margin-bottom: 48px;
      display: flex; justify-content: space-between; align-items: end;
      gap: 32px; flex-wrap: wrap;
    }
    .related-h2 {
      font-family: 'Fraunces', serif;
      font-weight: 380;
      font-size: clamp(32px, 3.6vw, 48px);
      line-height: 1.0;
      letter-spacing: -0.03em;
      color: #0c1710;
      margin: 0;
      text-wrap: balance;
    }
    .related-h2 em { font-style: italic; }
    .related-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
    }
    .related-card {
      position: relative;
      border-radius: 18px;
      border: 1px solid rgba(12, 23, 16, 0.08);
      background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.35));
      backdrop-filter: blur(10px) saturate(120%);
      -webkit-backdrop-filter: blur(10px) saturate(120%);
      overflow: hidden;
      transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
    }
    .related-card:hover {
      border-color: rgba(12, 23, 16, 0.18);
      transform: translateY(-2px);
      background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.6));
    }
    .related-card a {
      display: flex; flex-direction: column;
      padding: 24px 24px 22px;
      text-decoration: none; color: inherit;
      height: 100%; gap: 14px;
    }
    .related-kicker {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
      color: #0c1710; opacity: 0.55;
    }
    .related-card h3 {
      font-family: 'Fraunces', serif;
      font-weight: 420;
      font-size: 20px; line-height: 1.18;
      letter-spacing: -0.02em;
      color: #0c1710; margin: 0;
      text-wrap: balance;
      flex: 1;
    }
    .related-card-foot {
      display: flex; justify-content: space-between; align-items: center;
      padding-top: 12px;
      border-top: 1px solid rgba(12, 23, 16, 0.10);
      font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 500;
      color: #0c1710;
    }

    /* ─────────── chip ─────────── */
    .chip {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 6px 12px; border-radius: 999px;
      background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.35));
      border: 1px solid rgba(12, 23, 16, 0.10);
      backdrop-filter: blur(14px) saturate(140%);
      -webkit-backdrop-filter: blur(14px) saturate(140%);
      font-family: 'Inter', sans-serif;
      font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
      color: #0c1710; text-transform: uppercase;
    }
    .section-label {
      display: flex; align-items: center; gap: 14px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
      color: #0c1710; opacity: 0.65;
      margin-bottom: 28px;
    }
    .section-label-num { font-variant-numeric: tabular-nums; }
    .section-label-rule { width: 28px; height: 1px; background: currentColor; opacity: 0.4; }
    .section-label--light { color: #f3efe5; opacity: 0.7; }

    /* ─────────── CTA (homepage clone) ─────────── */
    .cta {
      position: relative;
      padding: 120px 28px 160px;
      background:
        radial-gradient(1200px 700px at 75% 20%, #1f3d2e 0%, transparent 60%),
        radial-gradient(900px 600px at 10% 90%, #15291e 0%, transparent 60%),
        #0c1710;
      color: #f3efe5; overflow: hidden;
    }
    .cta-glow {
      position: absolute; right: -180px; top: -160px;
      width: 620px; height: 620px; border-radius: 999px;
      background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.20), rgba(207,230,220,0.10) 40%, transparent 75%);
      filter: blur(2px); pointer-events: none;
    }
    .cta-inner { position: relative; max-width: 1240px; margin: 0 auto; }
    .cta-h2 {
      font-family: 'Fraunces', serif; font-weight: 380;
      font-size: clamp(44px, 5.6vw, 88px);
      line-height: 0.95; letter-spacing: -0.04em;
      margin: 0; text-wrap: balance;
    }
    .cta-h2 em { font-style: italic; font-weight: 340; }
    .cta-sub {
      font-family: 'Inter', sans-serif;
      font-size: 18px; line-height: 1.55;
      opacity: 0.72; margin: 0; max-width: 520px; text-wrap: pretty;
    }
    .cta-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 96px; align-items: start; }
    .cta-left { display: flex; flex-direction: column; gap: 32px; }
    .cta-left .section-label { margin-bottom: 0; }
    .cta-stats { display: flex; flex-direction: column; border-top: 1px solid rgba(243, 239, 229, 0.14); }
    .cta-stat { position: relative; padding: 40px 0 36px; border-bottom: 1px solid rgba(243, 239, 229, 0.14); }
    .cta-stat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
    .cta-stat-tag {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
      color: #f3efe5; opacity: 0.55;
    }
    .cta-chip {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 5px 11px; border-radius: 999px;
      background: rgba(217, 152, 120, 0.12);
      border: 1px solid rgba(217, 152, 120, 0.45);
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
      color: #d99878;
    }
    .cta-stat-row { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: baseline; }
    .cta-stat-num {
      font-family: 'Fraunces', serif;
      font-size: clamp(72px, 9vw, 128px);
      font-weight: 340; letter-spacing: -0.045em; line-height: 0.85;
      color: #f3efe5; font-variant-numeric: tabular-nums;
    }
    .cta-stat-num--accent { color: #d99878; }
    .cta-stat-body { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
    .cta-stat-label {
      font-family: 'Fraunces', serif; font-style: italic;
      font-size: clamp(20px, 2vw, 26px); font-weight: 380;
      letter-spacing: -0.015em; color: #f3efe5; line-height: 1.15;
    }
    .cta-stat-text {
      font-family: 'Inter', sans-serif;
      font-size: 14px; line-height: 1.55;
      color: #f3efe5; opacity: 0.55; margin: 0; text-wrap: pretty;
    }
    .cta-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
    .cta-btn {
      display: inline-flex; align-items: center; gap: 10px;
      padding: 16px 28px; border-radius: 999px;
      background: #0c1710; color: #f3efe5;
      font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500;
      text-decoration: none; border: 1px solid rgba(243, 239, 229, 0.18);
      box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 12px 28px rgba(0,0,0,0.35);
      transition: transform 180ms ease, background 180ms ease;
    }
    .cta-btn:hover { background: #1a3327; }
    .cta-note { font-family: 'Inter', sans-serif; font-size: 14.5px; opacity: 0.55; }

    /* ─────────── footer ─────────── */
    .footer {
      background: #f8f7f2;
      border-top: 1px solid rgba(12, 23, 16, 0.10);
      padding: 64px 28px 40px; color: #0c1710;
    }
    .footer-inner { max-width: 1240px; margin: 0 auto; }
    .footer-grid {
      display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
      gap: 60px; padding-bottom: 56px;
      border-bottom: 1px solid rgba(12, 23, 16, 0.10);
    }
    .footer-brand p {
      font-family: 'Inter', sans-serif;
      font-size: 14px; line-height: 1.55; opacity: 0.65;
      max-width: 320px; margin: 24px 0 18px; text-wrap: pretty;
    }
    .footer-contact {
      display: inline-flex; align-items: center; gap: 8px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px; letter-spacing: 0.04em;
      color: #0c1710; text-decoration: none;
      border-bottom: 1px solid rgba(12, 23, 16, 0.20);
      padding-bottom: 2px; opacity: 0.85;
      margin-top: 4px;
    }
    .footer-contact:hover { opacity: 1; border-bottom-color: #0c1710; }
    .footer-col-title {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
      opacity: 0.55; margin-bottom: 20px;
    }
    .footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
    .footer-col a { font-family: 'Inter', sans-serif; font-size: 14px; color: #0c1710; text-decoration: none; opacity: 0.78; }
    .footer-bottom {
      display: flex; justify-content: space-between; align-items: flex-start;
      padding-top: 32px; gap: 40px; flex-wrap: wrap;
    }
    .footer-fineprint {
      font-family: 'Inter', sans-serif; font-size: 11px; line-height: 1.6;
      opacity: 0.55; margin: 0; max-width: 720px; text-wrap: pretty;
    }
    .footer-copyright {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px; letter-spacing: 0.14em; opacity: 0.55;
    }

    /* ─────────── responsive ─────────── */
    @media (max-width: 960px) {
      .nav-inner { grid-template-columns: 1fr auto; gap: 16px; padding: 0 20px; }
      .nav-links { display: none; }
      .nav-actions .nav-signin { display: none; }
      .art-hero { padding-top: 120px; }
      .art-hero-inner { padding-right: 0; }
      .art-hero-inner > * { max-width: 100%; }
      .art-shell-inner { grid-template-columns: 1fr; gap: 0; }
      .art-toc { display: none; }
      .art-pullquote { margin: 40px 0; padding: 32px 0; }
      .art-pullquote-mark { left: -4px; }
      .art-meta { grid-template-columns: 1fr; gap: 16px; }
      .art-meta-cell { padding: 16px 0; border-left: none; border-top: 1px solid rgba(12,23,16,0.08); }
      .art-meta-cell:first-child { border-top: none; padding-top: 0; }
      .related-grid { grid-template-columns: 1fr 1fr; }
      .cta-grid { grid-template-columns: 1fr; gap: 48px; }
      .cta-stat-row { grid-template-columns: 1fr; gap: 8px; }
      .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    }


    /* Mobile fixes for article meta strips, padding */
    @media (max-width: 640px) {
      .art-hero-meta { display: grid !important; grid-template-columns: 1fr 1fr; gap: 14px 0 !important; padding-top: 18px !important; }
      .art-hero-meta-item, .art-hero-stat { padding: 0 14px !important; min-width: 0 !important; border-right: 1px solid rgba(12, 23, 16, 0.08) !important; }
      .art-hero-meta-item:nth-child(2n), .art-hero-stat:nth-child(2n) { border-right: none !important; padding-right: 0 !important; }
      .art-hero-meta-item:nth-child(2n+1), .art-hero-stat:nth-child(2n+1) { padding-left: 0 !important; }
      body, html { overflow-x: clip; }
    }

    /* iPhone Safari fix: solid nav background on mobile, extend the cream into the safe-area
       inset (under the status bar / notch) so that area never shows page content. */
    @media (max-width: 960px) {
      .nav {
        background: #f8f7f2 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        /* push nav content below the safe-area inset; nav's cream bg fills that inset */
        padding-top: env(safe-area-inset-top, 0);
        box-sizing: content-box;
      }
      .nav.is-solid { background: #f8f7f2 !important; }
      /* Also ensure body background extends into the safe area */
      html { background: #f8f7f2; }
      body { background: #f8f7f2; }
    }
