/* Screen edition. Keep the compact A4 typesetting in src/styles.css independent. */
:root {
  color-scheme: light;
  --paper: #f6f5ed;
  --rule: #c6c7ba;
  --signal: #c8dc3c;
  --link-ink: #485814;
  --bg: var(--paper);
  --max-w: 74rem;
}
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }
body {
  --bg: light-dark(#f6f5ed, #1c1e1a);
  --surface: light-dark(#fafaf5, #272a24);
  --surface-subtle: light-dark(#eaeae0, #30332b);
  --ink: light-dark(#22251f, #f1f1e6);
  --ink-secondary: light-dark(#43463e, #d3d5ca);
  --muted: light-dark(#5f6358, #adb1a1);
  --rule: light-dark(#bfc1b3, #53584b);
  --link-ink: light-dark(#485814, #ccdc74);
  --accent: var(--link-ink);
  --accent-hover: var(--ink);
  --accent-soft: var(--surface-subtle);
  --border: var(--rule);
  --shadow-sm: none;
}
.topbar { background: var(--bg); border-color: var(--ink); backdrop-filter: none; }
.brand { gap: .55rem; }
.brand__handle { color: var(--ink); font-weight: 600; font-size: 1rem; }
.nav { background: none; border: 0; gap: .6rem; }
.nav__link, .btn-chip, .btn-icon { border-radius: 2px; }
.nav__link.is-active { background: transparent; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
.btn-chip, .btn-icon { background: transparent; min-height: 36px; }
.hero__eyebrow, .portrait-plate figcaption, .interest-legend {
  color: var(--ink-secondary); font: 500 .71rem/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
}
.hero__eyebrow::before { content: ''; display: inline-block; width: .7em; height: .7em; margin-right: .65em; background: var(--signal); border: 1px solid var(--link-ink); }
.page-about .hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .95fr);
  column-gap: clamp(2rem, 5vw, 5rem); align-items: start; border: 0; padding: 0;
}
.page-about .hero__top { grid-column: 1; align-items: start; position: relative; }
.page-about .hero__identity { flex: 1; }
.page-about .hero__avatar { display: none; }
.page-about .hero__name { max-width: 9ch; margin: 1rem 0; font-size: clamp(3.6rem, 6.9vw, 6.2rem); font-weight: 500; letter-spacing: -.068em; line-height: .96; }
.hero__role { text-wrap: balance; }
.page-about .hero__location { max-width: 54ch; }
.page-about .hero__headline { grid-column: 1; max-width: 30ch; font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 400; line-height: 1.25; text-wrap: balance; }
.page-about .hero__actions { grid-column: 1; }
.hero__actions { align-items: center; gap: .45rem .85rem; }
.pill-link { padding: .3rem 0; border: none; border-radius: 0; background: transparent; text-decoration: underline; text-underline-offset: .28em; }
.pill-link:hover { transform: none; text-decoration: underline; color: var(--link-ink); background: none; }
.pill-link--primary, .pill-link--primary:hover { background: var(--ink); color: var(--bg); padding: .44rem .75rem; text-decoration: none; }
.portrait-plate { grid-column: 2; grid-row: 1 / 4; margin: 0; align-self: center; justify-self: end; width: min(100%, 23rem); border-block: 1px solid var(--ink); }
.portrait-plate img { width: 100%; height: auto; aspect-ratio: 1.12; object-fit: cover; object-position: center 22%; filter: grayscale(1); display: block; }
.portrait-plate figcaption { padding: .65rem 0; display: flex; justify-content: space-between; gap: .35rem; font-size: .66rem; }
.page-about .highlights { grid-column: 1 / -1; width: 100%; margin-top: clamp(2rem, 5vw, 4rem); border-block: 1px solid var(--ink); padding-block: .95rem; }
.metric-card, .switch-card, .toc { border-radius: 0; }
.page-about .metric-card { padding: 0; background: none; border: none; }
.page-about .metric-card__value { font: 500 1.8rem/1 var(--font-sans); letter-spacing: -.05em; }
.interest-tags { align-items: center; }
.interest-legend { width: 100%; font-size: .65rem; }
.interest-tag { padding: .22rem .55rem; background: transparent; border-radius: 2px; font-weight: 400; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .19em; }
.prose h2 { scroll-margin-top: 7.5rem; }
.page-about .prose { margin-top: clamp(2rem, 5vw, 4rem); }
.page-about .prose > p, .page-about .prose > blockquote { max-width: 66ch; margin-inline: auto; }
.page-about .prose > p:first-child { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -.035em; max-width: 33ch; text-wrap: balance; }
.page-about .prose > blockquote { border: 0; border-left: 3px solid var(--signal); background: transparent; }
.entry { margin-top: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--ink); padding-top: 1.2rem; display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 2fr); gap: 0 clamp(2rem, 5vw, 5rem); }
.entry > * { grid-column: 2; }
.entry > h2 { grid-column: 1; grid-row: 1 / span 2; align-self: start; display: block; border: 0; max-width: 13ch; margin: 0; padding: 0; font-size: clamp(1.65rem, 3.2vw, 2.75rem); line-height: 1.06; font-weight: 500; letter-spacing: -.05em; }
.entry > h2::before { display: block; margin-bottom: .85rem; content: '§ ' counter(section-num, decimal-leading-zero); }
.entry > h3 { margin-top: 1.5rem; font-size: 1.25rem; }
.entry > :nth-child(2) { margin-top: 0; }
.entry > ul { padding: 0; list-style: none; }
.entry > ul > li { border-bottom: 1px solid var(--rule); padding: .65rem 0; margin: 0; }
.entry > ul > li:first-child { padding-top: 0; }
.switch-card { border-width: 1px 0 0; background: transparent; }
.switch-card:hover { background: var(--surface-subtle); transform: none; }
.switch-card__title { font-size: 1.4rem; letter-spacing: -.03em; }
body:not(.page-about) .container { max-width: 55rem; }
@media (max-width: 760px) {
  .page-about .hero { grid-template-columns: minmax(0, 1fr); }
  .portrait-plate { display: none; }
  .page-about .hero__avatar { display: block; width: 3.6rem; height: 4.5rem; border-radius: 0; box-shadow: none; filter: grayscale(1); }
  .page-about .hero__name { font-size: clamp(3.2rem, 12vw, 4.8rem); }
  .entry { display: block; }
  .entry > h2 { max-width: none; margin-bottom: 1.25rem; }
  .interest-tags { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, .pill-link, .switch-card { transition: none; }
}
