:root {
  --bg: #f3efe6;
  --bg-raise: #fffaf3;
  --ink: #17211f;
  --muted: #5c6763;
  --line: #d9d2c5;
  --deep: #0d3c40;
  --deep-2: #082c2f;
  --teal: #14685f;
  --foam: #d7ebe4;
  --clay: #b85a32;
  --shadow: 0 18px 50px rgba(23, 33, 31, 0.12);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% -10%, #d5ebe6 0%, transparent 60%),
    radial-gradient(700px 380px at -10% 8%, #f6e3d4 0%, transparent 55%),
    var(--bg);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

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

figure { margin: 0; }

a { color: var(--teal); }

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

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

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

.skip:focus { top: 1rem; }

.wrap {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  background: rgba(243, 239, 230, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.nav .brand {
  font-family: var(--serif);
  color: var(--ink);
  text-decoration: none;
  font-weight: 620;
  letter-spacing: -0.02em;
}

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

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover { color: var(--teal); }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: end;
  padding: 3.2rem 0 2.4rem;
}

.kicker {
  margin: 0 0 1rem;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 640;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(3.1rem, 6.4vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

h1 em {
  font-style: italic;
  font-weight: 520;
  color: var(--teal);
}

.lede {
  font-size: 1.18rem;
  max-width: 38rem;
  color: var(--ink);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.meta a { color: inherit; }

.portrait-wrap { position: relative; }

.portrait-frame { position: relative; }

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 1.2rem -0.8rem -0.8rem 1.2rem;
  background: var(--deep);
  border-radius: 1.4rem;
}

.portrait-wrap img {
  position: relative;
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
}

.portrait-wrap figcaption {
  position: relative;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.awards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
}

.awards li {
  background: var(--foam);
  color: var(--deep);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.86rem;
}

.band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band div { padding: 1.3rem 1.2rem 1.3rem 0; }

.band div + div { border-left: 1px solid var(--line); padding-left: 1.2rem; }

.band strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.band span { color: var(--muted); font-size: 0.95rem; }

section { padding: 4.5rem 0; }

.section-label {
  margin: 0 0 0.4rem;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 640;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.intro {
  max-width: 40rem;
  color: var(--muted);
  margin-top: 0;
}

.finding {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.finding:last-child { border-bottom: 1px solid var(--line); }

.year {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.journal {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.finding h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.finding p { margin: 0.35rem 0; }

.mark {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--clay);
  font-size: 0.9rem;
}

.research {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.research:last-of-type { border-bottom: 1px solid var(--line); }

.rnum {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--teal);
}

.research h3 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.research p { margin: 0.55rem 0; }

.research > figure {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 100%;
  margin: 1.4rem 0 0.2rem;
  text-align: center;
}

.research figure a { display: block; }

.research figure img {
  height: 16.3rem;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #fff;
}

.research figure a:hover img { border-color: var(--teal); }

.research figcaption {
  max-width: 100%;
  margin: 0.7rem auto 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.wide {
  margin: 0;
  padding: 0;
}

.wide img {
  width: 100%;
  height: min(70vh, 640px);
  object-fit: cover;
  object-position: center 40%;
}

.wide figcaption {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0.7rem auto 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.next {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.next article {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.2rem 1.2rem 1.3rem;
}

.next h3 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.next p { margin: 0; color: var(--muted); }

.paper {
  display: grid;
  grid-template-columns: 4.8rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.paper:last-child { border-bottom: 1px solid var(--line); }

.paper:hover h3 { color: var(--teal); }

.paper .n {
  font-family: var(--serif);
  color: var(--teal);
  font-size: 1.2rem;
}

.paper h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
}

.paper .where {
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

h3.group {
  display: inline-block;
  margin: 2.8rem 0 0.7rem;
  padding: 0.38rem 1.05rem;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 620;
  letter-spacing: -0.01em;
}

h3.group:first-of-type { margin-top: 1.2rem; }

h3.group.first {
  background: var(--deep);
  color: #f6f1e7;
}

h3.group.co {
  background: var(--clay);
  color: #fdf3ec;
}

.lab {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.lab img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 1.2rem;
}

.people {
  display: grid;
  gap: 0;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.people li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.75rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.people li:first-child { border-top: 1px solid var(--line); }

.people span { color: var(--muted); }

.visit {
  background: var(--deep);
  color: #f6f1e7;
  border-radius: 1.6rem;
  padding: 2.4rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.5rem;
  align-items: end;
}

.visit h2 { color: white; }

.visit p { color: #d5e4e1; max-width: 36rem; }

.visit a.mail {
  color: white;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.visit .actions { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }

.button {
  display: inline-block;
  background: #f3efe6;
  color: var(--deep);
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-weight: 640;
}

.button.ghost {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.shelves {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}

.shelves a {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.15rem 1.2rem 1.25rem;
}

.shelves a:hover { border-color: var(--teal); }

.shelves strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.shelves span { color: var(--muted); }

.pub {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 300px);
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.pub:last-of-type { border-bottom: 1px solid var(--line); }

.pub h2 {
  margin: 0.1rem 0 0.35rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.pub p { margin: 0.2rem 0; }

.pub .cite { color: var(--muted); font-size: 0.95rem; }

.pub:not(:has(img)) { grid-template-columns: 1fr; }

.pub img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
}

.nav a.here { color: var(--teal); }

footer {
  padding: 1.4rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .hero, .band, .next, .lab, .visit, .finding, .paper, .shelves, .research {
    grid-template-columns: minmax(0, 1fr);
  }

  .research { gap: 0.4rem; }

  .research figure img { height: auto; width: 100%; }

  .pub { grid-template-columns: minmax(0, 1fr); }

  h1 { font-size: 2.65rem; }

  .kicker { letter-spacing: 0.08em; }

  .nav { flex-wrap: wrap; align-items: flex-start; }

  .nav ul {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
  }

  .hero, .lab { grid-template-columns: minmax(0, 1fr); align-items: start; }

  .portrait-wrap { width: 100%; }

  .portrait-wrap::before { inset: 0.7rem 0 -0.7rem 0.7rem; }

  .portrait-wrap img, .lab img {
    width: 100%;
    height: 420px;
    max-height: none;
    object-fit: cover;
    object-position: center 18%;
  }

  .band div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }

  .paper .where { text-align: left; }

  .wrap { width: min(1120px, calc(100% - 1.5rem)); }
}
