:root {
  --ink: #172525;
  --muted: #59706d;
  --paper: #f6f4ed;
  --line: #c9cfca;
  --sea: #0c5f5d;
  --sun: #d9613d;
  --deep: #12363a;
  --max: 1180px;
  --accent-surface: #ecebe1;
}
:root.dark {
  --ink: #edf0e9;
  --muted: #b2c0b9;
  --paper: #14211f;
  --line: #3a504c;
  --sea: #83c5bd;
  --sun: #f2ae8a;
  --deep: #0c1716;
  --accent-surface: #1d302d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; text-decoration-color: var(--sun); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--sea); }

.site-header, main, footer { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark, nav, .eyebrow, .role, .contact-line, .timeline-date, .pub-year, footer, .note, .paper-link {
  font-family: Arial, Helvetica, sans-serif;
}
.wordmark { font-size: 17px; font-weight: 700; letter-spacing: 0; text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 18px; }
nav { display: flex; gap: 24px; font-size: 14px; }
nav a { text-decoration: none; color: var(--muted); }
nav a.active { color: var(--ink); font-weight: 700; }
.theme-toggle { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 17px; line-height: 1; cursor: pointer; }
.theme-toggle:hover { border-color: var(--sea); color: var(--sea); }

.intro { display: grid; grid-template-columns: minmax(270px, 390px) minmax(0, 1fr); gap: clamp(42px, 7vw, 98px); padding: 82px 0 88px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--sea); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 40px; font-size: clamp(50px, 7vw, 88px); line-height: .96; font-weight: 400; letter-spacing: 0; }
.role { margin-bottom: 32px; color: var(--muted); font-size: 15px; }
.lede { max-width: 610px; margin-bottom: 30px; font-size: clamp(21px, 2.2vw, 27px); line-height: 1.38; }
.contact-line { display: flex; flex-wrap: wrap; gap: 10px 23px; font-size: 14px; }

.portrait-frame { width: 100%; max-width: 390px; aspect-ratio: 3 / 4; margin: 0; overflow: hidden; background: #d5ddd9; border-radius: 3px; }
.portrait-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; }

.section { padding: 78px 0; border-top: 1px solid var(--line); }
.split-section { display: grid; grid-template-columns: minmax(180px, .37fr) minmax(0, 1fr); gap: 44px; }
.section-label h2, .highlights h2, .publication-section h2 { margin: 0; font-size: 30px; font-weight: 400; line-height: 1.1; }
.prose { max-width: 720px; font-size: 20px; line-height: 1.55; }
.prose p:last-child { margin-bottom: 0; }
.interests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.interests article { border-top: 2px solid var(--sea); padding-top: 15px; }
.interests h3, .timeline h3 { margin-bottom: 8px; font-size: 20px; font-weight: 400; line-height: 1.22; }
.interests p:last-child, .timeline p:last-child { color: var(--muted); font-size: 15px; line-height: 1.48; }
.interests ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.collaboration-callout { grid-column: 1 / -1; margin-top: 8px; padding: 22px 24px; border-left: 3px solid var(--sea); background: var(--accent-surface); font-size: 18px; line-height: 1.5; }
.timeline { display: grid; gap: 27px; }
.timeline article { display: grid; grid-template-columns: 140px 1fr; column-gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.timeline article:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline-date { grid-row: span 2; color: var(--sea); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.timeline h3, .timeline p { margin-bottom: 0; }
.highlights { display: grid; grid-template-columns: .6fr 1fr; gap: 48px; background: transparent; padding-inline: 0; margin-block: 0 94px; }
.highlights ul { list-style: none; padding: 0; margin: 0; }
.highlights li { padding: 13px 0; border-bottom: 1px solid rgba(23,37,37,.22); }.highlights li:last-child { border-bottom: 0; }
.highlights span { display: inline-block; width: 58px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: 700; color: var(--sea); }

.publication-page { padding-bottom: 90px; }
.page-heading { max-width: 740px; padding: 96px 0 78px; }
.page-heading h1 { margin-bottom: 20px; }.page-heading p:last-child { color: var(--muted); }
.publication-section { border-top: 1px solid var(--line); padding: 45px 0 64px; display: grid; grid-template-columns: minmax(210px, .38fr) minmax(0, 1fr); gap: 42px; }
.publication-list { list-style: none; padding: 0; margin: 0; }
.publication-list li { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.publication-list li:last-child { margin-bottom: 0; }
.publication-list p { margin-bottom: 0; }.publication-list > li > p:last-child { line-height: 1.52; }
.pub-year { margin-bottom: 6px; color: var(--sea); font-size: 12px; font-weight: 700; }
.paper-link { display: inline-block; margin-top: 10px; color: var(--sea); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.note { margin: 26px 0 0; color: var(--muted); font-size: 12px; }

footer { min-height: 92px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
footer p { margin: 0; } footer a { color: var(--ink); }

@media (max-width: 780px) {
  .site-header, main, footer { width: min(calc(100% - 32px), var(--max)); }.site-header { min-height: 75px; }
  .intro, .split-section, .highlights, .publication-section, .interests { grid-template-columns: 1fr; gap: 30px; }
  .intro { padding: 64px 0; }.portrait-frame { max-width: min(100%, 360px); }
  .section { padding: 58px 0; }.interests { grid-template-columns: 1fr; gap: 34px; }.interests article { max-width: 100%; }
  .timeline article { grid-template-columns: 1fr; gap: 4px; }.timeline-date { grid-row: auto; }
  .highlights { margin-bottom: 64px; }.publication-page { padding-bottom: 60px; }.page-heading { padding: 66px 0 56px; }
  .publication-list li { display: block; }.pub-year { display: block; }
  footer { min-height: 80px; }
}
@media (max-width: 410px) {
  .header-actions { gap: 12px; } nav { gap: 16px; }.wordmark { font-size: 15px; }.contact-line { gap: 9px 17px; }
}

/* Keep long English text flush on both sides on larger screens. */
.prose, .collaboration-callout { text-align: justify; text-align-last: left; }
@media (max-width: 780px) { .prose, .collaboration-callout { text-align: left; } }
