:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --ink: #1f2937;
  --muted: #667085;
  --line: #e4e7ec;
  --link: #2563a6;
  --link-hover: #9b2f2f;
  --accent: #a33d35;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.58;
}

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

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.site-header,
.site-footer,
.section {
  width: min(960px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0 14px;
}

.brand {
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
}

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

.section {
  padding: 34px 0;
}

.intro {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  padding-top: 34px;
  padding-bottom: 36px;
}

.portrait-card {
  margin: 0;
}

.portrait-card img {
  width: 190px;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
  object-position: center 38%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.portrait-card figcaption {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.portrait-card figcaption strong {
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 4px;
  font-size: 2.3rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.36rem;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 5px;
  font-size: 1rem;
  line-height: 1.34;
  letter-spacing: 0;
}

.subtitle {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 1.02rem;
}

.lead {
  max-width: 720px;
  margin-bottom: 10px;
  color: #344054;
}

.personal-note {
  max-width: 720px;
  margin-bottom: 18px;
  border-left: 3px solid var(--line);
  padding-left: 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.link-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.button,
.tag-row a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--link);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
}

.button {
  padding: 7px 10px;
}

.button.primary {
  border-color: #b7c7da;
  background: #f4f8fc;
}

.button:hover,
.tag-row a:hover {
  border-color: #c8d4e2;
  background: #f8fafc;
  color: var(--link-hover);
  text-decoration: none;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: end;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  padding-bottom: 8px;
}

.section-heading.compact {
  display: block;
  margin-bottom: 12px;
}

.section-kicker {
  justify-self: end;
  max-width: 420px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

.publication-list {
  display: grid;
}

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

.publication img {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
}

.venue {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
}

.authors,
.note,
.project-item p,
.simple-copy,
.simple-list p {
  color: var(--muted);
}

.authors {
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.tag-row a {
  min-height: 28px;
  padding: 6px 8px;
  font-size: 0.82rem;
}

.note {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  border-bottom: 1px solid var(--line);
  padding: 6px 0 10px;
}

.project-item {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.project-item h3 {
  margin-bottom: 2px;
  font-size: 0.96rem;
}

.project-item h3 a {
  color: var(--ink);
}

.project-item h3 a:hover {
  color: var(--link-hover);
}

.project-item p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.simple-list,
.simple-copy {
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.simple-list p {
  margin-bottom: 14px;
}

.simple-list p:last-child,
.simple-copy {
  margin-bottom: 0;
}

.gallery-hero {
  padding-top: 44px;
  padding-bottom: 24px;
}

.gallery-hero h1 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.gallery-hero .lead {
  color: #344054;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 8px;
}

.gallery-grid figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

.gallery-grid figure.wide {
  grid-column: 1 / -1;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
}

.gallery-grid .wide img {
  aspect-ratio: 2.15 / 1;
}

.gallery-grid figcaption {
  padding: 9px 11px 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 20px 0 36px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer span {
  color: var(--ink);
  font-weight: 700;
}

.error-page {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18vh 0;
}

.error-page .lead {
  color: #344054;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .section,
  .error-page {
    width: min(100% - 28px, 960px);
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .section {
    padding: 30px 0;
  }

  .intro {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 18px;
    padding-top: 28px;
    padding-bottom: 30px;
  }

  .portrait-card img {
    width: 118px;
  }

  .portrait-card figcaption {
    display: none;
  }

  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.22rem;
  }

  .section-heading {
    display: block;
  }

  .section-kicker {
    margin-top: 6px;
    text-align: left;
  }

  .publication,
  .project-list,
  .split-section,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .publication {
    gap: 10px;
  }

  .publication img {
    max-width: 220px;
  }

  .project-list {
    gap: 0;
  }

  .gallery-grid figure.wide {
    grid-column: auto;
  }

  .gallery-grid .wide img {
    aspect-ratio: 1.55 / 1;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .portrait-card img {
    width: 142px;
  }

  .button {
    flex: 1 1 130px;
  }
}
