@font-face {
  font-family: "Erewhon";
  src: url("fonts/Erewhon-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Erewhon";
  src: url("fonts/Erewhon-Italic.otf") format("opentype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Erewhon";
  src: url("fonts/Erewhon-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Erewhon";
  src: url("fonts/Erewhon-BoldItalic.otf") format("opentype");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #25211f;
  --muted: #6b6662;
  --rule: #e5dfdc;
  --accent: #8a001a;
  --accent-dark: #5f0012;
  --paper: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Erewhon", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.site-header {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 22px;
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid var(--rule);
  font-family: "Erewhon", Georgia, "Times New Roman", serif;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
}

.site-nav a {
  padding-bottom: 3px;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.active {
  color: var(--accent);
}

.site-nav a.active {
  border-bottom: 2px solid var(--accent);
}

main {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 370px) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 86px);
  align-items: center;
  min-height: calc(100vh - 172px);
  padding: 64px 0 76px;
}

.portrait {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
}

.kicker,
.section-label {
  margin: 0;
  color: var(--accent);
  font-family: "Erewhon", Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kicker,
.intro h1 {
  font-size: clamp(1rem, 1.6vw, 1.22rem);
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

h1, h2, h3, h4 {
  font-family: "Erewhon", Georgia, "Times New Roman", serif;
  color: var(--ink);
  letter-spacing: -0.025em;
}

h1 {
  max-width: 650px;
  margin: 8px 0 14px;
  font-weight: 700;
  line-height: 1.14;
}

.role {
  margin: 0 0 24px;
  color: var(--muted);
  font-family: "Erewhon", Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  line-height: 1.55;
}

.intro-copy { max-width: 620px; }

.intro-copy > p:not(.kicker):not(.role) { margin: 0 0 16px; }

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 25px;
  font-family: "Erewhon", Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  font-weight: 600;
}

.research {
  padding: 66px 0 28px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(170px, 0.38fr) minmax(0, 1fr);
  gap: 42px;
  margin-bottom: 46px;
}

.section-heading h1 {
  margin: 7px 0 0;
  color: var(--accent);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.section-intro {
  align-self: end;
  max-width: 660px;
  margin: 0;
  color: var(--muted);
}

.research-group { margin: 0 0 72px; }

.research-group h2 {
  margin: 0;
  padding: 0 0 12px;
  border-bottom: 2px solid var(--accent);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.paper {
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--rule);
}

.paper-title {
  margin: 0 0 17px;
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  font-weight: 700;
  line-height: 1.32;
}

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

.paper-title a:hover,
.paper-title a:focus { text-decoration: underline; }

.paper-coauthor {
  color: var(--muted);
  font-size: 0.78em;
  font-weight: 400;
}

.paper-coauthor a {
  color: var(--accent);
  text-decoration: underline;
}

.paper-meta {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 0.96rem;
}

.abstract {
  max-width: none;
  margin: 0 0 17px;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 20px 0 0;
  font-family: "Erewhon", Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.details {
  max-width: none;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

footer {
  margin-top: 12px;
  padding: 26px 0 44px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: "Erewhon", Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .site-header,
  main { width: min(100% - 32px, 620px); }

  .site-header { justify-content: flex-start; }

  .intro {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: 0;
    padding: 42px 0 58px;
  }

  .portrait { width: min(100%, 380px); }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .research { padding-top: 46px; }

}
