:root {
  color-scheme: light;
  --paper: #fcfbf8;
  --ink: #292d30;
  --muted: #676b6e;
  --accent: #315b63;
  --rule: #dddcd6;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: #173e46; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 1px; }
.container { width: min(100% - 96px, 1020px); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 5; padding: 8px 16px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { padding-top: 47px; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-bottom: 29px; border-bottom: 1px solid var(--rule); }
.brand { color: var(--ink); text-decoration: none; }
.brand-name { display: block; font: 39px/1.2 var(--serif); letter-spacing: -1.15px; }
.site-nav { display: flex; align-items: center; gap: 29px; padding-top: 6px; font-size: 15px; white-space: nowrap; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 5px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }
main { flex: 1; padding-block: 65px 85px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.35; }
h1 { margin: 0 0 28px; font-size: 32px; letter-spacing: -.5px; }
p { margin: 0 0 22px; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 76px; align-items: start; }
.about-copy { padding-top: 5px; }
.about-copy p { max-width: 620px; }
.contact { margin-top: 30px; font-size: 15px; }
.contact-label { display: block; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.portrait { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: #e7dfd5; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 26% 50%; transform: scale(1.19); transform-origin: 40% 0; }
.research-page { max-width: 860px; margin-right: auto; }
.research-section + .research-section { margin-top: 47px; }
.section-title { margin: 0 0 5px; font-size: 23px; }
.publication-list { list-style: none; padding: 0; margin: 0; }
.publication { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 19px; padding-block: 25px; border-bottom: 1px solid var(--rule); }
.publication:last-child { border-bottom: 0; }
.publication-year { padding-top: 3px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.publication h3 { margin: 0 0 8px; font-size: 22px; }
.publication h3 a { text-decoration: none; }
.publication h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.publication p { margin: 0; font-size: 14px; line-height: 1.8; }
.publication-venue { color: var(--muted); }
.publication-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; font-size: 13px; }
.revision-note { color: var(--muted); font-size: 13px !important; margin-top: 4px !important; }
.cv-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 27px; }
.cv-top h1 { margin-bottom: 0; }
.button-link { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid var(--accent); color: var(--accent); text-decoration: none; font-size: 14px; line-height: 1.6; border-radius: 2px; }
.button-link:hover { background: #eef2f0; }
.button-link svg { width: 15px; height: 15px; }
.cv-help { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.cv-viewer { display: block; width: 100%; height: 1000px; border: 1px solid var(--rule); background: white; }
.cv-fallback { padding: 24px; }
.site-footer { padding-block: 22px 29px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
@media (max-width: 800px) {
  .container { width: calc(100% - 56px); }
  .about-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 34px; }
  .brand-name { font-size: 34px; }
  .site-nav { gap: 22px; }
  main { padding-block: 49px 65px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 44px); }
  .site-header { padding-top: 29px; }
  .header-inner { display: block; padding-bottom: 19px; }
  .brand-name { font-size: 34px; }
  .site-nav { gap: 29px; margin-top: 22px; padding: 0; }
  main { padding-block: 35px 53px; }
  h1 { font-size: 29px; margin-bottom: 23px; }
  .about-layout { grid-template-columns: 1fr; gap: 31px; }
  .portrait { width: min(100%, 292px); }
  .contact { margin-top: 24px; margin-bottom: 0; }
  .publication { grid-template-columns: 43px minmax(0, 1fr); gap: 12px; padding-block: 22px; }
  .publication h3 { font-size: 20px; }
  .publication-year { font-size: 12px; }
  .research-section + .research-section { margin-top: 33px; }
  .cv-top { display: block; }
  .cv-top h1 { margin-bottom: 19px; }
  .cv-viewer { height: 650px; }
  .site-footer { flex-direction: column; gap: 3px; }
}
@media print {
  .site-header, .site-footer, .skip-link, .cv-top .button-link { display: none; }
  body { background: white; font-size: 11pt; }
  .container { width: 100%; }
  main { padding: 0; }
  .publication { break-inside: avoid; }
}
