/* Unaltered - site styles
   Dark gallery: near-black ground, warm paper-white type, photographs do the talking. */

:root {
  --ground: #0b0b0a;
  --ground-2: #141413;
  --paper: #ebe8e1;
  --muted: #8d8a83;
  --faint: #55534e;
  --rule: #24231f;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--paper); outline-offset: 4px; }

/* ---------- labels: the film-rebate voice ---------- */
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  background: linear-gradient(var(--ground) 60%, rgba(11,11,10,0));
}
.site-header.over-hero {
  position: absolute; left: 0; right: 0;
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0));
}
.wordmark {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}
.site-nav { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.site-nav a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); transition: color .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--paper); }
.menu-toggle { display: none; }

@media (max-width: 720px) {
  .menu-toggle {
    display: block; background: none; border: 0; color: var(--paper);
    font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 0;
  }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--ground); padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--rule);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; font-size: 13px; }
}

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; }
.hero picture, .hero img { width: 100%; height: 100%; }
.hero img { object-fit: cover; object-position: 60% 40%; }
.hero-caption {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 6vh, 64px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
}
.hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(56px, 11vw, 168px); line-height: .9; letter-spacing: -0.02em;
}
.hero .sub { margin: 14px 0 0; }
.hero .credit { text-align: right; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 45%);
}
.hero-caption { z-index: 2; }

/* ---------- sections ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section { padding: clamp(64px, 10vw, 140px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); border-top: 1px solid var(--rule); padding-top: 18px; }
.statement {
  font-family: var(--serif); font-size: clamp(28px, 3.6vw, 52px); line-height: 1.15;
  max-width: 22ch; margin: 0;
}
.statement em { color: var(--muted); }

/* ---------- grids ---------- */
.grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 3vw, 44px) clamp(14px, 2.4vw, 36px);
  align-items: end;
}
.grid .tile { grid-column: span 6; }
.grid .tile.portrait { grid-column: span 4; }
.grid .tile.landscape { grid-column: span 8; }
.grid .tile.portrait + .tile.portrait { grid-column: span 4; }
@media (max-width: 720px) {
  .grid .tile, .grid .tile.portrait, .grid .tile.landscape, .grid .tile.portrait + .tile.portrait { grid-column: span 12; }
}
.tile figure { margin: 0; }
.tile .frame { overflow: hidden; background: var(--ground-2); }
.tile img { width: 100%; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s; }
.tile a:hover img { transform: scale(1.015); }
.tile figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.tile .t { font-family: var(--serif); font-size: 20px; line-height: 1.2; }

/* masonry-ish full archive */
.archive { columns: 3 320px; column-gap: clamp(14px, 2.4vw, 32px); }
.archive .tile { break-inside: avoid; margin-bottom: clamp(22px, 3vw, 40px); }

/* ---------- series list ---------- */
.series-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.series-list li { border-bottom: 1px solid var(--rule); }
.series-list a {
  display: grid; grid-template-columns: 1fr auto 120px; align-items: center; gap: 24px;
  padding: clamp(18px, 2.4vw, 28px) 0;
}
.series-list .name { font-family: var(--serif); font-size: clamp(32px, 5vw, 72px); line-height: 1; transition: padding .3s; }
.series-list a:hover .name { padding-left: 12px; }
.series-list .thumb { width: 120px; aspect-ratio: 4/3; overflow: hidden; }
.series-list .thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); }
@media (max-width: 720px) {
  .series-list a { grid-template-columns: 1fr 80px; }
  .series-list .count { display: none; }
  .series-list .thumb { width: 80px; }
}

/* ---------- page heads ---------- */
.page-head { padding: clamp(48px, 9vw, 120px) 0 clamp(32px, 5vw, 64px); }
.page-head h1 { margin: 12px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 8vw, 120px); line-height: .95; letter-spacing: -0.015em; }
.page-head p { color: var(--muted); max-width: 52ch; margin: 18px 0 0; font-size: 18px; }

/* ---------- single photograph ---------- */
.photo-stage {
  display: flex; justify-content: center; align-items: center;
  padding: 8px var(--gutter) 0; min-height: calc(100svh - 160px);
}
.photo-stage button { all: unset; cursor: zoom-in; display: block; }
.photo-stage img { max-height: calc(100svh - 170px); width: auto; margin: 0 auto; }
.photo-meta {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 6vw, 96px);
  padding: clamp(40px, 6vw, 80px) 0;
}
@media (max-width: 820px) { .photo-meta { grid-template-columns: 1fr; } }
.photo-meta h1 { margin: 10px 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.6vw, 76px); line-height: 1; }
.photo-meta .note { font-size: 18px; color: #cfccc4; max-width: 40ch; margin: 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; margin: 28px 0 0; }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding-top: 3px; }
.facts dd { margin: 0; color: var(--muted); font-size: 15px; }

.buy { border: 1px solid var(--rule); padding: clamp(20px, 3vw, 32px); align-self: start; }
.buy h2 { margin: 6px 0 4px; font-family: var(--serif); font-weight: 400; font-size: 30px; }
.buy .edition-line { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.option {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--rule);
}
.option .price { font-family: var(--mono); font-size: 14px; }
.btn {
  display: inline-block; width: 100%; margin-top: 18px; padding: 15px 18px; text-align: center;
  background: var(--paper); color: var(--ground); border: 0; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
}
.btn[aria-disabled="true"] { background: transparent; color: var(--muted); border: 1px solid var(--rule); cursor: default; }
.buy .small { font-size: 13px; color: var(--faint); margin: 12px 0 0; }

.pager { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--rule); padding: 22px 0 0; }
.pager a { display: flex; flex-direction: column; gap: 4px; max-width: 45%; }
.pager a:last-child { text-align: right; margin-left: auto; }
.pager .t { font-family: var(--serif); font-size: 22px; }

/* buy form */
.option.choose { cursor: pointer; }
.option.choose input { accent-color: var(--paper); margin: 0 12px 0 0; }
.option.choose span:first-of-type { flex: 1; }
.option.choose:has(input:checked) span { color: var(--paper); }
.option.choose:has(input:not(:checked)) span { color: var(--muted); }
.option.choose[data-soldout] { opacity: .45; cursor: not-allowed; }
.btn[disabled] { opacity: .6; cursor: progress; }
.buy-error { color: #e0a39a; font-size: 14px; margin: 12px 0 0; }
.stock { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper); }
.test-banner { background: #3a2f12; color: #f3dd9a; text-align: center; padding: 8px 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: #000;
  display: none; align-items: center; justify-content: center; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100vw; max-height: 100vh; object-fit: contain; }

/* ---------- prose pages ---------- */
.prose { max-width: 680px; font-size: 18px; color: #d6d3cb; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; color: var(--paper); margin: 2em 0 .4em; line-height: 1.1; }
.prose p { margin: 0 0 1.1em; }
.pledge { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.pledge li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.pledge .n { font-family: var(--mono); font-size: 12px; color: var(--faint); padding-top: 5px; }
.draft {
  display: inline-block; margin-bottom: 24px; padding: 6px 10px; border: 1px dashed var(--faint);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

/* ---------- editions band ---------- */
.band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
@media (max-width: 820px) { .band { grid-template-columns: 1fr; } }
.band .stamp {
  border: 1px solid var(--rule); padding: clamp(24px, 4vw, 48px);
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  display: grid; gap: 10px;
}
.band .stamp strong { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 56px); letter-spacing: 0; text-transform: none; color: var(--paper); line-height: 1; }
.text-link { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--faint); padding-bottom: 3px; }
.text-link:hover { border-color: var(--paper); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); margin-top: clamp(48px, 8vw, 120px); padding: 32px var(--gutter) 40px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

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