/* Made by scripts/wp-theme.mjs from the site's own stylesheets. Do not edit: change the source and run npm run wp:build. */
/* the two typefaces, served by the theme itself */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk Variable"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/hanken-grotesk.woff2") format("woff2-variations"); }

/* LJP Perfumes. A light, warm storefront: the house's photographs on their own white, dark type, one gold. */

:root {
  /* the display voice: a soft modern serif in sentence case, set large and tight, with an italic for feeling. The text voice does everything small. */
  --display: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --text: "Hanken Grotesk Variable", "Helvetica Neue", Arial, sans-serif;

  --ground: #fbfaf7; /* the page: a warm white */
  --panel: #f3f0ea; /* what a photograph is laid on. Photographs are multiplied onto it, so their white becomes it */
  --panel-up: #ebe6dc; /* the same, under the pointer */
  --ink: #17120e; /* type, and the solid of every button */
  --soft: color-mix(in oklab, var(--ink) 68%, var(--ground)); /* second-rank type: 6:1 on the ground */
  --rule: color-mix(in oklab, var(--ink) 15%, transparent);
  --gold: #8a6a2f; /* the one accent: what is chosen, what is under the pointer. 4.7:1 on the ground */

  /* the bag and the pinned buy bar are the store's two dark sheets, with ivory type */
  --paper: #17120e;
  --paper-ink: #f1e9da;
  --gold-pale: #d8c49a; /* the ivory button under the pointer, on a dark sheet */

  --label: 500 0.75rem/1.2 var(--text);
  --label-track: 0.2em;

  --gutter: clamp(1.25rem, 4.2vw, 4.5rem);
  --bar: 4.5rem; /* the header's height */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

* { box-sizing: border-box; }
/* a phone must not enlarge text on its own (it does so inside wide, sideways-scrolling rows, and breaks their layout) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html { background: var(--ground); scrollbar-color: color-mix(in oklab, var(--ink) 34%, var(--ground)) var(--ground); scroll-padding-top: calc(var(--bar) + 1rem); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--ground);
  color: var(--ink);
  font: 400 1rem/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
button, select, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; border-radius: 0; cursor: pointer; touch-action: manipulation; }
img { display: block; max-width: 100%; }

::selection { background: var(--gold); color: var(--ground); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
input { caret-color: var(--gold); }

.label { font: var(--label); letter-spacing: var(--label-track); text-transform: uppercase; }
.figures { font-variant-numeric: tabular-nums lining-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: fixed; left: 1rem; top: 1rem; z-index: 100; padding: 0.9rem 1.2rem; background: var(--paper); color: var(--paper-ink); transform: translateY(-300%); }
.skip:focus-visible { transform: none; }

/* ---------- content protection ----------
   Pictures cannot be pointed at, picked up or selected, so the browser has nothing to offer for them: no
   "open image in new tab", no dragging out to the desktop, no long-press sheet on a phone. A picture that
   leads somewhere sits inside a link, and the link takes the click. (MediaGuard.tsx is the second layer.
   Neither stops a screenshot.) */
img, video, canvas, picture {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* ---------- the house's mark ----------
   The supplied monogram, drawn as a mask so it takes the colour of the type around it.
   public/brand/ljp-logo.webp is 1200 by 1008. */
.ljp-mark {
  display: block;
  height: var(--logo-h, 2.5rem);
  aspect-ratio: 1200 / 1008;
  background: currentColor;
  -webkit-mask: url("brand/ljp-logo.webp") center / contain no-repeat;
  mask: url("brand/ljp-logo.webp") center / contain no-repeat;
  flex: none;
}

/* one page gives way to the next with a short cross-fade, where the browser can */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}


/* ===== Bag (.bg-) ===== */
/* The bag: a dark sheet drawn in from the edge of the screen. --paper and --paper-ink are its ground and type. */

.bg-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(30rem, 100vw);
  height: 100dvh;
  max-height: none;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: -1.5rem 0 3rem rgb(23 18 14 / 0.3);
  transform: translateX(104%);
  transition: transform 520ms var(--ease), overlay 520ms allow-discrete, display 520ms allow-discrete;
}
.bg-drawer[open] { transform: none; }
@starting-style { .bg-drawer[open] { transform: translateX(104%); } }
.bg-drawer::backdrop { background: rgb(12 9 7 / 0); transition: background 520ms var(--ease), overlay 520ms allow-discrete, display 520ms allow-discrete; }
.bg-drawer[open]::backdrop { background: rgb(23 18 14 / 0.46); }
@starting-style { .bg-drawer[open]::backdrop { background: rgb(12 9 7 / 0); } }
.bg-drawer ::selection { background: var(--paper-ink); color: var(--paper); }

.bg-sheet { display: grid; grid-template-rows: auto 1fr auto; height: 100%; }
.bg-head { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 1.75rem; border-bottom: 1px solid color-mix(in oklab, var(--paper-ink) 22%, transparent); }
.bg-title { font: 400 1.75rem/1 var(--display); letter-spacing: -0.01em; }
.bg-close { min-height: 2.75rem; padding: 0 0.25rem; text-decoration: underline; text-underline-offset: 0.4em; }
.bg-close:hover { text-decoration-thickness: 2px; }

.bg-empty { display: grid; align-content: start; gap: 1.25rem; padding: 2.5rem 1.75rem; font-size: 1.0625rem; }
.bg-empty a { justify-self: start; }

.bg-lines { overflow-y: auto; overscroll-behavior: contain; padding: 0 1.75rem; }
.bg-line { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 1.125rem; padding: 1.5rem 0; border-bottom: 1px solid color-mix(in oklab, var(--paper-ink) 22%, transparent); }
.bg-chip { display: grid; place-items: center; height: 4.5rem; background: #fff; }
.bg-chip img { width: 100%; height: 100%; object-fit: contain; }
.bg-what { display: grid; align-content: start; gap: 0.25rem; }
.bg-name { font: 400 1.3125rem/1.2 var(--display); letter-spacing: -0.01em; }
.bg-meta { font-size: 0.875rem; color: color-mix(in oklab, var(--paper-ink) 76%, var(--paper)); }
.bg-qty { display: inline-flex; align-items: center; justify-self: start; margin-top: 0.5rem; border: 1px solid color-mix(in oklab, var(--paper-ink) 46%, transparent); }
.bg-qty button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; }
.bg-qty button:hover:not(:disabled) { background: var(--paper-ink); color: var(--paper); }
.bg-qty button:disabled { opacity: 0.38; cursor: default; }
.bg-qty svg { width: 0.75rem; height: 0.75rem; fill: none; stroke: currentColor; stroke-width: 1.25; }
.bg-qty span { min-width: 2rem; text-align: center; font-size: 1rem; }
.bg-cost { display: grid; align-content: space-between; justify-items: end; font-size: 1rem; }
.bg-remove { min-height: 2.75rem; font-size: 0.875rem; text-decoration: underline; text-underline-offset: 0.3em; color: color-mix(in oklab, var(--paper-ink) 76%, var(--paper)); }
.bg-remove:hover { color: var(--paper-ink); }

.bg-foot { display: grid; gap: 1rem; padding: 1.5rem 1.75rem calc(1.5rem + env(safe-area-inset-bottom)); border-top: 1px solid color-mix(in oklab, var(--paper-ink) 22%, transparent); }
.bg-total { display: flex; align-items: baseline; justify-content: space-between; font-size: 1.25rem; }
.bg-checkout { height: 3.625rem; background: var(--paper-ink); color: var(--paper); font: var(--label); font-size: 0.8125rem; letter-spacing: var(--label-track); text-transform: uppercase; transition: background 200ms var(--ease); }
.bg-checkout:hover { background: var(--gold-pale); }
.bg-checkout:active { transform: scale(0.99); }
.bg-demo { font-size: 0.875rem; color: color-mix(in oklab, var(--paper-ink) 76%, var(--paper)); }

@media (prefers-reduced-motion: reduce) {
  .bg-drawer, .bg-drawer::backdrop { transition: none; }
}


/* ===== Buy (.by-) ===== */
/* The buy button: solid dark with light type. Under the pointer it turns gold. */

.by-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(23rem, 100%);
  height: 3.625rem;
  padding: 0 1.5rem;
  background: var(--ink);
  color: var(--ground);
  font: 600 0.8125rem/1 var(--text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 220ms var(--ease), scale 160ms var(--ease);
}
.by-buy > span:last-child { letter-spacing: 0.06em; font-size: 1rem; }
.by-short { display: none; }
.by-buy:hover { background: var(--gold); }
.by-buy:active { scale: 0.985; }
.by-buy:focus-visible { outline-offset: 4px; }
.by-tile { width: 100%; height: 3rem; padding: 0 1rem; font-size: 0.75rem; letter-spacing: 0.16em; }
.by-tile > span:last-child { font-size: 0.875rem; }
@media (max-width: 560px) {
  .by-tile { gap: 0.5rem; padding: 0 0.75rem; }
  .by-tile .by-long { display: none; }
  .by-tile .by-short { display: inline; }
}

/* the pinned bar: a dark sheet, so it reads over anything it passes */
.by-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 0 -0.75rem 2rem rgb(23 18 14 / 0.18);
  translate: 0 110%;
  visibility: hidden;
  transition: translate 520ms var(--ease), visibility 0s 520ms;
}
.by-bar[data-out] { translate: 0 0; visibility: visible; transition-delay: 0s; }
.by-barName { display: grid; gap: 0.2rem; font: 400 1.25rem/1.15 var(--display); letter-spacing: -0.01em; }
.by-barMeta { font: 400 0.8125rem/1.2 var(--text); letter-spacing: 0; text-transform: none; }
.by-bar .by-buy { width: auto; min-width: min(17rem, 54vw); height: 3rem; background: var(--paper-ink); color: var(--paper); }
.by-bar .by-buy:hover { background: var(--gold-pale); }
.by-bar .by-buy:focus-visible { outline-color: var(--paper-ink); }
@media (max-width: 520px) { .by-barMeta { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .by-buy, .by-bar { transition: none; }
}


/* ===== Finder (.fd-) ===== */
/* The finder: a pop-up window with one question at a time. See Finder.tsx. */

.fd-finder {
  width: min(46rem, calc(100vw - 2rem));
  height: min(41rem, calc(100dvh - 2rem));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: var(--ground);
  color: var(--ink);
  box-shadow: 0 2rem 5rem rgb(23 18 14 / 0.28);
  opacity: 0;
  transition: opacity 320ms var(--ease), overlay 320ms allow-discrete, display 320ms allow-discrete;
}
.fd-finder[open] { opacity: 1; }
@starting-style { .fd-finder[open] { opacity: 0; } }
.fd-finder::backdrop { background: rgb(23 18 14 / 0); transition: background 320ms var(--ease), overlay 320ms allow-discrete, display 320ms allow-discrete; }
.fd-finder[open]::backdrop { background: rgb(23 18 14 / 0.5); }
@starting-style { .fd-finder[open]::backdrop { background: rgb(23 18 14 / 0); } }
@media (max-width: 640px) {
  .fd-finder { width: 100vw; height: 100dvh; }
}

.fd-sheet { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.fd-head { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 0.5rem clamp(1.25rem, 4vw, 2.5rem) 0; color: var(--soft); }
.fd-close { min-height: 2.75rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.5em; }
.fd-close:hover, .fd-link:hover { color: var(--gold); }
/* how far along: one thin line that fills */
.fd-bar { grid-column: 1 / -1; height: 2px; background: var(--rule); }
.fd-bar span { display: block; height: 100%; background: var(--ink); transform-origin: left; transition: scale 420ms var(--ease); }

.fd-body { display: grid; align-content: start; gap: clamp(1.25rem, 3vw, 2rem); padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.5rem); overflow-y: auto; overscroll-behavior: contain; }
.fd-ask { font: 400 clamp(1.75rem, 4.4vw, 2.75rem) / 1.08 var(--display); letter-spacing: -0.01em; text-wrap: balance; }

/* answers: a tidy list of the same button, one to a row on a phone and two across on anything wider */
.fd-options { display: grid; gap: 0.625rem; margin: 0; padding: 0; list-style: none; }
.fd-options > li, .fd-likes > li { display: grid; }
.fd-option { display: grid; gap: 0.2rem; align-content: center; min-height: 4.25rem; padding: 0.85rem 1.25rem; background: var(--panel); text-align: left; box-shadow: inset 0 0 0 1px transparent; transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.fd-option:hover, .fd-like:hover { background: var(--panel-up); box-shadow: inset 0 0 0 1px var(--ink); }
.fd-option[aria-pressed="true"], .fd-like[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.fd-short { min-height: 5.5rem; text-align: center; justify-items: center; }
.fd-optionName { font: 400 1.3125rem/ 1.2 var(--display); letter-spacing: -0.01em; }
.fd-optionSay { display: block; font-size: 0.875rem; line-height: 1.4; color: var(--soft); }
@media (min-width: 641px) {
  .fd-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fd-options.fd-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* an odd one out at the end takes the whole row, so the list never ends on a gap */
  .fd-options:not(.fd-three) > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* the families, each with a photograph of what it smells of */
.fd-likes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; margin: 0; padding: 0; list-style: none; }
.fd-like { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 0.75rem; align-items: center; align-content: center; padding: 0.6rem 0.9rem 0.6rem 0.6rem; background: var(--panel); text-align: left; box-shadow: inset 0 0 0 1px transparent; transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.fd-likes > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.fd-picture { grid-row: 1 / 3; display: block; aspect-ratio: 1 / 1; }
.fd-picture img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.fd-like .fd-optionName { align-self: end; }
.fd-like .fd-optionSay { align-self: start; }
@media (max-width: 640px) { .fd-like .fd-optionSay { display: none; } .fd-like .fd-optionName { grid-row: 1 / 3; align-self: center; } }

/* the answer: one fragrance, large, with the way to buy it */
.fd-match { display: grid; gap: 1rem; background: var(--panel); }
.fd-matchShot { display: block; aspect-ratio: 1 / 1; max-height: 16rem; justify-self: center; }
.fd-matchShot img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.fd-matchSay { display: grid; gap: 0.6rem; align-content: center; padding: 0 1.25rem 1.5rem; }
.fd-matchName { font: 400 clamp(1.5rem, 3.4vw, 2.125rem) / 1.05 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.fd-matchFeeling { font: italic 400 1.25rem / 1.25 var(--display); }
.fd-matchWhy { margin-bottom: 0.4rem; font-size: 0.875rem; color: var(--soft); }
.fd-link { display: inline-flex; align-items: center; justify-self: start; min-height: 2.75rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.5em; transition: color 200ms var(--ease); }
@media (min-width: 641px) {
  .fd-match { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 0; }
  .fd-matchShot { justify-self: stretch; aspect-ratio: auto; height: 14.5rem; max-height: none; min-width: 0; }
  .fd-matchSay { padding: 1.5rem 1.75rem 1.5rem 0.5rem; }
}
.fd-also { margin-top: 1.5rem; color: var(--soft); }
.fd-others { display: grid; gap: 0.625rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.fd-other { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 0.75rem; align-items: center; padding-right: 0.75rem; background: var(--panel); text-decoration: none; transition: background-color 200ms var(--ease); }
.fd-other:hover { background: var(--panel-up); }
.fd-otherShot { display: block; aspect-ratio: 1 / 1; }
.fd-otherShot img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.fd-otherName { display: block; font: 400 1.125rem/ 1.25 var(--display); letter-spacing: -0.01em; }
@media (min-width: 641px) { .fd-others { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fd-fine { margin-top: 1.25rem; font-size: 0.875rem; color: var(--soft); }

.fd-foot { display: flex; justify-content: space-between; align-items: center; padding: 0.25rem clamp(1.25rem, 4vw, 2.5rem) calc(0.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); }

@media (prefers-reduced-motion: no-preference) {
  .fd-body { animation: fd-arrive 360ms var(--ease) both; }
}
@keyframes fd-arrive { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .fd-finder, .fd-finder::backdrop, .fd-bar span, .fd-option, .fd-like, .fd-other, .fd-link { transition: none; }
}


/* ===== Edit (.ed-) ===== */
/* The home page as a magazine: very large type, pictures that overlap it, and no cards. See Edit.tsx. */

.ed-add { display: inline-flex; align-items: center; gap: 0.4em; min-height: 2.75rem; border-bottom: 1px solid var(--ink); transition: color 200ms var(--ease), border-color 200ms var(--ease); }
.ed-add:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- the opening: one campaign banner at a time, edge to edge ---------- */
.ed-opening { position: relative; display: grid; align-items: center; height: calc(100svh - var(--bar)); min-height: 34rem; max-height: 62vw; padding: 0 var(--gutter); overflow: clip; }
.ed-scenes { position: absolute; inset: 0; z-index: 0; display: grid; }
.ed-say, .ed-foot { z-index: 1; }
.ed-scenes img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; opacity: 0; transition: opacity 1100ms var(--ease); }
.ed-scenes img[data-on] { opacity: 1; }
/* the quiet side of every picture is lifted a little towards the page, so the words always have their contrast */
.ed-scenes::after { content: ""; grid-area: 1 / 1; z-index: 1; background: linear-gradient(90deg, color-mix(in oklab, var(--ground) 82%, transparent), color-mix(in oklab, var(--ground) 55%, transparent) 34%, transparent 62%); }
.ed-say { position: relative; display: grid; justify-items: start; gap: 0.75rem; max-width: min(46rem, 58%); }
.ed-name { font: 400 clamp(3.5rem, 9.5vw, 9.5rem) / 0.9 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
.ed-name a { text-decoration: none; }
.ed-feeling { font: italic 400 clamp(1.5rem, 2.6vw, 2.25rem) / 1.2 var(--display); }
.ed-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; margin-top: 1rem; }
.ed-buy > button { width: min(21rem, 100%); }
.ed-more { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: underline; text-decoration-color: var(--ink); text-underline-offset: 0.5em; transition: color 200ms var(--ease); }
.ed-more:hover { color: var(--gold); }
.ed-foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(1rem, 3vh, 2rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 0.5rem 2.5rem; }
.ed-turns { display: flex; margin: 0; padding: 0; list-style: none; }
.ed-turns button { min-width: 2.75rem; min-height: 2.75rem; color: color-mix(in oklab, var(--ink) 62%, transparent); border-bottom: 1px solid color-mix(in oklab, var(--ink) 30%, transparent); transition: color 200ms var(--ease), border-color 200ms var(--ease); }
.ed-turns button:hover { color: var(--ink); }
.ed-turns button[aria-current] { color: var(--ink); border-color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .ed-say { animation: ed-arrive 900ms var(--ease) both; }
}
@keyframes ed-arrive { from { opacity: 0; translate: 0 0.75rem; } }

/* ---------- the occasions: a carousel of moments, its heading above it ---------- */
.ed-occasions { display: grid; gap: clamp(1rem, 2vw, 1.5rem); padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--rule); }
.ed-occHead { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: 0 var(--gutter); }
.ed-occTitle { font: 400 clamp(2rem, 4.2vw, 3.5rem) / 1 var(--display); letter-spacing: -0.02em; }
.ed-occTurn { display: flex; gap: 0.5rem; }
.ed-occTurn button { display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid color-mix(in oklab, var(--ink) 30%, transparent); transition: background-color 200ms var(--ease), color 200ms var(--ease), opacity 200ms var(--ease); }
.ed-occTurn button:hover:not(:disabled) { background: var(--ink); color: var(--ground); }
.ed-occTurn button:disabled { opacity: 0.3; cursor: default; }
.ed-occTurn svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.4; }
/* the row is drawn across with a finger, a trackpad or the two buttons, and settles on a picture's edge */
.ed-words { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(13.5rem, 21.5vw, 18rem); gap: clamp(0.75rem, 1.4vw, 1.25rem); margin: 0; padding: 0 var(--gutter); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.ed-words::-webkit-scrollbar { display: none; }
.ed-words > li { scroll-snap-align: start; }
.ed-words a { display: grid; gap: 0.2rem; text-decoration: none; }
.ed-shot { display: block; aspect-ratio: 5 / 6; margin-bottom: 0.6rem; overflow: clip; background: var(--panel); }
.ed-thumb { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: scale 900ms var(--ease); }
.ed-word { font: 400 clamp(1.625rem, 2.4vw, 2.25rem) / 1.05 var(--display); letter-spacing: -0.015em; transition: color 200ms var(--ease); }
.ed-wordSay { font-size: 0.875rem; line-height: 1.4; color: var(--soft); }
.ed-words a:hover .ed-word { color: var(--gold); }
.ed-words a:hover .ed-thumb { scale: 1.045; }
@media (max-width: 699px) {
  .ed-words { grid-auto-columns: 68vw; }
  .ed-occTurn { display: none; }
}

/* ---------- the spread ---------- */
.ed-spread { padding: clamp(3rem, 8vw, 6.5rem) var(--gutter) 0; }
.ed-spread > h2 { margin-bottom: 1rem; color: var(--soft); }
.ed-pair { display: grid; gap: 0; margin-bottom: 2.5rem; }
.ed-pairShot { display: block; }
.ed-pairShot img { width: 100%; height: auto; mix-blend-mode: multiply; transition: scale 900ms var(--ease); }
.ed-pairSay { display: grid; justify-items: start; gap: 0.5rem; }
.ed-pairName { font: 400 clamp(2.75rem, 8vw, 8rem) / 0.92 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.ed-pairName a { text-decoration: none; transition: color 200ms var(--ease); }
.ed-pairName a:hover { color: var(--gold); }
.ed-pairFeeling { margin-bottom: 0.75rem; font: italic 400 clamp(1.25rem, 2.2vw, 1.9rem) / 1.2 var(--display); color: var(--soft); }
.ed-all { padding: 3rem 0 0; text-align: center; font: italic 400 clamp(2rem, 5vw, 4rem) / 1 var(--display); }
.ed-all a { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--gold); text-underline-offset: 0.18em; }
.ed-all a:hover { color: var(--gold); }
@media (min-width: 900px) {
  .ed-pair { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; margin-bottom: -3rem; }
  .ed-pairShot { grid-column: 1 / 7; grid-row: 1; }
  .ed-pairSay { grid-column: 7 / 13; grid-row: 1; }
  .ed-pair:nth-of-type(even) .ed-pairShot { grid-column: 7 / 13; }
  .ed-pair:nth-of-type(even) .ed-pairSay { grid-column: 2 / 7; justify-items: end; text-align: right; }
  .ed-pair:hover .ed-pairShot img { scale: 1.03; }
  .ed-all { padding-top: 7rem; }
}

@media (max-width: 899px) {
  /* on a phone the picture stands above the words, cropped to the side the bottle is on */
  .ed-opening { display: block; height: auto; min-height: 0; max-height: none; padding: 0 0 1.5rem; }
  .ed-scenes { position: relative; inset: auto; aspect-ratio: 4 / 5; }
  .ed-scenes img { object-position: 100% 50%; }
  .ed-scenes::after { display: none; }
  .ed-say { max-width: none; padding: 1.5rem var(--gutter) 0; }
  .ed-name { font-size: clamp(3.25rem, 16vw, 6rem); }
  .ed-buy > button { width: 100%; }
  .ed-foot { position: static; padding: 1rem var(--gutter) 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ed-scenes img, .ed-more, .ed-word, .ed-thumb, .ed-occTurn button, .ed-pairShot img, .ed-add, .ed-turns button { transition: none; }
}

/* ---------- motion as the page is scrolled ----------
   Tied to the scroll itself where the browser can do that (animation-timeline), and simply absent where it
   cannot: nothing is ever hidden waiting for a script. A multiplied photograph is moved and faded itself, never
   through a wrapper, or it would stop melting into the page. */
@media (prefers-reduced-motion: no-preference) {
  /* each banner drifts very slowly towards the viewer for as long as it is shown */
  .ed-scenes img[data-on] { animation: ed-drift 9s var(--ease) both; }
  @supports (animation-timeline: view()) {
    /* a bottle rises into place as it arrives and keeps travelling a little slower than the page */
    .ed-pairShot img { animation: ed-travel linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    /* its name comes in from the side it sits on, and its line just after */
    .ed-pairName { animation: ed-fromRight linear both; animation-timeline: view(); animation-range: entry 0% cover 32%; }
    .ed-pair:nth-of-type(even) .ed-pairName { animation-name: ed-fromLeft; }
    .ed-pairFeeling, .ed-pairSay > p:first-child { animation: ed-appear linear both; animation-timeline: view(); animation-range: entry 20% cover 36%; }
    .ed-occTitle { animation: ed-appear linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
    .ed-all a { animation: ed-appear linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  }
}
@keyframes ed-drift { from { scale: 1.07; } }
@keyframes ed-travel { 0% { opacity: 0; translate: 0 5rem; } 22% { opacity: 1; } 100% { translate: 0 -3.5rem; } }
@keyframes ed-fromRight { from { opacity: 0; translate: 4rem 0; } }
@keyframes ed-fromLeft { from { opacity: 0; translate: -4rem 0; } }
@keyframes ed-appear { from { opacity: 0; translate: 0 1.25rem; } }

/* ---------- the opening as a slider: arrows, and a drag or a swipe across it ---------- */
/* a sideways swipe is the slider's; an up-and-down one still scrolls the page */
.ed-opening { touch-action: pan-y; }
.ed-opening[data-grab] { cursor: grabbing; user-select: none; }
.ed-arrows { display: flex; gap: 0.5rem; }
.ed-arrows button { display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid color-mix(in oklab, var(--ink) 34%, transparent); background: color-mix(in oklab, var(--ground) 55%, transparent); transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.ed-arrows button:hover { background: var(--ink); color: var(--ground); }
.ed-arrows svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.4; }
@media (min-width: 900px) { .ed-foot .ed-arrows { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) { .ed-arrows button { transition: none; } }

/* ---------- on a phone the collection is a row, swiped sideways, not six screens to scroll past ---------- */
@media (max-width: 899px) {
  .ed-spread { padding-inline: 0; }
  .ed-spread > h2, .ed-all { padding-inline: var(--gutter); }
  .ed-pairs { display: grid; grid-auto-flow: column; grid-auto-columns: 78vw; gap: 1rem; padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .ed-pairs::-webkit-scrollbar { display: none; }
  .ed-pair { scroll-snap-align: start; margin-bottom: 0; align-content: start; }
  .ed-pairName { font-size: clamp(2rem, 9.5vw, 3.25rem); }
  /* inside a sideways row the up-and-down scroll motion has nothing to follow */
  .ed-pairShot img, .ed-pairName, .ed-pairFeeling, .ed-pairSay > p:first-child { animation: none; }
  .ed-all { padding-top: 2rem; }
}

/* ---------- sideways rows on real phones ----------
   A row that scrolls sideways must never scroll up and down inside itself, and its text must never be cut.
   Every tile keeps room for two lines under its name whether its line needs them or not, so all tiles are one
   height however a phone wraps or enlarges the text; the row itself is closed to up-and-down scrolling and
   has a little room under it. */
.ed-words, .ed-pairs { overflow-y: hidden; padding-bottom: 0.75rem; align-items: start; touch-action: pan-x pan-y; }
.ed-wordSay { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-height: 2.8em; }
.ed-words a { align-content: start; }

/* ---------- the opening on a phone: one picture, everything inside it ----------
   The banner fills the screen under the header. The bottle is lifted into the upper part of it; the lower
   part fades into the page's own colour, and the name, the feeling, the way to buy and the link sit there, on
   the picture. The arrows stand at the picture's two edges, level with the bottle; the numbers and the finder
   run along its foot. Nothing is left underneath to scroll to. */
@media (max-width: 899px) {
  .ed-opening { position: relative; display: grid; align-items: end; height: calc(100svh - var(--bar)); min-height: 35rem; max-height: 56rem; padding: 0; }
  .ed-scenes { position: absolute; inset: 0; aspect-ratio: auto; }
  /* the picture keeps to the upper four fifths, so the whole bottle is seen above the words; under it is the page's own colour */
  .ed-scenes { background: var(--ground); align-items: start; }
  .ed-scenes img { height: 72%; object-position: 100% 50%; }
  /* the fade must cover the whole banner, not just the picture's own height */
  .ed-scenes::after { display: block; align-self: stretch; background: linear-gradient(0deg, var(--ground) 0%, var(--ground) 33%, color-mix(in oklab, var(--ground) 70%, transparent) 39%, transparent 48%); }
  .ed-say { z-index: 1; gap: 0.4rem; max-width: none; padding: 0 var(--gutter) 4.25rem; }
  .ed-name { font-size: clamp(2.75rem, 13vw, 4rem); line-height: 0.92; }
  .ed-feeling { font-size: 1.25rem; }
  .ed-buy { display: grid; gap: 0; margin-top: 0.6rem; }
  .ed-buy > button { width: 100%; }
  .ed-buy .ed-more { justify-self: start; }
  /* the foot's three things are placed on the picture one by one */
  .ed-foot { position: static; display: contents; }
  .ed-turns { position: absolute; left: calc(var(--gutter) - 0.5rem); bottom: 0.6rem; z-index: 1; }
  .ed-turns button { min-width: 2.1rem; border-bottom-color: transparent; }
  .ed-foot > .ed-more { position: absolute; right: var(--gutter); bottom: 0.6rem; z-index: 1; }
  .ed-arrows { position: absolute; inset: 33% 0.75rem auto; z-index: 1; display: flex; justify-content: space-between; margin: 0; pointer-events: none; }
  .ed-arrows button { pointer-events: auto; width: 2.75rem; height: 2.75rem; border-color: color-mix(in oklab, var(--ink) 22%, transparent); background: color-mix(in oklab, var(--ground) 72%, transparent); backdrop-filter: blur(6px); }
  .ed-aside { display: none; }
}
/* a phone held sideways, or a very short one: the picture keeps to a sensible height and the words stay inside it */
@media (max-width: 899px) and (max-height: 620px) {
  .ed-opening { height: auto; min-height: 30rem; }
  .ed-name { font-size: clamp(2.25rem, 9vw, 3rem); }
}


/* ===== ProductPage (.pp-) ===== */
/* One fragrance: pictures on the left, the way to buy and what it is on the right. */

.pp-page { padding: 0 var(--gutter); }

.pp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; padding: 1rem 0; color: var(--soft); }
.pp-crumbs a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; color: var(--ink); }
.pp-crumbs a:hover { color: var(--gold); }

.pp-top { display: grid; gap: 2rem; }

.pp-gallery { display: grid; gap: 0.75rem; align-content: start; }
/* The house's photographs, as taken. One on white is multiplied onto the page, so its white becomes the
   page; one that brings its own dark ground is shown as it is. */
.pp-stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); aspect-ratio: 1 / 1; overflow: clip; }
.pp-stage img { position: relative; min-width: 0; min-height: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
/* the burst, here the fragrance's ingredients, on a canvas under the still: see the note beside `.shot canvas` in Shop.module.css */
.pp-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; pointer-events: none; }
/* A burst film is a whole picture on white, multiplied onto the panel as the still is, lying exactly over it.
   Once it has frames the still goes: the film must be multiplied onto the panel, not onto the bottle. */
.pp-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; pointer-events: none;
  /* feathered towards its edges, so that a film whose ground is not quite white leaves no square on the panel */
  mask-image: radial-gradient(closest-side, var(--ink) 72%, transparent 100%); }
.pp-stage[data-live] img { visibility: hidden; }
.pp-stage[data-dark] img { mix-blend-mode: normal; object-fit: cover; }
/* up to five pictures share one row: each is as wide as it can be, and never narrower than a finger */
.pp-thumbs { display: flex; gap: 0.625rem; }
.pp-thumbs button { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); flex: 0 1 4.75rem; min-width: 2.75rem; aspect-ratio: 1 / 1; overflow: clip; background: var(--panel); box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow 200ms var(--ease), background-color 200ms var(--ease); }
.pp-thumbs button:hover { background: var(--panel-up); }
.pp-thumbs button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.pp-thumbs img { min-width: 0; min-height: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pp-thumbs button[data-dark] img { mix-blend-mode: normal; object-fit: cover; }

.pp-detail { display: grid; align-content: start; gap: 1rem; }
.pp-name { font: 400 clamp(2.25rem, 5.4vw, 4.75rem) / 1.02 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.pp-second { display: block; margin-top: 0.75rem; color: var(--soft); }
/* how it feels to wear comes first, in the display face; what it smells of follows, quieter */
.pp-feeling { max-width: 20ch; font: italic 400 clamp(1.5rem, 2.4vw, 2.125rem) / 1.2 var(--display); text-wrap: balance; }
.pp-line { max-width: 38ch; line-height: 1.5; color: var(--soft); text-wrap: pretty; }
.pp-wear { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.pp-wear > span { color: var(--soft); }
.pp-wear ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.pp-wear a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; background: var(--panel); text-decoration: none; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.pp-wear a:hover { background: var(--ink); color: var(--ground); }
.pp-meta { color: var(--soft); }
.pp-buy { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.pp-fine { max-width: 46ch; font-size: 0.875rem; line-height: 1.45; color: var(--soft); text-wrap: pretty; }

.pp-block { display: grid; gap: 1rem; margin-top: 2.25rem; }
.pp-h2 { font: 400 1.5rem/1.15 var(--display); letter-spacing: -0.01em; }
.pp-rows > * { display: grid; grid-template-columns: 4.5rem 4.5rem minmax(0, 1fr); align-items: baseline; gap: 1rem; padding: 0.95rem 0; border-top: 1px solid var(--rule); }
.pp-rows > *:last-child { border-bottom: 1px solid var(--rule); }
dl.pp-rows > div { grid-template-columns: minmax(8.5rem, 0.7fr) minmax(0, 1.3fr); }
.pp-rows .pp-label { color: var(--soft); }
.pp-rows li > span:nth-child(2) { color: var(--ink); }

@media (min-width: 900px) {
  .pp-top { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: start; }
  .pp-gallery { position: sticky; top: calc(var(--bar) + 1.25rem); }
  .pp-stage { aspect-ratio: auto; height: min(72svh, 44rem); }
  .pp-detail { padding-top: 1.5rem; }
}

.pp-finder { justify-self: start; min-height: 2.75rem; text-align: left; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.5em; }
.pp-finder:hover { color: var(--gold); }
.pp-others { margin-top: clamp(4rem, 9vw, 7.5rem); }
.pp-othersTitle { font: 400 clamp(1.5rem, 3.4vw, 2.75rem) / 1.05 var(--display); letter-spacing: -0.01em; }

@media (prefers-reduced-motion: reduce) {
  .pp-thumbs button, .pp-wear a { transition: none; }
}

/* ---------- on a phone: "you may also like" is a row swiped sideways, and the picture is swiped for the next ---------- */
@media (max-width: 899px) {
  .pp-others ul { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62vw; gap: 1rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .pp-others ul::-webkit-scrollbar { display: none; }
  .pp-others ul > li { scroll-snap-align: start; }
  .pp-others ul :is(img, h3, p) { animation: none; }
  .pp-stage { touch-action: pan-y; }
  .pp-thumbs { overflow-x: auto; scrollbar-width: none; }
  .pp-thumbs::-webkit-scrollbar { display: none; }
  .pp-thumbs button { flex: 0 0 4.25rem; }
}
@media (max-width: 899px) { .pp-others ul { overflow-y: hidden; padding-bottom: 0.75rem; align-items: start; } .pp-thumbs { overflow-y: hidden; } }


/* ===== Tools (.tl-) ===== */
/* A fragrance page's notes, pictured. See Tools.tsx. */

.tl-tool { display: grid; gap: 0.25rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.tl-h2 { margin-bottom: 0.5rem; font: 400 1.5rem/1.15 var(--display); letter-spacing: -0.01em; }

/* a stage: when it arrives on the left, its notes in a row on the right */
.tl-stage { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); align-items: start; gap: 0.75rem; padding: 0.75rem 0; border-top: 1px solid var(--rule); }
.tl-when { display: grid; gap: 0.3rem; padding-top: 0.5rem; }
.tl-whenName { font: italic 400 1.5rem/1 var(--display); }
.tl-when .tl-label { color: var(--soft); }
.tl-notes { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0; padding: 0; list-style: none; }
.tl-note { display: grid; justify-items: center; align-content: start; gap: 0.2rem; width: 4.75rem; text-align: center; }
.tl-art { display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1; }
/* a photograph on white: on the page's own ground its white is the page */
.tl-art img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.tl-noteName { font-size: 0.8125rem; line-height: 1.2; text-wrap: balance; }

/* on a phone each stage's notes are one row, swiped sideways, however many there are */
@media (max-width: 699px) {
  .tl-notes { flex-wrap: nowrap; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .tl-notes::-webkit-scrollbar { display: none; }
  .tl-note { flex: 0 0 4.5rem; }
}
@media (max-width: 699px) { .tl-notes { overflow-y: hidden; padding-bottom: 0.5rem; } }


/* ===== Shop (.sh-) ===== */
/* The shelf of fragrances that every page shows some of, and the three ways into it. */

.sh-more { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.5em; transition: color 200ms var(--ease); }
.sh-more:hover { color: var(--gold); }

/* ---------- the shelf ---------- */
.sh-shelf { padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) 0; }
.sh-shelfTitle { font: 400 clamp(1.875rem, 4.6vw, 4rem) / 1.04 var(--display); letter-spacing: -0.01em; }
.sh-shelfSay { margin-top: 0.5rem; color: var(--soft); }

.sh-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1rem; align-items: end; margin-top: clamp(1.5rem, 3vw, 2.5rem); padding: 1rem 0; border-block: 1px solid var(--rule); }
.sh-field { display: grid; gap: 0.4rem; min-width: 0; }
.sh-field > span { color: var(--soft); }
.sh-field select, .sh-field input { width: 100%; height: 2.75rem; padding: 0 0.875rem; border: 1px solid color-mix(in oklab, var(--ink) 30%, transparent); border-radius: 0; background-color: var(--ground); font-size: 1rem; transition: border-color 200ms var(--ease); }
.sh-field select { appearance: none; padding-right: 2.25rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2317120e' stroke-width='1.3'%3E%3Cpath d='M2 4.25 6 8.25l4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.875rem center; background-size: 0.75rem; cursor: pointer; }
.sh-field select:hover, .sh-field input:hover { border-color: var(--ink); }
.sh-field select:focus-visible, .sh-field input:focus-visible { outline-offset: 0; border-color: var(--gold); }
.sh-field input::placeholder { color: color-mix(in oklab, var(--ink) 62%, var(--ground)); }
/* the field's own clear button, redrawn in the page's ink instead of the browser's */
.sh-field input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 0.875rem; height: 0.875rem; margin-left: 0.5rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2317120e' stroke-width='1.3'%3E%3Cpath d='M2.5 2.5l7 7M9.5 2.5l-7 7'/%3E%3C/svg%3E") center / contain no-repeat; cursor: pointer; }
.sh-search { grid-column: 1 / -1; scroll-margin-top: calc(var(--bar) + 5rem); }
.sh-count { grid-column: 1 / -1; color: var(--soft); }
@media (min-width: 860px) {
  .sh-tools { grid-template-columns: 10rem 9rem 9rem minmax(11rem, 18rem) 10rem 1fr; }
  .sh-search { grid-column: auto; }
  .sh-count { grid-column: auto; justify-self: end; padding-bottom: 0.9rem; }
}

.sh-none { display: grid; gap: 1rem; justify-items: start; padding: 3rem 0 2rem; }
.sh-clear { margin-top: 1.5rem; }

/* The shelf is not a wall of boxes: each bottle stands on the page itself, with its name set large under it. */
.sh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1rem; margin-top: 1.5rem; }
@media (min-width: 700px) { .sh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem 1.5rem; } }
@media (min-width: 1080px) { .sh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4.5rem 2rem; } }

.sh-tile { display: grid; grid-template-rows: auto auto 1fr auto; min-width: 0; }
.sh-shot { position: relative; display: block; aspect-ratio: 1 / 1; overflow: clip; }
/* `position` puts the still above the splat's canvas, which comes before it and is laid over the whole frame */
.sh-shot img { position: relative; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: scale 800ms var(--ease); }
/* The burst (Burst.tsx): ink on white, drawn on a canvas under the still. The canvas is multiplied onto the
   page and the still onto the canvas, so the ink shows through the photograph's white ground and the bottle
   stands in front of it. */
.sh-shot canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; pointer-events: none; }
@media (hover: hover) {
  .sh-tile:hover .sh-shot img:only-child { scale: 1.045; }
}
.sh-tileName { padding-top: 0.5rem; border-top: 1px solid var(--ink); font: 400 clamp(1.5rem, 2.3vw, 2.25rem) / 1.02 var(--display); letter-spacing: -0.015em; text-wrap: balance; }
.sh-tileName a { text-decoration: none; transition: color 200ms var(--ease); }
.sh-tileName a:hover { color: var(--gold); }
.sh-tileMeta { padding-top: 0.4rem; font: italic 400 clamp(1rem, 1.3vw, 1.1875rem) / 1.25 var(--display); color: var(--soft); text-wrap: balance; }
.sh-tileBuy { padding-top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .sh-shot img, .sh-more, .sh-field select, .sh-field input { transition: none; }
}

/* on the shelf each bottle rises into place as it is scrolled to: the photograph itself, so it still melts into the page */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sh-shot img { animation: sh-shelfRise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .sh-tileName, .sh-tileMeta { animation: sh-shelfSay linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  }
}
@keyframes sh-shelfRise { from { opacity: 0; translate: 0 2.5rem; } }
@keyframes sh-shelfSay { from { opacity: 0; } }

/* on a phone the ways to narrow the shelf are one row, swiped sideways, so the bottles start near the top */
@media (max-width: 859px) {
  .sh-tools { display: flex; align-items: end; gap: 0.75rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .sh-tools::-webkit-scrollbar { display: none; }
  .sh-field { flex: 0 0 9.5rem; }
  .sh-search { flex-basis: 13rem; }
  .sh-count { flex: 0 0 auto; align-self: center; white-space: nowrap; }
}
@media (max-width: 859px) { .sh-tools { overflow-y: hidden; } }


/* ===== Chrome (.c-) ===== */
/* The header and the footer. */

.c-header { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--bar); padding: 0 var(--gutter); background: var(--ground); border-bottom: 1px solid var(--rule); }
.c-shelves, .c-tools { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.c-tools { justify-content: flex-end; }
.c-header a, .c-header button { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; color: var(--ink); transition: color 200ms var(--ease); }
.c-shelves a, .c-tools a, .c-tools button { background-image: linear-gradient(var(--gold), var(--gold)); background-repeat: no-repeat; background-position: 0 calc(50% + 0.85em); background-size: 0 1px; transition: background-size 420ms var(--ease), color 200ms var(--ease); }
.c-shelves a:hover, .c-tools a:hover, .c-tools button:hover { background-size: 100% 1px; }
.c-tools button span { margin-left: 0.4em; }
.c-home { --logo-h: 2.625rem; padding: 0 0.5rem; }
.c-home:hover { color: var(--gold); }
.c-wide { display: none !important; }
@media (min-width: 860px) { .c-wide { display: inline-flex !important; } }

.c-footer { display: grid; gap: 2rem; margin-top: clamp(4rem, 9vw, 8rem); padding: 3.5rem var(--gutter) calc(6.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); }
.c-house { display: grid; gap: 1.25rem; justify-items: start; font-size: 1.0625rem; }
.c-footLinks { display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; }
.c-footLinks a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.c-footLinks a:hover { color: var(--gold); }
.c-footnote { max-width: 62ch; font-size: 0.875rem; color: var(--soft); text-wrap: pretty; }
@media (min-width: 860px) {
  .c-footer { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
  .c-footLinks { justify-content: flex-end; }
  .c-footnote { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .c-header a, .c-header button { transition: none; }
}

/* ---------- the menu on a phone: everything the wide header shows, and the occasions, in a sheet from the left ---------- */
.c-menuOpen { display: inline-flex; }
@media (min-width: 860px) { .c-menuOpen { display: none !important; } }
@media (max-width: 859px) { .c-shelves > a { display: none !important; } }
.c-menu { position: fixed; inset: 0 auto 0 0; width: min(24rem, 100vw); height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--ground); color: var(--ink); box-shadow: 1.5rem 0 3rem rgb(23 18 14 / 0.2); transform: translateX(-104%); transition: transform 520ms var(--ease), overlay 520ms allow-discrete, display 520ms allow-discrete; }
.c-menu[open] { transform: none; }
@starting-style { .c-menu[open] { transform: translateX(-104%); } }
.c-menu::backdrop { background: rgb(23 18 14 / 0); transition: background 520ms var(--ease), overlay 520ms allow-discrete, display 520ms allow-discrete; }
.c-menu[open]::backdrop { background: rgb(23 18 14 / 0.46); }
@starting-style { .c-menu[open]::backdrop { background: rgb(23 18 14 / 0); } }
.c-menuSheet { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; }
.c-menuHead { display: flex; align-items: center; justify-content: space-between; min-height: var(--bar); padding: 0 var(--gutter); border-bottom: 1px solid var(--rule); }
.c-menuHead button { min-height: 2.75rem; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.5em; }
.c-menuBody { display: grid; align-content: start; gap: 1.75rem; padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
.c-menuList { display: grid; gap: 0.15rem; }
.c-menuList > p { margin-bottom: 0.35rem; color: var(--soft); }
.c-menuList :is(a, button) { display: flex; align-items: center; min-height: 2.9rem; font: 400 1.875rem / 1.1 var(--display); letter-spacing: -0.015em; text-align: left; text-decoration: none; }
.c-menuList :is(a, button):hover { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .c-menu, .c-menu::backdrop { transition: none; } }


/* ===== WordPress and WooCommerce (hand-written; scripts/wp-theme.mjs adds this to the end of assets/ljp.css) ===== */

/* [hidden] must win over a component's own display */
[hidden] { display: none !important; }
/* signed in, WordPress puts its own bar above the page: the store's header sticks below it */
.admin-bar .c-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .c-header { top: 0; } }

/* the way to buy is a form here, so that it works without the page script */
form[data-buy] { display: contents; }
.ed-buy .by-buy { width: min(21rem, 100%); }
@media (max-width: 899px) { .ed-buy .by-buy { width: 100%; } }
.by-buy[aria-busy="true"] { opacity: 0.7; cursor: progress; }

/* an ordinary page: the cart, the checkout, the account, the policies */
.wp-page { padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) 0; }
.wp-page > article { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); max-width: 78rem; margin-inline: auto; }
.wp-prose { font-size: 1.0625rem; line-height: 1.6; }
.wp-prose > * + * { margin-top: 1em; }
.wp-prose :is(h2, h3) { margin-top: 1.6em; font: 400 1.75rem/1.15 var(--display); letter-spacing: -0.01em; }
.wp-prose h3 { font-size: 1.375rem; }
.wp-prose :is(ul, ol) { padding-left: 1.25rem; list-style: revert; }
.wp-prose a { text-decoration-color: var(--gold); }
.wp-prose a:hover { color: var(--gold); }
.wp-prose img { pointer-events: auto; height: auto; }
.pp-block .wp-prose { margin-top: 1rem; font-size: 1rem; color: var(--soft); }

/* WooCommerce's own screens, brought into the store's hand: square, ink buttons, hairline fields */
.wp-prose :is(.button, .wc-block-components-button, button[type="submit"]):not(.by-buy) { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.75rem; border: 0; border-radius: 0; background: var(--ink); color: var(--ground); font: 600 0.8125rem/1 var(--text); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color 220ms var(--ease); }
.wp-prose :is(.button, .wc-block-components-button, button[type="submit"]):not(.by-buy):hover { background: var(--gold); color: var(--ground); }
.wp-prose :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], textarea, select) { min-height: 2.75rem; padding: 0.5rem 0.875rem; border: 1px solid color-mix(in oklab, var(--ink) 30%, transparent); border-radius: 0; background: var(--ground); font-size: 1rem; }
.wp-prose :is(.wc-block-components-text-input input, .wc-block-components-select select, .wc-blocks-components-select__select) { border-radius: 0 !important; }
.wp-prose table { width: 100%; border-collapse: collapse; }
.wp-prose :is(th, td) { padding: 0.9rem 0.5rem; border-bottom: 1px solid var(--rule); text-align: left; }
.wp-prose .wc-block-cart-item__image img, .wp-prose .product-thumbnail img { mix-blend-mode: multiply; }
.wp-prose :is(.wc-block-components-product-name, .product-name a) { font: 400 1.375rem/1.2 var(--display); text-decoration: none; }
.wp-prose .wc-block-components-totals-item__label, .wp-prose .cart_totals h2 { font-family: var(--text); }
.woocommerce-notices-wrapper:empty { display: none; }
:is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner) { margin: 0 0 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--rule); border-left: 3px solid var(--gold); border-radius: 0; background: var(--panel); list-style: none; }
.woocommerce-error { border-left-color: #a3271b; }
:is(.woocommerce-message, .woocommerce-info) .button { float: right; margin-left: 1rem; text-decoration: underline; }

@media (max-width: 899px) { .ed-buy .by-buy { width: 100%; } }
