/* Still Matter: one neutral ground, one ink, no accent. The photographs carry the colour. */

:root {
  --ground: #f4f4f2;
  --ground-2: #e9e9e6;
  --ink: #121212;
  --ink-dim: #575755;
  --line: #d6d6d2;
  --display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1440px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.no-scroll { overflow: hidden; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
h1, h2, p, figure, dl, dd { margin: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding: 0.5rem var(--gutter);
  background: rgba(244, 244, 242, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  text-decoration: none;
}
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.site-nav { display: flex; gap: 0.25rem; margin-right: -0.75rem; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--ink-dim);
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */

.hero { padding-top: clamp(3rem, 9vw, 7.5rem); }

.hero-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 4rem;
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3.25rem, 13vw, 11.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.hero-lede {
  max-width: 26rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.45;
  color: var(--ink-dim);
  padding-bottom: 0.5rem;
}

.hero-figure img {
  width: 100%;
  height: clamp(20rem, 72vh, 52rem);
  object-fit: cover;
  background: var(--ground-2);
}
.hero-figure figcaption {
  padding-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--ink-dim);
}

/* ---------- sections ---------- */

.section { padding-top: clamp(4.5rem, 10vw, 9rem); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 3rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ink);
}

.section-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.section-note { max-width: 34rem; color: var(--ink-dim); }

/* ---------- filters ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-block: 1.25rem 2rem;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.filter-count { font-size: 0.8125rem; font-variant-numeric: tabular-nums; opacity: 0.72; }

/* ---------- grid ---------- */

.grid { columns: 1; column-gap: clamp(1rem, 2vw, 1.75rem); }
@media (min-width: 640px) { .grid { columns: 2; } }
@media (min-width: 1100px) { .grid { columns: 3; } }

.tile {
  break-inside: avoid;
  margin-bottom: clamp(1.5rem, 2.5vw, 2.25rem);
}

.tile-button {
  display: block;
  width: 100%;
  min-height: 12rem;
  padding: 0;
  border: 0;
  background: var(--ground-2);
  cursor: zoom-in;
}
.tile.is-loaded .tile-button { min-height: 0; }

.tile-button img {
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.tile.is-loaded img { opacity: 1; }
.tile.is-missing img { opacity: 1; padding: 1rem; font-size: 0.875rem; color: var(--ink-dim); }

.tile-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.1rem 1rem;
  padding-top: 0.6rem;
  font-size: 0.875rem;
}
.tile-series { color: var(--ink-dim); }

.noscript { padding-top: 1.5rem; }

/* ---------- about ---------- */

.about-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding-top: 2rem;
}
@media (min-width: 900px) {
  .about-body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 5rem; }
}

.about-text { display: flex; flex-direction: column; gap: 1.1rem; max-width: 40rem; }
.about-text p { font-size: 1.0625rem; }
.about-text .about-lead {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  padding-bottom: 0.5rem;
}

.facts { border-top: 1px solid var(--line); align-self: start; }
.fact {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.fact dt { color: var(--ink-dim); }

/* ---------- contact ---------- */

.contact-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 2rem;
}
.contact-lead { max-width: 30rem; font-size: 1.0625rem; color: var(--ink-dim); }
.contact-mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.375rem, 4.6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.contact-link { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(4.5rem, 10vw, 9rem);
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-dim);
}
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -0.6rem; }

/* ---------- lightbox ---------- */

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0e0e0e;
  color: #f4f4f2;
}
.lightbox::backdrop { background: #0e0e0e; }

.lightbox-inner { display: flex; flex-direction: column; height: 100%; }

.lightbox-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem var(--gutter);
}
.lightbox-text { flex: 1; min-width: 0; }
.lightbox-title { font-family: var(--display); font-weight: 500; font-size: 1.0625rem; }
.lightbox-meta { font-size: 0.8125rem; color: #b4b4b0; font-variant-numeric: tabular-nums; }
.lightbox-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; white-space: nowrap; }
.lightbox :focus-visible { outline-color: #f4f4f2; }

.lightbox-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.5rem 1.25rem;
}
.lightbox-stage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.icon-button:hover { background: rgba(244, 244, 242, 0.12); }
.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 560px) {
  .lightbox-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile-button img { transition: none; }
}
