/* Design tokens — values lifted from the Home mockup */
:root {
  --paper: #F7F7F4;
  --ink: #0E0E0E;
  --muted: #66665F;
  --serif: 'Newsreader', Georgia, serif;
  --mono: 'DM Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 3vw, 40px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: clamp(56px, 10vw, 148px);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button { font: inherit; }

.root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  transition: background-color .7s ease;
}
.root > main { flex: 1; }

/* ---- animation ---- */
@keyframes up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes rev { from { opacity: 0; transform: translateY(48px) scale(.97); } to { opacity: 1; transform: none; } }
.vw { animation: up .7s var(--ease) both; }
.in1 { animation: up 1s var(--ease) both .1s; }
.in2 { animation: up 1s var(--ease) both .3s; }
@supports (animation-timeline: view()) {
  .reveal { animation: rev linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
}

/* ---- type helpers ---- */
.mono { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.mono-wide { letter-spacing: .1em; }
.muted { color: var(--muted); }
.display { margin: 0; font-weight: 300; font-size: var(--display); line-height: .92; letter-spacing: -.045em; }
.lede { margin: 0; max-width: 40ch; font-style: italic; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.25; color: var(--muted); }

/* ---- buttons ---- */
.tab, .ghost, .chip, .solid {
  cursor: pointer; min-height: 44px; border-radius: 999px;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, opacity .25s ease;
}
.tab { padding: 0 18px; background: transparent; color: var(--ink); border: 1px solid transparent; font-size: 13px; }
.tab:hover { border-color: var(--ink); }
.tab[aria-pressed="true"], .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.ghost { padding: 0 20px; background: transparent; color: var(--ink); border: 1px solid var(--ink); font-size: 12px; }
.ghost:hover { background: var(--ink); color: var(--paper); }
.ghost.icon { padding: 0; width: 44px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 0 18px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 12px; }
.chip:hover { opacity: .7; }
.solid { display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); font-size: 12px; text-decoration: none; }
.solid.lg { min-height: 48px; }

a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---- header / footer ---- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); transition: background-color .7s ease; }
.site-header .inner, .site-footer .inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.site-header .inner { padding: 12px var(--gutter); gap: 8px 24px; }
.brand { min-height: 44px; padding: 0; background: none; border: 0; color: var(--ink); cursor: pointer; font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.nav-row { display: flex; gap: 4px; }
.nav-row.wrap { flex-wrap: wrap; }
.nav-row.gap8 { gap: 8px; }
.site-footer { border-top: 1px solid var(--ink); }
.site-footer .inner { padding: 24px var(--gutter) 32px; gap: 12px 32px; }
.footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }

/* ---- page shells ---- */
.page { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; }
.page-home { padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(72px, 10vw, 140px); gap: clamp(40px, 6vw, 80px); }
.page-series { padding: clamp(32px, 5vw, 72px) var(--gutter) clamp(64px, 9vw, 120px); gap: clamp(32px, 4vw, 56px); }
.page-explore, .page-prints { padding: clamp(32px, 5vw, 72px) var(--gutter) clamp(64px, 8vw, 120px); gap: clamp(28px, 4vw, 48px); }
.stack { display: flex; flex-direction: column; }
.stack-16 { gap: 16px; } .stack-24 { gap: 24px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 16px; border-top: 1px solid var(--ink); }
.toolbar.between { justify-content: space-between; gap: 12px; }

/* ---- cards / covers ---- */
.card { display: flex; flex-direction: column; gap: 16px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cover { position: relative; display: block; overflow: hidden; }
.cover .zoom, .fill { position: absolute; inset: 0; }
.cover .zoom { transition: transform 1.2s var(--ease); }
.card:hover .zoom, .card:focus-visible .zoom { transform: scale(1.05); }
.fill img, .zoom img, .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.go { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s var(--ease); }
.card:hover .go, .card:focus-visible .go { opacity: 1; transform: none; }
.tag { position: absolute; padding: 5px 10px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; background: var(--paper); color: var(--ink); }
.tag.dark { background: var(--ink); color: var(--paper); padding: 5px 12px; }
.series-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.series-grid { align-items: start; }
.series-grid .card:hover .zoom, .series-grid .card:focus-visible .zoom { transform: none; }
@media (max-width: 700px) { .series-grid { grid-template-columns: 1fr; } }
.series-title { font-weight: 400; font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -.025em; }
.card-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.card-meta .lead { display: flex; align-items: baseline; gap: 14px; }

/* ---- series page ---- */
.series-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 24px 48px; align-items: end; }
.series-head h1 { margin: 0; font-weight: 300; font-size: clamp(52px, 8.5vw, 124px); line-height: .94; letter-spacing: -.045em; text-wrap: balance; }
.masonry { column-width: 340px; column-gap: 16px; }
.ph { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: none; cursor: pointer; break-inside: avoid; transition: transform .4s var(--ease); }
.ph:hover, .ph:focus-visible { transform: translateY(-6px); }
.photo { position: relative; display: block; }
.photo .tag { left: 10px; bottom: 10px; padding: 4px 9px; font-size: 11px; letter-spacing: .08em; }
.sequence { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 88px); }
.sequence .story { margin: 0; align-self: center; max-width: 24ch; text-align: center; font-style: italic; font-weight: 300; font-size: clamp(28px, 4vw, 52px); line-height: 1.12; letter-spacing: -.02em; color: var(--muted); text-wrap: balance; }
.sequence figure { margin: 0; display: flex; flex-direction: column; gap: 12px; max-width: 100%; }
.sequence figcaption, .viewer-bar { display: flex; justify-content: space-between; gap: 16px; }
.stage { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #ECECE7; aspect-ratio: 3 / 2; }
.stage > .photo, .stage > .fill-ph { position: relative; }
.viewer-bar { flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.cell { position: relative; display: block; aspect-ratio: 1 / 1; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .3s var(--ease); outline: 2px solid transparent; outline-offset: 3px; }
.cell[aria-current="true"] { outline-color: var(--ink); }
.cell:hover, .cell:focus-visible { transform: translateY(-4px); }
.next-series { margin-top: clamp(24px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--ink); }
.next-series .title { font-weight: 300; font-size: clamp(40px, 6vw, 88px); line-height: 1; letter-spacing: -.04em; }
.next-series .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.next-series .thumb { position: relative; display: block; width: clamp(120px, 16vw, 220px); aspect-ratio: 3 / 2; }

/* ---- explore ---- */
.palette-grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 14px 10px; padding: 4px 4px 8px; }
.pc { display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.16); transition: transform .35s var(--ease), box-shadow .35s ease; }
.pc[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink), 0 14px 30px rgba(0,0,0,.22); }
.pc:hover, .pc:focus-visible { transform: translateY(-8px) rotate(-1deg); }
.pc .band { display: block; height: 16px; }
.pc .label { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; padding: 6px 8px 7px; background: #fff; font-size: 13px; line-height: 1.1; }
.pc .count { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.spectrum { display: flex; align-items: flex-end; }
.bar { flex: 1 1 0; min-width: 4px; height: 72px; padding: 0; border: 0; cursor: pointer; transition: transform .25s ease, opacity .25s ease; }
.bar:hover, .bar:focus-visible { transform: translateY(-8px); }
.mood-words { display: flex; flex-wrap: wrap; gap: 8px clamp(20px, 3vw, 44px); }
.mw { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); font-family: inherit; font-weight: 300; font-size: clamp(34px, 5.4vw, 72px); line-height: 1.1; letter-spacing: -.035em; transition: opacity .4s ease, transform .4s var(--ease); }
.mw:hover, .mw:focus-visible { transform: translateX(10px); }
.time-box { display: flex; flex-direction: column; gap: 4px; max-width: 760px; }
.time-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.time-head output { font-weight: 300; font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -.04em; }
.time-box input[type=range] { width: 100%; height: 44px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.time-ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.explore-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px clamp(24px, 3vw, 48px); }
.sticky-col { flex: 1 1 380px; min-width: 0; position: sticky; top: 72px; display: flex; flex-direction: column; }
.preview { gap: 14px; }
.preview-frame { position: relative; aspect-ratio: 4 / 5; background: rgba(0,0,0,.06); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fit { position: relative; transition: background-color .35s ease; }
.meta-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; }
.meta-list dd { margin: 0; }
.meta-list .swatches { display: flex; align-items: center; gap: 8px; }
.meta-list .swatches small { color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 12px; }
.sw { padding: 0; border: 1px solid rgba(0,0,0,.3); border-radius: 50%; width: 26px; height: 26px; cursor: pointer; transition: transform .2s ease; }
.sw:hover, .sw:focus-visible { transform: scale(1.25); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.xgrid { flex: 1.6 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.xc { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; background: none; cursor: pointer; transition: opacity .45s ease, filter .45s ease, transform .3s var(--ease), box-shadow .3s ease; }
.xc .fill { outline: 2px solid transparent; outline-offset: 2px; }
.xc[aria-current="true"] .fill { outline-color: var(--ink); }
.xc.dim { opacity: .14; filter: grayscale(1); }
.xc:hover, .xc:focus-visible { transform: scale(1.18); z-index: 3; box-shadow: 0 10px 26px rgba(0,0,0,.28); }

/* ---- prints ---- */
.shop { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px clamp(24px, 3vw, 56px); padding-top: 24px; border-top: 1px solid var(--ink); }
.shop-items { flex: 1.5 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 32px 16px; }
.shop-items .card { gap: 12px; }
.shop-items .cover { aspect-ratio: 4 / 5; outline: 2px solid transparent; outline-offset: 4px; background: rgba(0,0,0,.06); }
/* Show each photo whole on a light mat instead of cropping it to the tile. */
.shop-items .zoom img { object-fit: contain; padding: 8%; box-sizing: border-box; }
.mat { background: rgba(0,0,0,.06); }
.mat img { object-fit: contain; padding: 4%; box-sizing: border-box; }
.shop-items .card[aria-pressed="true"] .cover { outline-color: var(--ink); }
.shop-items .name { font-size: 22px; letter-spacing: -.015em; }
.shop-aside { flex: 1 1 380px; min-width: 0; position: sticky; top: 72px; display: flex; flex-direction: column; gap: 32px; }
.print-frame { position: relative; aspect-ratio: 4 / 3; background: rgba(0,0,0,.06); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.print-frame .fit { max-height: 100%; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.print-title { font-size: 30px; line-height: 1.1; letter-spacing: -.02em; }
.opt { display: flex; flex-direction: column; gap: 8px; }
.opt .actions { gap: 8px; }
.qty { display: flex; align-items: center; gap: 4px; }
.qty output { min-width: 36px; text-align: center; font-family: var(--mono); font-size: 14px; }
.order { gap: 16px; padding-top: 24px; border-top: 1px solid var(--ink); }
.order-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.18); }
.order-line .t { font-size: 18px; }
.order-line .qty output { min-width: 28px; }
.order-line .price { min-width: 64px; text-align: right; font-family: var(--mono); font-size: 13px; }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; }
.subtotal strong { font-weight: 400; font-size: 28px; letter-spacing: -.02em; }
.fineprint { margin: 0; color: var(--muted); font-size: 16px; text-wrap: pretty; }
.empty { margin: 0; font-style: italic; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .vw, .in1, .in2, .reveal { animation: none; }
  .cover .zoom, .go, .ph, .cell, .tab, .ghost, .root, .site-header, .chip, .bar, .mw, .xc, .pc, .sw { transition: none; }
}
@media (hover: none) { .go { opacity: 1; transform: none; } }
