:root {
  --maroon: #5b0013;
  --maroon-bright: #7a0019;
  --gold: #ffcc33;
  --ink: #171313;
  --muted: #685f60;
  --paper: #fbfaf7;
  --cream: #f2eee7;
  --line: #d9d0ca;
  --white: #ffffff;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--maroon);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(calc(100% - 3rem), var(--max));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--gold);
  background: var(--maroon);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.08em;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

nav {
  display: flex;
  gap: 1.65rem;
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover {
  color: var(--maroon-bright);
}

main,
footer {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
  padding: 5rem 0 6rem;
}

.eyebrow,
.note-label,
.section-number {
  margin: 0 0 1rem;
  color: var(--maroon-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  margin-bottom: 1.15rem;
  color: var(--maroon);
  font-size: clamp(4.8rem, 12vw, 9.7rem);
  line-height: 0.78;
  letter-spacing: -0.075em;
}

.role {
  margin-bottom: 1.7rem;
  color: var(--maroon-bright);
  font-weight: 750;
}

.intro {
  max-width: 650px;
  margin-bottom: 2.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.35;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--maroon);
  font-weight: 750;
  text-decoration: none;
}

.button-primary {
  color: var(--white);
  background: var(--maroon);
}

.button-primary:hover {
  background: var(--maroon-bright);
}

.button-secondary:hover {
  background: var(--cream);
}

.profile-stack {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

.portrait-card {
  position: relative;
  overflow: hidden;
  margin: 0 14px 0 0;
  background: var(--maroon);
  box-shadow: 14px 14px 0 var(--gold);
}

.portrait-card img {
  display: block;
  width: 100%;
  height: clamp(330px, 32vw, 430px);
  object-fit: cover;
  object-position: center 28%;
  transform: scale(2.05);
  transform-origin: 50% 42%;
}

.research-note {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.6rem);
  color: var(--white);
  background: var(--maroon);
  box-shadow: 18px 18px 0 var(--gold);
}

.profile-stack .research-note {
  padding: 1.8rem 2rem;
  box-shadow: none;
}

.profile-stack .research-note h2 {
  max-width: 460px;
  font-size: clamp(1.65rem, 2.7vw, 2.35rem);
}

.profile-stack .note-index {
  top: -1.3rem;
  font-size: 7rem;
}

.research-note::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle, var(--white) 1px, transparent 1px);
  background-size: 20px 20px;
}

.research-note > * {
  position: relative;
}

.note-index {
  position: absolute;
  top: -2.4rem;
  right: 0.8rem;
  color: rgba(255, 255, 255, 0.07);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9rem;
  line-height: 1;
}

.research-note .note-label {
  color: var(--gold);
}

.research-note h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.research-note p {
  color: rgba(255, 255, 255, 0.82);
}

.note-rule {
  width: 100%;
  height: 1px;
  margin: 2rem 0 1.25rem;
  background: rgba(255, 255, 255, 0.28);
}

.research-note .advisor-line {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.research-note a {
  color: var(--white);
  text-underline-offset: 0.25em;
}

.section {
  padding: 7rem 0;
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 4rem;
}

.section h2 {
  margin-bottom: 0;
  color: var(--maroon);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-copy {
  max-width: 760px;
}

.section-copy .lead {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1.4;
}

.section-copy > p:last-of-type {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  padding: 0 5rem 3.5rem;
}

.section-heading > p {
  margin-bottom: 0;
  color: var(--muted);
}

.about-topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 2.5rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.about-topics article {
  padding: 1.4rem;
  background: var(--paper);
}

.about-topics span {
  color: var(--maroon-bright);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.about-topics h3 {
  margin: 1.2rem 0 0.7rem;
  color: var(--maroon);
  font-size: 1.2rem;
  line-height: 1.2;
}

.about-topics p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.publication-heading {
  padding-inline: 0;
}

.publication-list {
  border-top: 1px solid var(--line);
}

.publication {
  display: grid;
  grid-template-columns: minmax(150px, 0.3fr) minmax(0, 1.7fr);
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}

.featured-publication {
  position: relative;
}

.featured-publication::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -1.25rem;
  width: 4px;
  background: var(--gold);
}

.publication-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publication h3 {
  max-width: 860px;
  margin-bottom: 1rem;
  color: var(--maroon);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.2;
}

.publication h3 a {
  text-decoration: none;
}

.publication h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.publication p {
  max-width: 800px;
  color: var(--muted);
}

.publication .authors {
  color: var(--ink);
}

.publication .authors a,
.publication .status {
  text-underline-offset: 0.22em;
}

.publication .status {
  margin-bottom: 0;
  color: var(--maroon-bright);
  font-weight: 680;
}

.text-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--maroon-bright);
  font-weight: 780;
  text-underline-offset: 0.25em;
}

.experience-section {
  background: var(--maroon);
  color: var(--white);
}

.experience-section .section-number,
.experience-section h2 {
  color: var(--gold);
}

.compact-heading {
  display: block;
  padding-inline: 0;
}

.timeline {
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.timeline article {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1.65fr);
  gap: 3rem;
  padding: 2.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.timeline-date {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
}

.timeline-place {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 650;
}

.timeline-content p:last-child {
  max-width: 800px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}

.teaching-section .section-heading {
  padding-inline: 0;
}

.teaching-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.teaching-list article {
  min-height: 200px;
  padding: 2rem;
  background: var(--paper);
}

.teaching-list .current-course {
  box-shadow: inset 5px 0 0 var(--gold);
}

.term {
  color: var(--maroon-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.term span {
  margin-left: 0.5rem;
  padding: 0.2rem 0.45rem;
  color: var(--maroon);
  background: var(--gold);
  font-size: 0.68rem;
}

.teaching-list h3 {
  margin: 2.2rem 0 0.7rem;
  color: var(--maroon);
  font-size: 1.45rem;
  line-height: 1.25;
}

.teaching-list article > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.education-section {
  background: var(--cream);
  border-top: 0;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.education-grid article {
  min-height: 280px;
  padding: 2.3rem;
  background: var(--paper);
  border: 1px solid var(--line);
}

.education-grid .education-primary {
  grid-row: span 2;
  color: var(--white);
  background: var(--maroon);
  border-color: var(--maroon);
}

.education-year {
  color: var(--maroon-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.education-primary .education-year {
  color: var(--gold);
}

.education-grid h3 {
  margin: 2.5rem 0 1.2rem;
  color: var(--maroon);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.education-primary h3 {
  color: var(--white);
}

.education-grid p:not(.education-year) {
  margin-bottom: 0.45rem;
  color: var(--muted);
}

.education-primary p:not(.education-year) {
  color: rgba(255, 255, 255, 0.78);
}

.contact-section {
  padding: 8rem 0;
  text-align: center;
}

.contact-section h2 {
  margin-bottom: 1.5rem;
  color: var(--maroon);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.06em;
}

.contact-section > p:not(.section-number) {
  max-width: 620px;
  margin: 0 auto 2.5rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.contact-links a {
  color: var(--maroon-bright);
  font-weight: 780;
  text-underline-offset: 0.25em;
}

footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  margin-bottom: 0;
}

footer a {
  color: var(--maroon-bright);
  font-weight: 700;
  text-underline-offset: 0.25em;
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .research-note {
    max-width: 650px;
  }

  .profile-stack {
    max-width: 650px;
  }

  .about-grid,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .section-heading {
    padding-inline: 3.5rem;
  }

  .about-topics {
    grid-template-columns: 1fr;
  }

  .publication {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .publication-meta {
    justify-content: flex-start;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 2rem), var(--max));
  }

  .site-header {
    min-height: 76px;
  }

  .brand-name {
    display: none;
  }

  nav {
    max-width: 74vw;
    gap: 0.85rem;
    overflow-x: auto;
  }

  nav a {
    font-size: 0.82rem;
  }

  .hero {
    padding: 4rem 0 5rem;
  }

  h1 {
    font-size: clamp(4.2rem, 26vw, 6rem);
  }

  .research-note {
    margin-right: 10px;
    padding: 2rem;
    box-shadow: 10px 10px 0 var(--gold);
  }

  .profile-stack .research-note {
    margin-right: 0;
    padding: 1.7rem;
    box-shadow: none;
  }

  .portrait-card {
    margin-right: 10px;
    box-shadow: 10px 10px 0 var(--gold);
  }

  .portrait-card img {
    height: clamp(300px, 86vw, 420px);
  }

  .section {
    padding: 5rem 0;
  }

  .section-heading {
    padding-inline: 1rem;
  }

  .teaching-list,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .education-grid .education-primary {
    grid-row: auto;
  }

  .education-grid article {
    min-height: auto;
  }

  .contact-section {
    padding: 6rem 0;
  }

  footer {
    min-height: 150px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
