:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #242b30;
  --muted: #62686c;
  --blue: #265d83;
  --line: #dedfd9;
  --body-text: #50585e;
  --description: #535c62;
  --underline: #b8cad7;
  --surface: #f0f0eb;
  --control-border: #cbd2d4;
  --badge-text: #7b5b2b;
  --badge-bg: #eee8d9;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #151b20;
  --ink: #e5e9ed;
  --muted: #aab4be;
  --blue: #8ac5ee;
  --line: #34414c;
  --body-text: #c2ccd4;
  --description: #bac6cf;
  --underline: #496779;
  --surface: #212a32;
  --control-border: #485967;
  --badge-text: #dbc28f;
  --badge-bg: #3a3326;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration-color: var(--underline); text-underline-offset: 4px; }
a:hover { color: var(--ink); text-decoration-color: currentColor; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; border-radius: 2px; }
img { display: block; max-width: 100%; }
button { font: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, figure { margin: 0; }
strong { font-weight: 600; }
.wrap { width: min(100% - 96px, 1000px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 2; padding: 8px 14px; background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 104px; border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; gap: 32px; margin-left: auto; }
.site-header nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
.site-header nav a:hover { color: var(--blue); }
.site-header nav span { margin-left: 3px; color: var(--blue); }
.theme-toggle { display: flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 7px; height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 18px; background: transparent; color: var(--muted); font-size: 12px; white-space: nowrap; }
.theme-toggle:hover { color: var(--blue); border-color: var(--blue); }
.theme-toggle .sun, [data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) 244px; align-items: center; gap: 86px; padding: 91px 0 92px; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 1.7px; line-height: 1.5; text-transform: uppercase; }
h1 { margin-top: 15px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(45px, 5.4vw, 66px); font-weight: 400; letter-spacing: -2.6px; line-height: 1.15; }
.name-dot { color: var(--blue); }
.lead { margin: 19px 0 23px; font-family: Georgia, "Times New Roman", serif; font-size: 27px; line-height: 1.4; letter-spacing: -.4px; }
.intro-copy > p:not(.eyebrow):not(.lead) { margin-top: 14px; max-width: 610px; color: var(--body-text); font-size: 15px; line-height: 1.8; }
.intro-copy strong { color: var(--ink); }
.social-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 26px; }
.social-links a { font-size: 13px; font-weight: 500; text-decoration: none; }
.social-links a:hover { text-decoration: underline; }
.social-links span { margin-left: 4px; font-size: 14px; }
.portrait { align-self: center; }
.portrait img { width: 244px; height: 294px; object-fit: cover; border-radius: 3px; }
.portrait figcaption { display: flex; align-items: center; gap: 7px; margin-top: 14px; color: var(--muted); font-size: 11px; letter-spacing: .3px; }
.location-dot { width: 5px; height: 5px; border-radius: 50%; background: #658274; }

.research { border-top: 1px solid var(--line); padding-top: 37px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 9px; }
h2 { margin-top: 8px; font-family: Georgia, "Times New Roman", serif; font-size: 38px; font-weight: 400; letter-spacing: -1.2px; line-height: 1.25; }
.quiet-link { margin-bottom: 6px; font-size: 12px; text-decoration: none; }
.quiet-link:hover { text-decoration: underline; }
.quiet-link span { margin-left: 8px; }
.paper { display: grid; grid-template-columns: 284px minmax(0, 1fr); gap: 34px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.paper-image { display: flex; align-items: center; justify-content: center; align-self: start; min-height: 182px; padding: 12px; margin-top: 3px; overflow: hidden; background: #fff; border: 1px solid #e9e9e3; border-radius: 3px; }
.paper-image img { width: 100%; height: 165px; object-fit: contain; transition: transform .25s ease; }
.paper-image:hover img { transform: scale(1.025); }
.paper-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .7px; text-transform: uppercase; }
.highlight { border-radius: 2px; padding: 1px 7px; color: var(--badge-text); background: var(--badge-bg); font-size: 10px; letter-spacing: .5px; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.45; letter-spacing: -.25px; }
.paper h3 { margin-top: 9px; }
.paper h3 a, .paper-compact h4 a { color: var(--ink); text-decoration: none; }
.paper h3 a:hover, .paper-compact h4 a:hover { color: var(--blue); }
.authors { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.authors strong { color: var(--ink); }
.paper-description { margin-top: 10px; color: var(--description); font-size: 13px; line-height: 1.75; }
.paper-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; }
.paper-links a { font-size: 12px; font-weight: 500; text-decoration: none; }
.paper-links a:hover { text-decoration: underline; }
.citation { margin-top: 10px; font-size: 11px; }
.citation summary { width: fit-content; color: var(--muted); }
.citation summary:hover { color: var(--blue); }
.citation-content { position: relative; margin-top: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); }
.citation pre { margin: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-citation { display: block; margin: 0 0 12px auto; padding: 4px 9px; border: 1px solid var(--control-border); border-radius: 3px; background: var(--paper); color: var(--blue); font-size: 11px; }
.copy-citation:hover { border-color: var(--blue); }
.publication-note { margin-top: 14px; color: var(--muted); font-size: 11px; }
.further-publications { padding-top: 37px; }
.further-publications > h3 { font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 400; }
.paper-compact { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.paper-compact > .paper-meta { display: block; padding-top: 3px; }
.paper-compact h4 { font-size: 15px; line-height: 1.6; font-weight: 600; }
.paper-compact .authors { margin-top: 5px; }
.paper-compact .paper-description { margin-top: 6px; }
.paper-compact .paper-links { margin-top: 8px; }

.contact { display: flex; align-items: end; justify-content: space-between; gap: 35px; padding: 72px 0 64px; }
.contact h2 { margin-top: 11px; font-size: 42px; }
.contact p:not(.eyebrow):not(.affiliation) { margin-top: 18px; color: var(--muted); font-size: 14px; }
.email-link { display: inline-block; margin-top: 18px; font-size: 15px; text-decoration: none; }
.email-link:hover { text-decoration: underline; }
.email-link span { display: inline-block; margin-left: 12px; }
.affiliation { padding-bottom: 3px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.site-footer span[aria-hidden] { margin-left: 8px; }

@media (max-width: 800px) {
  .wrap { width: calc(100% - 56px); }
  .intro { gap: 35px; grid-template-columns: minmax(0, 1fr) 195px; padding-block: 65px; }
  .portrait img { width: 195px; height: 244px; }
  .paper { grid-template-columns: 225px minmax(0, 1fr); gap: 25px; }
  .paper-image { min-height: 155px; padding: 8px; }
  .paper-image img { height: 145px; }
  .social-links { gap: 18px; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { height: 78px; gap: 12px; }
  .site-header nav { gap: 10px; }
  .site-header nav a { font-size: 12px; }
  .intro { grid-template-columns: 1fr; gap: 32px; padding: 43px 0 44px; }
  h1 { font-size: 54px; letter-spacing: -2.4px; }
  .lead { margin-top: 15px; font-size: 25px; }
  .intro-copy > p:not(.eyebrow):not(.lead) { font-size: 14px; }
  .portrait { display: flex; align-items: end; gap: 18px; }
  .portrait img { width: 104px; height: 124px; }
  .portrait figcaption { margin: 0 0 6px; }
  .social-links { margin-top: 24px; gap: 23px; }
  .social-links a { font-size: 12px; }
  .research { padding-top: 28px; }
  .section-heading { display: block; }
  h2 { font-size: 35px; }
  .quiet-link { display: inline-block; margin-top: 13px; }
  .paper { grid-template-columns: 1fr; gap: 21px; padding-block: 28px; }
  .paper-image { min-height: 0; padding: 15px; }
  .paper-image img { height: auto; max-height: 225px; object-fit: contain; }
  .paper h3 { font-size: 18px; }
  .paper-links { gap: 24px; }
  .paper-links a, .citation { font-size: 12px; }
  .paper-compact { grid-template-columns: 1fr; gap: 7px; }
  .further-publications { padding-top: 28px; }
  .contact { flex-direction: column; align-items: start; gap: 28px; padding-block: 46px; }
  .contact h2 { font-size: 38px; }
  .email-link { font-size: 14px; }
  .desktop-break { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .paper-image img { transition: none; }
}

@media print {
  :root[data-theme="dark"] { color-scheme: light; --ink: #242b30; --muted: #62686c; --blue: #265d83; --line: #dedfd9; --body-text: #50585e; --description: #535c62; --surface: #f0f0eb; --badge-text: #7b5b2b; --badge-bg: #eee8d9; }
  body { background: white; font-size: 12px; }
  .wrap { width: 100%; }
  .site-header, .site-footer, .copy-citation { display: none; }
  .intro { padding-block: 20px; }
  .paper { break-inside: avoid; padding-block: 20px; }
  .contact { padding-block: 25px; }
}
