:root {
  --paper: #f7f4ed;
  --ink: #23231f;
  --muted: #67635a;
  --line: #d9d1c1;
  --panel: #ffffff;
  --teal: #1e6f73;
  --teal-dark: #124f52;
  --berry: #8f2f4b;
  --ochre: #b7791f;
  --shadow: 0 20px 55px rgba(44, 38, 28, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 244, 237, 0.92);
  border-bottom: 1px solid rgba(35, 35, 31, 0.08);
  backdrop-filter: blur(16px);
}

.nav-wrap,
.site-footer,
.section,
.hero,
.page-hero {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand,
.nav-links,
.profile-links,
.hero-actions,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.76rem;
  font-weight: 800;
}

.nav-links {
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.96rem;
}

.nav-links a,
.footer-links a,
.profile-links a {
  text-decoration: none;
}

.nav-links a {
  padding: 0.45rem 0;
  border-bottom: 2px solid transparent;
}

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

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 1.1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6.9rem);
  font-weight: 650;
}

h2 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 620;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
}

.lede {
  color: #3a3832;
  font-size: clamp(1.14rem, 2.2vw, 1.48rem);
  max-width: 760px;
}

.hero-actions {
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 2rem 0 1.25rem;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  padding: 0.78rem 1rem;
  text-decoration: none;
  font-weight: 760;
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover {
  background: var(--teal-dark);
  color: #fff;
}

.button-secondary {
  background: transparent;
}

.profile-links {
  gap: 0.9rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.94rem;
}

.profile-links a {
  border-bottom: 1px solid currentColor;
}

.hero-media {
  margin: 0;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--ink);
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 840px;
  margin-bottom: 2rem;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.focus-card {
  min-height: 240px;
  background: rgba(255, 255, 255, 0.72);
  padding: 1.25rem;
}

.focus-card h3,
.project h2 {
  color: var(--teal-dark);
}

.focus-card p,
.publication-list p,
.detail-list p,
.project p,
.site-footer p {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.45fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.text-link {
  display: inline-flex;
  margin-top: 0.45rem;
  color: var(--teal-dark);
  font-weight: 790;
  text-decoration-color: rgba(30, 111, 115, 0.35);
  text-underline-offset: 0.2em;
}

.publication-list {
  display: grid;
  gap: 1rem;
}

.publication-list article,
.detail-list article,
.timeline article,
.project {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  padding: 1.15rem;
}

.publication-list article {
  border-left: 4px solid var(--teal);
}

.publication-list.compact article {
  padding: 1rem 1.1rem;
}

.publication-list h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.03rem, 1.6vw, 1.2rem);
  line-height: 1.28;
}

.publication-list h3 a {
  text-decoration-color: rgba(35, 35, 31, 0.18);
  text-underline-offset: 0.16em;
}

.pub-venue {
  margin-bottom: 0.45rem;
  color: var(--berry);
  font-size: 0.82rem;
  font-weight: 790;
  text-transform: uppercase;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.timeline span {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--ochre);
  font-weight: 820;
}

.page-hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.page-hero.narrow {
  max-width: 920px;
}

.page-hero h1 {
  font-size: clamp(2.7rem, 7vw, 5.7rem);
}

.prose-section {
  display: grid;
  grid-template-columns: minmax(0, 760px);
}

.prose {
  font-size: 1.08rem;
}

.prose h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.detail-list {
  display: grid;
  gap: 1rem;
}

.project-list {
  display: grid;
  gap: 1.25rem;
}

.project {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr) auto;
  gap: 1.25rem;
  align-items: start;
}

.project h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
}

.publication-section {
  padding-top: clamp(3rem, 6vw, 5rem);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0.25rem 0 0;
}

.footer-links {
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero,
  .split-section,
  .project {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    order: -1;
  }

  .hero-media img {
    aspect-ratio: 16 / 10;
  }

  .focus-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project {
    gap: 0.7rem;
  }
}

@media (max-width: 620px) {
  .nav-wrap,
  .site-footer,
  .section,
  .hero,
  .page-hero {
    width: min(100% - 28px, 1120px);
  }

  .nav-wrap {
    min-height: auto;
    padding: 1rem 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 0.65rem;
  }

  .focus-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .focus-card {
    min-height: auto;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
