/* Veloura's shop: the light box. Every piece she has lies on one softly lit pad at its real size, each with a paper
   tag; the kinds are named on paper notes lying among them. Porcelain ground, espresso ink, the site's type. */
:root {
  --paper: #FAF9F6; --paper-2: #F0EFEB; --card: #FFFFFF; --ink: #2B211B; --ink-2: #4E443D; --muted: #70675F;
  --line: rgba(43, 33, 27, .12); --line-2: rgba(43, 33, 27, .24); --rule: #E3E0DA; --rose: #9A3F45; --sage: #6F7A4E; --night: #15110E;
  --display: "Cormorant Garamond", Georgia, serif; --body: "Jost", "Avenir Next", "Helvetica Neue", sans-serif;
  --gutter: clamp(12px, 3.4vw, 48px); --max: 1360px; --top-h: 64px; --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
/* the page only moves up and down; a double tap never zooms (pinching still does) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; touch-action: manipulation; scrollbar-color: rgba(43, 33, 27, .28) transparent; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select { font: inherit; color: inherit; }
input, textarea { caret-color: var(--rose); accent-color: var(--rose); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 4px; }
::selection { background: #EBD3CF; color: var(--ink); }
.vh, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 30px; text-decoration: none; }
[hidden] { display: none !important; }
.lock { overflow: hidden; }
.wordmark { display: block; aspect-ratio: 536.3 / 61.8; background: currentColor;
  -webkit-mask: url(../logo/veloura-wordmark-espresso.svg) center / contain no-repeat; mask: url(../logo/veloura-wordmark-espresso.svg) center / contain no-repeat; }
.linkish { padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper); font: 400 15px/1 var(--body); letter-spacing: .02em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .3s, border-color .3s, color .3s; }
.btn:hover { background: var(--rose); border-color: var(--rose); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--big { min-height: 54px; font-size: 16px; }
.btn.is-in { background: var(--sage); border-color: var(--sage); }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- the header ---------- */
.top { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; height: var(--top-h); padding: 0 var(--gutter);
  background: rgba(250, 249, 246, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top__brand { display: block; width: 124px; color: var(--ink); }
.top__nav { display: flex; gap: 26px; justify-content: center; }
.top__nav a { font-size: 14px; letter-spacing: .04em; text-decoration: none; color: var(--ink-2); padding: 8px 0; }
.top__nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -1px currentColor; }
.top__bag { --vc-ring: var(--paper); }

/* ---------- the introduction: short, so the pad starts high ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 32px; max-width: var(--max); margin: 0 auto;
  padding: clamp(16px, 1.7vw, 24px) var(--gutter) 12px; }
.intro__t { margin: 0; font: 300 clamp(40px, 4vw, 56px)/.94 var(--display); letter-spacing: -.02em; }
.intro__s { max-width: 40rem; margin: 10px 0 0; font-size: clamp(15px, 1.15vw, 17px); color: var(--ink-2); }
.intro__facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.tools { display: flex; gap: 8px; }

/* ---------- the kinds, search and sort: at hand while you look ---------- */
.bar { position: sticky; top: var(--top-h); z-index: 40; background: rgba(250, 249, 246, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar__in { display: flex; align-items: center; gap: 24px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.bar__facts { flex: none; display: flex; gap: 18px; margin: 0; font-size: 13px; color: var(--muted); }
/* on a wide screen the delivery line rides in the bar; on a phone it stays under the title */
.intro__facts { display: none; }
.kinds { display: flex; gap: 22px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.kinds::-webkit-scrollbar { display: none; }
.kind { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0; border: 0; background: none; font-size: 14.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 -1.5px transparent; transition: color .25s, box-shadow .25s; }
.kind span { position: relative; top: 1px; font-size: 12px; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.kind:hover { color: var(--ink); }
.kind[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -1.5px var(--ink); }
.search { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); }
.search svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; }
.search input { width: 150px; border: 0; background: none; outline: none; font-size: 16px; }
.search input::placeholder { color: var(--muted); }
.sort select { height: 40px; padding: 0 30px 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234E443D' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") right 10px center / 16px no-repeat;
  font-size: 14px; -webkit-appearance: none; appearance: none; cursor: pointer; }

/* ---------- the light box ---------- */
.table { max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter) 40px; }
.count { margin: 0 0 10px 2px; font-size: 13px; color: var(--muted); }
/* the pad: a white light box, lit evenly from inside, a warm hairline round it */
.pad { position: relative; min-height: 240px; background: var(--card); border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .9), inset 0 0 70px rgba(43, 33, 27, .045), 0 1px 0 rgba(43, 33, 27, .04);
  transition: height .6s var(--ease); }
.pad[aria-busy="true"] { background: var(--card) linear-gradient(100deg, rgba(240, 239, 235, 0) 30%, rgba(240, 239, 235, .9) 50%, rgba(240, 239, 235, 0) 70%) 0 0 / 200% 100%; animation: wait 1.6s linear infinite; }
@keyframes wait { to { background-position: -200% 0; } }

/* a piece lying on the pad: its body at real size, its tag under it */
.pc { position: absolute; left: 0; top: 0; width: var(--cw, auto); display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit;
  transition: transform .62s var(--ease), opacity .32s var(--ease); -webkit-tap-highlight-color: transparent; }
.pc.is-leaving { opacity: 0; pointer-events: none; }
.pc__body { position: relative; flex: none; display: block; transition: transform .45s var(--ease); }
.pc__body img { position: absolute; max-width: none; pointer-events: none; }
.pc__sh { opacity: 0; transition: opacity .35s; }
.pc__body.is-ready .pc__sh { opacity: .55; }
.pc__body img:not(.pc__sh) { opacity: 0; transition: opacity .35s; }
.pc__body.is-ready img { opacity: 1; }
.pc__orn { filter: drop-shadow(1.5px 3px 2.5px rgba(43, 33, 27, .3)); }
/* clear and frosted resin show the dark ground they were photographed on, so those sets lie on a walnut board */
.pc--board .pc__orn { filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, .55)); }
/* a set in any other colour lies together on a pale paper slip */
.pc--set:not(.pc--board) .pc__body { background: #F6F3EE; border-radius: 2px; box-shadow: 0 0 0 1px rgba(43, 33, 27, .07), 1px 4px 10px -4px rgba(43, 33, 27, .22); }
.pc--board .pc__body { border-radius: 4px; background: #20140D url(../v2/img/scene/walnut-col-1024.webp) center / 420px;
  box-shadow: inset 0 0 30px rgba(10, 6, 3, .55), 1px 4px 10px rgba(43, 33, 27, .28); }
.pc--print .pc__body { overflow: hidden; border: 4px solid #fff; border-radius: 3px; box-shadow: 1px 3px 8px rgba(43, 33, 27, .22); }
.pc--print.pc--round .pc__body { border-radius: 50%; }
.pc__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* what a sold piece leaves: its outline */
.pc--sold .pc__body { border: 1.5px dashed #A39A8F; border-radius: 10px; background: rgba(240, 239, 235, .45); }
.pc--sold.pc--round .pc__body { border-radius: 50%; }
a.pc:hover .pc__body, a.pc:focus-visible .pc__body { transform: translateY(-3px); }
a.pc:focus-visible { outline: none; }
a.pc:focus-visible .pc__body { outline: 2px solid var(--rose); outline-offset: 6px; border-radius: 6px; }

/* the paper tag */
.tag { display: grid; justify-items: center; gap: 1px; max-width: max(var(--cw, 66px), 96px); margin-top: 8px; padding: 4px 7px 5px; background: var(--paper); border: 1px solid var(--rule);
  border-radius: 2px; box-shadow: 0 1px 2px rgba(43, 33, 27, .07); text-align: center; }
.tag__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px; line-height: 1.22; color: var(--ink-2); }
.tag__price { font: 400 17px/1.05 var(--display); font-variant-numeric: lining-nums; color: var(--ink); }
.tag__ask, .tag__sold { font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.tag__set { font-size: 11px; line-height: 1.2; color: var(--muted); }
.tag__bag { display: none; font-size: 11px; line-height: 1.3; color: var(--sage); }
.pc.is-in .tag__bag { display: block; }

/* a kind's note, lying among its pieces */
.note { position: absolute; left: 0; top: 0; width: 156px; min-height: 74px; padding: 11px 14px 12px; background: #fff; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(43, 33, 27, .12), 0 6px 16px -8px rgba(43, 33, 27, .25); transform-origin: 30% 50%;
  transition: transform .62s var(--ease), opacity .32s var(--ease); }
.note.is-leaving { opacity: 0; }
.note__t { margin: 0; font: 400 22px/1.05 var(--display); color: var(--ink); }
.note__s { margin: 4px 0 0; font-size: 12px; color: var(--muted); }

/* the loupe (computers): the resin under the pointer, magnified */
.loupe { position: fixed; z-index: 60; left: 0; top: 0; width: 168px; height: 168px; border-radius: 50%; pointer-events: none; background: #fff no-repeat;
  box-shadow: 0 0 0 1px rgba(43, 33, 27, .16), 0 0 0 5px rgba(255, 255, 255, .9), 0 18px 40px -16px rgba(43, 33, 27, .45); opacity: 0; transition: opacity .2s; }
.loupe.on { opacity: 1; }

.empty { padding: 60px 0; text-align: center; color: var(--ink-2); }
.empty__t { margin: 0 0 6px; font: 400 28px/1.1 var(--display); color: var(--ink); }

/* ---------- made for you: on her linen ---------- */
.custom { margin: 30px 0 0; padding: clamp(40px, 6vw, 80px) var(--gutter); background: #E4DBD0 url(../v3/img/linen.webp) 0 0 / 120px 120px; }
.custom__in { max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto; }
.custom__t { max-width: 15ch; margin: 0 0 12px; font: 300 clamp(34px, 4.4vw, 60px)/1 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.custom p { max-width: 34rem; margin: 0; color: var(--ink-2); }
.custom__go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.custom .btn--line { background: rgba(255, 255, 255, .55); }
.custom .btn--line:hover { background: var(--ink); color: var(--paper); }
.foot { display: grid; justify-items: center; gap: 12px; padding: 54px var(--gutter) 40px; background: var(--night); color: #F4EDE2; text-align: center; }
.foot .wordmark { width: min(280px, 60vw); }
.foot p { margin: 0; font: italic 400 20px/1.2 var(--display); color: rgba(244, 237, 226, .7); }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; }
.foot nav a { color: rgba(244, 237, 226, .85); text-decoration: none; }
.foot small { color: rgba(244, 237, 226, .64); font-size: 12px; }

/* ---------- one piece, up close ---------- */
.pv { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.pv__veil { position: absolute; inset: 0; background: rgba(28, 21, 17, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s; }
.pv.on .pv__veil { opacity: 1; }
.pv__panel { position: relative; display: grid; grid-template-columns: min(calc(min(860px, 100svh - 48px) * .8), 62%) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); width: min(1100px, 100%); height: min(860px, calc(100svh - 48px));
  border-radius: 8px; background: var(--card); box-shadow: 0 50px 120px -40px rgba(30, 20, 12, .6); overflow: hidden; outline: none;
  opacity: 0; transform: translateY(24px) scale(.985); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.pv.on .pv__panel { opacity: 1; transform: none; }
.pv__x { position: absolute; z-index: 3; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); cursor: pointer; }
.pv__x svg, .pv__thumbs svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.pv__media { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 0; background: var(--paper-2); }
.pv__stage { position: relative; flex: none; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; display: flex; scroll-snap-type: x mandatory; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.pv__stage::-webkit-scrollbar { display: none; }
.pv__stage img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; transition: opacity .3s; }
.pv__stage img.is-swap { opacity: .25; }
.pv__thumbs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: none; }
.pv__thumbs button { flex: none; width: 56px; height: 70px; padding: 0; border: 0; border-radius: 4px; overflow: hidden; cursor: pointer; box-shadow: 0 0 0 1px var(--line); opacity: .7; }
.pv__thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.pv__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pv__info { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: clamp(26px, 3.4vw, 46px); container-type: inline-size; }
.pv__kind { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.pv__name { margin: 0; padding-right: 40px; font: 400 clamp(32px, 3.2vw, 46px)/1.02 var(--display); letter-spacing: -.015em; }
.pv__price { margin: 10px 0 0; font: 400 28px/1 var(--display); font-variant-numeric: lining-nums; }
.pv__price small { font: 400 13px/1 var(--body); color: var(--muted); }
.pv__note { margin: 16px 0 0; color: var(--ink-2); }
.pv__colours { margin-top: 22px; }
.pv__label { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); }
.pv__label b { font-weight: 400; color: var(--ink); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; box-shadow: 0 0 0 1px var(--line-2); transition: box-shadow .25s, transform .25s var(--ease); }
.swatches button img { width: 100%; height: 100%; border-radius: 50%; }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--ink); }
@media (hover: hover) { .swatches button:hover { transform: scale(1.08); } }
.pv__buy { display: flex; gap: 10px; margin-top: 24px; }
.pv__buy .btn { flex: 1; min-width: 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; }
.qty button { display: grid; place-items: center; width: 46px; height: 52px; border: 0; background: none; cursor: pointer; }
.qty svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.qty button:disabled { opacity: .3; }
.qty span { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.pv__ask { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.facts { display: grid; margin: 26px 0 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { flex: none; color: var(--muted); white-space: nowrap; }
.facts dd { margin: 0; text-align: right; }
.pv__ship { display: grid; gap: 6px; margin-top: 18px; font-size: 13.5px; color: var(--ink-2); }
.pv__ship b { font-weight: 500; color: var(--ink); }
.pv__more { margin-top: 30px; }
.pv__more h3 { margin: 0 0 6px; font: 400 22px/1.1 var(--display); }
/* also on her table: small pieces in a row, each with its name and price */
.minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; margin: 0; padding: 0; list-style: none; }
.mini { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.mini__pic { grid-row: 1 / 3; display: grid; place-items: center; width: 64px; height: 64px; background: var(--card); }
.mini__cut { max-width: 60px; max-height: 60px; object-fit: contain; filter: drop-shadow(1px 2px 2px rgba(43, 33, 27, .22)); }
.mini__ph { width: 60px; height: 60px; object-fit: cover; border-radius: 3px; }
.mini__name { align-self: end; font: 400 17px/1.1 var(--display); }
.mini__price { align-self: start; font: 400 15px/1.2 var(--display); font-variant-numeric: lining-nums; }
.mini__price small { font: 400 12px/1 var(--body); color: var(--muted); }
@container (max-width: 420px) { .minis { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 760px) {
  :root { --top-h: 56px; }
  .top { grid-template-columns: auto 1fr auto; gap: 10px; }
  .top__brand { width: 104px; }
  .top__nav { gap: 16px; justify-content: flex-end; }
  .top__nav a:first-child { display: none; }
  .top__nav a { font-size: 13.5px; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-bottom: 14px; }
  .tools { width: 100%; }
  .bar__in { padding: 0; }
  .bar__facts { display: none; }
  .intro__facts { display: flex; }
  .intro__more { display: none; }   /* one line under the title on a phone */
  .kinds { gap: 18px; padding: 0 var(--gutter); }
  .search { flex: 1; }
  .search input { width: 100%; }
  .kind { font-size: 14px; }
  .table { padding: 10px 10px 30px; }
  .pad { border-radius: 4px; }
  .minis { grid-template-columns: minmax(0, 1fr); }
  /* the piece fills the screen, its photos on top and the button always in reach */
  .pv { padding: 0; place-items: end stretch; }
  .pv__panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); width: 100%; height: 100%; max-height: 100%; border-radius: 0; transform: translateY(40px); overflow-y: auto; }
  .pv__stage { max-height: 56svh; }
  .pv__thumbs { position: static; }
  .pv__media { min-width: 0; }   /* the swatch strip scrolls inside the panel instead of widening it */
  .pv__media .pv__colours { margin: 0; padding: 12px var(--gutter) 6px; background: var(--card); }
  .pv__media .swatches { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
  .pv__media .swatches button { flex: none; }
  .pv__info { overflow: visible; padding: 22px 16px calc(110px + env(safe-area-inset-bottom)); }
  .pv__buy { position: fixed; z-index: 4; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .pv__x { position: fixed; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } }
