/* ==========================================================================
   SP Wildways Photography — "a gallery at dusk"
   A hushed, near-black gallery where the photographs are the only light.
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/static/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/static/fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Assistant";
  src: url("/static/fonts/assistant-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Assistant";
  src: url("/static/fonts/assistant-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #12100e;
  --night-2: #181512;
  --bone: #eae4d8;
  --bone-70: rgba(234, 228, 216, 0.7);
  --bone-45: rgba(234, 228, 216, 0.45);
  --hairline: rgba(234, 228, 216, 0.16);
  --amber: #c8ab79;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Assistant, sans-serif;
  --page: 1240px;
  --pad: clamp(1.5rem, 5vw, 4rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--bone-70);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.4px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--bone); }
::selection { background: var(--amber); color: var(--night); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--bone);
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(42px, 6vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 48px); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 20px;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.1s ease, transform 1.1s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }
/* fade-only: no movement, so buttons stay a stable click target */
.reveal-fade { transform: none; }
.delay-1 { transition-delay: 0.18s; }
.delay-2 { transition-delay: 0.36s; }
.delay-3 { transition-delay: 0.54s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-image { animation: none !important; }
  .scroll-cue { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--night);
}
.site-header.header-overlay {
  position: absolute;
  inset: 0 0 auto 0;
  background: transparent;
}
.header-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 26px var(--pad);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo { display: block; margin-right: 30px; }
.logo img, .footer-mark {
  filter: invert(1) brightness(1.7);
  opacity: 0.92;
}
.logo img { width: 150px; height: auto; }
.site-nav { display: flex; gap: 8px; flex: 1; }
.site-nav a {
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone-70);
  padding: 12px 14px;
  transition: color 0.3s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--bone); }
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.cart-link {
  position: relative;
  color: var(--bone-70);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: color 0.3s ease;
}
.cart-link:hover { color: var(--bone); }
.cart-link .icon-cart { width: 38px; height: 38px; }
.cart-count[hidden] { display: none; }
.cart-count {
  position: absolute;
  right: 0;
  bottom: 2px;
  background: var(--amber);
  color: var(--night);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.5px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  padding: 0 3px;
}

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; padding-top: 18px; padding-bottom: 10px; }
  .logo { margin-right: 0; }
  .logo img { width: 110px; }
  .site-nav { order: 3; flex-basis: 100%; justify-content: center; }
  .cart-link { margin-left: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  background: transparent;
  border: 1px solid var(--bone-45);
  min-height: 52px;
  padding: 0 38px;
  cursor: pointer;
  transition: background 0.45s ease, color 0.45s ease, border-color 0.45s ease;
}
.btn:hover { background: var(--bone); color: var(--night); border-color: var(--bone); }
.btn-solid { background: var(--bone); color: var(--night); border-color: var(--bone); }
.btn-solid:hover { background: var(--amber); border-color: var(--amber); }
.btn-ghost { border-color: var(--bone-45); }
.btn-block { display: flex; width: 100%; margin-top: 12px; }
.link-btn {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bone-70);
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}
.link-btn:hover { color: var(--bone); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-drift 26s var(--ease) both;
}
@keyframes hero-drift {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(18, 16, 14, 0.42), rgba(18, 16, 14, 0.05) 30%,
                    rgba(18, 16, 14, 0.05) 55%, var(--night) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 0 var(--pad) 15vh;
}
.hero-content h1 {
  margin: 0;
  font-size: clamp(52px, 8vw, 108px);
  font-weight: 350;
}
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 25px);
  color: var(--bone-70);
  margin: 14px 0 36px;
}
.scroll-cue {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: 1px;
  height: 72px;
  overflow: hidden;
}
.scroll-cue span {
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--bone-45);
  animation: cue-fall 2.6s ease-in-out infinite;
}
@keyframes cue-fall {
  0% { top: -40%; }
  100% { top: 110%; }
}

/* ---------- Manifesto / closing ---------- */
.manifesto, .closing {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(90px, 14vh, 170px) var(--pad);
  text-align: center;
}
.manifesto-line {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.5;
  color: var(--bone);
  margin: 0 0 1.4em;
}
.manifesto-em {
  font-style: italic;
  color: var(--amber);
  margin-bottom: 0;
}
.closing { padding-top: clamp(40px, 8vh, 90px); }
.closing .manifesto-line { font-size: clamp(22px, 2.6vw, 32px); margin-bottom: 1.2em; }

/* ---------- Plates (editorial product rows) ---------- */
.plates { padding-top: clamp(30px, 6vh, 70px); }
.plate {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(48px, 9vh, 110px) var(--pad);
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: clamp(36px, 5vw, 84px);
  align-items: center;
}
.plate-flip { grid-template-columns: 4fr 7fr; }
.plate-flip .plate-media { order: 2; }
.plate-media { display: block; }
.plate-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.414 / 1; /* uniform A-series frame across the gallery */
  object-fit: cover;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.65);
  transition: transform 1s var(--ease), filter 1s ease;
}
.plate-media:hover img { transform: scale(1.015); filter: brightness(1.07); }
.plate-no {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 18px;
}
.plate-caption h2 { margin-bottom: 14px; }
.plate-caption h2 a { text-decoration: none; color: var(--bone); }
.plate-caption h2 a:hover { color: #fff; }
.plate-story {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.6;
  color: var(--bone-70);
  margin: 0 0 22px;
}
.plate-price {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bone-45);
  margin: 0 0 26px;
}
.plate-link {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--bone-45);
  transition: border-color 0.4s ease, color 0.4s ease;
}
.plate-link:hover { border-color: var(--amber); color: var(--amber); }

@media (max-width: 820px) {
  .plate, .plate-flip { grid-template-columns: 1fr; gap: 28px; }
  .plate-flip .plate-media { order: 0; }
}

/* ---------- Collection intro ---------- */
.collection-intro {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(70px, 12vh, 140px) var(--pad) 0;
  text-align: center;
}
.collection-desc {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 24px);
  font-style: italic;
  color: var(--bone-70);
  margin: 0 0 14px;
}
.collection-count {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--bone-45);
  margin: 0;
}

/* ---------- Product page ---------- */
/* Two columns: the photograph leads and stays large; the buying panel
   travels with the reader. The room preview is demoted below both. */
.product-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(30px, 5vh, 60px) var(--pad) clamp(50px, 9vh, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.9fr);
  grid-template-areas:
    "visuals info"
    "aside   info";
  column-gap: clamp(40px, 5vw, 96px);
  row-gap: clamp(34px, 5vh, 60px);
  align-items: start;
}
.product-visuals { grid-area: visuals; min-width: 0; }
.product-info { grid-area: info; position: sticky; top: 32px; }
.product-aside { grid-area: aside; min-width: 0; }
.product-stage img {
  width: 100%;
  height: auto;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.65);
}
.product-info h1 { font-size: clamp(38px, 4.5vw, 60px); margin-bottom: 10px; }
.product-story {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.6;
  color: var(--bone-70);
  margin: 0 0 34px;
}
.purchase {
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
}
.product-price {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--bone);
  margin: 0;
}
.tax-note { font-size: 12px; letter-spacing: 1px; color: var(--bone-45); margin: 4px 0 0; }

.variant-picker { border: none; margin: 26px 0 0; padding: 0; }
.variant-picker legend {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bone-45);
  padding: 0;
  margin-bottom: 10px;
}
.variant-pill { display: inline-block; margin: 0 10px 10px 0; }
.variant-pill input { position: absolute; opacity: 0; pointer-events: none; }
.variant-pill span {
  display: inline-block;
  border: 1px solid var(--bone-45);
  padding: 9px 22px;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--bone-70);
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.variant-pill span:hover { border-color: var(--bone); color: var(--bone); }
.variant-pill input:checked + span { background: var(--bone); color: var(--night); border-color: var(--bone); }
.variant-pill input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }

/* --- finish (framing) picker --- */
.frame-picker { border: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.frame-picker legend {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bone-45);
  padding: 0;
  margin-bottom: 10px;
}
.frame-opt { display: block; cursor: pointer; }
.frame-opt input { position: absolute; opacity: 0; pointer-events: none; }
.frame-opt span {
  display: block;
  border: 1px solid var(--bone-45);
  padding: 14px 18px;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.frame-opt span strong {
  display: block;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--bone);
}
.frame-opt span em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  color: var(--bone-45);
  margin-top: 3px;
}
.frame-opt span:hover { border-color: var(--bone); }
.frame-opt input:checked + span { border-color: var(--amber); background: rgba(200, 171, 121, 0.08); }
.frame-opt input:checked + span strong { color: var(--amber); }
.frame-opt input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }

/* --- room preview --- */
/* --- on your wall: the print at true scale in the visitor's own room --- */
.wall { margin: 0 0 44px; }
.wall h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.wall-lead {
  font-size: 14px;
  line-height: 1.7;
  color: var(--bone-45);
  max-width: 46ch;
  margin: 0 0 16px;
}
.wall-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 26px;
  margin-bottom: 18px;
}
/* a quiet text control, not a form button */
.wall-choose {
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bone-70);
  border: 0;
  border-bottom: 1px solid var(--bone-45);
  background: none;
  padding: 0 0 4px;
  min-height: 0;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.wall-choose:hover { color: var(--bone); border-bottom-color: var(--bone); background: none; }
.wall-width-field {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--bone-45);
}
/* display:flex would otherwise defeat the hidden attribute */
.wall-width-field[hidden], .wall-controls [hidden], .wall-stage[hidden] { display: none; }
.wall-width-field input {
  width: 62px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--bone-45);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 13px;
  padding: 0 0 4px;
  text-align: center;
  -moz-appearance: textfield;
}
.wall-width-field input::-webkit-outer-spin-button,
.wall-width-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wall-width-field input:focus { outline: none; border-bottom-color: var(--amber); }
.wall-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(234, 228, 216, 0.12);
  background: #17140f;
  touch-action: none;
}
.wall-photo { display: block; width: 100%; height: auto; }
.wall-print {
  position: absolute;
  cursor: grab;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.6);
  outline: 1px solid rgba(0, 0, 0, 0.35);
}
.wall-print:active { cursor: grabbing; }
.wall-marker {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  border: 2px solid var(--night);
  background: var(--amber);
  cursor: grab;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.wall-marker:active { cursor: grabbing; }
.wall-ruler {
  position: absolute;
  height: 2px;
  background: var(--amber);
  transform-origin: 0 50%;
  opacity: 0.85;
  pointer-events: none;
}

.room-preview { margin: 0 0 6px; }
.product-aside .room-preview h3 { color: var(--bone-45); font-size: 1rem; }
.room-preview h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.room-scene {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(234, 228, 216, 0.12);
  background: #17140f;
}
.room-bg { display: block; width: 100%; height: auto; }
.room-tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 90% at 50% 20%, transparent 55%,
      rgba(10, 8, 5, 0.38) 100%);
  pointer-events: none;
}
.room-print {
  position: absolute;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.45);
}
.room-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.room-size {
  font: inherit;
  padding: 5px 16px;
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(234, 228, 216, 0.3);
  cursor: pointer;
}
.room-size.is-active { border-color: var(--amber); color: var(--amber); }
.room-note {
  font-size: 0.8rem;
  color: rgba(234, 228, 216, 0.55);
  font-style: italic;
}

.region-select {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 6px;
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(234, 228, 216, 0.25);
  font: inherit;
}
.region-select option { color: #12100e; background: #eae4d8; }
.product-visuals { min-width: 0; }
.product-visuals .room-preview { margin-top: clamp(28px, 4vh, 48px); }
.field-note {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
  color: var(--bone-70);
  margin: -18px 0 34px;
}
.dims-line {
  font-size: 12.5px;
  letter-spacing: 1px;
  color: var(--bone-45);
  margin: 4px 0 0;
}
.edition-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--amber);
  margin: 10px 0 0;
}
.variant-sold-out { opacity: 0.45; }
.variant-sold-out span { text-decoration: line-through; }
.edition-note {
  font-family: var(--serif);
  font-style: italic;
  color: var(--amber);
  margin: 14px 0;
}
.qty-label {
  display: block;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bone-45);
  margin: 14px 0 10px;
}
.qty-box {
  display: inline-flex;
  border: 1px solid var(--bone-45);
  width: 142px;
  min-height: 48px;
  margin-bottom: 26px;
}
.qty-box button {
  background: none;
  border: none;
  color: var(--bone);
  font-size: 18px;
  width: 45px;
  cursor: pointer;
}
.qty-box input {
  width: 50px;
  border: none;
  background: transparent;
  text-align: center;
  font: inherit;
  color: var(--bone);
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-box input::-webkit-outer-spin-button,
.qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Specification, stated the way the certificate states it */
.spec { margin-top: 38px; border-top: 1px solid var(--hairline); padding-top: 24px; }
.spec .eyebrow { margin-bottom: 16px; }
.spec-rows { margin: 0; display: grid; gap: 0; }
.spec-rows > div {
  display: flex;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(234, 228, 216, 0.08);
}
.spec-rows dt {
  flex: 0 0 92px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bone-45);
  padding-top: 4px;
}
.spec-rows dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--bone-70);
}
.spec-paper {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.75;
  color: var(--bone-45);
  margin: 22px 0 0;
}
.share-btn { margin-top: 22px; }

@media (max-width: 900px) {
  /* phone order: the photograph edge-to-edge and first, the buy
     panel next, the room preview as a footnote after it */
  .product-page {
    display: flex;
    flex-direction: column;
    padding-top: 0;
    gap: 0;
    grid-template-areas: none;
  }
  .product-visuals { display: contents; }
  .product-stage { order: 0; margin: 0 calc(-1 * var(--pad)); }
  .product-stage img { box-shadow: none; }
  .product-info { order: 1; position: static; padding-top: 30px; }
  .product-aside { order: 2; margin-top: 40px; max-width: none; }
}

/* ---------- Related ---------- */
.related {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(50px, 9vh, 110px) var(--pad);
  border-top: 1px solid var(--hairline);
}
.related .eyebrow { text-align: center; margin-bottom: 44px; }
.related-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }
.related-grid a { text-decoration: none; display: block; }
.card-media { overflow: hidden; }
.card-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.414 / 1;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.9s ease;
}
.related-grid a:hover .card-media img { transform: scale(1.03); filter: brightness(1.08); }
.card-title {
  font-size: 22px;
  margin: 18px 0 2px;
  color: var(--bone);
}
.card-price {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bone-45);
  margin: 0;
}
.card-story {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: var(--bone-45);
  margin: 4px 0 0;
}

/* ---------- Cart ---------- */
.cart-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) var(--pad);
  min-height: 40vh;
}
.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}
.cart-head h1 { font-size: clamp(38px, 5vw, 58px); margin: 0; }
.cart-empty { text-align: center; padding: 40px 0 20px; }
.cart-empty p {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  color: var(--bone);
  margin: 0 0 32px;
}

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bone-45);
  border-bottom: 1px solid var(--hairline);
  padding: 0 0 16px;
}
.cart-table .th-total { text-align: right; }
.cart-table td { padding: 26px 0; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.cart-item { display: flex; gap: 22px; align-items: center; }
.cart-item img { width: 110px; height: auto; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.cart-item-title {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--bone);
  text-decoration: none;
}
.cart-item-title:hover { color: #fff; }
.cart-item-meta { font-size: 13px; letter-spacing: 1px; color: var(--bone-45); margin: 4px 0 0; }
.cart-qty { display: flex; align-items: center; gap: 18px; }
.cart-qty .qty-box { margin-bottom: 0; min-height: 44px; }
.td-total { text-align: right; white-space: nowrap; color: var(--bone); }

.cart-summary { margin: 36px 0 0 auto; max-width: 400px; text-align: right; }
.cart-subtotal {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--bone);
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin: 0 0 4px;
}
.cart-summary .tax-note { margin-bottom: 18px; }

@media (max-width: 700px) {
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table td { padding: 8px 0; border: none; }
  .cart-table tr { border-bottom: 1px solid var(--hairline); padding: 18px 0; }
  .td-total { text-align: left; }
  .cart-summary { max-width: none; text-align: left; }
}

/* ---------- Prose pages (about, contact, privacy, success) ---------- */
.prose-page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(70px, 12vh, 140px) var(--pad) clamp(60px, 10vh, 110px);
}
.prose-page.center { text-align: center; }
.prose-page h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 36px; }
.page-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--bone-70);
  margin: 0 0 36px;
}
.prose p, .prose li { font-size: 16px; margin: 0 0 20px; }
.prose h2 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  margin: 2.6em 0 0.9em;
}
.prose blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.6;
  color: var(--bone);
  border-left: 1px solid var(--amber);
  margin: 2em 0;
  padding: 0.2em 0 0.2em 28px;
}
.prose-page .btn, .prose-page .btn-ghost { margin-top: 24px; }

.order-summary {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 22px 0;
  margin: 0 auto 28px;
  max-width: 420px;
}
.order-ref {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 12px;
}
.order-line {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--bone);
  margin: 0 0 4px;
}
.order-total {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--bone-70);
  margin: 10px 0 0;
}

/* ---------- Contact form ---------- */
.contact-form { margin-top: 10px; }
.contact-form label {
  display: block;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bone-45);
  margin-bottom: 30px;
}
.contact-form input, .contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 2px;
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0.4px;
  border: none;
  border-bottom: 1px solid var(--bone-45);
  border-radius: 0;
  background: transparent;
  color: var(--bone);
  transition: border-color 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--amber);
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }
.form-success {
  border: 1px solid var(--amber);
  color: var(--bone);
  padding: 16px 22px;
  margin-bottom: 30px;
}

/* ---------- Cart toast ---------- */
.cart-toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
  background: var(--night-2);
  border: 1px solid var(--hairline);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  padding: 26px 28px;
  width: min(360px, calc(100vw - 36px));
}
.cart-toast-note {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 6px;
}
.cart-toast-item {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--bone);
  margin: 0 0 20px;
}
.cart-toast-actions { display: grid; gap: 12px; }
.cart-toast-actions .btn { min-height: 46px; }
.cart-toast-actions .link-btn { justify-self: center; margin-top: 4px; }

/* ---------- Zoom buttons & lightbox ---------- */
.plate-media, .product-stage { position: relative; }
.zoomable { cursor: zoom-in; }
.zoom-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bone);
  background: rgba(18, 16, 14, 0.55);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  cursor: zoom-in;
  opacity: 0;
  backdrop-filter: blur(4px);
  transition: opacity 0.4s ease, background 0.3s ease, border-color 0.3s ease;
}
.plate-media:hover .zoom-btn,
.product-stage:hover .zoom-btn,
.zoom-btn:focus-visible { opacity: 1; }
.zoom-btn:hover { background: rgba(18, 16, 14, 0.8); border-color: var(--bone-45); }
@media (hover: none) { .zoom-btn { opacity: 1; } }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 9, 8, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox-frame {
  margin: 0;
  max-width: 92vw;
  max-height: 88vh;
  overflow: hidden;
}
.lightbox-frame img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
  cursor: zoom-in;
  transition: transform 0.5s var(--ease);
}
.lightbox-frame img.zoomed { transform: scale(2.4); cursor: zoom-out; }
.lightbox-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--bone-70);
  text-align: center;
  padding-top: 18px;
}
.lightbox-hint {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bone-45);
  margin: 0;
  pointer-events: none;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 2;
  width: 52px;
  height: 52px;
  background: none;
  border: none;
  color: var(--bone-70);
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease;
}
.lightbox-close:hover { color: var(--bone); }

/* ---------- Journal ---------- */
.journal-entry {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(30px, 6vh, 70px) var(--pad) clamp(50px, 9vh, 100px);
}
.journal-back {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bone-45);
  text-decoration: none;
  margin-bottom: 40px;
}
.journal-back:hover { color: var(--bone); }
.journal-head { text-align: center; margin-bottom: 40px; }
.journal-head .eyebrow { margin-bottom: 16px; }
.journal-head h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 16px; }
.journal-dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--bone-70);
  line-height: 1.5;
  max-width: 560px;
  margin: 0 auto;
}
.journal-figure { margin: 0 0 40px; }
.journal-figure img { width: 100%; height: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.journal-body p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--bone-70);
  margin: 0 0 22px;
}
.journal-print {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  margin: clamp(40px, 7vh, 80px) 0 0;
  padding: clamp(24px, 4vh, 40px);
  border: 1px solid var(--hairline);
  background: var(--night-2);
}
.journal-print-media img { width: 100%; height: auto; }
.journal-print-info .eyebrow { margin-bottom: 12px; }
.journal-print-info h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.journal-print-info p { font-size: 14px; line-height: 1.7; color: var(--bone-70); margin: 0 0 20px; }
.journal-more { margin-top: clamp(44px, 8vh, 90px); }
.journal-more .eyebrow { text-align: center; margin-bottom: 24px; }
.journal-more-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.journal-more-list a {
  display: block;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
}
.journal-more-list li:last-child a { border-bottom: 1px solid var(--hairline); }
.journal-more-list span { display: block; font-family: var(--serif); font-size: 21px; color: var(--bone); }
.journal-more-list em { display: block; font-style: italic; font-size: 14px; color: var(--bone-45); margin-top: 3px; }
.journal-more-list a:hover span { color: var(--amber); }
@media (max-width: 640px) {
  .journal-print { grid-template-columns: 1fr; }
}

/* ---------- Commission (A2 flagship) ---------- */
.commission { margin-top: 6px; }
.commission-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--bone-70);
  margin: 0 0 18px;
}
.commission input[type="text"],
.commission input[type="email"],
.commission textarea {
  width: 100%;
  background: var(--night);
  border: 1px solid var(--bone-45);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 16px;
  margin-bottom: 4px;
  transition: border-color 0.3s ease;
}
.commission input:focus, .commission textarea:focus { outline: none; border-color: var(--amber); }
.commission textarea { resize: vertical; }
.commission .btn { margin-top: 16px; }
.cm-optional { text-transform: none; letter-spacing: 0.5px; color: var(--bone-45); }

/* ---------- Edition Registry ---------- */
.registry-page {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 80px) var(--pad) clamp(50px, 9vh, 100px);
  text-align: center;
}
.registry-head .eyebrow { margin-bottom: 16px; }
.registry-head h1 { font-size: clamp(32px, 4.5vw, 48px); margin-bottom: 8px; }
.registry-plate {
  font-family: var(--serif);
  font-style: italic;
  color: var(--amber);
  font-size: 15px;
  margin: 0 0 28px;
}
.registry-figure { margin: 0 auto 28px; max-width: 380px; }
.registry-figure img { width: 100%; height: auto; box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.registry-n { font-family: var(--serif); font-size: clamp(40px, 6vw, 56px); color: var(--bone); margin: 0; }
.registry-n-label {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--bone-45);
  margin: 4px 0 24px;
}
.registry-status {
  border: 1px solid var(--hairline);
  padding: 16px 20px;
  margin: 0 0 30px;
  font-size: 15px;
  color: var(--bone-70);
}
.registry-status.is-artist { border-color: var(--amber); }
.registry-status.is-collected strong { color: var(--amber); }
.registry-facts {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
  text-align: left;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.registry-facts > div { display: flex; gap: 14px; border-bottom: 1px solid var(--hairline); padding-bottom: 10px; }
.registry-facts dt {
  flex: 0 0 110px;
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bone-45);
  padding-top: 3px;
}
.registry-facts dd { margin: 0; font-family: var(--serif); font-size: 16px; color: var(--bone); }
.registry-note { font-size: 13px; color: var(--bone-45); line-height: 1.7; max-width: 460px; margin: 0 auto 26px; }

/* ---------- Field Notes ---------- */
.field-notes {
  border-top: 1px solid var(--hairline);
  background: var(--night-2);
}
.field-notes-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(60px, 11vh, 130px) var(--pad);
  text-align: center;
}
.field-notes .eyebrow { margin-bottom: 20px; }
.field-notes h2 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.3;
  margin: 0 0 18px;
}
.field-notes-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--bone-70);
  max-width: 520px;
  margin: 0 auto 34px;
}
.field-notes-form { margin: 0 auto; max-width: 520px; }
.fn-row { display: flex; gap: 10px; }
.fn-row input[type="email"] {
  flex: 1;
  min-width: 0;
  background: var(--night);
  border: 1px solid var(--bone-45);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 15px;
  padding: 0 18px;
  min-height: 52px;
  transition: border-color 0.3s ease;
}
.fn-row input[type="email"]::placeholder { color: var(--bone-45); }
.fn-row input[type="email"]:focus { outline: none; border-color: var(--amber); }
.fn-row .btn { white-space: nowrap; flex-shrink: 0; }
.fn-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.fn-message {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--amber);
}
.fn-message.is-error { color: #d98b7a; }
.fn-fineprint {
  margin: 16px 0 0;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--bone-45);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 560px) {
  .fn-row { flex-direction: column; }
  .fn-row .btn { width: 100%; }
}

.field-notes-compact {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--hairline);
}
.field-notes-compact .eyebrow { margin-bottom: 12px; }
.field-notes-compact .field-notes-lead {
  font-size: 15px;
  margin: 0 0 18px;
  text-align: left;
}
.field-notes-compact .field-notes-form { max-width: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); margin-top: clamp(50px, 9vh, 100px); }
.footer-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(50px, 8vh, 80px) var(--pad) 40px;
  text-align: center;
}
.footer-mark { margin: 0 auto 6px; width: 110px; height: auto; }
.footer-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--bone-70);
  margin: 0 0 14px;
}
.footer-pledge {
  font-size: 12.5px;
  letter-spacing: 0.4px;
  color: var(--bone-45);
  max-width: 420px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.pledge-line {
  font-size: 12.5px;
  letter-spacing: 0.4px;
  color: var(--amber);
  margin: 10px 0 0;
}
.cart-pledge { text-align: center; margin-top: 16px; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 34px; margin-bottom: 34px; }
.footer-nav a {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone-45);
  transition: color 0.3s ease;
}
.footer-nav a:hover { color: var(--bone); }
.payment-icons {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.payment-icons img {
  height: 20px;
  width: auto;
  display: block;
  filter: grayscale(1) brightness(1.4);
  opacity: 0.4;
  transition: filter 0.4s ease, opacity 0.4s ease;
}
.payment-icons li:hover img { filter: none; opacity: 1; }
.footer-meta {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--bone-45);
  margin: 0;
}
