@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --ink: #24313a;
  --ink-soft: #52636b;
  --ivory: #eef5f7;
  --paper: #f8fbfc;
  --mist: #dfecef;
  --sky: #d7e9eb;
  --accent: #1f5368;
  --accent-secondary: #2f817c;
  --accent-soft: #d7eceb;
  --line: rgba(31, 83, 104, 0.18);
  --content-gutter: max(12vw, calc((100vw - 1120px) / 2));
  --serif: Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --small-text: 15px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  padding: 0 4vw;
  background: rgba(243, 243, 241, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

nav { display: flex; gap: clamp(16px, 2vw, 34px); }

nav a {
  position: relative;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

nav a:hover::after { transform: scaleX(1); }

.nav-cv {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  color: var(--ivory);
  background: var(--ink);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  transition: transform 180ms ease, background 180ms ease;
}

.nav-cv:hover { background: var(--accent); transform: translateY(-2px); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  min-height: calc(100svh - 78px);
  overflow: hidden;
}

.hero-copy {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7vw 5vw 7vw 8vw;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: clamp(3.7rem, 5vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
  white-space: nowrap;
}

.hero-meta {
  margin: 0 0 38px;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.45;
}

.hero-meta p { margin: 1px 0; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.job-market-note {
  width: max-content;
  max-width: none;
  margin: 26px 0 0;
  padding: 12px 18px;
  border-left: 4px solid var(--accent);
  color: var(--ink);
  background: #e5e6e4;
  font-family: var(--sans);
  font-size: clamp(13px, 1.15vw, 15.5px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 23px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--ivory); background: var(--ink); }
.button-primary:hover { background: var(--accent); border-color: var(--accent); }
.button-secondary:hover { color: var(--ivory); background: var(--ink); }

.hero-portrait-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
  padding: 5vw;
  background: var(--mist);
  isolation: isolate;
}

.hero-portrait-wrap::before {
  position: absolute;
  inset: 7% 12%;
  z-index: -2;
  background: var(--sky);
  border-radius: 48% 48% 12px 12px;
  content: "";
}

.portrait-frame {
  width: min(78%, 610px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 10px solid rgba(250, 250, 248, 0.9);
  border-radius: 2px 2px 48% 48%;
  box-shadow: 0 30px 80px rgba(36, 40, 44, 0.16);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
}

.orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(36, 40, 44, 0.24);
  border-radius: 50%;
}

.orbit-one { width: 72%; aspect-ratio: 1; }
.orbit-two { width: 92%; aspect-ratio: 1; }

.marquee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2vw;
  min-height: 76px;
  padding: 18px 4vw;
  overflow: hidden;
  color: var(--ivory);
  background: var(--accent);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.45vw, 1.45rem);
  white-space: nowrap;
}

.marquee i { font-size: 0.42rem; font-style: normal; }

.section { padding: clamp(88px, 10vw, 150px) 8vw; }

.section-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 58px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-kicker span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.section-kicker p { margin: 0; }
.section-kicker.light { color: rgba(245, 241, 233, 0.68); }

.about { background: var(--paper); }
.about-copy { max-width: 1200px; }

.about-copy h2,
.research-heading h2,
.split-heading h2,
.personal-intro h2,
.contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.about-copy h2 { max-width: 980px; margin-bottom: 52px; font-size: clamp(3.4rem, 5vw, 5.3rem); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7vw; max-width: 1100px; }
.about-grid p { margin: 0; color: var(--ink-soft); }
.about-grid .lead { color: var(--ink); font-family: var(--serif); font-size: clamp(1.35rem, 1.7vw, 1.65rem); line-height: 1.45; }
.about-grid a { border-bottom: 1px solid var(--accent); }

.topic-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.topic-list span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.92rem; font-weight: 650; }

.research { color: var(--ivory); background: var(--ink); }
.research .paper-number,
.research .paper-link { color: #c7cccf; }
.research-heading { margin-bottom: 64px; }
.research-heading h2 { font-size: clamp(3.4rem, 5vw, 5.3rem); }
.research-heading > p { margin: 0 0 12px; color: rgba(245, 241, 233, 0.65); }
.papers { border-top: 1px solid rgba(245, 241, 233, 0.2); }

.paper {
  display: grid;
  grid-template-columns: 70px 1fr 100px;
  gap: 30px;
  align-items: start;
  padding: 42px 0;
  border-bottom: 1px solid rgba(245, 241, 233, 0.2);
}

.paper-number { color: var(--accent); font-family: var(--serif); font-size: 1.15rem; }
.paper-label { margin-bottom: 10px; color: rgba(245, 241, 233, 0.62); font-size: 0.9rem; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; }
.paper h3 { max-width: 950px; margin: 0 0 12px; font-family: var(--serif); font-size: clamp(1.65rem, 2vw, 2.25rem); font-weight: 400; line-height: 1.28; }
.paper p { margin: 5px 0; }
.authors { color: rgba(245, 241, 233, 0.78); font-size: 1.04rem; }
.authors a { color: #e0e2e3; border-bottom: 1px solid rgba(224, 226, 227, 0.5); }
.conference-version { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 2px; padding: 0 0 2px; color: #c7cccf; background: transparent; border-bottom: 1px solid currentColor; border-radius: 0; font-size: var(--small-text); font-weight: 650; }
.conference-version span { font-size: inherit; font-weight: inherit; letter-spacing: 0; text-transform: none; }
.conference-version strong { font-family: var(--sans); font-size: inherit; font-weight: inherit; }
.status { color: #c7cccf; font-size: var(--small-text); font-weight: 650; }
.paper-note { max-width: 780px; color: rgba(245, 241, 233, 0.68); font-size: 1rem; }
.paper-link { justify-self: end; display: flex; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--accent); color: var(--accent); font-size: 0.94rem; font-weight: 750; text-transform: uppercase; }

.experience { background: var(--paper); }
.teaching-section { background: var(--ivory); }
.split-heading { margin-bottom: 50px; }
.split-heading h2 { font-size: clamp(3.4rem, 4.8vw, 5.1rem); }
.split-heading p { max-width: 560px; margin: 0 0 10px; color: var(--ink-soft); }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 170px 1fr 150px; gap: 34px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.timeline-item p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.timeline-item h3 { margin: 0 0 3px; font-family: var(--serif); font-size: 1.4rem; font-weight: 400; line-height: 1.35; }
.timeline-period { font-weight: 700; }
.timeline-place { text-align: right; }
.teaching-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.teaching-card { min-height: 220px; padding: 30px; background: var(--ivory); border: 1px solid var(--line); transition: transform 180ms ease, box-shadow 180ms ease; }
.teaching-card:hover { transform: translateY(-5px); box-shadow: 0 18px 50px rgba(36, 40, 44, 0.08); }
.teaching-card .card-meta { color: var(--accent); font-size: 0.92rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.teaching-card h3 { margin: 38px 0 10px; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.35; }
.teaching-card > p { margin-bottom: 0; color: var(--ink-soft); font-size: 1rem; }
.teaching-evaluation { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.96rem; }
.teaching-evaluation span { color: var(--ink-soft); }
.teaching-evaluation a { color: var(--accent); font-weight: 750; }

.personal { color: var(--ivory); background: #303438; }
.personal .interest-cards span { color: #c7cccf; }
.personal-grid { display: block; }
.personal-intro h2 { margin-bottom: 52px; font-size: clamp(3.4rem, 4.8vw, 5.1rem); }
.personal-intro > p { max-width: 500px; margin-top: 30px; color: rgba(245, 241, 233, 0.68); }
.interest-cards { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(245, 241, 233, 0.2); border-left: 1px solid rgba(245, 241, 233, 0.2); }
.interest-cards article { min-height: 210px; padding: 28px; border-right: 1px solid rgba(245, 241, 233, 0.2); border-bottom: 1px solid rgba(245, 241, 233, 0.2); }
.interest-cards span { color: var(--accent); font-size: 0.92rem; }
.interest-cards h3 { margin: 42px 0 10px; font-family: var(--serif); font-size: 2.1rem; font-weight: 400; }
.interest-cards p { margin: 0; color: rgba(245, 241, 233, 0.78); font-size: 1.08rem; line-height: 1.55; }

.contact { position: relative; overflow: hidden; padding: clamp(100px, 12vw, 180px) 8vw; background: var(--sky); }
.contact::after { position: absolute; top: -25vw; right: -17vw; width: 57vw; aspect-ratio: 1; border: 1px solid rgba(36, 40, 44, 0.2); border-radius: 50%; content: ""; box-shadow: 0 0 0 6vw rgba(36, 40, 44, 0.03), 0 0 0 12vw rgba(36, 40, 44, 0.02); }
.contact h2 { position: relative; z-index: 1; max-width: 930px; margin-bottom: 45px; font-size: clamp(3.4rem, 4.8vw, 5.1rem); line-height: 1; }
.contact-email { position: relative; z-index: 1; display: inline-flex; gap: 20px; align-items: center; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 2.1rem); }
.contact-links { position: relative; z-index: 1; display: flex; gap: 30px; margin-top: 48px; }
.contact-links a { font-size: 0.96rem; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; }

footer { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; min-height: 100px; padding: 25px 4vw; color: rgba(245, 241, 233, 0.76); background: var(--ink); font-size: 0.92rem; letter-spacing: 0.04em; }
footer p:nth-child(2) { justify-self: center; }
footer a { justify-self: end; color: var(--ivory); }

.brand,
nav a,
.nav-cv,
.eyebrow,
.hero-meta,
.button,
.topic-list span,
.paper-label,
.authors,
.conference-version,
.conference-version span,
.status,
.paper-note,
.paper-link,
.timeline-item p,
.teaching-card .card-meta,
.teaching-card > p,
.teaching-evaluation,
.interest-cards span,
.interest-cards p,
.contact-links a,
footer {
  font-size: var(--small-text);
}

/* Compact academic layout */
.site-header { min-height: 68px; }
.hero { min-height: 0; }
.hero-copy { padding: 4.5vw 4vw 4.5vw 8vw; }
.hero h1 { margin-bottom: 20px; font-size: clamp(3.4rem, 4.6vw, 4.8rem); }
.hero-meta { margin-bottom: 24px; }
.job-market-note { margin-top: 18px; padding: 10px 14px; }
.hero-portrait-wrap { min-height: 540px; padding: 3.5vw; }
.portrait-frame { width: min(72%, 520px); }
.marquee { min-height: 58px; padding-block: 12px; font-size: clamp(1rem, 1.25vw, 1.25rem); }
.section { padding: clamp(56px, 6.5vw, 92px) 8vw; }
.about-copy h2,
.research-heading h2 { font-size: clamp(3rem, 4.2vw, 4.4rem); }
.about-copy h2 { margin-bottom: 34px; }
.about-grid { gap: 5vw; }
.about-grid .lead { font-size: clamp(1.2rem, 1.5vw, 1.45rem); }
.topic-list { margin-top: 20px; }
.research-heading { margin-bottom: 38px; }
.paper { grid-template-columns: 52px 1fr 82px; gap: 24px; padding: 28px 0; }
.paper h3 { font-size: clamp(1.45rem, 1.8vw, 2rem); }
.conference-version { margin-top: 8px; padding: 0 0 2px; }
.split-heading { margin-bottom: 36px; }
.split-heading h2,
.personal-intro h2,
.contact h2 { font-size: clamp(3rem, 4vw, 4.2rem); }
.timeline-item { padding: 20px 0; }
.teaching-grid { gap: 12px; }
.teaching-card { min-height: 170px; padding: 24px; }
.teaching-card h3 { margin: 24px 0 8px; font-size: 1.35rem; }
.teaching-evaluation { margin-top: 16px; padding-top: 12px; }
.personal-intro h2 { margin-bottom: 36px; }
.interest-cards article { min-height: 165px; padding: 22px; }
.interest-cards h3 { margin: 24px 0 8px; font-size: 1.8rem; }
.contact { padding: clamp(64px, 7vw, 96px) 8vw; }
.contact h2 { margin-bottom: 28px; }
.contact-email { font-size: clamp(1.2rem, 1.7vw, 1.75rem); }
.contact-links { margin-top: 30px; }
footer { min-height: 76px; padding-block: 18px; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding-left: 5vw; }
  .research-heading { grid-template-columns: 1fr; }
  .research-heading { gap: 30px; }
  .interest-cards { grid-template-columns: repeat(2, 1fr); }
  .timeline-item { grid-template-columns: 140px 1fr 110px; }
}

@media (max-width: 760px) {
  .site-header { min-height: 68px; padding: 0 20px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { order: 2; padding: 50px 24px 58px; }
  .hero h1 { font-size: clamp(2.9rem, 14vw, 4.2rem); }
  .job-market-note { width: calc(100% + 32px); margin-left: -16px; padding-inline: 8px; text-align: center; }
  .hero-portrait-wrap { order: 1; min-height: 420px; padding: 34px 20px; }
  .portrait-frame { width: min(82%, 390px); }
  .marquee { justify-content: flex-start; overflow-x: auto; }
  .section { padding: 58px 24px; }
  .about-copy h2 { margin-bottom: 42px; }
  .about-grid, .split-heading { grid-template-columns: 1fr; gap: 32px; }
  .paper { grid-template-columns: 34px 1fr; gap: 12px; padding: 24px 0; }
  .paper-link { grid-column: 2; justify-self: start; margin-top: 10px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .timeline-place { text-align: left; }
  .teaching-grid, .interest-cards { grid-template-columns: 1fr; }
  .teaching-card { min-height: 190px; }
  .contact { padding: 68px 24px; }
  .contact h2 { font-size: clamp(3.2rem, 13vw, 4.6rem); }
  .contact-links { flex-direction: column; gap: 15px; }
  footer { grid-template-columns: 1fr; gap: 10px; text-align: center; padding: 34px 24px; }
  footer p { margin: 0; }
  footer p:nth-child(2), footer a { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Mist Blue academic theme with restrained navy and teal accents */
.site-header {
  min-height: 64px;
  padding-inline: 6vw;
  background: rgba(238, 245, 247, 0.94);
  border-bottom-color: var(--line);
}

nav a::after { background: var(--accent-secondary); }

.nav-cv {
  color: var(--paper);
  background: var(--accent);
}

.nav-cv:hover { background: var(--accent-secondary); }

.hero {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  background: var(--ivory);
}

.hero-copy { padding: 2.6vw 4vw 2.6vw calc(var(--content-gutter) + 2.25vw); }
.eyebrow {
  margin-bottom: 20px;
  color: var(--accent-secondary);
  font-size: clamp(0.9rem, 1.15vw, 1.05rem);
  letter-spacing: 0.1em;
  text-transform: none;
  white-space: nowrap;
}
.hero h1 { margin-bottom: 16px; font-size: clamp(3.45rem, 4.4vw, 4.75rem); }
.hero-meta {
  margin-bottom: 20px;
  border-left-color: var(--accent-secondary);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.55;
}
.hero-meta p { white-space: nowrap; }

.job-market-note {
  margin-top: 16px;
  padding: 9px 14px;
  color: #173e4a;
  background: var(--accent-soft);
  border-left-color: var(--accent-secondary);
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
}

.button { min-height: 46px; padding-inline: 20px; }
.button-primary { color: var(--paper); background: var(--accent); border-color: var(--accent); }
.button-primary:hover { background: var(--accent-secondary); border-color: var(--accent-secondary); }
.button-secondary { color: var(--accent); border-color: var(--accent); }
.button-secondary:hover { color: var(--paper); background: var(--accent); }

.hero-portrait-wrap {
  min-height: 400px;
  padding: 24px;
  background: var(--mist);
}

.hero-portrait-wrap::before {
  inset: 10% 15%;
  background: var(--sky);
}

.portrait-frame {
  width: min(52%, 300px);
  border-width: 8px;
  border-color: rgba(248, 251, 252, 0.94);
  box-shadow: 0 22px 60px rgba(31, 83, 104, 0.14);
}

.orbit { border-color: rgba(31, 83, 104, 0.24); }
.orbit-one { width: 66%; }
.orbit-two { width: 84%; }

.marquee {
  min-height: 52px;
  padding-block: 10px;
  color: var(--accent);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee i { color: var(--accent-secondary); }

.section { padding: clamp(44px, 5vw, 70px) var(--content-gutter); }
.about { background: var(--paper); }
.research { color: var(--ink); background: var(--ivory); }
.experience { background: var(--paper); }
.teaching-section { background: var(--ivory); }
.personal { color: var(--ink); background: var(--paper); }

.about-copy h2,
.research-heading h2,
.split-heading h2,
.personal-intro h2,
.contact h2 {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  font-size: clamp(2.65rem, 3.6vw, 3.75rem);
}

.about-copy h2::after,
.research-heading h2::after,
.split-heading h2::after,
.personal-intro h2::after,
.contact h2::after {
  display: none;
  content: none;
}

.about-copy h2 { margin-bottom: 28px; }
.about-grid { display: block; max-width: 980px; }
.about-main { display: grid; gap: 18px; }
.about-grid a { color: var(--accent); border-bottom-color: var(--accent-secondary); }
.about-grid .research-statement {
  color: var(--ink);
  font-size: clamp(1.08rem, 1.25vw, 1.22rem);
  line-height: 1.5;
}
.about-grid .research-statement strong { color: var(--accent); font-weight: 600; }
.topic-list { margin-top: 16px; }
.topic-list span { border-color: var(--line); }

.research-heading { margin-bottom: 24px; }
.papers { border-top-color: var(--accent-secondary); }

.paper {
  grid-template-columns: 46px 1fr 76px;
  gap: 20px;
  padding: 22px 0;
  border-bottom-color: var(--line);
}

.research .paper-number,
.research .paper-link,
.paper-number { color: var(--accent); }
.paper-label { margin-bottom: 6px; color: var(--accent-secondary); }
.paper h3 { margin-bottom: 9px; font-size: clamp(1.35rem, 1.65vw, 1.8rem); }
.authors { color: var(--ink-soft); }
.authors a { color: var(--accent); border-bottom-color: rgba(47, 129, 124, 0.5); }
.conference-version { color: var(--accent-secondary); border-bottom-color: var(--accent-secondary); }
.status { color: var(--accent); }
.paper-note { color: var(--ink-soft); }
.paper-link { border-bottom-color: var(--accent-secondary); }

.split-heading { margin-bottom: 20px; }
.timeline { border-top: 2px solid var(--accent-secondary); }
.timeline-item {
  grid-template-columns: 150px 1fr 130px;
  gap: 24px;
  padding: 14px 0;
  border-bottom-color: var(--line);
}
.timeline-period { color: var(--accent) !important; }
.timeline-item h3 { font-size: 1.25rem; }

.teaching-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
}
.teaching-card {
  height: 100%;
  min-height: 0;
  padding: 18px 20px;
  background: var(--paper);
  border-color: var(--line);
  border-top: 2px solid var(--accent);
}
.teaching-card:hover { box-shadow: 0 14px 36px rgba(31, 83, 104, 0.08); }
.teaching-card .card-meta { margin: 0; color: var(--accent-secondary); }
.teaching-card h3 {
  margin: 12px 0 5px;
  font-size: clamp(0.98rem, 1.05vw, 1.12rem);
  line-height: 1.3;
}
.course-line { display: block; }
.teaching-card > p { margin-top: 0; }
.teaching-evaluation { margin-top: 12px; padding-top: 10px; }
.teaching-evaluation a { color: var(--accent); }

.personal-intro h2 { margin-bottom: 24px; }
.interest-cards {
  border-top-color: var(--line);
  border-left-color: var(--line);
}
.interest-cards article {
  min-height: 138px;
  padding: 18px;
  border-right-color: var(--line);
  border-bottom-color: var(--line);
}
.personal .interest-cards span { color: var(--accent-secondary); }
.interest-cards h3 { margin: 16px 0 5px; color: var(--accent); font-size: 1.6rem; }
.interest-cards p { color: var(--ink-soft); }

.personal-grid {
  display: grid;
  grid-template-areas:
    "media heading"
    "media interests";
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1.38fr);
  gap: 18px clamp(32px, 5vw, 70px);
  align-items: start;
}

.personal-intro { grid-area: heading; }
.personal-intro h2 { margin-bottom: 0; }

.personal-media {
  grid-area: media;
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: center;
}

.personal-photo {
  width: min(88%, 225px);
  margin: 0;
  border: 1px solid var(--line);
}

.personal-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.interest-list {
  grid-area: interests;
  border-top: 1px solid var(--line);
}

.interest-list article {
  display: grid;
  grid-template-columns: 34px minmax(92px, 125px) minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.interest-list span {
  color: var(--accent-secondary);
  font-size: var(--small-text);
}

.interest-list h3 {
  margin: 0;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
}

.interest-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--small-text);
  line-height: 1.5;
}

.contact {
  padding: clamp(52px, 6vw, 78px) var(--content-gutter);
  background: var(--sky);
}
.contact::after { border-color: rgba(31, 83, 104, 0.18); }
.contact h2 { margin-bottom: 22px; }
.contact-email { color: var(--accent); border-bottom-color: var(--accent-secondary); }
.contact-email span { overflow-wrap: anywhere; }
.contact-links { margin-top: 24px; }
.contact-links a { color: var(--accent); }

footer {
  grid-template-columns: 1fr auto 1fr;
  min-height: 68px;
  padding-inline: 6vw;
  color: rgba(248, 251, 252, 0.78);
  background: var(--accent);
}
footer p:nth-child(2) { white-space: nowrap; }
footer a { color: var(--paper); }

@media (min-width: 1101px) {
  .teaching-card h3 { white-space: nowrap; }
}

@media (max-width: 1050px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr); }
  .hero-copy { padding-left: 7vw; }
  .teaching-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .personal-grid { grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr); gap: 18px 30px; }
}

@media (max-width: 760px) {
  .site-header { padding-inline: 20px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 32px 24px 36px; }
  .eyebrow { font-size: clamp(0.65rem, 3.05vw, 0.86rem); letter-spacing: 0.01em; }
  .hero-meta {
    padding-left: 12px;
    font-size: clamp(0.78rem, 3.5vw, 0.96rem);
    letter-spacing: -0.025em;
  }
  .hero-portrait-wrap { min-height: 285px; padding: 20px; }
  .portrait-frame { width: min(58%, 215px); }
  .job-market-note {
    width: 100%;
    margin-left: 0;
    padding-inline: 5px;
    font-size: clamp(0.76rem, 3.4vw, 0.92rem);
    letter-spacing: -0.03em;
    white-space: nowrap;
  }
  .section { padding: 42px 24px; }
  .about-copy h2,
  .research-heading h2,
  .split-heading h2,
  .personal-intro h2,
  .contact h2 { font-size: clamp(2.45rem, 11vw, 3.2rem); }
  .paper { grid-template-columns: 30px 1fr; gap: 10px; padding: 19px 0; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; padding: 13px 0; }
  .teaching-card { min-height: 0; padding: 17px; }
  .personal-grid {
    grid-template-areas:
      "heading"
      "media"
      "interests";
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .personal-photo { width: min(56%, 220px); }
  .interest-list article { grid-template-columns: 28px 82px minmax(0, 1fr); gap: 10px; }
  .interest-list h3 { font-size: 1.25rem; }
  .contact { padding: 46px 24px; }
  .contact-email { gap: 10px; font-size: 1rem; }
  footer { padding-inline: 24px; }
  footer p:nth-child(2) { white-space: normal; }
}

