/* VOICE   formal and warm: a scholar's personal site, quiet enough to read for a while.
   IDEA    the annotated casebook: clean pages, one reader's yellow highlighter.
   PICTURE hand-inked spot drawings for each research question, each with one highlighter swipe.
   COLOUR  white page, ink, highlighter yellow for emphasis, ink-blue for links.
   TYPE    Literata for reading, Libre Franklin for the name, navigation and headings.
   LAYOUT  a full-width header rule, a 40rem reading column; photo beside the bio. */

:root {
  --bg: #ffffff; --ink: #1c2028; --muted: #596070; --rule: #e3e5ea;
  --link: #1b4a85; --hl: #f9e675; --paper: #ffffff; --tint: #fbf6d6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg: #15181d; --ink: #e8e6e1; --muted: #a3a8b2; --rule: #2c313a;
    --link: #9cc2f2; --hl: #6b5c12; --paper: #1d2129; --tint: #2a2716;
    color-scheme: dark;
  }
}
:root[data-theme=dark] {
  --bg: #15181d; --ink: #e8e6e1; --muted: #a3a8b2; --rule: #2c313a;
  --link: #9cc2f2; --hl: #6b5c12; --paper: #1d2129; --tint: #2a2716;
  color-scheme: dark;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.7 "Literata", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto; overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { background: linear-gradient(transparent 60%, var(--hl) 60%); text-decoration-color: transparent; color: var(--ink); }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 10; }

h1, h2, h3, .name, nav, .yr, .role, .note, .more, .back, .foot, .events span, .slot span, .toc {
  font-family: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.08; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 24px; text-wrap: balance; }
h2 { font-size: 23px; line-height: 1.25; font-weight: 600; margin: 40px 0 12px; text-wrap: balance; }
h3 { font-size: 18px; line-height: 1.35; font-weight: 600; margin: 32px 0 8px; }
p { margin: 0 0 1em; }

/* header and footer */
.bar { max-width: 1120px; margin: 0 auto; padding: 0 max(4vw, 20px); }
.top { border-bottom: 1px solid var(--rule); }
.top .bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 32px; padding-top: 26px; padding-bottom: 18px; }
.name { font-size: 22px; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -0.005em; }
.name:hover { background: none; }
nav[aria-label=Main] { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15.5px; font-weight: 500; }
nav[aria-label=Main] a { color: var(--ink); text-decoration: none; padding: 6px 1px; }
nav[aria-label=Main] a[aria-current=page] { background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 90%, transparent 90%); }
nav[aria-label=Main] a:hover { background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 90%, transparent 90%); }
.foot { border-top: 1px solid var(--rule); margin-top: 72px; color: var(--muted); font-size: 14px; }
.foot .bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 22px; padding-bottom: 32px; }
.foot p { margin: 0; }
.foot a { color: var(--muted); }

/* main column */
main { max-width: 1120px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) max(4vw, 20px) 0; }
main.col > * { max-width: 40rem; }
main.wide > h1, main.wide > .note, main.wide > .toc { max-width: 40rem; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 40rem); gap: clamp(32px, 5vw, 64px); align-items: start; }
.portrait { margin: 6px 0 0; }
.portrait img { display: block; width: 100%; height: auto; border-radius: 3px; }
.role { color: var(--muted); font-size: 17px; margin: -12px 0 28px; }

/* research */
.toc ul { list-style: none; padding: 0; margin: 0 0 16px; columns: 2 18rem; column-gap: 32px; font-size: 15px; line-height: 1.45; }
.toc li { break-inside: avoid; padding: 4px 0; }
.toc a { color: var(--ink); text-decoration-color: var(--rule); }
.topic { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 40rem); gap: clamp(24px, 4vw, 56px); padding: 44px 0 20px; border-top: 1px solid var(--rule); margin-top: 32px; }
.topic + .topic { margin-top: 0; }
.topic h2 { margin-top: 0; }
.fig { padding-top: 4px; }
.ill { display: block; width: 100%; height: auto; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ill .p { fill: var(--paper); }
.ill .h { fill: var(--hl); stroke: none; }
.ill .dot { fill: var(--ink); stroke: none; }
.ill .thin { stroke-width: 1.6; }
.ill .mid { stroke-width: 2.6; }
.ill .thick { stroke-width: 4; }
.ill .handle { stroke-width: 9; }
.ill .t { fill: var(--ink); stroke: none; }
.ill .big { font: italic 600 48px "Literata", Georgia, serif; }
.ill .sm { font: 500 13px "Libre Franklin", system-ui, sans-serif; }
.ill .hello { font: 600 26px "Libre Franklin", system-ui, sans-serif; }
.ill .hand { font: italic 400 18px "Literata", Georgia, serif; }
.ill .sect { font: 600 30px "Literata", Georgia, serif; }

/* publications */
.note { color: var(--muted); font-size: 15px; margin-top: -8px; }
.pubgroup { max-width: 46rem; }
.pubgroup h2 { border-top: 1px solid var(--rule); padding-top: 28px; margin-top: 40px; }
.pubs { list-style: none; margin: 0; padding: 0; }
.pubs li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.pubs p { margin: 0; font-size: 16.5px; line-height: 1.6; }
.pubs strong { font-weight: 600; }
.yr { color: var(--muted); font-size: 14.5px; font-weight: 500; padding-top: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.more { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; margin-left: 12px; font-size: 13.5px; font-weight: 500; vertical-align: 1px; }
sup { font-size: 0.7em; line-height: 0; }

/* pals, contact, other pages */
.notice { background: var(--tint); border-left: 4px solid var(--hl); padding: 14px 18px; border-radius: 0 3px 3px 0; }
.contact { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact h2 { font-size: 15px; color: var(--muted); font-weight: 500; margin: 24px 0 2px; }
.contact h1 + h2 { margin-top: 0; }
.snap { margin: 8px 0 0; }
.snap img { display: block; width: 100%; height: auto; border-radius: 3px; }
.events { list-style: none; padding: 0; margin: 0; }
.events li { padding: 10px 0; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; }
.events span { color: var(--muted); font-size: 14.5px; white-space: nowrap; }
.back { font-size: 14.5px; margin-bottom: 18px; }
.slot { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 8px; margin: 0 0 6px; }
.slot span { color: var(--muted); font-size: 14.5px; padding-top: 2px; white-space: nowrap; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--rule); border-radius: 3px; overflow: hidden; margin: 0 0 12px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.small { font-size: 15px; color: var(--muted); }

@media (max-width: 760px) {
  .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 260px; }
  .topic { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 32px; }
  .fig { max-width: 190px; }
  .top .bar { padding-top: 18px; padding-bottom: 12px; }
  nav[aria-label=Main] { gap: 2px 16px; font-size: 15px; }
}
@media (max-width: 480px) {
  body { font-size: 16.5px; }
  .pubs li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .yr { padding-top: 0; }
  .more { display: flex; margin: 4px 0 0; }
}
