/* Academic homepage — no frameworks, tracking, or build tools required. */
:root {
  --bg: #f9f8f4;
  --panel: #fffefa;
  --tinted: #f0f2ed;
  --ink: #203c43;
  --muted: #69787b;
  --soft-muted: #82918e;
  --accent: #2b6570;
  --accent-dark: #174955;
  --accent-pale: #e2eee9;
  --border: #dfe4dd;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 36px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #5d969d; outline-offset: 4px; border-radius: 2px; }
::selection { background: #b8d7ce; color: #173f45; }
.container { width: min(1280px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; top: -90px; left: 16px; z-index: 20; background: var(--accent-dark); color: white; padding: 10px 15px; }
.skip-link:focus { top: 8px; }
.site-header { border-top: 4px solid var(--accent); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 100px; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.wordmark-symbol { font: 48px/1 var(--serif); color: var(--accent); transform: rotate(-16deg); }
.wordmark-text { display: flex; flex-direction: column; line-height: 1.2; font-size: 18px; font-weight: 650; letter-spacing: -.4px; }
.wordmark-sub { margin-top: 4px; font-size: 11px; letter-spacing: 1.3px; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 27px; }
.main-nav a { font-size: 15px; text-decoration: none; color: #4b6061; transition: color .2s ease; font-weight: 600; }
.main-nav a:hover { color: var(--accent); }
.section { padding-block: 106px; }
.hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(36px,5vw,86px); align-items: center; padding-top: 88px; padding-bottom: 78px; }
.eyebrow { color: var(--accent); letter-spacing: 2.2px; font-size: 11px; text-transform: uppercase; font-weight: 750; display: flex; align-items: center; gap: 11px; margin: 0 0 26px; }
.eyebrow-line { width: 30px; height: 1px; background: var(--accent); }
h1,h2,h3,p { margin-top: 0; }
h1,h2 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(58px,7.1vw,102px); line-height: 1.02; letter-spacing: -4px; margin-bottom: 20px; }
h1 em,h2 em { font-weight: 400; color: var(--accent); }
.hero-role { font-size: 15px; font-weight: 700; letter-spacing: .2px; text-transform: uppercase; color: #526c6b; margin-bottom: 23px; }
.hero-role span { padding-inline: 8px; color: #aab9af; }
.hero-summary { color: #526568; font-size: 17px; line-height: 1.9; max-width: 530px; margin-bottom: 32px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.button { display: inline-flex; align-items: center; gap: 22px; text-decoration: none; font-weight: 650; font-size: 15px; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: white; padding: 15px 20px; border-radius: 3px; }
.button-primary:hover { background: var(--accent-dark); }
.button-link { color: var(--accent); padding: 15px 7px; }
.hero-visual { border: 1px solid var(--border); background: #eef2ed; box-shadow: 19px 19px 0 #e8ede5; min-width: 0; }
.visual-heading,.visual-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 19px; color: #56716d; font-size: 10px; font-weight: 700; letter-spacing: 1.3px; }
.visual-heading { border-bottom: 1px solid #d5dfd5; font-family: var(--mono); }
.visual-footer { border-top: 1px solid #d5dfd5; font-size: 11px; letter-spacing: .3px; font-weight: 600; }
.visual-footer span:last-child { font-size: 18px; }
/* The mathematical illustration is an editable, standalone SVG. */
.math-figure { margin: 0; overflow: hidden; }
.math-figure img { display: block; width: 100%; height: auto; background: #edf2ed; }
.math-figure-caption { padding: 18px 17px 19px; background: #fffefa; border-top: 1px solid #d5dfd5; color: var(--ink); font: 400 15px/1.55 var(--serif); text-align: center; }
.math-notation { white-space: nowrap; }
.math-notation sub, .math-notation sup { font-size: .73em; line-height: 0; position: relative; vertical-align: baseline; }
.math-notation sub { bottom: -.32em; }
.math-notation sup { top: -.47em; }
.quick-facts { display: grid; grid-template-columns: 1fr 1.2fr 1.1fr; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 26px 0; }
.quick-facts > div { display: flex; flex-direction: column; gap: 4px; padding: 0 29px; border-left: 1px solid var(--border); }
.quick-facts > div:first-child { padding-left: 0; border-left: none; }
.fact-label { font-size: 10px; color: var(--soft-muted); letter-spacing: 1.7px; text-transform: uppercase; font-weight: 750; }
.fact-value { font-family: var(--serif); font-size: 18px; }
.section-grid { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr); gap: clamp(42px,7vw,115px); }
.section-number { display: block; margin-bottom: 23px; color: var(--accent); font: 700 11px var(--mono); letter-spacing: 1.8px; }
h2 { font-size: clamp(38px,4vw,53px); line-height: 1.18; letter-spacing: -1.4px; max-width: 350px; margin: 0; }
.section-content { padding-top: 45px; }
.prose p,.contact-panel > p { color: #526568; font-size: 18px; line-height: 1.98; margin-bottom: 20px; }
.prose strong { color: var(--ink); }
.prose .small-note { padding-left: 16px; border-left: 2px solid #b2c9bb; color: var(--soft-muted); font-size: 15px; line-height: 1.7; margin-top: 29px; }
.section-tinted { background: var(--tinted); border-block: 1px solid #e4e9e1; }
.aside-description { color: var(--muted); font-size: 14px; max-width: 270px; margin-top: 24px; }
.research-list { padding-top: 2px; }
.research-item { display: grid; grid-template-columns: 44px 1fr 20px; gap: 15px; padding: 28px 0; border-top: 1px solid #d8e0d8; }
.research-item:last-child { border-bottom: 1px solid #d8e0d8; }
.research-index { font: italic 21px var(--serif); color: var(--accent); }
.research-item h3 { font: 400 23px/1.3 var(--serif); margin-bottom: 10px; }
.research-item p { color: #60716f; font-size: 14px; line-height: 1.8; margin-bottom: 0; }
.research-arrow { font-size: 20px; color: #97aaa0; }
.empty-state { border: 1px solid var(--border); background: var(--panel); padding: 33px 36px; position: relative; }
.empty-symbol { color: #91b4a7; font: 31px var(--serif); margin-bottom: 15px; }
.empty-state h3,.teaching-row h3 { font: 400 23px var(--serif); margin-bottom: 7px; }
.empty-state p,.teaching-row p { font-size: 14px; line-height: 1.85; color: var(--muted); margin-bottom: 0; }
.teaching-list { border-top: 1px solid #d8e0d8; }
.teaching-row { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid #d8e0d8; }
.term-pill { align-self: start; justify-self: start; background: #dbe9e0; color: #386b5f; padding: 5px 9px; font: 700 10px var(--mono); letter-spacing: .7px; }
.term-pill.muted { background: #e4e6e0; color: #64736d; }
.contact-panel > p { max-width: 550px; }
.contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; border-top: 1px solid var(--border); padding-top: 25px; margin-top: 30px; }
.contact-details > div { display: flex; flex-direction: column; gap: 9px; }
.contact-placeholder { font-family: var(--serif); font-size: 20px; color: var(--accent); }
.contact-affiliation { color: #53686a; font-size: 14px; line-height: 1.7; }
.site-footer { background: #1f4048; color: #c9d9d9; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-block: 33px; font-size: 12px; }
.site-footer a { color: white; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
@media (max-width: 940px) {
  .header-inner { gap: 25px; }
  .main-nav { gap: 16px; }
  .hero { grid-template-columns: 1fr 0.8fr; gap: 35px; }
  h1 { font-size: clamp(58px,7vw,82px); }
  .hero-summary { font-size: 15px; }
  .section-grid { grid-template-columns: minmax(190px,.7fr) minmax(0,1.3fr); gap: 40px; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 36px, 560px); }
  .site-header { border-top-width: 3px; }
  .header-inner { display: block; padding-block: 22px 16px; min-height: auto; }
  .wordmark { margin-bottom: 22px; }
  .main-nav { justify-content: flex-start; gap: 10px 18px; }
  .main-nav a { font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 57px; padding-bottom: 61px; }
  h1 { font-size: clamp(58px, 13vw, 79px); letter-spacing: -2.7px; }
  .hero-summary { font-size: 16px; line-height: 1.8; }
  .hero-visual { box-shadow: 11px 11px 0 #e8ede5; max-width: 500px; }
  .quick-facts { grid-template-columns: 1fr; padding-block: 7px; }
  .quick-facts > div,.quick-facts > div:first-child { padding: 15px 0; border-left: none; border-bottom: 1px solid var(--border); }
  .quick-facts > div:last-child { border-bottom: none; }
  .section { padding-block: 72px; }
  .section-grid { grid-template-columns: 1fr; gap: 14px; }
  .section-content { padding-top: 12px; }
  .section-number { margin-bottom: 16px; }
  h2 { max-width: 100%; font-size: 43px; }
  .research-list { padding-top: 8px; }
  .contact-details { gap: 20px; }
}
@media (max-width: 420px) {
  .hero-role { font-size: 11px; }
  .hero-role span { padding-inline: 3px; }
  .research-item { grid-template-columns: 29px 1fr 14px; gap: 10px; }
  .research-item h3 { font-size: 21px; }
  .teaching-row { grid-template-columns: 1fr; gap: 14px; }
  .contact-details { grid-template-columns: 1fr; }
  .empty-state { padding: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
#about {
  padding-bottom: 30px;
}

#papers {
  padding-top: 30px;
  padding-bottom: 30px;
}
