
  :root {
    --bg: #fcfbf8;
    --bg-card: #ffffff;
    --bg-alt: #f3f1ea;
    --text: #0f172a;
    --text-dim: #475569;
    --muted: #64748b;
    --border: #e2e8f0;
    --accent: #b45309;
    --accent-alt: #064e3b;
    --rule: #0f172a;
    --max: 880px;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #0b0d10;
      --bg-card: #131619;
      --bg-alt: #1a1e22;
      --text: #e5e7eb;
      --text-dim: #9ca3af;
      --muted: #6b7280;
      --border: #262a30;
      --accent: #f59e0b;
      --accent-alt: #10b981;
      --rule: #e5e7eb;
    }
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: ui-sans-serif, -apple-system, "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  .wrap { max-width: var(--max); margin: 0 auto; padding: 48px 28px 80px; }
  .rule { display: block; border: 0; border-top: 1px solid var(--border); margin: 36px 0; }

  /* Typography */
  h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
  h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.1; margin: 0 0 10px; }
  h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
  h3 { font-size: 20px; margin: 0 0 4px; font-weight: 700; }
  p { margin: 0 0 14px; color: var(--text-dim); }
  a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
  a:hover { border-bottom-color: var(--accent); }
  strong { color: var(--text); font-weight: 700; }
  code { font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; font-size: 0.92em; background: var(--bg-alt); padding: 1px 6px; border-radius: 4px; color: var(--text); }

  /* Hero */
  .hero { margin-bottom: 28px; }
  .hero .kicker { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
  .hero .lede { font-size: 19px; color: var(--text-dim); max-width: 640px; margin-top: 14px; }
  .hero .meta { margin-top: 20px; font-size: 13px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
  .hero .meta span::before { content: "·  "; opacity: 0.5; }
  .hero .meta span:first-child::before { content: ""; }

  /* Section */
  section { margin-top: 44px; }
  section p:last-child { margin-bottom: 0; }

  /* Primitives */
  .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
  @media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
  .card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; }
  .card h3 { margin-bottom: 6px; }
  .card .stat { font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; color: var(--accent); font-weight: 700; font-size: 15px; margin-bottom: 10px; }
  .card p { font-size: 14.5px; margin-bottom: 8px; color: var(--text-dim); }
  .card a { font-size: 13px; font-weight: 600; }

  /* Formula callout */
  .formula {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    padding: 26px 30px;
    margin-top: 18px;
  }
  .formula .eq {
    font-family: ui-monospace, "JetBrains Mono", Consolas, monospace;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 10px 0 18px;
    letter-spacing: 0.02em;
  }
  .formula .shannon { font-style: italic; color: var(--text-dim); margin-bottom: 14px; }
  .formula ul { list-style: none; padding: 0; margin: 12px 0 0; font-size: 14.5px; }
  .formula li { margin: 6px 0; color: var(--text-dim); }
  .formula li strong { display: inline-block; min-width: 1.4em; color: var(--accent); }

  /* Timeline */
  .timeline { list-style: none; padding: 0; margin: 18px 0 0; }
  .timeline li {
    display: grid; grid-template-columns: 100px 1fr; gap: 20px;
    padding: 12px 0; border-bottom: 1px dotted var(--border);
    font-size: 14.5px; color: var(--text-dim);
  }
  .timeline li:last-child { border-bottom: 0; }
  .timeline .t-year { font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; color: var(--muted); font-weight: 700; font-size: 13px; }
  .timeline .t-event strong { color: var(--text); }

  /* Receipt block */
  .receipt {
    background: var(--bg-alt);
    border-radius: 10px;
    padding: 22px 26px;
    margin-top: 18px;
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.7;
  }
  .receipt .nums {
    display: flex; gap: 18px; flex-wrap: wrap;
    margin: 10px 0 12px;
    font-family: ui-monospace, "JetBrains Mono", Consolas, monospace;
    font-size: 13px;
    color: var(--text);
  }
  .receipt .nums b { color: var(--accent); }

  /* Open to / CTA */
  .open {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 26px 30px;
    margin-top: 18px;
  }
  .open h3 { margin-bottom: 12px; }
  .open ul { margin: 0; padding-left: 22px; color: var(--text-dim); }
  .open li { margin: 6px 0; font-size: 15px; }
  .cta {
    display: inline-block;
    margin-top: 18px;
    padding: 11px 22px;
    background: var(--text);
    color: var(--bg);
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: 0;
  }
  .cta:hover { border: 0; opacity: 0.9; }

  /* Publications */
  .pubs { margin: 18px 0 0; padding: 0; list-style: none; font-size: 15px; }
  .pubs li { padding: 10px 0; border-bottom: 1px dotted var(--border); color: var(--text-dim); }
  .pubs li:last-child { border-bottom: 0; }
  .pubs .doi { font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; font-size: 12px; color: var(--muted); display: block; margin-top: 3px; }

  /* Inline contact form */
  .contact-form {
    margin-top: 20px;
    padding: 22px 26px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: none;
  }
  .contact-form.open { display: block; }
  .contact-form label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    margin: 12px 0 4px;
  }
  .contact-form label:first-child { margin-top: 0; }
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
  }
  .contact-form button {
    margin-top: 16px;
    padding: 10px 22px;
    background: var(--text);
    color: var(--bg);
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
  }
  .contact-form .status {
    margin-top: 12px;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 6px;
    display: none;
  }
  .contact-form .status.ok {
    display: block;
    background: rgba(5,150,105,0.08);
    border: 1px solid rgba(5,150,105,0.3);
    color: #065f46;
  }
  .contact-form .status.err {
    display: block;
    background: rgba(220,38,38,0.08);
    border: 1px solid rgba(220,38,38,0.3);
    color: #991b1b;
  }

  /* Hero with photo */
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 32px;
    align-items: start;
  }
  @media (max-width: 640px) { .hero-grid { grid-template-columns: 1fr; } }
  
  

  /* Pull quotes */
  .pull {
    margin: 44px 0;
    padding: 22px 0 22px 28px;
    border-left: 3px solid var(--accent);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.35;
    font-weight: 500;
    color: var(--text);
    font-style: italic;
  }
  .pull .attrib {
    display: block;
    margin-top: 10px;
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-style: normal;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
  }

  /* Note from Claude */
  .claude-note {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0;
    margin-top: 18px;
    overflow: hidden;
  }
  .claude-note summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 24px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
  }
  .claude-note summary::-webkit-details-marker { display: none; }
  .claude-note summary::before {
    content: "▸";
    color: var(--accent);
    font-size: 13px;
    transition: transform 0.15s;
    display: inline-block;
  }
  .claude-note[open] summary::before { transform: rotate(90deg); }
  .claude-note summary .tag {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    margin-left: auto;
  }
  .claude-note .body {
    padding: 0 24px 22px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-dim);
  }
  .claude-note .body p { margin: 0 0 14px; }
  .claude-note .body p:last-child { margin-bottom: 0; }
  .claude-note .body strong { color: var(--text); }
  .claude-note .body code {
    font-size: 0.9em;
    background: var(--bg-alt);
    padding: 1px 6px;
    border-radius: 4px;
  }
  .claude-note .sig {
    margin-top: 18px;
    font-size: 13px;
    color: var(--muted);
    font-style: italic;
  }

  /* Press bio */
  .press {
    background: var(--bg-alt);
    border-radius: 10px;
    padding: 24px 28px;
    margin-top: 18px;
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.75;
    position: relative;
  }
  .press .label {
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--muted); font-weight: 700; margin-bottom: 10px;
    display: flex; justify-content: space-between; align-items: center;
  }
  .press .copy-btn {
    font-family: inherit;
    font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--accent); font-weight: 700;
    background: transparent; border: 0; cursor: pointer;
    padding: 0;
  }
  .press .copy-btn:hover { text-decoration: underline; }
  .press .bio-body strong { color: var(--text); }

  /* Footer */
  footer { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
  footer p { color: var(--muted); font-size: 13px; }
  footer a { color: var(--muted); }

/* ---- multi-page additions ---- */
.site-nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
}
.site-nav .inner {
  max-width: var(--max); margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  min-height: 56px;
}
.site-nav .brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 19px; font-weight: 600; color: var(--text);
  border-bottom: none; margin-right: auto; white-space: nowrap;
}
.site-nav .brand:hover { border-bottom: none; color: var(--accent); }
.site-nav a.nl {
  font-size: 13.5px; color: var(--text-dim); border-bottom: 1px solid transparent;
  padding: 4px 0; white-space: nowrap;
}
.site-nav a.nl:hover { color: var(--accent); border-bottom-color: var(--accent); }
.site-nav a.nl[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.page-head { padding: 52px 0 10px; }
.page-head h1 { font-size: 34px; margin: 0 0 10px; line-height: 1.2; }
.page-head .kicker {
  font-size: 12px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); margin-bottom: 10px;
}

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 16px; margin: 26px 0 8px;
}
.card {
  border: 1px solid var(--border); border-radius: 10px; padding: 18px 18px 16px;
  background: var(--bg-card); transition: border-color .15s, transform .15s;
  display: block;
}
a.card { border-bottom: 1px solid var(--border); }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { margin: 0 0 4px; font-size: 20px; }
.card .tag {
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); margin-bottom: 9px;
}
.card p { font-size: 13.5px; margin: 0; line-height: 1.65; }

.visit {
  display: inline-block; margin-top: 18px; padding: 9px 17px;
  border: 1px solid var(--accent); border-radius: 7px;
  font-size: 13.5px; color: var(--accent); border-bottom: 1px solid var(--accent);
}
.visit:hover { background: var(--accent); color: var(--bg); }

.hero-split { display: flex; gap: 34px; align-items: flex-start; flex-wrap: wrap; }
.hero-split .hero-text { flex: 1 1 340px; }
.hero-photo, .hero-photo-fallback {
  width: 168px; height: 168px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--border); flex: 0 0 auto;
}
.hero-photo-fallback {
  display: none; align-items: center; justify-content: center;
  background: var(--bg-alt); color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 44px;
}
.press-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.press-item:last-of-type { border-bottom: none; }
.press-item .outlet {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .13em;
  color: var(--accent); margin-bottom: 5px;
}
.press-item h3 { margin: 0 0 5px; font-size: 20px; line-height: 1.3; }
.press-item .byline { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.press-item blockquote {
  margin: 10px 0 12px; padding: 2px 0 2px 15px;
  border-left: 2px solid var(--accent); color: var(--text-dim);
  font-size: 14px; line-height: 1.7; font-style: italic;
}
.press-item .syn {
  display: inline-block; font-size: 11.5px; color: var(--muted);
  background: var(--bg-alt); border-radius: 4px; padding: 2px 8px; margin-bottom: 9px;
}
.backlink { display: inline-block; margin: 34px 0 0; font-size: 13px; color: var(--muted); }
.backlink:hover { color: var(--accent); }

@media (max-width: 620px) {
  .site-nav .inner { gap: 14px; padding: 8px 16px; }
  .site-nav .brand { margin-right: 0; width: 100%; }
  .page-head h1 { font-size: 27px; }
  .hero-photo, .hero-photo-fallback { width: 120px; height: 120px; }
}
