@font-face {
  font-family: "Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #201d19;
  --muted: #6d665e;
  --paper: #f5f1e9;
  --line: #d5cdbf;
  --accent: #a64f35;
  --forest: #34463a;
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
  background: var(--paper);
  scrollbar-color: var(--line) var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Plex Sans", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
}

::selection {
  color: var(--ink);
  background: #ddc8bb;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  transition: color 150ms ease;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  left: 1rem;
  top: 1rem;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
main,
footer {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  text-decoration: none;
  font-weight: 500;
}

nav { display: flex; gap: clamp(0.8rem, 3vw, 2.2rem); }
nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 31vw, 356px);
  gap: clamp(3rem, 7vw, 6.5rem);
  align-items: center;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  border-bottom: 1px solid var(--line);
}

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

h1, h2, h3 { text-wrap: balance; }

h1 {
  max-width: 680px;
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.intro {
  max-width: 650px;
  margin-bottom: 1.5rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.affiliation {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.portrait {
  width: 100%;
  margin: 0;
}

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

.portrait figcaption {
  padding-top: 0.65rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.015em;
}

.section { padding: clamp(4rem, 8vw, 6rem) 0; border-bottom: 1px solid var(--line); }

.field-notes {
  padding: clamp(4rem, 8vw, 6rem) 0;
  border-bottom: 1px solid var(--line);
}

.field-notes-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: end;
  margin-bottom: 2.5rem;
}

.field-notes-header h2,
.field-notes-header p {
  margin-bottom: 0;
}

.field-notes-header h2 {
  color: var(--forest);
}

.field-notes-header p {
  color: var(--muted);
}

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

.photo-grid figure {
  margin: 0;
  overflow: hidden;
  background: var(--line);
}

.photo-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 7;
}

.photo-wide img {
  object-position: 50% 48%;
}

.photo-tall {
  aspect-ratio: 4 / 5;
}

h2 {
  margin-bottom: 2.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.project {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr) 190px;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}

.project-meta {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.project h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.project-featured {
  padding-block: 3rem;
  border-top-color: var(--forest);
}

.project-featured .project-meta {
  color: var(--forest);
}

.project-featured h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.project-featured .project-copy > p:first-of-type {
  font-size: 1.08rem;
  line-height: 1.55;
}

.project-copy > p { max-width: 670px; }

.project-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.project-tags {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.82rem;
}

.project-tags li { padding: 0.35rem 0; border-bottom: 1px solid var(--line); }

.link-row { display: flex; flex-wrap: wrap; gap: 0.7rem 1.5rem; margin-top: 1.8rem; }
.link-row a, .profile-links a { font-size: 0.9rem; }

.section-subtitle {
  margin-top: 4.5rem;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-entry {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

#background > .timeline:last-child .timeline-entry:last-child,
.publication:last-child {
  border-bottom: 0;
}

.timeline-entry h3,
.publication h3 {
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.4;
}

.timeline-entry p:last-child {
  max-width: 760px;
  margin-bottom: 0;
}

.timeline-date,
.timeline-place,
.publication-year {
  color: var(--muted);
  font-size: 0.82rem;
}

.timeline-date,
.publication-year {
  font-variant-numeric: tabular-nums;
}

.timeline-place {
  margin-bottom: 0.8rem;
}

.detail-list {
  max-width: 800px;
  margin: 1.25rem 0 0;
  padding-left: 1.2rem;
}

.detail-list li {
  margin-bottom: 0.65rem;
}

.publication-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.publication {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.publication p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.publication h3 a {
  text-decoration: none;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr);
  gap: clamp(3rem, 10vw, 9rem);
}

.profile-lead { font-size: clamp(1.25rem, 2.5vw, 1.75rem); line-height: 1.45; }
.profile-links { display: grid; gap: 0.8rem; margin-top: 2rem; justify-items: start; }

footer {
  min-height: 150px;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
}

footer p { margin: 0; }

@media (max-width: 940px) and (min-width: 761px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2.5rem;
  }

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

  .project-tags {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
  }

  .profile-grid {
    gap: 3rem;
  }
}

@media (max-width: 760px) {
  .site-header, main, footer { width: min(calc(100% - 2rem), var(--max)); }
  .site-header { min-height: 68px; flex-wrap: wrap; padding: 1rem 0; gap: 0.8rem; }
  .wordmark { width: 100%; }
  nav { width: 100%; gap: 0.8rem; overflow-x: auto; }
  .hero, .profile-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .portrait { width: min(82vw, 360px); }
  .field-notes-header { grid-template-columns: 1fr; gap: 1rem; }
  .photo-grid { gap: 0.5rem; }
  .photo-wide { aspect-ratio: 4 / 3; }
  .project { grid-template-columns: 1fr; gap: 1.2rem; }
  .project-tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.2rem; }
  .timeline-entry { grid-template-columns: 1fr; gap: 0.5rem; }
  .publication { grid-template-columns: 52px minmax(0, 1fr); gap: 0.8rem; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

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