:root {
  --paper: #f7f6f2;
  --ink: #253a35;
  --muted: #626b65;
  --accent: #245b4d;
  --line: #dcded5;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
::selection { background: #d5e2ce; color: var(--ink); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #ae6639; outline-offset: 6px; }
button { font: inherit; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
p { margin: 0 0 22px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -.055em; line-height: 1.08; }
h2 { font-size: clamp(38px, 4.3vw, 56px); }
h2 em { font-weight: 400; }
.wrap { width: min(1120px, calc(100% - 112px)); margin-inline: auto; }
.eyebrow { margin: 0 0 22px; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 10px 18px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); color: white; }
.site-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 24px; }
.wordmark { text-decoration: none; font-family: var(--serif); font-size: 38px; font-weight: 700; letter-spacing: -.08em; line-height: 1; }
.wordmark span { color: #b27245; }
.site-header nav { display: flex; gap: 32px; flex-wrap: wrap; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.site-header nav span { margin-left: 5px; }
.hero { display: grid; grid-template-columns: 1fr 350px; column-gap: 90px; padding-top: 78px; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 27px; }
.status-dot { width: 7px; height: 7px; background: #b27245; border-radius: 50%; flex-shrink: 0; }
h1 { font-size: clamp(76px, 8.5vw, 112px); line-height: .97; }
h1 em { color: var(--accent); font-weight: 400; }
.hero-role { margin-top: 28px; margin-bottom: 16px; font-size: 20px; line-height: 1.5; letter-spacing: -.02em; }
.hero-description { max-width: 430px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 13px 22px; font-size: 13px; font-weight: 500; text-decoration: none; border-radius: 3px; transition: background .2s; }
.button-primary { background: var(--accent); color: white; }
.button-primary:hover { background: #193e35; color: white; }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.portrait { margin: 15px 0 0; align-self: center; }
.portrait-frame { position: relative; isolation: isolate; }
.portrait-frame::before { content: ''; position: absolute; width: 70%; height: 80%; top: -18px; right: -18px; border: 1px solid #b7c5b3; border-radius: 140px 140px 4px 4px; z-index: -1; }
.portrait img { width: 100%; height: 440px; object-fit: cover; object-position: center; border-radius: 160px 160px 4px 4px; }
.portrait figcaption { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--muted); font-size: 10px; letter-spacing: .015em; }
.caption-rule { width: 25px; height: 1px; background: #b27245; flex-shrink: 0; }
.hero-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 0; margin-top: 65px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.separator { color: #a7ada4; padding: 0 12px; }
.scroll-link { text-decoration: none; white-space: nowrap; }
.scroll-link span { margin-left: 12px; }
.section { display: grid; grid-template-columns: 340px 1fr; gap: 100px; padding-block: 100px; }
.section-content > p:not(.intro-text) { color: var(--muted); font-size: 15px; }
.section-content > p a { color: var(--ink); }
.intro-text { font-size: 23px; line-height: 1.5; letter-spacing: -.025em; }
.research-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 34px 0; padding-top: 24px; border-top: 1px solid var(--line); }
.topic-number { color: #94734f; font-family: var(--serif); font-size: 15px; }
.research-topics h3 { font-size: 14px; line-height: 1.5; font-weight: 600; margin: 9px 0; }
.research-topics p { color: var(--muted); font-size: 12px; line-height: 1.75; margin: 0; }
.software-section { background: #eceee7; padding-block: 90px; }
.section-topline { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; }
.section-topline .text-link { flex-shrink: 0; margin-bottom: 5px; }
.section-description { margin: 22px 0 34px; font-size: 15px; color: var(--muted); }
.software-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.software-card { display: flex; flex-direction: column; padding: 26px; border: 1px solid #d6dcd1; background: var(--paper); text-decoration: none; border-radius: 4px; transition: border-color .2s, transform .2s; }
.software-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-top .eyebrow { font-size: 9px; letter-spacing: .1em; }
.card-arrow { font-size: 20px; line-height: 1; }
.software-card h3 { font-family: var(--serif); font-size: 31px; letter-spacing: -.035em; margin-bottom: 14px; }
.software-card p { flex: 1; font-size: 13px; line-height: 1.75; color: var(--muted); }
.card-label { color: var(--accent); font-size: 10px; border-top: 1px solid var(--line); padding-top: 15px; margin-top: 8px; }
.software-note { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 26px 32px; }
.note-symbol { font-family: var(--serif); font-size: 39px; font-style: italic; color: #6c8068; letter-spacing: .1em; }
.software-note p { font-family: var(--serif); font-size: 21px; line-height: 1.5; margin-top: 12px; }
.publications-section { padding-block: 100px 50px; }
.publication-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 36px; }
.publication-filters { display: flex; gap: 5px; flex-wrap: wrap; }
.publication-filters button { min-height: 44px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--muted); padding: 7px 13px; cursor: pointer; font-size: 12px; }
.publication-filters button:hover { border-color: var(--line); color: var(--ink); }
.publication-filters button[aria-pressed='true'] { color: white; background: var(--accent); }
.publication-count { font-size: 11px; color: var(--muted); white-space: nowrap; }
.publication-list { list-style: none; padding: 0; margin: 26px 0 0; }
.publication { display: grid; grid-template-columns: 95px 1fr; padding: 26px 0; border-top: 1px solid var(--line); }
.paper-year { font-family: var(--serif); font-size: 22px; color: #73806f; line-height: 1.5; }
.paper-type { display: block; font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.publication h3 { font-size: 17px; font-weight: 500; line-height: 1.55; max-width: 850px; }
.publication h3 a { text-decoration: none; }
.publication h3 a:hover { text-decoration: underline; }
.publication h3 span { font-size: 15px; color: var(--accent); display: inline-block; margin-left: 5px; }
.paper-authors { color: var(--muted); font-size: 12px; margin: 8px 0 1px; }
.paper-venue { font-size: 12px; color: var(--muted); font-style: italic; margin: 0; }
.teaching-section { border-top: 1px solid var(--line); }
.course { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.course .eyebrow { font-size: 9px; margin-bottom: 8px; }
.course h3 { font-size: 18px; font-weight: 500; line-height: 1.5; }
.course p { color: var(--muted); font-size: 12px; margin: 7px 0 0; }
.course-arrow { align-self: center; font-size: 24px; }
.course-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 9px; font-size: 12px; }
.contact-section { background: var(--ink); color: var(--paper); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding-block: 75px; }
.contact-section .eyebrow { color: #b5c7b8; }
.contact-section h2 { font-size: clamp(42px, 5.5vw, 70px); }
.contact-inner p:not(.eyebrow) { color: #c0cdc3; font-size: 14px; margin: 24px 0 14px; }
.contact-email { font-size: clamp(17px, 2.4vw, 24px); text-decoration: none; letter-spacing: -.025em; }
.contact-email span { display: inline-block; margin-left: 12px; }
.contact-section a:hover { color: #e2c4a0; }
.social-links { width: 170px; flex-shrink: 0; display: flex; flex-direction: column; }
.social-links a { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: 13px; text-decoration: none; border-bottom: 1px solid #496056; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #496056; padding-block: 23px; color: #b5c7b8; font-size: 11px; }
.site-footer a { text-decoration: none; }
.site-footer a span { margin-left: 12px; }
.error-page { min-height: calc(100vh - 104px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 70px; }
.error-page h1 { margin-bottom: 28px; }
.error-page .button { margin-top: 15px; }
@media (min-width: 1500px) { .hero { padding-top: 95px; } }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 72px); }
  .hero { grid-template-columns: 1fr 280px; column-gap: 45px; padding-top: 60px; }
  .portrait img { height: 370px; }
  .portrait figcaption { font-size: 9px; gap: 7px; }
  .caption-rule { width: 15px; }
  .section { grid-template-columns: 260px 1fr; gap: 50px; }
  .research-topics { gap: 15px; }
  .software-card { padding: 22px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 86px; gap: 20px; }
  .wordmark { font-size: 33px; }
  .site-header nav { gap: 16px; }
  .site-header nav a { font-size: 11px; }
  .site-header nav span { display: none; }
  .hero { grid-template-columns: 1fr 200px; column-gap: 28px; padding-top: 50px; }
  h1 { font-size: 76px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .08em; }
  .hero-role { font-size: 17px; }
  .hero-description { font-size: 14px; }
  .hero-actions { gap: 20px; }
  .portrait img { height: 290px; }
  .portrait figcaption { line-height: 1.6; align-items: flex-start; }
  .caption-rule { margin-top: 7px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; margin-top: 40px; padding-block: 23px; gap: 12px; font-size: 10px; }
  .separator { padding-inline: 7px; }
  .section { grid-template-columns: 1fr; gap: 35px; padding-block: 64px; }
  .section-heading h2 br { display: none; }
  .eyebrow { margin-bottom: 16px; }
  .section-topline { align-items: flex-start; flex-direction: column; gap: 22px; }
  .software-section { padding-block: 64px; }
  .software-grid { grid-template-columns: repeat(2, 1fr); }
  .software-note { padding: 22px; }
  .publications-section { padding-block: 64px 40px; }
  .publication-tools { align-items: flex-start; flex-direction: column; gap: 12px; }
  .publication-filters { gap: 2px; }
  .publication-filters button { padding-inline: 10px; font-size: 11px; }
  .publication { grid-template-columns: 64px 1fr; }
  .publication h3 { font-size: 16px; }
  .contact-inner { padding-block: 60px; gap: 35px; }
  .social-links { width: 130px; }
}
@media (max-width: 540px) {
  .site-header { gap: 16px; }
  .site-header nav { gap: 12px; }
  .site-header nav a { font-size: 11px; }
  .hero { grid-template-columns: 1fr; }
  h1 { font-size: clamp(76px, 20vw, 100px); }
  .hero-role { font-size: 19px; }
  .desktop-break { display: none; }
  .hero-description { max-width: 360px; }
  .portrait { width: 70%; max-width: 290px; margin: 45px auto 0; }
  .portrait img { height: auto; aspect-ratio: 458 / 600; }
  .portrait figcaption { font-size: 9px; }
  .hero-bottom { margin-top: 35px; }
  .research-topics { grid-template-columns: 1fr; gap: 22px; }
  .research-topics article { display: grid; grid-template-columns: 25px 1fr; column-gap: 12px; }
  .research-topics h3 { margin: 0 0 5px; }
  .research-topics p { grid-column: 2; font-size: 13px; }
  .software-grid { grid-template-columns: 1fr; }
  .software-card { padding: 25px; }
  .software-note { padding: 20px 5px 0; }
  .software-note p br { display: none; }
  .publication { grid-template-columns: 48px 1fr; }
  .paper-year { font-size: 18px; }
  .contact-inner { flex-direction: column; align-items: stretch; }
  .contact-email { font-size: clamp(16px, 5vw, 24px); }
  .social-links { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .software-card:hover { transform: none; }
}
@media print {
  body { color: black; background: white; font-size: 11pt; }
  .wrap { width: 100%; }
  .site-header, .hero-bottom, .hero-actions, .publication-tools, .software-note, .site-footer, .skip-link { display: none !important; }
  .hero { padding-top: 0; grid-template-columns: 1fr 180px; }
  h1 { font-size: 50pt; }
  .portrait img { height: 230px; }
  .section { display: block; padding-block: 25px; }
  .section-heading { margin-bottom: 20px; }
  h2 { font-size: 26pt; }
  .software-section, .publications-section { background: white; padding-block: 25px; }
  .publication[hidden] { display: grid !important; }
  .publication, .software-card, .course { break-inside: avoid; }
  .contact-section { background: white; color: black; }
  .contact-inner { padding-block: 25px; }
  .contact-section .eyebrow, .contact-inner p:not(.eyebrow) { color: #444; }
}
