:root {
  --ground: #131211;
  --surface: #1c1a18;
  --ink: #ece7dd;
  --ink-muted: #948d80;
  --line: rgba(236, 231, 221, 0.12);
  --accent: #ab916a;
  --maxw: 1400px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.serif { font-family: "Fraunces", Georgia, serif; }

/* ---- Site header ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--accent);
}

/* ---- Home / splash ---- */
.splash {
  min-height: calc(100vh - 89px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 720px) {
  .splash { grid-template-columns: 1fr; min-height: auto; }
}
.splash-tile {
  position: relative;
  min-height: 50vh;
  overflow: hidden;
  border-right: 1px solid var(--line);
}
.splash-tile:last-child { border-right: none; }
.splash-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  filter: grayscale(15%) brightness(0.62);
  transition: filter 0.5s ease, transform 0.6s ease;
}
.splash-tile:hover img {
  filter: grayscale(0%) brightness(0.75);
  transform: scale(1.03);
}
.splash-label {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}
.splash-label .eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.splash-label h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 48px);
  margin: 0;
}
.splash-label .count {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ---- Gallery pages ---- */
.gallery-head {
  padding: 44px clamp(20px, 4vw, 56px) 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.gallery-head .eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.gallery-head h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 0 0 8px;
}
.gallery-head p { color: var(--ink-muted); margin: 0; max-width: 60ch; font-size: 14.5px; }

.series-group {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) 12px;
}
.series-group h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--ink-muted);
  margin: 40px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.series-group:first-of-type h3 { border-top: none; padding-top: 0; margin-top: 8px; }

.masonry {
  columns: 4 280px;
  column-gap: 14px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px clamp(20px, 4vw, 56px) 60px;
}
@media (max-width: 900px) { .masonry { columns: 2 200px; } }
@media (max-width: 480px) { .masonry { columns: 1; } }

figure.piece {
  break-inside: avoid;
  margin: 0 0 14px;
  cursor: zoom-in;
  position: relative;
}
figure.piece img {
  width: 100%;
  border-radius: 3px;
  transition: filter 0.25s ease;
}
figure.piece:hover img { filter: brightness(1.06); }
figure.piece figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}
figure.piece figcaption .title { color: var(--ink); }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 84vh;
  width: auto;
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-caption {
  position: absolute;
  bottom: 4vh;
  left: 0; right: 0;
  text-align: center;
  font-size: 14px;
  color: var(--ink-muted);
}
.lightbox-caption .title { color: var(--ink); font-family: "Fraunces", Georgia, serif; font-size: 17px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 28px;
  cursor: pointer;
  padding: 12px 16px;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev { left: 4px; top: 50%; transform: translateY(-50%); font-size: 36px; }
.lightbox-next { right: 4px; top: 50%; transform: translateY(-50%); font-size: 36px; }
@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { font-size: 26px; padding: 8px; }
}

.site-footer {
  text-align: center;
  padding: 30px;
  color: var(--ink-muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}

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

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
