/* Luka Miljanov, photographic prints.
   A gallery after dark: neutral near-black walls, one typeface, no accent colour.
   The photographs are the only colour on the page. */

@font-face {
  font-family: "Switzer";
  src: url("/static/fonts/switzer-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --bg-2: #141416;
  --bg-3: #1c1c1f;
  --ink: #ececea;
  --ink-2: #a3a3a8;
  --ink-3: #818187;
  --rule: #242427;
  --rule-2: #36363a;
  --sans: "Switzer", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gut: max(clamp(16px, 3.2vw, 48px), env(safe-area-inset-left));
  --mast-h: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --z-mast: 50; --z-drawer: 80; --z-skip: 100;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: calc(var(--mast-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; font-kerning: normal;
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; font-weight: 450; }
p, dd, li { text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }
.skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: var(--z-skip); background: var(--ink); color: var(--bg); padding: 10px 14px; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; color: var(--ink-2); transition: color .2s; }
.linkish:hover { color: var(--ink); }
.fine { font-size: 13px; line-height: 1.5; color: var(--ink-3); margin-top: 14px; }

/* page-to-page: the photograph you clicked glides into place on the next page */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  font-size: 15px; font-weight: 500; letter-spacing: .01em; cursor: pointer; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .15s var(--ease);
}
.btn:hover { background: #fff; border-color: #fff; }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: #fff; color: #0b0b0c; }

/* ---------- masthead ---------- */
.mast {
  position: sticky; top: 0; z-index: var(--z-mast); height: var(--mast-h);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px;
  padding: 0 var(--gut); color: var(--ink);
  background: rgba(11, 11, 12, .94); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent; transition: background-color .4s, border-color .4s, color .4s;
  view-transition-name: mast;
}
.mast-mark { font-size: 17px; font-weight: 550; letter-spacing: -.01em; white-space: nowrap; }
.mast-nav { display: flex; gap: 30px; justify-content: flex-end; }
.mast-nav a, .mast-cart { font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: color .2s; }
.mast-nav a:hover, .mast-nav a[aria-current="page"], .mast-cart:hover { color: var(--ink); }
.mast-cart { background: none; border: 0; padding: 12px 0; min-height: 44px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.mast-nav a { padding: 12px 0; }
.mast-count { font-variant-numeric: tabular-nums; color: var(--ink); min-width: 1ch; }

.home .mast { position: fixed; left: 0; right: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.home .mast .mast-nav a, .home .mast .mast-cart { color: rgba(255, 255, 255, .78); }
.home .mast .mast-nav a:hover, .home .mast .mast-cart:hover { color: #fff; }
.home .mast.is-solid { background: rgba(11, 11, 12, .94); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--rule); }
.home .mast.is-solid .mast-nav a, .home .mast.is-solid .mast-cart { color: var(--ink-2); }

@media (max-width: 760px) {
  :root { --mast-h: 96px; }
  .mast { grid-template-columns: 1fr auto; grid-template-rows: 52px 44px; gap: 0 16px; align-content: center; }
  .mast-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 24px; overflow-x: auto; scrollbar-width: none; }
  .mast-nav::-webkit-scrollbar { display: none; }
}

/* ---------- images ---------- */
.pic { display: block; aspect-ratio: var(--r); background: var(--ph) center / cover no-repeat, var(--bg-2); overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.js .pic img { opacity: 0; transition: opacity .6s ease; }
.js .pic img.is-loaded, .js .pic img[fetchpriority="high"] { opacity: 1; }

/* ---------- home: the stage ---------- */
.stage { position: relative; background: var(--bg); }
.stage-pin { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.stage-frame { position: absolute; inset: 0; background: var(--bg-2); transform-origin: 50% 50%; overflow: hidden; }
.stage-frame::before, .stage-frame::after { content: ""; position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; }
.stage-frame::before { top: 0; height: 180px; background: linear-gradient(rgba(0, 0, 0, .5), transparent); }
.stage-frame::after { bottom: 0; height: 62%; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); }
.stage-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.stage-slide.is-on { opacity: 1; z-index: 1; }
.stage-slide.was-on { opacity: 1; z-index: 0; transition: none; }
.stage-slide picture { display: contents; }
.stage-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8s var(--ease); }
.stage-slide.is-on img { transform: scale(1); }

.stage-intro {
  position: absolute; z-index: 3; left: var(--gut); right: var(--gut); bottom: clamp(88px, 12svh, 128px);
  display: grid; justify-items: start; gap: 22px; color: #fff; max-width: 760px;
}
.stage-name { font-size: clamp(52px, 8.4vw, 132px); font-weight: 500; line-height: .92; letter-spacing: -.045em; }
.stage-sub { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.45; color: rgba(255, 255, 255, .82); max-width: 34ch; }
.stage-intro .btn { margin-top: 6px; }

.stage-labels { position: absolute; z-index: 3; right: var(--gut); bottom: clamp(88px, 12svh, 128px); width: min(300px, 40vw); height: 3.6em; }
.stage-label { position: absolute; right: 0; bottom: 0; display: grid; gap: 4px; text-align: right; color: #fff; opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.stage-label.is-on { opacity: 1; transform: none; pointer-events: auto; transition: opacity .8s ease .3s, transform .8s var(--ease) .3s; }
.stage-label-t { font-size: 16px; font-weight: 500; }
.stage-label-m { font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.stage-label:hover .stage-label-t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.stage-ctrl { position: absolute; z-index: 3; left: var(--gut); right: var(--gut); bottom: 32px; display: flex; align-items: center; gap: 20px; }
.stage-ticks { display: flex; gap: 6px; flex: 1; max-width: 360px; }
.stage-tick { flex: 1; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.stage-tick i { display: block; width: 100%; height: 1px; background: rgba(255, 255, 255, .28); position: relative; overflow: hidden; }
.stage-tick i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.stage-tick.is-done i::after { transform: scaleX(1); }
.stage-tick.is-on i::after { animation: tick var(--dwell, 7s) linear forwards; }
.stage.is-paused .stage-tick.is-on i::after { animation-play-state: paused; }
.stage-tick:hover i { background: rgba(255, 255, 255, .6); }
.stage-pause { background: none; border: 0; padding: 14px 4px; min-height: 44px; cursor: pointer; font-size: 13px; color: rgba(255, 255, 255, .7); }
.stage-pause:hover { color: #fff; }
@keyframes tick { to { transform: scaleX(1); } }

/* Where the browser can drive animation from scroll (and the screen is wide enough to read it
   as a print): pin the stage, pull the photograph off the screen and hang it on the wall,
   then bring up its gallery label beside it. Everything else gets the plain full-screen reel. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 761px) and (min-height: 560px) and (orientation: landscape) {
    .stage { --hang-s: .6; --hang-x: -11%; height: 155svh; view-timeline: --stage block; view-timeline-inset: 0px; }
    .stage-pin { position: sticky; top: 0; }
    .stage-frame, .stage-intro, .stage-labels, .stage-ctrl, .stage-frame::after, .stage-frame::before {
      animation-timeline: --stage; animation-fill-mode: both; animation-timing-function: linear;
    }
    .stage-frame { animation-name: hang; animation-range: contain 0% contain 70%; }
    .stage-frame::after, .stage-frame::before { animation-name: fade-out; animation-range: contain 0% contain 40%; }
    .stage-intro { animation-name: lift-out; animation-range: contain 0% contain 28%; }
    .stage-ctrl { animation-name: fade-out; animation-range: contain 0% contain 25%; }
    /* the label hangs just right of the print, level with its bottom edge */
    .stage-labels {
      left: calc(50% + 50% * var(--hang-s) + var(--hang-x) + 48px); right: auto; width: min(22vw, 360px);
      bottom: calc(50svh - 50svh * var(--hang-s)); height: auto;
      animation-name: label-in; animation-range: contain 48% contain 72%;
    }
    .stage-label { position: absolute; left: 0; right: auto; bottom: 0; text-align: left; color: var(--ink); }
    .stage-label-m { color: var(--ink-3); }
  }
}
@keyframes hang {
  from { transform: none; box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
  to { transform: translateX(var(--hang-x)) scale(var(--hang-s)); box-shadow: 0 50px 140px -30px rgba(0, 0, 0, .95); }
}
@keyframes fade-out { to { opacity: 0; } }
@keyframes lift-out { to { opacity: 0; transform: translateY(-48px); } }
@keyframes label-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .stage-intro { bottom: 150px; }
  .stage-labels { left: var(--gut); right: var(--gut); width: auto; bottom: 72px; height: 2.6em; }
  .stage-label { left: 0; right: 0; text-align: left; }
  .stage-label-m { display: none; }
  .stage-ctrl { bottom: 20px; }
  .stage-name { font-size: clamp(48px, 15vw, 72px); }
}

/* ---------- home: chapters ---------- */
.chapter { padding: clamp(96px, 12vw, 176px) 0 0; }
.chapter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px 32px; flex-wrap: wrap; padding: 0 var(--gut); margin-bottom: clamp(28px, 3.4vw, 48px); }
.chapter-head h2 { font-size: clamp(40px, 5.6vw, 88px); line-height: .95; letter-spacing: -.04em; }
.chapter-link { font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--rule-2); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.chapter-link:hover { color: var(--ink); border-color: var(--ink); }

.card { display: block; min-width: 0; }
.card-cap { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; font-size: 14px; }
.card-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-price { color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.card .pic img { transition: opacity .6s ease, transform 1.1s var(--ease); }
.card:hover .pic img { transform: scale(1.025); }
/* in any grid, pointing at one photograph dims the rest, like stepping up to it on a wall */
@media (hover: hover) {
  .card .pic { transition: opacity .45s ease; }
  :is(.rows, .mosaic, .reel):has(.card:hover) .card:not(:hover) .pic { opacity: .38; }
}

/* wildlife: an uneven hang */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(12px, 1.6vw, 24px); padding: 0 var(--gut); align-items: start; }
.mosaic .card { display: flex; flex-direction: column; }
.mosaic .m1 { grid-column: 1 / 9; grid-row: 1 / 3; align-self: stretch; }
.mosaic .m1 .pic { flex: 1; aspect-ratio: auto; min-height: 0; }
.mosaic .m2 { grid-column: 9 / 13; grid-row: 1; }
.mosaic .m3 { grid-column: 9 / 13; grid-row: 2; align-self: end; }
.mosaic .m4 { grid-column: 2 / 6; grid-row: 3; margin-top: clamp(40px, 8vw, 140px); }
.mosaic .m5 { grid-column: 7 / 13; grid-row: 3; }
.mosaic .m2 .pic, .mosaic .m3 .pic, .mosaic .m4 .pic, .mosaic .m5 .pic { aspect-ratio: 3 / 2; }
/* beyond the five-photo hang, extra picks run on in threes */
.mosaic .card:nth-child(n+6) { grid-column: span 4; }
.mosaic .card:nth-child(n+6) .pic { aspect-ratio: 3 / 2; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr; gap: 36px; }
  .mosaic .card { grid-column: 1 !important; grid-row: auto !important; margin-top: 0 !important; }
  .mosaic .m1 .pic { aspect-ratio: 4 / 5; flex: none; }
}

/* still life: a reel that scrolls sideways */
.reel-ctrl { display: flex; align-items: baseline; gap: 12px; }
.reel-ctrl .chapter-link { margin-right: 12px; }
.reel-btn { width: 44px; height: 44px; border: 1px solid var(--rule-2); background: none; cursor: pointer; font-size: 16px; color: var(--ink-2); transition: color .2s, border-color .2s, opacity .2s; align-self: center; }
.reel-btn:hover { color: var(--ink); border-color: var(--ink); }
.reel-btn[disabled] { opacity: .3; cursor: default; }
.reel {
  --h: min(clamp(260px, 58svh, 640px), calc((100vw - 2 * var(--gut) - 64px) / 1.5));
  display: flex; gap: clamp(12px, 1.6vw, 24px); overflow-x: auto; overscroll-behavior-x: contain;
  padding: 0 var(--gut) 20px; scroll-padding: 0 var(--gut); scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent;
}
.reel:focus-visible { outline-offset: -1px; }
.reel.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.reel.is-drag .card { pointer-events: none; }
.reel-item { flex: none; width: calc(var(--h) * var(--r)); scroll-snap-align: start; }
.reel-item .pic { height: var(--h); width: 100%; }
@media (max-width: 760px) {
  .reel { --h: 52vw; }
  .reel-btn { display: none; }
  .reel-ctrl .chapter-link { margin-right: 0; }
  .plate-page .plate-fig .pic { --cap: 58svh; }
}

/* cars: one frame, cinema width */
.chapter-cars { padding-top: clamp(96px, 12vw, 176px); }
.band { position: relative; display: block; height: min(88svh, 62vw); min-height: 360px; overflow: hidden; margin-bottom: clamp(56px, 7vw, 104px); }
.band .pic { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.band .pic img { transition: transform 2.4s var(--ease), opacity .6s ease; }
.band:hover .pic img { transform: scale(1.02); }
.band-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 120px var(--gut) 28px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); display: flex; justify-content: flex-end; }
.band-k { font-size: 14px; color: rgba(255, 255, 255, .86); }

/* justified rows: every photograph keeps its own shape and the row fills the width */
.rows { display: flex; flex-wrap: wrap; gap: clamp(32px, 3.4vw, 52px) clamp(12px, 1.6vw, 24px); padding: 0 var(--gut); }
.rows::after { content: ""; flex-grow: 1000000; }
.rows .card { flex: calc(var(--r) * 100) 1 calc(var(--r) * 280px); }
.rows-few { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.rows-few::after { content: none; }
.rows-few .pic { aspect-ratio: 3 / 2; }
.rows-few .card:nth-child(1) { grid-column: 7 / 13; }
.rows-few .card:nth-child(2) { grid-column: 1 / 6; }
.rows-few .card:nth-child(3) { grid-column: 7 / 13; }
.rows-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rows-4::after { content: none; }
.rows-4 .pic { aspect-ratio: 3 / 2; }
@media (max-width: 960px) { .rows-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .rows .card { flex-basis: 100%; } .rows-4 { grid-template-columns: 1fr; } .rows-few .card { grid-column: 1 / -1 !important; } }

/* the close: the moon, sitting in the dark */
.closer { position: relative; margin-top: clamp(96px, 12vw, 176px); min-height: min(92svh, 66vw); display: grid; align-items: end; overflow: hidden; }
.closer-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%;
  /* lighten drops the photo's own night sky into the page's black, so only the moon remains */
  mix-blend-mode: lighten;
}
.closer.no-img { min-height: 0; margin-top: clamp(120px, 14vw, 220px); }
.closer-copy { position: relative; padding: 0 var(--gut) clamp(40px, 6vw, 88px); display: grid; gap: 16px; max-width: 900px; }
.closer-copy h2 { font-size: clamp(34px, 4.6vw, 72px); line-height: 1; letter-spacing: -.035em; }
.closer-copy p { color: var(--ink-2); font-size: 17px; max-width: 42ch; }
@media (max-width: 760px) { .closer { min-height: 110vw; } .closer-img { object-position: 72% 50%; } }

/* scroll-in, once */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.mosaic .m2.reveal, .rows .card:nth-child(4n+2).reveal { transition-delay: .08s; }
.mosaic .m3.reveal, .rows .card:nth-child(4n+3).reveal { transition-delay: .16s; }
.mosaic .m5.reveal, .rows .card:nth-child(4n).reveal { transition-delay: .12s; }

/* home: featured, the statement, then every print by collection */
.chapter-note { font-size: 15px; color: var(--ink-2); }
.rows-featured .card { flex-basis: calc(var(--r) * 420px); }
.statement { padding: clamp(96px, 12vw, 176px) var(--gut) 0; }
.statement h2 { font-size: clamp(34px, 4.6vw, 72px); line-height: 1; letter-spacing: -.035em; }
.statement p { color: var(--ink-2); font-size: 17px; max-width: 42ch; margin-top: 16px; }
.chapter-all .chapter-head h2 sup { font-size: 14px; letter-spacing: 0; font-weight: 400; color: var(--ink-3); vertical-align: top; margin-left: .5em; position: relative; top: .4em; }
.chapter-all + .chapter-all { padding-top: clamp(80px, 9vw, 140px); }

/* ---------- collection pages ---------- */
.page-head { padding: clamp(56px, 8vw, 128px) var(--gut) clamp(36px, 4.4vw, 64px); display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px 40px; }
.page-head h1 { font-size: clamp(48px, 6vw, 96px); line-height: .88; letter-spacing: -.05em; font-weight: 450; }
.page-head sup { font-size: 14px; letter-spacing: 0; font-weight: 400; color: var(--ink-3); vertical-align: top; margin-left: .5em; position: relative; top: .5em; }
.filters { display: flex; gap: 26px; padding-bottom: .6em; }
.filters a { font-size: 15px; color: var(--ink-3); transition: color .2s; }
.filters a:hover, .filters a[aria-current="page"] { color: var(--ink); }
.filters a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.index-page main { padding-bottom: clamp(40px, 6vw, 96px); }

/* ---------- print page ---------- */
.plate { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 24vw, 500px); gap: clamp(32px, 5vw, 96px); padding: clamp(12px, 2vw, 32px) var(--gut) 0; align-items: start; }
.plate-fig { margin: 0; position: sticky; top: calc(var(--mast-h) + 24px); display: grid; justify-items: center; }
.plate-zoom { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; max-width: 100%; }
.plate-fig .pic { max-height: calc(100svh - var(--mast-h) - 64px); width: auto; max-width: 100%; }
.plate-fig .pic img { width: auto; height: 100%; max-height: calc(100svh - var(--mast-h) - 64px); }
.plate-side { padding-top: clamp(0px, 2vw, 32px); }
.crumb { font-size: 14px; color: var(--ink-3); }
.crumb a { transition: color .2s; }
.crumb a:hover { color: var(--ink); }
.plate-title { font-size: clamp(34px, 3.4vw, 52px); line-height: 1; letter-spacing: -.035em; margin-top: 12px; }
.plate-story { margin-top: 16px; display: grid; gap: .7em; }
.plate-story p { font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.plate-ed { font-size: 15px; color: var(--ink-2); margin-top: 14px; }
.plate-story + .plate-ed { margin-top: 18px; color: var(--ink-3); }
.plate-sale { font-size: 15px; color: var(--ink); margin-top: 6px; }
.card-price s, .size-price s { color: var(--ink-3); text-decoration-thickness: 1px; margin-left: 4px; }

.buy { margin-top: 40px; }
.sizes { border: 0; margin: 0 0 20px; padding: 0; display: grid; gap: 2px; }
.sizes legend { font-size: 13px; color: var(--ink-3); padding: 0; margin-bottom: 12px; }
.size { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 16px; padding: 12px 14px; cursor: pointer; font-size: 15px; position: relative; outline: 1px solid transparent; outline-offset: -1px; transition: background-color .2s, outline-color .2s; }
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size small { display: block; font-size: 12.5px; color: var(--ink-3); }
.size-label, .size-price { font-variant-numeric: tabular-nums; }
.size-price { color: var(--ink-2); }
.size:hover { background: var(--bg-2); }
.size:has(input:checked) { background: var(--bg-2); outline-color: var(--ink); }
.size:has(input:checked) .size-price { color: var(--ink); }
.size:has(input:focus-visible) { outline: 1px solid var(--ink); outline-offset: 3px; }
/* each size drawn to scale against the largest one */
.size-scale { width: 30px; height: 30px; display: flex; align-items: flex-end; }
.size-scale i { display: block; min-width: 8px; min-height: 6px; width: calc(var(--sw) * 100%); height: calc(var(--sh) * 100%); border: 1px solid var(--ink-3); transition: border-color .2s, background-color .2s; }
.size:has(input:checked) .size-scale i { border-color: var(--ink); background: rgba(255, 255, 255, .12); }
.buy .btn { width: 100%; }
.buy-fine { font-size: 13px; color: var(--ink-3); margin-top: 10px; }
[data-buy-price] { font-variant-numeric: tabular-nums; opacity: .7; }

.plate-notes { margin: 36px 0 0; padding: 0; display: grid; gap: 14px; font-size: 14px; }
.plate-notes > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; }
.plate-notes dt { color: var(--ink-3); }
.plate-notes dd { margin: 0; color: var(--ink-2); }

.plate-nav { display: flex; justify-content: space-between; gap: 24px; padding: clamp(56px, 7vw, 112px) var(--gut) 0; }
.plate-nav a { display: grid; gap: 4px; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.02em; transition: color .2s; }
.plate-nav a span { font-size: 13px; letter-spacing: 0; color: var(--ink-3); }
.plate-nav a:hover { color: var(--ink-2); }
.plate-nav .next { margin-left: auto; text-align: right; }

@media (max-width: 760px) {
  .sizes { grid-template-columns: 1fr 1fr; gap: 6px; }
  .size { grid-template-columns: 22px 1fr; grid-template-rows: auto auto; gap: 2px 10px; padding: 10px; outline-color: var(--rule); align-content: start; }
  .size-scale { width: 22px; height: 22px; grid-row: 1 / 3; align-self: start; margin-top: 2px; }
  .size-price { grid-column: 2; }
}
@media (max-width: 960px) {
  .plate { grid-template-columns: 1fr; gap: 28px; padding-top: 0; }
  .plate-fig { position: static; margin: 0 calc(var(--gut) * -1); }
  .plate-fig .pic { --cap: 72svh; max-height: var(--cap); width: min(100%, calc(var(--cap) * var(--r))); margin: 0 auto; }
  .plate-fig .pic img { max-height: none; width: 100%; height: 100%; }
  .plate-zoom { width: 100%; }
  .plate-side { padding-top: 0; }
}

.viewer { border: 0; padding: 0; background: #060606; width: 100vw; height: 100vh; max-width: none; max-height: none; overscroll-behavior: contain; }
.viewer[open] { animation: fade .35s ease; }
.viewer::backdrop { background: #060606; }
.viewer img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-out; }
.viewer .linkish { position: fixed; top: max(8px, env(safe-area-inset-top)); right: 12px; color: #fff; font-size: 14px; padding: 14px 12px; }

/* ---------- info pages ---------- */
.prose-page { padding: clamp(56px, 8vw, 128px) var(--gut) clamp(40px, 6vw, 96px); max-width: 780px; margin: 0 auto; width: 100%; }
.display { font-size: clamp(40px, 5.4vw, 76px); line-height: .98; letter-spacing: -.04em; }
.k { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.lede { font-size: 20px; line-height: 1.5; margin-top: 28px; color: var(--ink); }
.prose { margin-top: 8px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.prose p { margin: 1em 0; }
.prose h2 { margin: 2.6em 0 .5em; font-size: 16px; font-weight: 550; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 550; }
.prose ul { padding-left: 1.1em; }
.prose li { margin: .5em 0; }
.prose a, .lede a, .arrow { border-bottom: 1px solid var(--rule-2); transition: border-color .2s; }
.prose a:hover, .lede a:hover, .arrow:hover { border-color: var(--ink); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.big-link { font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -.02em; }
.banner { font-size: 14px; padding: 14px 16px; background: var(--bg-2); color: var(--ink-2); margin-bottom: 32px; }
.receipt { list-style: none; margin: 36px 0; padding: 0; }
.receipt li { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center; padding: 18px 0; border-top: 1px solid var(--rule); }
.receipt li > div { display: grid; gap: 2px; font-size: 15px; color: var(--ink-2); }
.receipt strong { font-weight: 500; color: var(--ink); }
.receipt .ed { text-align: right; }
.receipt .ed-n { font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.receipt .ed-n small { font-size: 14px; color: var(--ink-3); }
@media (max-width: 560px) { .receipt li { grid-template-columns: 72px 1fr; } .receipt .ed { grid-column: 2; text-align: left; } }

.order-sum { margin: 0 0 14px; max-width: 420px; }
.order-sum > div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.order-sum .total { color: var(--ink); font-weight: 500; border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 10px; }
.order-sum dd { margin: 0; }
.next-steps { list-style: none; counter-reset: step; margin: 36px 0; padding: 0; display: grid; gap: 14px; }
.next-steps li { display: grid; gap: 2px; padding-left: 28px; position: relative; color: var(--ink-2); font-size: 15px; }
.next-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.next-steps strong { color: var(--ink); font-weight: 500; }
.receipt a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.cart-note { font-size: 14px; color: var(--ink-2); background: var(--bg-3); padding: 10px 12px; margin: 0 0 12px; }

/* ---------- footer ---------- */
.foot { margin-top: clamp(80px, 10vw, 160px); padding: clamp(40px, 5vw, 72px) var(--gut) max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-3); }
.foot-top { display: grid; grid-template-columns: 1fr auto auto; gap: 32px clamp(40px, 8vw, 120px); align-items: start; }
.foot-mark { font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: -.035em; color: var(--ink); line-height: 1; }
.foot nav { display: grid; gap: 10px; }
.foot a { transition: color .2s; }
.foot a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-top: clamp(48px, 6vw, 88px); font-size: 13px; }
.foot-bottom nav { display: flex; gap: 24px; }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-mark { grid-column: 1 / -1; } }

/* ---------- cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); }
.drawer[hidden] { display: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); animation: fade .3s ease; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: var(--bg-2); border-left: 1px solid var(--rule); padding: 0 28px max(28px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; animation: slide .45s var(--ease); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; min-height: 72px; position: sticky; top: 0; background: var(--bg-2); z-index: 1; }
.drawer-head .linkish { padding: 12px 0 12px 16px; min-height: 44px; }
.drawer-head h2 { font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); align-items: start; font-size: 15px; }
.cart-line img { width: 80px; height: 60px; object-fit: cover; }
.cart-line .t { min-width: 0; }
.cart-line .m { font-size: 13.5px; color: var(--ink-3); }
.cart-line .p { font-variant-numeric: tabular-nums; }
.cart-line button { margin-top: 2px; padding: 12px 12px 12px 0; font-size: 13px; color: var(--ink-3); }
.cart-empty { color: var(--ink-2); padding: 24px 0; font-size: 15px; }
.cart-empty a { border-bottom: 1px solid var(--rule-2); }
.cart-sum { margin-top: auto; padding-top: 24px; }
.cart-sum dl { margin: 0 0 20px; border-top: 1px solid var(--rule); padding-top: 14px; }
.cart-sum dl > div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 15px; color: var(--ink-2); }
.cart-sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.cart-sum .total { color: var(--ink); font-weight: 500; font-size: 17px; margin-top: 8px; }
.cart-sum .btn { width: 100%; }
.cart-err { color: #ff8a80; font-size: 14px; margin: 0 0 12px; }
.cart-err:empty { display: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(48px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .stage-slide img { transform: none; }
  @view-transition { navigation: none; }
}
