:root {
  --paper: #f7f3ea;
  --paper-deep: #eee8dc;
  --ink: #202724;
  --muted: #5b625e;
  --forest: #21483a;
  --forest-deep: #17352b;
  --plum: #7c4d62;
  --line: #d4ccbf;
  --white: #fffdf9;
  --focus: #b95f27;
  --max-width: 1000px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.25rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: var(--forest);
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--plum);
}

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

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

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h1 {
  margin-bottom: 0.7rem;
  color: var(--forest-deep);
  font-size: clamp(3rem, 6vw, 4.7rem);
}

h1 span {
  display: block;
  margin-top: 0.25rem;
  color: var(--plum);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.28em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 1.6rem;
  color: var(--forest-deep);
  font-size: clamp(2rem, 4vw, 2.85rem);
}

h3 {
  font-size: 1.22rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  transform: translateY(-180%);
  padding: 0.65rem 1rem;
  background: var(--forest-deep);
  color: var(--white);
  font-weight: 700;
}

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

.section-shell {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(33, 72, 58, 0.14);
  background: rgba(247, 243, 234, 0.95);
  backdrop-filter: blur(12px);
}

.nav-shell {
  display: flex;
  width: min(calc(100% - 2.5rem), var(--max-width));
  min-height: 4.5rem;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.72rem;
  color: var(--forest-deep);
  text-decoration: none;
}

.wordmark-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.wordmark-mark span {
  color: var(--plum);
}

.wordmark-name {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 1.65rem);
}

.site-nav a {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--plum);
}

.menu-toggle {
  display: none;
  width: 2.7rem;
  height: 2.7rem;
  padding: 0.62rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--forest-deep);
}

.hero {
  display: grid;
  min-height: 0;
  padding-block: clamp(2.75rem, 4vw, 3rem);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
  grid-template-columns: minmax(0, 1fr) 190px;
}

.eyebrow,
.section-kicker {
  margin-bottom: 0.65rem;
  color: var(--plum);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-role {
  margin-bottom: 1.2rem;
  color: var(--forest-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 2.1vw, 1.45rem);
  line-height: 1.45;
}

.hero-bio {
  max-width: 60ch;
  margin-bottom: 1.15rem;
  color: var(--muted);
}

.hero-bio strong {
  color: var(--ink);
}

.profile-links {
  display: flex;
  margin-bottom: 1.15rem;
  gap: 0.7rem 1.3rem;
  flex-wrap: wrap;
}

.profile-links a,
.paper-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--forest-deep);
  font-size: 0.86rem;
  font-weight: 750;
}

.profile-details {
  display: grid;
  max-width: 680px;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  gap: 0.7rem;
  grid-template-columns: 105px 1fr;
}

.profile-details p {
  margin-bottom: 0;
  font-size: 0.87rem;
}

.profile-details > div {
  display: grid;
  gap: 0.28rem;
}

.profile-details > div p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.education-date {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.education-entry {
  color: var(--ink);
}

.profile-details > div .education-awards {
  display: block;
  padding-top: 0.38rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.education-awards strong {
  color: var(--plum);
}

.detail-label {
  color: var(--plum);
  font-weight: 750;
}

.portrait-frame {
  position: relative;
  width: 100%;
  margin: 0;
}

.portrait-frame::before {
  position: absolute;
  z-index: -1;
  top: -0.75rem;
  right: -0.75rem;
  width: 58%;
  height: 38%;
  border: 1px solid var(--plum);
  content: "";
}

.portrait-frame img {
  width: 100%;
  height: auto;
  border: 8px solid var(--white);
  box-shadow: 0 16px 42px rgba(31, 53, 43, 0.13);
}

.section {
  padding-block: clamp(4.5rem, 8vw, 6.5rem);
}

.publications-section {
  padding-top: clamp(3.6rem, 6vw, 4.5rem);
  border-block: 1px solid var(--line);
  background: var(--white);
}

.section-heading {
  display: grid;
  margin-bottom: 2rem;
  align-items: end;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.48fr);
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.publication-list {
  padding: 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.publication {
  display: grid;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  gap: clamp(1.4rem, 4vw, 3.2rem);
  grid-template-columns: 118px 1fr;
}

.publication-venue {
  display: flex;
  align-items: flex-start;
  color: var(--muted);
  flex-direction: column;
  font-size: 0.73rem;
  line-height: 1.45;
}

.publication-venue strong {
  margin-block: 0.18rem;
  color: var(--forest-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.publication-copy h3 {
  max-width: 42em;
  margin-bottom: 0.7rem;
  font-size: clamp(1.22rem, 2.2vw, 1.62rem);
}

.publication-copy h3 a {
  color: var(--ink);
  text-decoration: none;
}

.publication-copy h3 a:hover {
  color: var(--forest);
  text-decoration: underline;
}

.authors {
  max-width: 78ch;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.87rem;
}

.authors .me {
  color: var(--forest-deep);
  text-decoration: underline;
  text-decoration-color: var(--plum);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.paper-link {
  min-height: 2.6rem;
}

.award-note {
  display: inline-block;
  padding: 0.18rem 0.48rem;
  margin: 0.45rem 0 0;
  border-left: 2px solid var(--plum);
  background: var(--paper-deep);
  color: var(--plum);
  font-size: 0.78rem;
  font-weight: 750;
}

.timeline {
  border-bottom: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  padding: 1.7rem 0;
  border-top: 1px solid var(--line);
  gap: 2rem;
  grid-template-columns: 180px 1fr;
}

.timeline-item h3 {
  margin-bottom: 0.45rem;
}

.timeline-item p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.timeline-date {
  color: var(--plum);
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.site-footer {
  padding-block: 1.55rem;
  background: var(--forest-deep);
  color: #d9e1dc;
  font-size: 0.78rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer nav {
  display: flex;
  gap: 1.1rem;
}

.site-footer a {
  color: var(--white);
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 4.5rem;
    right: 0;
    left: 0;
    display: none;
    min-height: calc(100svh - 4.5rem);
    padding: 2rem 1.25rem;
    background: var(--paper);
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
  }
}

@media (max-width: 680px) {
  .section-shell,
  .nav-shell {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .wordmark-name {
    display: none;
  }

  .hero {
    padding-block: 2.75rem 3.5rem;
    gap: 2rem;
    grid-template-columns: 1fr;
  }

  .portrait-frame {
    width: 160px;
    margin-inline: auto;
    grid-row: 1;
  }

  .hero-copy {
    grid-row: 2;
  }

  .profile-details,
  .section-heading,
  .publication,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .profile-details,
  .publication,
  .timeline-item {
    gap: 0.8rem;
  }

  .section-heading {
    gap: 0.35rem;
  }

  .publication-venue {
    align-items: baseline;
    gap: 0.55rem;
    flex-direction: row;
  }

  .publication-venue strong {
    margin: 0;
  }

  .profile-details > div p {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.05rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer {
    display: none;
  }

  body,
  .publications-section {
    background: #fff;
  }

  .section,
  .hero {
    padding-block: 2rem;
  }
}
