:root {
  color-scheme: light;
  --background: #faf9f6;
  --surface: #fffefa;
  --text: #383a36;
  --strong: #232822;
  --muted: #686f63;
  --accent: #47644b;
  --line: #e3e4dc;
  --chip: #eeefe7;
  --chip-hover: #e2e8db;
  --shadow: 0 8px 24px #28342612, 0 24px 70px #28342612;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #1c201d;
  --surface: #262c27;
  --text: #d4d9d0;
  --strong: #edf0e8;
  --muted: #a2ab9c;
  --accent: #b1c8a2;
  --line: #363e35;
  --chip: #30392f;
  --chip-hover: #3e4a39;
  --shadow: 0 8px 24px #0003, 0 24px 70px #0003;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #1c201d;
    --surface: #262c27;
    --text: #d4d9d0;
    --strong: #edf0e8;
    --muted: #a2ab9c;
    --accent: #b1c8a2;
    --line: #363e35;
    --chip: #30392f;
    --chip-hover: #3e4a39;
    --shadow: 0 8px 24px #0003, 0 24px 70px #0003;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--text); font-size: 16px; line-height: 1.8; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
button { font: inherit; }
button, a { touch-action: manipulation; }
button { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
::selection { background: var(--chip-hover); color: var(--strong); }
.page { max-width: 700px; margin: 0 auto; padding: 0 0 38px; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 8px 16px; background: var(--surface); z-index: 10; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.masthead { height: 104px; display: flex; align-items: center; justify-content: flex-end; }
.theme-toggle { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; border-radius: 50%; cursor: pointer; }
.theme-toggle:hover { background: var(--chip); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .sun { display: none; }
.theme-toggle[data-dark="true"] .sun { display: block; }
.theme-toggle[data-dark="true"] .moon { display: none; }
.title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
h1 { color: var(--strong); font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 45px; letter-spacing: -1.8px; line-height: 1.2; margin: 0; }
.location { font-size: 12px; color: var(--muted); white-space: nowrap; letter-spacing: .01em; }
.location-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); vertical-align: middle; margin-right: 6px; }
.bio p { margin: 0 0 20px; }
.handline { position: relative; font-family: Georgia, "Times New Roman", serif; font-size: 1.12em; color: var(--strong); }
.handline::after { content: ""; position: absolute; left: -1px; bottom: -3px; width: 103%; height: 5px; border-top: 1.5px solid var(--accent); border-radius: 50%; transform: rotate(-5deg); opacity: .7; }
.annotation-wrap { display: inline-flex; vertical-align: baseline; }
.annotation { display: inline-flex; align-items: center; gap: 5px; padding: 1px 6px 1px 4px; border: 1px solid var(--line); border-radius: 5px; background: var(--chip); color: var(--strong); text-decoration: none; font: inherit; font-size: .94em; font-weight: 500; line-height: 1.45; vertical-align: baseline; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.annotation:hover, .annotation[aria-expanded="true"] { background: var(--chip-hover); border-color: var(--accent); color: var(--strong); }
.annotation-plus { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 1px; }
.brand-mark { border-radius: 3px; flex-shrink: 0; }
.mini-mark { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; flex-shrink: 0; }
.materials-mark { object-fit: contain; border-radius: 0; }
.research-mark { color: var(--accent); padding: 1px; }
.note { position: fixed; z-index: 5; display: block; width: 330px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); line-height: 1.5; animation: note-in .16s ease-out; }
.note-eyebrow { display: block; margin-bottom: 9px; color: var(--muted); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .09em; padding-right: 12px; }
.note-title { display: block; color: var(--strong); font-family: Georgia, "Times New Roman", serif; font-size: 23px; line-height: 1.22; margin-bottom: 13px; letter-spacing: -.5px; }
.note-copy { display: block; color: var(--text); font-size: 13px; line-height: 1.7; }
.note-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--accent); font-size: 12px; text-decoration: none; }
.note-link:hover { text-decoration: underline; }
.note-close { position: absolute; top: 7px; right: 7px; width: 32px; height: 32px; background: transparent; border: 0; color: var(--muted); line-height: 1; font-size: 23px; cursor: pointer; border-radius: 50%; }
.note-close:hover { background: var(--chip); }
@keyframes note-in { from { opacity: 0; translate: 0 4px; } to { opacity: 1; translate: 0 0; } }
.work-section { margin-top: 49px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
h2 { color: var(--strong); font-size: 15px; font-weight: 600; line-height: 1.4; margin: 0; letter-spacing: -.2px; }
.section-more { color: var(--muted); font-size: 11px; text-decoration: none; white-space: nowrap; }
.section-more span { margin-left: 3px; }
.section-more:hover { color: var(--accent); }
.scholar-link { color: var(--accent); font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.scholar-link span { margin-left: 3px; }
.section-intro { color: var(--muted); font-size: 13px; margin: 6px 0 14px; }
.paper-list { padding: 0; margin: 0; list-style: none; }
.outbound { font-size: .85em; color: var(--muted); white-space: nowrap; }
.research-section { margin-top: 43px; }
.paper-list { margin-top: 21px; }
.paper-list li { margin-bottom: 23px; }
.paper-list li:last-child { margin-bottom: 0; }
.paper-list a { display: block; max-width: 610px; color: var(--text); font-size: 14px; line-height: 1.65; text-decoration: none; }
.paper-list a:hover { color: var(--accent); text-decoration: underline; }
.paper-meta { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.paper-meta > span { padding: 0 3px; }
.elsewhere { margin-top: 45px; }
.social-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 14px; }
.social-links a { font-size: 13px; text-decoration: none; }
.social-links span { color: var(--muted); font-size: 11px; margin-left: 3px; }
.social-links a:hover { text-decoration: underline; }
.contact { margin: 23px 0 0; font-size: 13px; color: var(--muted); line-height: 1.9; }
.contact a { color: var(--text); }
footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 58px; padding-top: 19px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }

@media (max-width: 780px) {
  .page { margin: 0 32px; }
  .masthead { height: 94px; }
  h1 { font-size: 40px; }
}
@media (max-width: 540px) {
  body { font-size: 15px; line-height: 1.85; }
  .page { margin: 0 24px; padding-bottom: 25px; }
  .masthead { height: 80px; }
  .title-row { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 27px; }
  h1 { font-size: 38px; letter-spacing: -1.5px; }
  .location { font-size: 11px; }
  .bio p { margin-bottom: 19px; }
  .annotation { font-size: .93em; }
  .work-section { margin-top: 39px; }
  .section-more { font-size: 10px; }
  .research-section .section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .scholar-link { font-size: 12px; }
  .paper-list a { font-size: 13px; }
  .paper-meta { font-size: 10px; }
  .social-links { gap: 23px; }
  .contact { font-size: 12px; }
  .desktop-break { display: none; }
  footer { margin-top: 43px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
