:root {
  --ink: #17212b;
  --muted: #5d6874;
  --accent: #00693e;
  --accent-dark: #004c2c;
  --line: #d9e0e5;
  --paper: #ffffff;
  --wash: #f5f7f8;
  --content: 72rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

a:hover, a:focus { color: var(--accent-dark); }

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 10;
  padding: .65rem 1rem;
  color: white;
  background: var(--ink);
}

.skip-link:focus { top: 1rem; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
}

.nav-wrap {
  width: min(calc(100% - 2.5rem), var(--content));
  min-height: 5rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-name {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

nav ul {
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
}

nav a[aria-current="page"], nav a:hover { color: var(--accent); }

main {
  width: min(calc(100% - 2.5rem), var(--content));
  min-height: calc(100vh - 13rem);
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

h1, h2, h3 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.22;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -.035em;
}

h2 {
  margin: 3.5rem 0 1.25rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 500;
}

.section-head {
  display: block;
  width: fit-content;
  margin-bottom: 1.4rem;
  padding: .7rem 1.35rem .65rem;
  border-bottom: 0;
  color: #fff;
  background: var(--accent);
  border-radius: .35rem;
}

h3 { margin: 0; font-size: 1.15rem; }

p { margin: 0 0 1.15rem; }

.eyebrow {
  margin: 0 0 .65rem;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.lede {
  max-width: 50rem;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  line-height: 1.55;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(12rem, .8fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  padding: 2rem 0 3rem;
}

.portrait-placeholder {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #0b7a4a, #004c2c);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: .05em;
  overflow: hidden;
}

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

.button {
  display: inline-block;
  margin: .4rem .7rem .4rem 0;
  padding: .55rem .9rem;
  border: 1px solid var(--accent);
  border-radius: .18rem;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}

.button.primary { color: white; background: var(--accent); }
.button.primary:hover { background: var(--accent-dark); }

.section-intro { max-width: 58rem; }

.entries { max-width: 62rem; }

.entry {
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--line);
}

.entry:first-child { padding-top: .25rem; }
.entry:last-child { border-bottom: 0; }

.entry-title { color: var(--accent); }
.entry-title a { color: inherit; text-decoration: none; }

.paper-figure { margin: .35rem 0 .75rem; }
.paper-figure img {
  max-width: 100%;
  height: auto;
  max-height: 19rem;
  width: auto;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
@media (min-width: 640px) {
  .paper-figure img { max-width: 42rem; }
}

.paper-caption {
  max-width: 42rem;
  margin: .45rem 0 0;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.5;
}

.meta {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .94rem;
}

.venue { color: var(--ink); font-style: italic; }

details { margin-top: .75rem; }
summary {
  width: fit-content;
  color: var(--accent);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 650;
}

.abstract {
  max-width: 57rem;
  margin: .7rem 0 0;
  color: var(--muted);
  font-size: .94rem;
}

.timeline, .course-list { max-width: 58rem; }

.timeline-item, .course {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.date { color: var(--muted); font-size: .9rem; }
.course p { margin: .55rem 0 0; color: var(--muted); }

.awards {
  max-width: 58rem;
  padding-left: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--wash);
}

.footer-wrap {
  width: min(calc(100% - 2.5rem), var(--content));
  margin: 0 auto;
  padding: 2rem 0;
  color: var(--muted);
  font-size: .88rem;
}

.footer-wrap p { margin: 0; }

@media (max-width: 700px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: .7rem;
    padding: 1.15rem 0;
  }
  nav { width: 100%; overflow-x: auto; }
  nav ul { gap: 1.25rem; padding-bottom: .15rem; }
  main { padding-top: 2.5rem; }
  .hero { grid-template-columns: 1fr; }
  .portrait-placeholder { width: min(65vw, 16rem); order: -1; }
  .timeline-item, .course { grid-template-columns: 1fr; gap: .25rem; }
  .button {
    display: block;
    width: 100%;
    margin: .5rem 0;
    text-align: center;
  }
}

