/* ================================================================== */
/* Palette + type system (driven by data-* attributes on <html>)        */
/* Lifted from handoff/design_handoff.html                              */
/* ================================================================== */
:root {
  --paper: #faf6ef;
  --paper-2: #f3eee3;
  --ink: #1f1d1a;
  --ink-2: #56524b;
  --ink-3: #8a857a;
  --accent: #618568; /* oklch(0.58 0.06 150) — hex for pre-oklch engines */
  --weight: 0.75px;
  --hand: "Caveat", "Bradley Hand", cursive;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --serif: "EB Garamond", Georgia, serif;
  --sans: "Bricolage Grotesque", system-ui, sans-serif;
  --display: "EB Garamond", Georgia, serif;
  --display-style: italic;
  --display-weight: 400;
  --box-shadow: 6px 6px 0 var(--ink);
  --plate-pattern: 135deg, transparent 0 11px, rgba(31, 29, 26, 0.08) 11px 12px;
  --plate-dark-pattern: 135deg, rgba(31, 29, 26, 0.85) 0 11px, rgba(31, 29, 26, 0.7) 11px 12px;
}

html[data-palette="paper"] {
  --paper: #faf6ef;
  --paper-2: #f3eee3;
  --ink: #1f1d1a;
  --ink-2: #56524b;
  --ink-3: #8a857a;
  --plate-pattern: 135deg, transparent 0 11px, rgba(31, 29, 26, 0.08) 11px 12px;
}
html[data-palette="stone"] {
  --paper: #ecebe7;
  --paper-2: #e2e0da;
  --ink: #232422;
  --ink-2: #5b5b54;
  --ink-3: #8a8a82;
  --plate-pattern: 135deg, transparent 0 11px, rgba(35, 36, 34, 0.1) 11px 12px;
}
html[data-palette="night"] {
  --paper: #161617;
  --paper-2: #1f1f20;
  --ink: #efe9dc;
  --ink-2: #b8b2a4;
  --ink-3: #7a7468;
  --plate-pattern: 135deg, rgba(239, 233, 220, 0.06) 0 11px, rgba(239, 233, 220, 0.16) 11px 12px;
}
html[data-palette="ivory"] {
  --paper: #f6efe1;
  --paper-2: #ecdfc7;
  --ink: #2a221b;
  --ink-2: #5e544a;
  --ink-3: #95897a;
  --plate-pattern: 135deg, transparent 0 11px, rgba(42, 34, 27, 0.12) 11px 12px;
}

html[data-type="editorial"] {
  --serif: "EB Garamond", Georgia, serif;
  --sans: "IBM Plex Mono", ui-monospace, monospace;
  --display: "EB Garamond", Georgia, serif;
  --display-style: italic;
  --display-weight: 400;
}
html[data-type="modern"] {
  --serif: "Fraunces", Georgia, serif;
  --sans: "Bricolage Grotesque", system-ui, sans-serif;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --display-style: normal;
  --display-weight: 300;
}
html[data-type="monumental"] {
  --serif: "Crimson Pro", Georgia, serif;
  --sans: "Tenor Sans", system-ui, sans-serif;
  --display: "Tenor Sans", system-ui, sans-serif;
  --display-style: normal;
  --display-weight: 400;
}
html[data-type="quiet"] {
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --display-style: normal;
  --display-weight: 300;
}

html[data-accent="ink"] {
  --accent: #1f1d1a;
}
/* Accent values are sRGB hex conversions of their oklch originals (kept in
   comments): oklch() is invalid-at-computed-value on Chrome <111 / Safari
   <15.4 / Firefox <113, which would silently drop every var(--accent) use. */
html[data-accent="sage"] {
  --accent: #618568; /* oklch(0.58 0.06 150) */
}
html[data-accent="rust"] {
  --accent: #b65d47; /* oklch(0.58 0.12 35) */
}
html[data-accent="indigo"] {
  --accent: #3b5d96; /* oklch(0.48 0.1 260) */
}
html[data-accent="bone"] {
  --accent: #c5b59b; /* oklch(0.78 0.04 80) */
}

html[data-density="1"] .extra-1,
html[data-density="1"] .extra-2 {
  display: none !important;
}
html[data-density="2"] .extra-2 {
  display: none !important;
}

/* ================================================================== */
/* Skip link & demo banner                                              */
/* ================================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: var(--weight) solid var(--ink);
}
.skip-link:focus {
  top: 16px;
}

/* ================================================================== */
/* Base                                                                 */
/* ================================================================== */
* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition:
    background 200ms,
    color 200ms;
}

/* body is the containing block for absolutely-positioned chrome (.site-header),
   so when the inline editor docks open (html.editor-open narrows body — see
   editor/editor.css) the header follows the page width instead of sitting
   under the drawer at the viewport edge. */
body {
  position: relative;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}

/* ================================================================== */
/* Plate primitive                                                      */
/* ================================================================== */
.plate {
  position: relative;
  display: block;
  width: 100%;
  background: repeating-linear-gradient(var(--plate-pattern));
  border: var(--weight) solid var(--ink);
  overflow: hidden;
}
.plate.dark {
  background: repeating-linear-gradient(var(--plate-dark-pattern));
}
.plate img {
  display: block;
  width: 100%;
  height: auto;
}

.ar-32 {
  aspect-ratio: 3/2;
}
.ar-23 {
  aspect-ratio: 2/3;
}
.ar-11 {
  aspect-ratio: 1/1;
}
.ar-45 {
  aspect-ratio: 4/5;
}
.ar-54 {
  aspect-ratio: 5/4;
}
.ar-21 {
  aspect-ratio: 21/9;
}
.ar-169 {
  aspect-ratio: 16/9;
}

/* ================================================================== */
/* Sticky site header (adopts Layout A overlaid nav aesthetic)          */
/* ================================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  /* Must be pure white, not var(--paper): with mix-blend-mode difference,
     white inverts whatever photo is underneath, while the night palette's
     near-black --paper would blend to ~the background and vanish. */
  color: #fff;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12) 62%, rgba(0, 0, 0, 0));
  mix-blend-mode: difference;
  pointer-events: none;
}
.site-header > * {
  pointer-events: auto;
}

.site-header .brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0.015em;
  color: inherit;
}
.site-header .brand-mark {
  display: none;
}

.site-nav {
  display: flex;
  gap: 30px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-nav a {
  color: inherit;
  padding-bottom: 2px;
  border-bottom: var(--weight) solid transparent;
}
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

.cart-button {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: var(--weight) solid currentColor;
  color: inherit;
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}
.cart-button.is-visible {
  opacity: 1;
  transform: none;
}
.cart-button.is-popping {
  animation: cart-pop 260ms ease;
}
@keyframes cart-pop {
  0% {
    transform: scale(0.9);
  }
  60% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}
#cart-count {
  margin-left: 8px;
}

/* ================================================================== */
/* Page root                                                            */
/* ================================================================== */
#page-root {
  display: block;
  min-height: 60vh;
}

.loading,
.error {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 96px 32px;
  text-align: center;
}
.error {
  color: var(--ink);
}

/* ================================================================== */
/* HOME - Marquee · Cycling gallery covers                              */
/* ================================================================== */
.marquee {
  position: relative;
  margin: 0;
}
.marquee .marquee-stage {
  position: relative;
}
.marquee .marquee-stage .plate {
  height: 100vh;
  height: 100svh; /* small-viewport height: not cropped behind mobile URL bars */
  min-height: 640px;
  border-left: none;
  border-right: none;
  border-top: none;
}
/* Full-bleed marquee: instead of a static crop, slowly pan whichever axis
   overflows. With object-fit: cover only one axis has slack, so a single
   0%→100% object-position sweep covers tall and wide covers alike. */
.marquee .marquee-stage .plate img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1200ms ease;
  animation: marquee-pan 32s ease-in-out infinite alternate;
}
/* Crossfade slideshow: only the active cover is shown; app.js rotates the
   is-active class across the covers on a timer. A lone cover is marked active
   at render, so it simply shows and pans. */
.marquee .marquee-stage .plate img.is-active {
  opacity: 1;
}
@keyframes marquee-pan {
  from {
    object-position: 0% 0%;
  }
  to {
    object-position: 100% 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee .marquee-stage .plate img {
    animation: none;
    object-position: 50% 50%;
    transition: none;
  }
  .cart-button.is-popping {
    animation: none;
  }
  .lightbox {
    animation: none;
  }
}
.marquee .overlay {
  position: absolute;
  left: 32px;
  bottom: 32px;
  max-width: 460px;
  padding: 22px 24px;
  background: var(--paper);
  border: var(--weight) solid var(--ink);
  box-shadow: var(--box-shadow);
  z-index: 2;
}
.marquee .overlay .kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.marquee .overlay h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.marquee .overlay .cta {
  display: inline-block;
  padding: 9px 16px;
  border: var(--weight) solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}
html[data-palette="night"] .marquee .overlay .cta {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

/* ================================================================== */
/* GALLERIES - Layout A · Horizontal scroll                             */
/* ================================================================== */
.gal-a {
  --gallery-gutter: 28px;
  padding: 120px var(--gallery-gutter) 56px;
  margin-top: 0;
}
.gal-a .section-heading {
  display: block;
  border-bottom: none;
  margin: 0 0 36px;
  padding: 0;
  max-width: 720px;
}
.gal-a .section-heading .kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.gal-a .section-heading h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  font-size: 60px;
  line-height: 1;
  color: var(--ink);
}
.gal-a .section-heading p {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 44ch;
}
.gal-a .scroller {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  overflow-x: auto;
  padding: 28px var(--gallery-gutter) 36px;
  scroll-padding-inline: var(--gallery-gutter);
  scroll-snap-type: x proximity;
  margin: 0 calc(var(--gallery-gutter) * -1);
  /* Firefox (and Chromium ≥121) take the standard properties; Safari and older
     Chromium fall through to the ::-webkit-scrollbar rules below. */
  scrollbar-width: thin;
  scrollbar-color: var(--ink) transparent;
}
.gal-a .scroller::-webkit-scrollbar {
  height: 6px;
}
.gal-a .scroller::-webkit-scrollbar-thumb {
  background: var(--ink);
}
.gal-a .card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
}
.gal-a .card:last-child {
  scroll-snap-align: end;
}
/* Windowed covers: fixed frames crop into each photo (object-fit: cover) with
   280px of horizontal bleed that app.js pans as the strip scrolls — a parallax
   that keeps revealing the photo and pulls the eye toward the next cards.
   Bleed must equal 2 × PARALLAX_BLEED in app.js. Frames alternate width for
   editorial rhythm. */
.gal-a .card .plate {
  height: 520px;
  width: min(430px, 80vw);
}
.gal-a .card:nth-child(3n) .plate {
  width: min(540px, 84vw);
}
.gal-a .card .plate img {
  width: calc(100% + 280px);
  max-width: none;
  height: 100%;
  object-fit: cover;
  margin-left: -140px;
  will-change: transform;
}
.gal-a .card .meta,
.gal-a .card .summary {
  width: 0;
  min-width: 100%;
}
.gal-a .card .meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.gal-a .card .meta .n {
  font-family: var(--hand);
  font-size: 28px;
  color: var(--accent);
  transform: rotate(-1.5deg);
}
.gal-a .card .meta .ttl {
  font-family: var(--display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  font-size: 24px;
}
.gal-a .card .meta .yr {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-left: auto;
}
.gal-a .card .summary {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-2);
}
.gal-a .hint {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--hand);
  font-size: 20px;
  color: var(--ink-2);
}
.gal-a .hint svg {
  stroke: currentColor;
}
/* Index cover cards now link to /galleries/<slug> — add a gentle lift. */
.gal-a .card-link .plate {
  transition: transform 0.25s ease;
}
.gal-a .card-link:hover .plate,
.gal-a .card-link:focus-visible .plate {
  transform: translateY(-4px);
}
.gal-a .card-link:hover .meta .ttl,
.gal-a .card-link:focus-visible .meta .ttl {
  color: var(--accent);
}

/* ================================================================== */
/* GALLERY DETAIL - /galleries/<slug> · selectable photo layouts        */
/* ================================================================== */
.gallery-detail {
  --gallery-gutter: 28px;
  padding: 120px var(--gallery-gutter) 80px;
  margin-top: 0;
}
.gallery-detail .gallery-head {
  display: block;
  grid-template-columns: none;
  border-bottom: none;
  padding: 0;
  margin: 0 0 44px;
  max-width: 760px;
}
.gallery-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.gallery-back span {
  font-size: 15px;
}
.gallery-back:hover,
.gallery-back:focus-visible {
  color: var(--accent);
}
.gallery-detail .gallery-head .kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.gallery-detail .gallery-head h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  font-size: 60px;
  line-height: 1;
  color: var(--ink);
}
.gallery-detail .gallery-head p {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
}

/* Shared photo + caption styling across all layouts. */
.photo-gallery {
  margin: 0;
}
.photo-gallery .photo {
  margin: 0;
}
.photo-gallery figcaption {
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
}

/* Photos open in the lightbox. */
.photo-gallery .photo .plate {
  cursor: zoom-in;
}

/* Layout: grid — a dense mosaic. Tile spans are set inline per photo by
   applyMosaicSpans (app.js) from each image's REAL dimensions: wide photos go
   two columns, tall ones two rows, some near-squares become 2×2 features;
   dense flow backfills the gaps. */
.photo-gallery--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-auto-rows: 260px;
  grid-auto-flow: dense;
  gap: 20px;
}
.photo-gallery--grid .photo {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.photo-gallery--grid .plate {
  flex: 1;
  min-height: 0;
}
.photo-gallery--grid .plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Layout: masonry — column flow, photos keep their natural height. */
.photo-gallery--masonry {
  column-count: 3;
  column-gap: 28px;
}
.photo-gallery--masonry .photo {
  break-inside: avoid;
  margin-bottom: 28px;
}

/* Layout: stack — single full-width column, immersive scroll. */
.photo-gallery--stack {
  display: flex;
  flex-direction: column;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Layout: justified — flex rows of even height, varied (cropped) widths. */
.photo-gallery--justified {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.photo-gallery--justified .photo {
  flex: 1 1 300px;
  height: 320px;
}
.photo-gallery--justified .photo .plate {
  height: 100%;
}
.photo-gallery--justified .photo .plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .photo-gallery--masonry {
    column-count: 2;
  }
}
@media (max-width: 600px) {
  .gallery-detail .gallery-head h2 {
    font-size: 44px;
  }
  /* Single column: mosaic spans would overflow a one-column grid. !important
     because the spans are set as inline styles by applyMosaicSpans (app.js). */
  .photo-gallery--grid .photo {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .photo-gallery--masonry {
    column-count: 1;
  }
  .photo-gallery--justified .photo {
    flex-basis: 220px;
    height: 240px;
  }
  .photo-gallery--stack {
    gap: 40px;
  }
}

/* ================================================================== */
/* SHOP - Layout A · One per screen oversized                           */
/* ================================================================== */
.shop-a {
  padding: 120px 28px 56px;
  margin-top: 0;
}
.shop-a .section-heading {
  display: block;
  border-bottom: none;
  margin: 0 0 24px;
  padding: 0;
  max-width: 720px;
}
.shop-a .section-heading .kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.shop-a .section-heading h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  font-size: 60px;
  line-height: 1;
  color: var(--ink);
}
.shop-a .section-heading p {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 44ch;
}
.shop-a .item {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: var(--weight) solid var(--ink);
}
.shop-a .item:first-of-type {
  padding-top: 32px;
  border-top: var(--weight) solid var(--ink);
}
.shop-a .item.flip {
  direction: rtl;
}
.shop-a .item.flip > * {
  direction: ltr;
}
.shop-a .item .info .num {
  font-family: var(--hand);
  font-size: 30px;
  color: var(--accent);
  transform: rotate(-2deg);
  display: inline-block;
  margin-bottom: 8px;
}
.shop-a .item .info {
  background: var(--paper);
  border: var(--weight) solid var(--ink);
  box-shadow: var(--box-shadow);
  padding: 24px;
}
.shop-a .item .info .location {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.shop-a .item .info h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  font-size: 52px;
  line-height: 1.02;
  color: var(--ink);
}
.shop-a .item .info p {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 42ch;
}
.shop-a .item .info dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 6px 16px;
  margin: 0 0 24px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.shop-a .item .info dt {
  color: var(--ink-3);
  margin: 0;
}
.shop-a .item .info dd {
  margin: 0;
  color: var(--ink);
}
.shop-a .item .info .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  border-top: var(--weight) solid var(--ink);
  padding-top: 18px;
  margin-bottom: 12px;
}
.shop-a .item .info .actions-demo {
  justify-content: flex-start;
  align-items: center;
}
.shop-a .item .info .actions-demo .demo-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: var(--weight) solid var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
  white-space: nowrap;
}
.shop-a .item .info .actions label {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 180px;
  min-width: 180px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.shop-a .item .info .actions select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 42px;
  background: var(--paper);
  border: var(--weight) solid var(--ink);
  padding: 8px 12px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}
.shop-a .item .info .actions .buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: var(--weight) solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.shop-a .item .info .actions .buy[aria-disabled="true"] {
  background: var(--paper);
  color: var(--ink-3);
  cursor: not-allowed;
}
.shop-a .item .info .actions .secondary {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  background: transparent;
  border: var(--weight) solid var(--ink);
  color: var(--ink);
  padding: 0 18px;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.shop-a .item .info .actions .secondary:disabled {
  color: var(--ink-3);
  border-color: var(--ink-3);
  cursor: not-allowed;
}
html[data-palette="night"] .shop-a .item .info .actions .buy {
  background: var(--accent);
  border-color: var(--accent);
}

/* ================================================================== */
/* Supporting sections (home page below the marquee)                    */
/* ================================================================== */
.feature-strip,
.reflection-section,
.notes-section {
  padding: 88px 28px;
  max-width: 1700px;
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: var(--weight) solid var(--ink);
  margin-bottom: 40px;
}
.section-heading .kicker,
.section-heading .eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  font-size: 52px;
  line-height: 1.04;
  color: var(--ink);
}
.section-heading p {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 44ch;
}

.feature-strip .triptych {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
/* Justified row: app.js sets each work's flex-grow to its photo's aspect ratio,
   so with flex-basis:0 the column widths come out proportional to the ratios —
   which renders every photo at the same height, filling the row, uncropped. */
.feature-strip .triptych .feature-work {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-strip .triptych .feature-work .feature-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-2);
  text-align: center;
  background: var(--paper);
  border: var(--weight) solid var(--ink);
  box-shadow: var(--box-shadow);
  padding: 14px 16px;
}
.feature-strip .triptych .feature-work .feature-caption strong {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
}
.feature-strip .triptych .feature-work .feature-caption span {
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.reflection-section .reflection-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.reflection-section .reflection-grid .eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.reflection-section h2 {
  margin: 0;
  font-family: var(--display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  font-size: 60px;
  line-height: 1;
  color: var(--ink);
  max-width: 12ch;
}
.reflection-section .reflection-copy p {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 44ch;
}
.reflection-section .reflection-copy .signature {
  margin-top: 24px;
  font-family: var(--hand);
  font-size: 30px;
  transform: rotate(-2deg);
  display: inline-block;
  color: var(--accent);
}

.notes-section .notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.notes-section .notes-grid .note-card {
  background: var(--paper);
  border: var(--weight) solid var(--ink);
  box-shadow: var(--box-shadow);
  padding: 18px;
}
.notes-section .notes-grid .note-card h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  font-size: 24px;
  color: var(--ink);
}
.notes-section .notes-grid .note-card p {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ================================================================== */
/* Cart panel                                                           */
/* ================================================================== */
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--paper);
  border-left: var(--weight) solid var(--ink);
  z-index: 200;
  transform: translateX(calc(100% + 12px));
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
}
.cart-panel[aria-hidden="false"] {
  transform: translateX(0);
}

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: var(--weight) solid var(--ink);
}
.cart-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-panel-header h2 {
  margin: 0;
  font-family: var(--display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  font-size: 28px;
  color: var(--ink);
}
.cart-demo-pill {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  opacity: 0.55;
  white-space: nowrap;
}

.icon-button {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: var(--weight) solid var(--ink);
  color: var(--ink);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 28px;
}
.empty-cart {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-3);
  text-align: center;
  margin: 32px 0;
}

.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: var(--weight) solid var(--ink-3);
}
.cart-row:last-child {
  border-bottom: none;
}
.cart-row img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: var(--weight) solid var(--ink);
}
.cart-row strong {
  display: block;
  font-family: var(--display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  font-size: 18px;
  color: var(--ink);
}
.cart-row span {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}
.cart-row .unavailable-thumb {
  width: 64px;
  height: 64px;
  border: var(--weight) solid var(--ink-3);
  background: repeating-linear-gradient(var(--plate-pattern));
}

.quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 12px;
}
.quantity-controls button {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: var(--weight) solid var(--ink);
  color: var(--ink);
  width: 22px;
  height: 22px;
  cursor: pointer;
  line-height: 1;
}

.remove-button {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}
.remove-button:hover {
  color: var(--ink);
}

.cart-footer {
  padding: 20px 28px;
  border-top: var(--weight) solid var(--ink);
}
.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cart-total strong {
  font-family: var(--display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  font-size: 24px;
  letter-spacing: 0;
  color: var(--ink);
  text-transform: none;
}

.checkout-button {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  border: var(--weight) solid var(--ink);
  padding: 14px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}
.checkout-button:disabled {
  background: var(--paper);
  color: var(--ink-3);
  cursor: not-allowed;
}

.cart-note {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
}

/* ================================================================== */
/* Status pages (success, cancel, errorPage from worker)                */
/* ================================================================== */
.status-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
}
.status-panel {
  max-width: 480px;
  padding: 32px;
  border: var(--weight) solid var(--ink);
  box-shadow: var(--box-shadow);
  background: var(--paper);
}
.status-panel .eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 10px;
}
.status-panel h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  font-size: 40px;
  line-height: 1.04;
  color: var(--ink);
}
.status-panel p {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}
.text-link {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: var(--weight) solid var(--accent);
  padding-bottom: 3px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ================================================================== */
/* Consent banner                                                       */
/* ================================================================== */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 18px 28px;
  background: var(--paper);
  border-top: var(--weight) solid var(--ink);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}
.consent-banner[hidden] {
  display: none;
}
.consent-banner p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 56ch;
  flex: 1 1 280px;
}
.consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.consent-actions button {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: var(--weight) solid var(--ink);
  color: var(--ink);
  padding: 10px 20px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}
.consent-actions button:first-child {
  background: var(--ink);
  color: var(--paper);
}

/* ================================================================== */
/* Lightbox (enlarged photo viewer on gallery detail pages)             */
/* ================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 76px;
  background: rgba(20, 19, 17, 0.93);
  animation: lightbox-in 160ms ease;
}
@keyframes lightbox-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  text-align: center;
}
.lightbox-figure img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: calc(100vh - 170px);
  max-height: calc(100svh - 170px);
  border: var(--weight) solid rgba(250, 246, 239, 0.25);
  background: #111;
}
.lightbox-figure figcaption {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: rgba(250, 246, 239, 0.75);
}
.lightbox-close,
.lightbox-nav {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  background: transparent;
  border: 1px solid rgba(250, 246, 239, 0.35);
  color: #faf6ef;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(250, 246, 239, 0.14);
}
.lightbox-close {
  top: 20px;
  right: 20px;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev {
  left: 18px;
}
.lightbox-next {
  right: 18px;
}
@media (max-width: 720px) {
  .lightbox {
    padding: 24px 16px 88px;
  }
  .lightbox-nav {
    top: auto;
    bottom: 20px;
    transform: none;
  }
  .lightbox-prev {
    left: 24px;
  }
  .lightbox-next {
    right: 24px;
  }
  .lightbox-figure img {
    max-height: calc(100vh - 220px);
    max-height: calc(100svh - 220px);
  }
}

/* ================================================================== */
/* Responsive                                                           */
/* ================================================================== */
@media (max-width: 1100px) {
  .site-header {
    flex-wrap: wrap;
    gap: 14px 18px;
    padding: 18px 20px;
  }
  .site-header .brand {
    font-size: 32px;
  }
  .site-nav {
    width: 100%;
    gap: 18px;
    font-size: 13px;
  }

  .marquee .marquee-stage .plate {
    min-height: 520px;
  }
  .marquee .overlay {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
  .marquee .overlay h1 {
    font-size: 38px;
  }

  .gal-a,
  .shop-a {
    padding-top: 136px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .gal-a {
    --gallery-gutter: 16px;
  }
  .gal-a .card .plate {
    height: 380px;
  }
  .gal-a .section-heading h2,
  .shop-a .section-heading h2 {
    font-size: 42px;
  }

  .shop-a .item {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .shop-a .item.flip {
    direction: ltr;
  }
  .shop-a .item .info h3 {
    font-size: 38px;
  }

  .shop-a .item .info .actions label {
    flex-basis: 100%;
  }
  .shop-a .item .info .actions .secondary,
  .shop-a .item .info .actions .buy {
    flex: 1 1 140px;
  }

  .feature-strip,
  .reflection-section,
  .notes-section {
    padding: 56px 16px;
  }
  .section-heading,
  .reflection-section .reflection-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .feature-strip .triptych {
    flex-direction: column;
    align-items: stretch;
  }
  .feature-strip .triptych .feature-work {
    flex-basis: auto;
  }
  .notes-section .notes-grid {
    grid-template-columns: 1fr;
  }
  .reflection-section h2 {
    font-size: 42px;
  }
}

.site-footer {
  margin-top: 96px;
  padding: 48px 24px 64px;
  border-top: 1px solid rgba(31, 29, 26, 0.12); /* fallback: 12% of default --ink */
  border-top: 1px solid color-mix(in srgb, var(--ink, #1a1a1a) 12%, transparent);
  font-size: 0.9rem;
  color: var(--muted, #666);
}

.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: baseline;
  justify-content: space-between;
}

.site-footer .footer-copy {
  margin: 0;
  letter-spacing: 0.03em;
}

.site-footer .footer-tagline {
  margin: 0;
  font-style: italic;
  color: rgba(102, 102, 102, 0.8); /* fallback: 80% of #666 */
  color: color-mix(in srgb, var(--muted, #666) 80%, transparent);
}

.site-footer .footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer .footer-nav a {
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.site-footer .footer-nav a:hover,
.site-footer .footer-nav a:focus-visible {
  color: var(--ink, #1a1a1a);
  text-decoration: underline;
}

@media (max-width: 720px) {
  .site-footer {
    padding: 36px 16px 48px;
  }
  .site-footer .footer-inner {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  /* Keep the overlay (and its CTA) clear of the floating Customize launcher
     that admins see docked at the bottom-right corner. */
  .marquee .overlay {
    bottom: 84px;
  }
}

/* ================================================================== */
/* PAGE LAYOUT: framed (html[data-layout="framed"])                     */
/* Alternate to the default "overlay" look: a solid sticky top bar      */
/* instead of nav floating over the marquee, plus centered marquee copy */
/* and single-column section headings. Pure CSS off the data attribute. */
/* ================================================================== */
html[data-layout="framed"] .site-header {
  position: sticky;
  background: var(--paper);
  background-image: none;
  color: var(--ink);
  mix-blend-mode: normal;
  border-bottom: var(--weight) solid var(--ink);
  padding: 16px 32px;
}
html[data-layout="framed"] .marquee .overlay {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  text-align: center;
  max-width: min(560px, calc(100vw - 32px));
}
html[data-layout="framed"] .section-heading {
  grid-template-columns: 1fr;
  gap: 18px;
}
html[data-layout="framed"] .reflection-section .reflection-grid {
  grid-template-columns: 1fr;
  gap: 28px;
}
html[data-layout="framed"] .shop-a .item.flip,
html[data-layout="framed"] .shop-a .item.flip > * {
  direction: ltr;
}
html[data-layout="framed"] .gal-a,
html[data-layout="framed"] .shop-a,
html[data-layout="framed"] .gallery-detail {
  padding-top: 56px;
}
