:root {
  color-scheme: light;
  --ink: #141414;
  --muted: #5c625f;
  --paper: #f8f8f6;
  --surface: #ffffff;
  --line: #d9ded8;
  --accent: #9b3f2f;
  --accent-2: #275f64;
  --dark: #101514;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.18em;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-160%);
  background: var(--surface);
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: min(720px, 72svh);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--dark);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background: rgba(0, 0, 0, 0.44);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(4rem, 7vw, 6rem);
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.85rem;
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #d6e7e5;
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.dek {
  max-width: 730px;
  margin: 1.25rem 0 0;
  font-size: clamp(1.04rem, 1.8vw, 1.28rem);
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.55rem;
}

.hero-actions a,
.contact address a {
  display: inline-flex;
  align-items: center;
  min-height: 2.45rem;
  padding: 0.55rem 0.82rem;
  border: 1px solid currentColor;
  text-decoration: none;
}

.hero-actions a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.hero-caption {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: 0.9rem;
  z-index: 1;
  max-width: min(28rem, calc(100% - 2rem));
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6.5rem) 0;
}

.intro-grid,
.credential-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
}

p {
  margin: 0;
}

.intro-copy {
  display: grid;
  gap: 1rem;
  color: var(--muted);
  font-size: 1.06rem;
}

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

.roles {
  list-style: none;
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.roles li {
  display: grid;
  grid-template-columns: minmax(11rem, 0.42fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.role-meta {
  display: grid;
  gap: 0.2rem;
  align-content: start;
  color: var(--muted);
  font-size: 0.92rem;
}

.role-meta span {
  color: var(--ink);
  font-weight: 700;
}

.roles p {
  margin-top: 0.45rem;
  color: var(--muted);
}

.visual-work {
  width: min(1440px, calc(100% - 2rem));
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: end;
}

.section-head p {
  color: var(--muted);
  max-width: 46rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 1px;
  margin-top: 2rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.project-card {
  display: grid;
  grid-template-rows: 15.5rem auto;
  margin: 0;
  background: var(--surface);
}

.project-card.feature {
  grid-column: span 2;
  grid-row: span 2;
  grid-template-rows: 31.05rem auto;
}

.photo-link {
  display: block;
  min-width: 0;
  height: 100%;
  cursor: zoom-in;
  background: #e8ece9;
}

.project-card img,
.photo-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e8ece9;
}

.project-card figcaption {
  min-height: 8.5rem;
  padding: 1rem;
}

.project-card span {
  display: block;
  font-weight: 800;
}

.project-card p {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(0.75rem, 3vw, 2rem);
  background: rgba(8, 11, 10, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-frame {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.8rem;
  min-height: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.lightbox-frame img {
  align-self: center;
  justify-self: center;
  max-width: 100%;
  max-height: calc(100svh - 7rem);
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-frame figcaption {
  justify-self: center;
  max-width: min(52rem, 100%);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

body.lightbox-open {
  overflow: hidden;
}

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

.credentials p {
  margin-top: 1rem;
  max-width: 45rem;
  color: var(--muted);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-list li {
  padding: 0.44rem 0.68rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

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

.publication-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.publication-list article {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  min-height: 14rem;
  padding: 1.15rem;
  background: var(--surface);
}

.publication-list p {
  color: var(--muted);
}

.publication-list a,
.writing-more a {
  color: var(--accent);
  font-weight: 700;
}

.writing-more {
  margin-top: 1rem;
}

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

.contact address {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
  font-style: normal;
}

.contact address a {
  background: var(--surface);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card.feature {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .intro-grid,
  .credential-grid,
  .section-head,
  .roles li,
  .publication-list {
    grid-template-columns: 1fr;
  }

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

  .site-header {
    display: grid;
  }

  .site-nav {
    gap: 0.5rem 0.9rem;
  }

  .hero {
    min-height: 76svh;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 10vw, 3.2rem);
    line-height: 1.02;
  }

  .hero-copy {
    width: min(100% - 1.5rem, var(--max));
    padding-bottom: 5.5rem;
  }

  .hero-caption {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.7rem;
  }

  .roles li {
    gap: 0.65rem;
  }

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

  .project-card,
  .project-card.feature {
    grid-column: auto;
    grid-row: auto;
    grid-template-rows: 17.5rem auto;
  }

  .project-card figcaption {
    min-height: auto;
  }
}
