:root {
  --paper: oklch(97% 0.006 75);
  --paper-card: oklch(99.2% 0.003 75);
  --paper-well: oklch(95.5% 0.006 75);
  --paper-footer: oklch(96% 0.007 75);
  --ink: oklch(10% 0.012 250);
  --ink-body: oklch(32% 0.01 250);
  --ink-muted: oklch(50% 0.008 250);
  --ink-faint: oklch(62% 0.007 250);
  --rule: oklch(87% 0.009 75);
  --rule-soft: oklch(90% 0.008 75);
  --accent: oklch(50% 0.14 45);
  --accent-link: oklch(48% 0.14 45);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --gutter: 52px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-wrap: pretty;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 400;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.skip-link:focus {
  top: 12px;
}

/* Shared type utilities */

.eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 400;
}

.section-lede {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--ink);
  max-width: 640px;
  margin-bottom: 28px;
}

/* Nav */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px var(--gutter);
  background: oklch(97% 0.006 75 / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(88% 0.008 75 / 0.7);
}

.nav__mark {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav__links {
  display: flex;
  gap: 36px;
  align-items: center;
  list-style: none;
}

.nav__links a {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: oklch(40% 0.008 250);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--ink);
}

/* Hero */

.hero {
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px var(--gutter) 64px;
  border-bottom: 1px solid var(--rule);
  background-image:
    linear-gradient(oklch(82% 0.008 75 / 0.18) 1px, transparent 1px),
    linear-gradient(90deg, oklch(82% 0.008 75 / 0.18) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero__discipline {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero__name {
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 128px);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.025em;
}

.hero__name span {
  font-size: 0.62em;
  margin-left: 0.45em;
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid oklch(86% 0.009 75);
}

.hero__dates {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 300;
  color: oklch(42% 0.07 250);
}

.hero__count {
  text-align: right;
}

.hero__count-label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(55% 0.008 250);
  margin-bottom: 4px;
}

.hero__count-value {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
}

/* Section scaffolding */

.section {
  padding: 80px var(--gutter) 100px;
}

.section--ruled {
  border-top: 1px solid var(--rule);
}

.section--split {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  align-items: start;
}

.section--split .section__aside {
  padding-top: 6px;
}

.section--split .eyebrow {
  display: block;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.section__head-note {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 300;
}

/* Project grid */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
}

.card {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--paper-card);
  border: 1px solid var(--rule-soft);
  padding: 0;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px oklch(12% 0.012 250 / 0.1);
}

.card__figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-well);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

.card:hover .card__figure img {
  transform: scale(1.04);
}

.card__body {
  padding: 18px 22px 22px;
}

.card__type {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.card__heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card__title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.15;
}

.card__subtitle {
  font-size: 11.5px;
  font-style: italic;
  color: var(--ink-muted);
  margin-top: 3px;
}

.card__year {
  font-size: 11px;
  color: var(--ink-faint);
  font-weight: 300;
  flex-shrink: 0;
  padding-top: 2px;
}

.card__desc {
  font-size: 12.5px;
  color: oklch(45% 0.008 250);
  margin-top: 12px;
  line-height: 1.7;
}

.card__cue {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.card__cue span:last-child {
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  transition: transform 0.3s var(--ease);
}

.card:hover .card__cue span:last-child {
  transform: translateX(4px);
}

/* About */

.prose p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-body);
  max-width: 540px;
}

.prose p + p {
  margin-top: 18px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
  list-style: none;
}

.tags li {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 1px solid oklch(82% 0.009 75);
  color: oklch(38% 0.01 250);
}

/* Contact */

.email-link {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--accent-link);
  border-bottom: 1px solid oklch(72% 0.1 45);
  padding-bottom: 3px;
  transition: opacity 0.2s;
}

.email-link:hover {
  opacity: 0.65;
}

/* Footer */

.footer {
  padding: 24px var(--gutter);
  border-top: 1px solid var(--rule);
  background: var(--paper-footer);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 11px;
  letter-spacing: 0.07em;
}

.footer p:first-child {
  color: oklch(55% 0.008 250);
}

.footer p:last-child {
  color: var(--ink-faint);
  font-style: italic;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  border: 0;
  padding: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  background: oklch(8% 0.01 250 / 0.95);
  color: oklch(94% 0.004 75);
}

.lightbox::backdrop {
  background: oklch(8% 0.01 250 / 0.95);
}

.lightbox[open] {
  display: flex;
  align-items: safe center;
  justify-content: center;
  padding: 76px 24px 28px;
  overflow: auto;
  overscroll-behavior: contain;
}

.lightbox__inner {
  position: relative;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 90vw;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 1;
  background: none;
  border: none;
  color: oklch(80% 0.005 250);
  font-size: 28px;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox__close:hover {
  color: #fff;
}

.lightbox__viewer {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lightbox__nav {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid oklch(60% 0.005 250 / 0.5);
  color: oklch(80% 0.005 250);
  font-size: 20px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.lightbox__nav:hover {
  border-color: #fff;
  color: #fff;
}

.lightbox__nav[hidden] {
  display: none;
}

.lightbox__image {
  max-width: 78vw;
  /* Leaves room for the close button, gap, and caption so the
     centred block never overflows past the top of the viewport. */
  max-height: max(200px, min(74vh, calc(100vh - 300px)));
  object-fit: contain;
  border: 1px solid oklch(25% 0.008 250);
}

.lightbox__caption {
  text-align: center;
  max-width: 560px;
  padding: 0 16px;
}

.lightbox__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  margin-bottom: 6px;
}

.lightbox__type {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(55% 0.12 45);
  font-weight: 500;
  margin-bottom: 10px;
}

.lightbox__desc {
  font-size: 12.5px;
  color: oklch(65% 0.006 250);
  line-height: 1.7;
}

.lightbox__counter {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: oklch(58% 0.006 250);
  margin-top: 12px;
}

.lightbox__counter[hidden] {
  display: none;
}

/* Responsive */

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

@media (max-width: 860px) {
  :root {
    --gutter: 28px;
  }

  .nav__links {
    gap: 22px;
  }

  .section--split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero__count {
    text-align: left;
  }

  .section-lede {
    font-size: 27px;
  }
}

@media (max-width: 620px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .lightbox__nav {
    width: 44px;
    height: 44px;
  }

  .lightbox__image {
    max-width: 86vw;
  }

  .lightbox[open] {
    padding: 64px 16px 24px;
  }

  .lightbox__close {
    top: 12px;
    right: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print */

@media print {
  .nav,
  .skip-link,
  .card__cue,
  .lightbox {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .hero {
    min-height: auto;
    padding-top: 0;
    background-image: none;
  }

  .card {
    break-inside: avoid;
    box-shadow: none;
  }
}
