:root {
  --ink: #15241f;
  --muted: #596862;
  --paper: #f7f5ee;
  --white: #fffefa;
  --green: #174f3c;
  --green-light: #dce9df;
  --copper: #b65d3c;
  --line: #d8d8ce;
  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--copper); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav-wrap {
  width: min(1180px, calc(100% - 48px));
  height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 15px;
  text-decoration: none;
}
nav { display: flex; gap: 2rem; align-items: center; }
nav a { font-size: 14px; font-weight: 600; letter-spacing: .03em; text-decoration: none; }
.menu-button { display: none; }

main, footer { width: min(1180px, calc(100% - 48px)); margin: auto; }
.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, .75fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  padding: 6rem 0 7rem;
}
.eyebrow, .paper-type {
  margin: 0 0 1.2rem;
  color: var(--copper);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.18; }
h1 { margin: 0; font-size: clamp(4.2rem, 9vw, 7.8rem); letter-spacing: -.055em; }
.role { margin: 1rem 0 2.2rem; color: var(--green); font-size: 20px; font-weight: 600; line-height: 1.5; }
.lede { max-width: 760px; margin: 0 0 1.6rem; font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.45; }
.fields { display: flex; flex-wrap: wrap; gap: .5rem .7rem; max-width: 760px; margin: 0; color: var(--muted); font-size: 14px; }
.fields span:not(:last-child)::after { content: "·"; margin-left: .7rem; color: var(--copper); }
.hero-actions { display: flex; gap: .8rem; margin-top: 2.2rem; }
.button { display: inline-flex; padding: .8rem 1.15rem; border: 1px solid var(--green); font-size: 14px; font-weight: 600; text-decoration: none; }
.button-primary { background: var(--green); color: var(--white); }
.button-primary:hover { background: var(--ink); color: var(--white); }
.button-secondary:hover { background: var(--green-light); color: var(--ink); }
.portrait-card {
  aspect-ratio: 4 / 5;
  align-self: center;
  margin: 0;
  overflow: hidden;
  border-radius: 46% 46% 4px 4px;
}
.portrait {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 51% 32%;
  transform: scale(1.55);
  transform-origin: 51% 10%;
}

.section {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  padding: 8rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 70px;
}
.section-label { padding-top: .5rem; color: var(--copper); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.section-content { max-width: 850px; }
.prose h2, .contact h2 { margin: 0 0 1.8rem; font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -.035em; }
.prose > p { max-width: 760px; }

.paper { padding: 3.2rem 0; border-top: 1px solid var(--line); }
.paper:first-child { padding-top: 0; border-top: 0; }
.paper-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.paper h2 { margin: 0; max-width: 670px; font-size: clamp(2.35rem, 5vw, 4.1rem); letter-spacing: -.035em; }
.paper h3 { margin: 0; max-width: 670px; font-size: clamp(1.65rem, 3.2vw, 2.5rem); letter-spacing: -.025em; }
.paper-subtitle { margin: .6rem 0 0; color: var(--muted); font-family: var(--serif); font-style: italic; }
.paper-link { flex: none; padding-top: .4rem; color: var(--green); font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--green); }
.paper-summary { max-width: 760px; margin: 2rem 0; }
.finding { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; margin: 2.2rem 0; padding: 1.4rem 1.6rem; background: var(--green); color: white; }
.finding strong { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 400; line-height: 1; }
.finding span { max-width: 530px; font-size: 14px; line-height: 1.55; }
details { max-width: 760px; }
summary { width: max-content; cursor: pointer; color: var(--green); font-size: 14px; font-weight: 600; }
details[open] summary { margin-bottom: 1rem; }
details p { color: var(--muted); font-size: 15px; }
.citation { margin-bottom: 0; color: var(--muted); }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 2.5rem; background: var(--line); border: 1px solid var(--line); }
.course-grid div { padding: 1.35rem; background: var(--paper); }
.course-grid span { color: var(--green); font-size: 14px; font-weight: 600; }
.course-grid p { margin: .6rem 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.small-note { color: var(--muted); font-size: 14px; }

.contact { margin: 3rem 0; padding: clamp(3rem, 7vw, 6rem); background: var(--green); color: white; scroll-margin-top: 100px; }
.contact .eyebrow { color: #f0aa8e; }
.contact h2 { margin-bottom: 1.2rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 2rem; }
.contact-links a { color: white; font-weight: 600; }
footer { display: flex; justify-content: space-between; padding: 2.5rem 0 3.5rem; color: var(--muted); font-size: 12px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-wrap, main, footer { width: min(100% - 32px, 1180px); }
  .menu-button { display: block; padding: .5rem; border: 0; background: transparent; color: var(--ink); font: 600 14px var(--sans); }
  nav { position: absolute; top: 76px; left: 0; right: 0; display: none; flex-direction: column; align-items: flex-start; gap: 0; padding: .7rem 16px 1rem; background: var(--paper); border-bottom: 1px solid var(--line); }
  nav.open { display: flex; }
  nav a { width: 100%; padding: .75rem 0; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 4rem 0 5rem; }
  .portrait-card { order: -1; width: min(62vw, 250px); }
  .portrait { object-position: 51% 30%; transform: scale(1.5); transform-origin: 51% 10%; }
  h1 { font-size: clamp(4rem, 20vw, 6rem); }
  .fields span::after { display: none; }
  .hero-actions { flex-wrap: wrap; }
  .section { grid-template-columns: 1fr; gap: 1.3rem; padding: 5rem 0; }
  .paper-heading { gap: 1rem; }
  .finding { grid-template-columns: 1fr; gap: .8rem; }
  .course-grid { grid-template-columns: 1fr; }
  .contact { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  footer { flex-direction: column; gap: .2rem; }
  footer p { margin: 0; }
}

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