:root {
  --ink: #17202a;
  --muted: #586575;
  --navy: #17324d;
  --navy-deep: #10263a;
  --accent: #bd5b3d;
  --accent-soft: #f5e8e1;
  --paper: #fffdf9;
  --tint: #f3f6f7;
  --line: #dbe1e5;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(23, 50, 77, 0.09);
  --radius: 18px;
  --shell: 1120px;
  --text-body: 1.0625rem;
  --text-small: 0.9375rem;
  --text-heading: clamp(1.375rem, 2.2vw, 1.625rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--text-body);
  line-height: 1.67;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--navy);
  text-decoration-color: rgba(23, 50, 77, 0.35);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--accent); text-decoration-color: currentColor; }
a:focus-visible { outline: 3px solid rgba(189, 91, 61, 0.4); outline-offset: 4px; border-radius: 3px; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(219, 225, 229, 0.85);
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(14px);
}
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; }
.header-inner { min-height: 72px; }
.wordmark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.site-header nav { display: flex; gap: clamp(16px, 3vw, 34px); }
.site-header nav a { color: var(--ink); font-size: var(--text-small); font-weight: 650; text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }

.hero {
  overflow: hidden;
  padding: clamp(60px, 6vw, 80px) 0 clamp(72px, 8vw, 96px);
  background: radial-gradient(circle at 86% 14%, rgba(189, 91, 61, 0.12), transparent 28%), linear-gradient(150deg, #fffdf9 44%, #edf2f4 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: center;
}
h1, h2, h3 {
  margin-top: 0;
  color: var(--navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.025em;
}
h1 { margin-bottom: 24px; font-size: clamp(3rem, 7vw, 4.75rem); line-height: 0.95; }
h2 { margin-bottom: 28px; font-size: clamp(2rem, 4vw, 2.625rem); line-height: 1.05; }
h3 { margin-bottom: 13px; font-size: var(--text-heading); line-height: 1.2; }
.lead {
  max-width: 780px;
  margin: 0 0 24px;
  color: #304252;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.42;
}
.hero-details { margin: 0 0 20px; }
.hero-details div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 4px 0; }
.hero-details dt { color: var(--navy-deep); font-size: var(--text-small); font-weight: 800; }
.hero-details dd { margin: 0; color: var(--muted); font-size: var(--text-small); }
.hero-details a { font-weight: 700; }
.market-note { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--navy); font-size: var(--text-small); font-weight: 700; }
.market-note span { width: 9px; height: 9px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 5px rgba(189, 91, 61, 0.12); }
.contact-card {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(23, 50, 77, 0.1);
  background: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.profile-photo {
  display: block;
  width: 112px;
  height: 112px;
  margin-bottom: 26px;
  padding-top: 7px;
  border: 4px solid var(--white);
  background: #52595f;
  border-radius: 50%;
  object-fit: cover;
  object-position: 86% center;
  box-shadow: 0 12px 30px rgba(23, 50, 77, 0.2);
}
.contact-card p { margin: 0; color: var(--muted); }
.contact-title { color: var(--navy-deep) !important; font-family: Georgia, "Times New Roman", serif; font-size: var(--text-heading); font-weight: 700; }
.contact-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 20px;
  margin: 26px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.contact-links a { font-size: var(--text-small); font-weight: 700; }

.section { padding: clamp(76px, 9vw, 116px) 0; }
.section-heading { margin-bottom: 40px; }
.section-heading h2 { margin-bottom: 0; }
.paper { padding: clamp(25px, 3.2vw, 38px); border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); }
.paper-featured {
  position: relative;
  margin-bottom: 24px;
  padding: clamp(32px, 5vw, 58px);
  border-color: rgba(23, 50, 77, 0.15);
  box-shadow: var(--shadow);
}
.paper-featured::before { position: absolute; top: 0; bottom: 0; left: 0; width: 6px; background: var(--accent); border-radius: var(--radius) 0 0 var(--radius); content: ""; }
.paper-meta { display: flex; flex-wrap: wrap; gap: 10px 15px; align-items: center; margin-bottom: 18px; color: var(--muted); font-size: var(--text-small); font-weight: 700; }
.paper p { margin: 0 0 14px; color: var(--muted); }
.paper .paper-result { max-width: 900px; color: var(--navy-deep); font-size: inherit; font-weight: 600; line-height: 1.6; }
.paper .coauthors { margin-top: -4px; color: #6a7480; font-size: var(--text-small); font-style: italic; }
.paper-abstract { margin-top: 16px; }
summary { color: var(--navy); cursor: pointer; font-size: var(--text-small); font-weight: 700; }
summary:focus-visible { outline: 3px solid rgba(189, 91, 61, 0.4); outline-offset: 4px; border-radius: 3px; }
.paper-abstract[open] summary { margin-bottom: 12px; }
.paper-abstract p { font-size: inherit; }
.paper-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; }
.paper-links a { font-size: var(--text-small); font-weight: 800; }
.paper-links a::after { content: " ↗"; }
.paper-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.section-tinted { background: var(--tint); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: clamp(48px, 9vw, 120px); align-items: start; }
.about-grid p { max-width: 680px; color: var(--muted); font-size: inherit; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 20px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.facts div:first-child { padding-top: 0; }
.facts dt { color: var(--navy); font-size: var(--text-small); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.facts dd { margin: 0; color: var(--muted); }
.profile-details { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.profile-details p { margin: 0 0 10px; }
.profile-details strong { color: var(--navy); }
.background-details { margin-top: 16px; }
.background-details ul { margin: 12px 0 0; padding-left: 1.2em; }
.background-details li + li { margin-top: 8px; }

.teaching-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.teaching-card { display: flex; flex-direction: column; padding: clamp(25px, 3.2vw, 36px); border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); }
.teaching-card h3 { margin-bottom: 14px; font-size: var(--text-heading); }
.teaching-card p { margin: 0; color: var(--muted); }
.teaching-card .evaluation-label { margin-top: 12px; }
.teaching-card .course-material { margin-top: auto; padding-top: 16px; font-size: var(--text-small); }
.course-material a { font-weight: 700; }
.evaluation-results { margin: 4px 0 0; padding-left: 1.2em; color: var(--muted); }
.evaluation-results li + li { margin-top: 6px; }
.evaluation-context { display: block; font-size: var(--text-small); }
.teaching-card-wide { grid-column: 1 / -1; }
.teaching-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; color: var(--muted); font-size: var(--text-small); }
.teaching-footer p { margin: 0; }
.teaching-footer a { font-weight: 800; }

.references-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.reference-card { padding: clamp(25px, 3vw, 34px); border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); }
.reference-card h3 { margin-bottom: 10px; font-size: var(--text-heading); }
.reference-card p { margin: 0; color: var(--muted); }
.reference-card a { overflow-wrap: anywhere; }

.news-layout { display: block; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.timeline li:first-child { padding-top: 0; }
.timeline time { color: var(--muted); font-size: var(--text-small); font-weight: 800; }
.timeline p { margin: 0; color: var(--muted); }

footer { padding: 34px 0; color: rgba(255, 255, 255, 0.72); background: var(--navy-deep); font-size: var(--text-small); }
footer p { margin: 0; }
footer a { color: var(--white); }

@media (max-width: 820px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 55px; }
  .contact-card { max-width: 480px; }
  .profile-photo { margin-inline: auto; }
  .paper-grid, .teaching-grid, .references-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .header-inner { min-height: 64px; gap: 12px; }
  .site-header nav { flex-wrap: wrap; justify-content: flex-end; gap: 8px 12px; }
  .site-header nav .nav-secondary { display: none; }
  h1 { font-size: clamp(3rem, 14vw, 4rem); }
  .contact-links { grid-template-columns: 1fr; }
  .hero-details div { grid-template-columns: 1fr; gap: 0; }
  .facts div, .timeline li { grid-template-columns: 1fr; gap: 5px; }
  .teaching-footer, .footer-inner { align-items: flex-start; flex-direction: column; gap: 4px; }
}

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

@media print {
  .site-header, footer { display: none; }
  body { background: #fff; font-size: 11pt; }
  .hero, .section { padding: 24px 0; background: #fff; }
  .paper, .teaching-card, .contact-card { break-inside: avoid; box-shadow: none; }
}
