/*
  Kiln & Co. (Screenery template 03, "kiln")
  1. Tokens, base type and browser surfaces. 2. Masthead, hero cover and collage, shelf rail, process,
  workshop, journal, newsletter, colophon. 3. Components (select, notice, confirmation slip), overlays
  (bag drawer, plate viewer, index), cursor label, motion.
  The world is a printed exhibition catalogue: paper ground, square plates, captions, long serif italics.
*/

/* ───────── 1. Tokens ───────── */
:root {
  /* colour */
  --paper: #efe9df;
  --paper-deep: #e4dccd;
  --paper-light: #f6f2ea;
  --ink: #26221f;
  --ink-soft: #5d554c;
  --terracotta: #b5532c;
  --terracotta-deep: #984220;
  --terracotta-block: #ab4a24; /* large flat grounds; paper-light text on it clears 4.5:1 */
  --celadon: #9db5a5;
  --celadon-pale: #c9d6cb;
  --rule: #cfc6b6;
  --rule-strong: #26221f;
  --on-ink: #efe9df;
  --on-ink-soft: #bdb4a6;
  --rule-on-ink: #4a443e;
  --danger: #8f2f14;
  --danger-on-ink: #f0a88a;

  /* type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --fs-display: clamp(3rem, 0.95rem + 6.4vw, 6.75rem);
  --fs-h2: clamp(2.375rem, 1.25rem + 4.2vw, 5rem);
  --fs-h3: clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem);
  --fs-pull: clamp(1.3125rem, 1.15rem + 0.6vw, 1.625rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-caption: 0.875rem;
  --fs-label: 0.6875rem;

  /* space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 112px;
  --s-10: 160px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --col-gap: clamp(14px, 1.7vw, 24px);
  --section: clamp(88px, 11vw, 168px);

  /* shape */
  --r-plate: 0px;
  --r-field: 2px;
  --r-pill: 999px;
  --mount: 10px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* shelf */
  --k: 1;

  /* photographs: a little warmth and a slightly shorter tonal range, like uncoated stock */
  --print: sepia(0.14) saturate(0.92) contrast(0.96);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-color: var(--ink-soft) var(--paper);
  accent-color: var(--terracotta-deep);
}

body {
  margin: 0;
  background-color: var(--paper);
  /* a faint paper tooth, printed once and tiled */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .15 0 0 0 0 .13 0 0 0 0 .12 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--terracotta);
  overflow-x: clip;
}

::selection { background: var(--terracotta-deep); color: var(--paper-light); }

img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 380; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, figure, fieldset { margin: 0; padding: 0; border: 0; }
address { font-style: normal; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--terracotta-deep);
  outline-offset: 3px;
}
.workshop :focus-visible { outline-color: var(--celadon); }

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--on-ink);
  text-decoration: none;
  transition: top 0.3s var(--ease-out);
}
.skip:focus { top: 12px; }

/* Display serif: Fraunces at its softest, with the wonky italic for emphasis */
h1, h2, h3,
.wordmark,
.colophon__mark {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  letter-spacing: -0.022em;
}
h1 em, h2 em, h3 em,
.wordmark i,
.colophon__mark i {
  font-style: italic;
  font-weight: 340;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
h2 { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -0.028em; }

/* Plate captions, as under a catalogue reproduction */
figcaption {
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-caption);
  line-height: 1.4;
  color: var(--ink-soft);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  text-wrap: balance;
}
figcaption b {
  margin-right: 0.7em;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), translate 0.35s var(--ease-out);
}
.btn:active { translate: 0 1px; }
.btn--solid { background: var(--terracotta-deep); color: var(--paper-light); }
.btn--solid:hover { background: var(--ink); }
.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--ink:hover { background: var(--terracotta-deep); }
.btn--celadon { background: var(--celadon); color: var(--ink); }
.btn--celadon:hover { background: var(--paper-light); }
.btn--ghost-light { border-color: var(--on-ink-soft); background: transparent; color: var(--on-ink); }
.btn--ghost-light:hover { border-color: var(--celadon); background: var(--celadon); color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled] { cursor: not-allowed; opacity: 0.55; }
.btn[data-loading] { cursor: progress; }
.btn[data-loading]::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.round-btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out), opacity 0.3s;
}
.round-btn:hover:not([disabled]) { background: var(--ink); color: var(--on-ink); }
.round-btn[disabled] { opacity: 0.32; cursor: default; }
.round-btn--plain { border-color: transparent; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 500;
  font-size: var(--fs-small);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
}
.link-arrow .icon { transition: translate 0.4s var(--ease-out); }
.link-arrow:hover .icon { translate: 5px 0; }
.link-arrow:hover { color: var(--terracotta-deep); text-decoration-color: currentColor; }

/* Autofilled fields keep the page's own ground and ink instead of the browser's yellow or blue */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--terracotta);
  transition: background-color 99999s 99999s;
}
.workshop input:-webkit-autofill,
.workshop input:-webkit-autofill:hover,
.workshop input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--on-ink);
  caret-color: var(--celadon);
}

/* ───────── 2. Masthead ───────── */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: var(--s-6);
  min-height: 72px;
  padding: 0 var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  justify-self: start;
  font-size: 1.625rem;
  font-weight: 420;
  line-height: 44px; /* one line, and a full-height touch target */
  text-decoration: none;
  white-space: nowrap;
}
.wordmark i { color: var(--terracotta-deep); padding-inline: 0.04em; }
.masthead__nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  justify-self: center;
  font-size: var(--fs-small);
  font-weight: 500;
}
.masthead__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease-out);
}
.masthead__nav a:hover { background-size: 100% 1px; }
.masthead__issue {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-caption);
  color: var(--ink-soft);
  white-space: nowrap;
}
.bag-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 6px 0 14px;
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: var(--fs-small);
  font-weight: 600;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.bag-btn:hover { background: var(--ink); color: var(--on-ink); }
.bag-btn__count {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: var(--terracotta-deep);
  color: var(--paper-light);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.bag-btn__count.is-bumped { animation: bump 0.6s var(--ease-out); }
.menu-btn {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: transparent;
}

/* ───────── Hero ─────────
   The first screen is the catalogue cover: a flat terracotta ground carrying the count of pots,
   plate 1 bled to the edge beside it, plate 2 tipped across the seam. The ledger follows on paper. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.hero__cover {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-7);
  min-height: clamp(560px, calc(100svh - 73px), 940px);
  padding: clamp(36px, 4.4vw, 68px) clamp(96px, 9vw, 150px) clamp(32px, 3.4vw, 52px) var(--gutter);
  background: var(--terracotta-block);
  color: var(--paper-light);
}
.hero__cover ::selection { background: var(--ink); color: var(--paper-light); }
.hero__cover :focus-visible { outline-color: var(--paper-light); }
.hero__title {
  font-size: var(--fs-display);
  font-weight: 340;
  line-height: 0.94;
  letter-spacing: -0.036em;
}
.hero__title em { display: block; margin-top: 0.08em; }
.hero__lede { max-width: 27rem; }
.hero__lede p { font-size: 1.125rem; line-height: 1.5; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-5);
}
.hero__cover .btn--ink:hover { background: var(--paper-light); color: var(--ink); }
.hero__cover .link-arrow { text-decoration-color: currentColor; }
.hero__cover .link-arrow:hover { color: var(--paper-light); text-decoration-thickness: 2px; }

.plate { position: relative; }
.plate .reveal { display: block; }
.plate img { width: 100%; }
.plate--a { grid-column: 2; grid-row: 1; min-height: 0; }
.plate--a .reveal { position: absolute; inset: 0; }
.plate--a img { height: 100%; object-fit: cover; object-position: 60% 50%; }
.plate--a figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 10px var(--gutter) 10px 16px;
  background: var(--paper);
}
.plate--b {
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: end;
  justify-self: start;
  z-index: 3;
  width: clamp(190px, 19.5vw, 300px);
  margin: 0 0 clamp(56px, 6vw, 96px) calc(58.333% - clamp(64px, 6.4vw, 100px));
  padding: var(--mount) var(--mount) 0;
  background: var(--paper);
  box-shadow: 0 26px 44px -30px rgb(38 34 31 / 0.55);
}
.plate--b figcaption { padding-bottom: 8px; }

.hero__after {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: end;
  padding: clamp(64px, 8vw, 128px) var(--gutter) 0;
}
.plate--c { grid-column: 1 / 7; }
.hero__ledger { grid-column: 8 / 13; }
.hero__rule {
  font-family: var(--serif);
  font-size: clamp(1.875rem, 1.2rem + 2.3vw, 3.25rem);
  font-weight: 340;
  line-height: 1.06;
  letter-spacing: -0.024em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  text-wrap: balance;
}
.hero__rule em { font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--terracotta-deep); }
.hero__facts {
  margin-top: var(--s-7);
  border-top: 1px solid var(--rule-strong);
}
.hero__facts div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-small);
}
.hero__facts dt { color: var(--ink-soft); }
.hero__facts dd { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }

/* ───────── The shelf ───────── */
.shelf { padding-top: var(--section); }
.shelf__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: end;
  padding: 0 var(--gutter);
}
.shelf__head h2 { grid-column: 1 / 8; }
.shelf__intro { grid-column: 8 / 13; max-width: 30rem; padding-bottom: 10px; }
.shelf__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5) var(--s-7);
  margin: var(--s-7) var(--gutter) 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule-strong);
}
.shelf__sort {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.6em;
}
.shelf__controls {
  display: grid;
  grid-template-columns: auto auto minmax(80px, 1fr) auto;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  flex: 0 1 380px;
}
.shelf__progress {
  height: 1px;
  background: var(--rule);
  margin-left: var(--s-2);
}
.shelf__progress span {
  display: block;
  height: 3px;
  width: 100%;
  margin-top: -1px;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0.2));
  transition: transform 0.3s var(--ease-out);
}
.shelf__range {
  padding-left: var(--s-2);
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-caption);
  color: var(--ink-soft);
  white-space: nowrap;
}

.shelf__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  grid-template-rows: auto auto;
  position: relative; /* contains the visually hidden labels inside the scroller */
  margin-top: var(--s-7);
  padding: 0 var(--gutter) var(--s-2);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.shelf__rail::-webkit-scrollbar { display: none; }
.shelf__rail:focus-visible { outline-offset: -2px; }

.piece {
  grid-row: 1 / span 2;
  display: grid;
  grid-template-rows: subgrid;
  width: max(304px, calc(var(--h) * var(--k) * 1px * var(--ar) + 56px));
  scroll-snap-align: start;
}
.piece__photo {
  align-self: end;
  justify-self: start;
  display: block;
  height: calc(var(--h) * var(--k) * 1px);
  aspect-ratio: var(--ar);
  padding: 0;
  border: 0;
  background: var(--paper-deep);
  overflow: hidden;
}
.piece__photo .reveal { display: block; width: 100%; height: 100%; }
.piece__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.piece__photo:hover img,
.piece__photo:focus-visible img { scale: 1.04; }
.piece__photo:focus-visible { outline-offset: -6px; outline-color: var(--paper-light); box-shadow: inset 0 0 0 4px var(--terracotta-deep); }
.has-cursor .piece__photo { cursor: none; }

.piece__info {
  /* the top border of every piece joins into one continuous shelf line */
  border-top: 2px solid var(--rule-strong);
  padding: var(--s-4) 56px 0 0;
}
.piece__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
}
.piece__name {
  font-size: 1.4375rem;
  line-height: 1.2;
  letter-spacing: -0.012em;
}
.piece__price {
  font-family: var(--serif);
  font-size: 1.4375rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums lining-nums;
  font-variation-settings: "SOFT" 100;
}
.piece__meta {
  margin-top: 6px;
  font-size: var(--fs-caption);
  color: var(--ink-soft);
}
.piece__row--buy {
  align-items: center;
  margin-top: var(--s-4);
}
.piece__left {
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--terracotta-deep);
  font-variant-numeric: tabular-nums;
}
.piece__left.is-out { color: var(--ink-soft); }
.add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px 0 12px;
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: var(--fs-caption);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.add .icon { width: 18px; height: 18px; transition: rotate 0.5s var(--ease-out); }
.add:hover:not([disabled]) { background: var(--terracotta-deep); border-color: var(--terracotta-deep); color: var(--paper-light); }
.add:hover:not([disabled]) .icon { rotate: 90deg; }
.add[disabled] { border-color: var(--rule); color: var(--ink-soft); cursor: default; padding-left: 18px; }
.add[disabled] .icon { display: none; }

.shelf__note {
  margin-top: var(--s-7);
  padding: 0 var(--gutter);
  max-width: calc(34rem + var(--gutter) * 2);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

/* ───────── Process ───────── */
.process {
  margin-top: var(--section);
  padding: var(--section) var(--gutter);
  background-color: var(--paper-deep);
}
.process__head,
.step {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}
.process__head h2 { grid-column: 1 / 10; }
.process__head p {
  grid-column: 7 / 12;
  margin-top: var(--s-6);
  max-width: 32rem;
}
.step { align-items: start; }
.step__figure img { width: 100%; }
.step__text h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.5em;
  font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.75rem);
  letter-spacing: -0.03em;
  font-style: italic;
  font-weight: 340;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  line-height: 1.05;
}
.step__text h3 span {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
}
.step__pull {
  margin-top: var(--s-4);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 340;
  font-size: var(--fs-pull);
  line-height: 1.32;
  letter-spacing: -0.008em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  text-wrap: balance;
}
.step__text p:last-child { margin-top: var(--s-4); max-width: 30rem; color: var(--ink-soft); }

.step--throwing { margin-top: var(--s-9); }
.step--throwing .step__figure { grid-column: 1 / 6; }
.step--throwing .step__text { grid-column: 7 / 11; padding-top: var(--s-7); }

.step--glazing { margin-top: clamp(-260px, -15vw, -120px); align-items: end; }
.step--glazing .step__figure { grid-column: 9 / 13; grid-row: 1; }
.step--glazing .step__text { grid-column: 3 / 8; grid-row: 1; padding-bottom: var(--s-7); padding-top: clamp(280px, 22vw, 340px); }

.step--firing { margin-top: var(--s-9); align-items: end; }
.step--firing .step__figure { grid-column: 2 / 8; }
.step--firing .step__text { grid-column: 9 / 13; padding-bottom: var(--s-6); }

/* ───────── Workshop ───────── */
.workshop {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: start;
  padding: var(--section) var(--gutter);
  background: var(--ink);
  color: var(--on-ink);
}
.workshop ::selection { background: var(--celadon); color: var(--ink); }
.workshop__intro { grid-column: 1 / 7; }
.workshop__intro > p {
  margin-top: var(--s-6);
  max-width: 31rem;
  color: var(--on-ink-soft);
}
.workshop__figure { margin-top: var(--s-8); }
.workshop__figure img { width: 100%; }
.workshop figcaption { color: var(--on-ink-soft); }
.workshop figcaption b { color: var(--on-ink); }

.booking { grid-column: 8 / 13; padding-top: 10px; }
.dates legend {
  padding: 0 0 var(--s-3);
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-pull);
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
.date {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: var(--s-4);
  min-height: 64px;
  padding: 0 var(--s-4);
  border-top: 1px solid var(--rule-on-ink);
  cursor: pointer;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.date:last-of-type { border-bottom: 1px solid var(--rule-on-ink); }
.date input {
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid var(--on-ink-soft);
  border-radius: 50%;
  background: transparent;
  cursor: inherit;
  transition: border-color 0.3s, box-shadow 0.4s var(--ease-out), background-color 0.3s;
}
.date input:checked {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: inset 0 0 0 5px var(--celadon);
}
.date__day {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.012em;
}
.date__seats {
  font-size: var(--fs-caption);
  color: var(--on-ink-soft);
  font-variant-numeric: tabular-nums;
}
.date:hover:not(:has(:disabled)):not(:has(:checked)) { background: color-mix(in srgb, var(--celadon) 10%, transparent); }
.date:has(:checked) { background: var(--celadon); color: var(--ink); border-top-color: var(--celadon); }
.date:has(:checked) .date__seats { color: var(--ink); font-weight: 600; }
.date:has(:checked) + .date { border-top-color: var(--celadon); }
.date:has(:disabled) { cursor: not-allowed; color: var(--on-ink-soft); }
.date:has(:disabled) .date__day { text-decoration: line-through; text-decoration-thickness: 1px; }
.date:has(:disabled) input { border-style: dashed; }
.date:has(:focus-visible) { outline: 2px solid var(--celadon); outline-offset: 2px; }
.date input:focus-visible { outline: none; }

.field__error {
  min-height: 0;
  font-size: var(--fs-caption);
  font-weight: 500;
  color: var(--danger);
}
.workshop .field__error { color: var(--danger-on-ink); }
.field__error:not(:empty) { margin-top: var(--s-2); }

.booking__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  margin-top: var(--s-6);
}
.field label {
  display: block;
  font-size: var(--fs-caption);
  color: var(--on-ink-soft);
}
.field input {
  width: 100%;
  min-height: 48px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid var(--on-ink-soft);
  border-radius: 0;
  background: transparent;
  color: var(--on-ink);
  font-size: 1.0625rem;
  caret-color: var(--celadon);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:hover { border-bottom-color: var(--on-ink); }
.field input:focus-visible { outline: none; border-bottom-color: var(--celadon); box-shadow: 0 2px 0 var(--celadon); }
.field input[aria-invalid="true"] { border-bottom-color: var(--danger-on-ink); box-shadow: 0 1px 0 var(--danger-on-ink); }

.booking__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-6);
}
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--on-ink-soft);
  border-radius: var(--r-pill);
}
.stepper button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.3s var(--ease-out), color 0.3s;
}
.stepper button:hover:not([disabled]) { background: var(--on-ink); color: var(--ink); }
.stepper button[disabled] { opacity: 0.35; cursor: default; }
.stepper output {
  min-width: 4.6em;
  text-align: center;
  font-size: var(--fs-small);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.booking__foot .btn { flex: 1 1 auto; }
.booking__small {
  margin-top: var(--s-5);
  font-size: var(--fs-caption);
  color: var(--on-ink-soft);
  max-width: 34rem;
}

.booking__done:focus { outline: none; }
.booking__tick {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--celadon);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.booking__tick path { stroke-dasharray: 30; stroke-dashoffset: 0; }
.booking__done h3 {
  margin-top: var(--s-5);
  font-size: var(--fs-h3);
  line-height: 1.14;
}
.booking__done dl {
  margin-top: var(--s-6);
  border-top: 1px solid var(--rule-on-ink);
}
.booking__done dl div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 13px 0;
  border-bottom: 1px solid var(--rule-on-ink);
}
.booking__done dt { color: var(--on-ink-soft); font-size: var(--fs-small); }
.booking__done dd { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.booking__done > p { margin-top: var(--s-5); color: var(--on-ink-soft); max-width: 32rem; }
.booking__done > p b { color: var(--on-ink); font-weight: 500; overflow-wrap: anywhere; }
.booking__done .btn { margin-top: var(--s-6); }

/* ───────── Journal ───────── */
.journal {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: start;
  padding: var(--section) var(--gutter);
}
.journal__head { grid-column: 1 / 5; }
.journal__head > p { margin-top: var(--s-5); max-width: 22rem; color: var(--ink-soft); }
.journal__figure { margin-top: var(--s-7); width: min(100%, 250px); margin-left: clamp(0px, 5vw, 88px); }
.journal__list { grid-column: 6 / 13; border-bottom: 1px solid var(--rule-strong); }
.entry {
  display: grid;
  grid-template-columns: 5.2rem 1fr auto;
  grid-template-areas: "date title icon" "date meta icon";
  align-items: start;
  column-gap: var(--s-5);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--rule-strong);
  text-decoration: none;
}
.entry time {
  grid-area: date;
  padding-top: 0.55em;
  font-size: var(--fs-caption);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
.entry__title {
  grid-area: title;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.0625rem);
  line-height: 1.2;
  letter-spacing: -0.016em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  text-wrap: balance;
  transition: translate 0.5s var(--ease-out), color 0.3s;
}
.entry__meta {
  grid-area: meta;
  margin-top: var(--s-2);
  font-size: var(--fs-caption);
  color: var(--ink-soft);
  transition: translate 0.5s var(--ease-out);
}
.entry .icon {
  grid-area: icon;
  width: 24px;
  height: 24px;
  margin-top: 0.45em;
  transition: rotate 0.5s var(--ease-out), color 0.3s;
}
.entry:hover .entry__title { translate: 12px 0; color: var(--terracotta-deep); font-style: italic; }
.entry:hover .entry__meta { translate: 12px 0; }
.entry:hover .icon { rotate: 45deg; color: var(--terracotta-deep); }

/* ───────── Newsletter ───────── */
.letter {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: end;
  padding: clamp(64px, 8vw, 120px) var(--gutter);
  background: var(--celadon);
}
.letter ::selection { background: var(--ink); color: var(--celadon); }
.letter__copy { grid-column: 1 / 7; }
.letter__copy h2 { font-size: clamp(2rem, 1.3rem + 2.5vw, 3.25rem); line-height: 1.1; }
.letter__copy p { margin-top: var(--s-5); max-width: 30rem; }
.letter__form { grid-column: 8 / 13; }
.letter__row {
  display: flex;
  gap: var(--s-2);
  padding: 5px;
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--paper-light) 55%, transparent);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.letter__row:focus-within { background: var(--paper-light); box-shadow: 0 0 0 2px var(--ink); }
.letter__row.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.letter__row input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 0 var(--s-4) 0 var(--s-5);
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 1.0625rem;
}
.letter__row input::placeholder { color: #4d5a51; opacity: 1; }
.letter__row input:focus-visible { outline: none; }
.letter__row .btn { min-height: 48px; padding-inline: 22px; }
.letter__msg {
  margin-top: var(--s-3);
  padding-left: var(--s-5);
  font-size: var(--fs-caption);
  color: #33403a;
}
.letter__msg.is-error { color: #7a2409; font-weight: 600; }
.letter__msg.is-success {
  padding-left: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-pull);
  line-height: 1.3;
  color: var(--ink);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

/* ───────── Colophon ───────── */
.colophon { padding: var(--s-9) var(--gutter) var(--s-8); }
.colophon__mark {
  font-size: clamp(4.25rem, 19.4vw, 17.5rem);
  font-weight: 340;
  line-height: 0.82;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.colophon__mark i { color: var(--terracotta); }
.colophon__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-7) var(--col-gap);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule-strong);
  font-size: var(--fs-small);
}
.colophon h2 {
  margin-bottom: var(--s-3);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.colophon address + p { margin-top: var(--s-3); color: var(--ink-soft); }
.colophon__cols > div:last-child p { color: var(--ink-soft); max-width: 19rem; }
.colophon li a {
  display: inline-flex;
  overflow-wrap: anywhere;
  align-items: center;
  min-height: 34px;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.3s, color 0.3s;
}
.colophon li a:hover { color: var(--terracotta-deep); text-decoration-color: currentColor; }
.colophon__legal {
  margin-top: var(--s-8);
  font-size: var(--fs-caption);
  color: var(--ink-soft);
}

/* ───────── 3. Components ─────────
   The themed kit: everything a browser would otherwise draw for itself. All of it runs on the tokens
   above, so it follows a palette change. Behaviour lives in script.js under the same names.
     .select   a listbox set like a catalogue index (button + popup list + hidden input)
     .notice   a tipped-in slip, captioned like a plate, raised by notify()
     .slip     the confirmation dialog, raised by confirmSlip()
     .text-btn / .btn--ghost   the quiet buttons those use */

/* Select */
.select { position: relative; display: inline-block; }
.select__label { font-size: var(--fs-small); color: var(--ink-soft); }
.select__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(var(--ink), var(--ink)) 0 calc(100% - 7px) / 100% 1px no-repeat;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.375rem;
  letter-spacing: -0.012em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  white-space: nowrap;
  transition: color 0.3s var(--ease-out), background-size 0.3s var(--ease-out);
}
.select__button .icon { width: 18px; height: 18px; transition: rotate 0.45s var(--ease-out); }
.select__button:hover,
.select__button[aria-expanded="true"] { color: var(--terracotta-deep); background-size: 100% 2px; }
.select__button[aria-expanded="true"] .icon { rotate: 180deg; }
.select__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  width: max-content;
  min-width: 100%;
  max-width: calc(100vw - var(--gutter) * 2);
  max-height: min(60vh, 420px);
  overflow-y: auto;
  padding: var(--mount) var(--mount) calc(var(--mount) - 1px);
  border: 1px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 0 28px 48px -28px rgb(38 34 31 / 0.6);
  scrollbar-width: thin;
}
.select__list:focus { outline: none; }
.select__option {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 12px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.select__option:last-child { border-bottom-color: transparent; }
/* the mark of the chosen entry is a dot of glaze */
.select__option::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}
.select__option[aria-selected="true"]::before { background: var(--terracotta); }
.select__option[aria-selected="true"] span { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.select__option small {
  padding-left: var(--s-5);
  font-family: var(--sans);
  font-size: var(--fs-caption);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.select__option.is-active { background: var(--ink); color: var(--on-ink); }
.select__option.is-active small { color: var(--on-ink-soft); }
.select__list:focus-visible .select__option.is-active { outline: 2px solid var(--terracotta-deep); outline-offset: 1px; }

/* Notice */
.notices {
  position: fixed;
  left: var(--gutter);
  bottom: var(--s-5);
  z-index: 70;
  display: grid;
  gap: var(--s-2);
  width: min(400px, calc(100vw - var(--gutter) * 2));
  pointer-events: none;
}
/* inside an open dialog the slips sit under its heading, clear of the totals and buttons */
dialog .notices { top: 78px; bottom: auto; left: var(--s-4); right: var(--s-4); width: auto; }
/* in the bag drawer they are set into the page itself, between the heading and the list */
.drawer .notices { position: static; flex: none; margin: var(--s-4) var(--s-4) 0; }
.notices:empty { display: none; }
.notice {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 6px 6px 18px;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  color: var(--ink);
  box-shadow: 0 22px 40px -24px rgb(38 34 31 / 0.6);
  pointer-events: auto;
}
.notice__text {
  padding: 8px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.35;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
.notice__text b {
  margin-right: 0.7em;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
}
.notice__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.notice__close .icon { width: 16px; height: 16px; }
.notice__close:hover { background: var(--ink); color: var(--on-ink); }
.notice.is-leaving { opacity: 0; translate: 0 8px; transition: opacity 0.3s, translate 0.3s var(--ease-in-out); }

/* Confirmation slip */
.slip {
  width: min(460px, calc(100vw - 32px));
  max-width: none;
  padding: var(--s-6);
  border: 1px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 0 0 0 var(--mount) var(--paper-light), 0 40px 70px -30px rgb(38 34 31 / 0.7);
  grid-template-columns: auto 1fr;
  gap: var(--s-6) var(--s-5);
  opacity: 0;
  translate: 0 14px;
  transition: opacity 0.35s var(--ease-out), translate 0.5s var(--ease-out), overlay 0.5s allow-discrete, display 0.5s allow-discrete;
}
.slip[open] { display: grid; opacity: 1; translate: 0 0; }
@starting-style {
  .slip[open] { opacity: 0; translate: 0 14px; }
}
.slip__img { width: 84px; height: 104px; object-fit: cover; background: var(--paper-deep); filter: var(--print); }
.slip__text { grid-column: 2; min-width: 0; }
.slip__img[hidden] + .slip__text { grid-column: 1 / -1; }
.slip h2 {
  font-size: 1.875rem;
  font-style: italic;
  font-weight: 340;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.slip p { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--ink-soft); }
.slip__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
}
.btn--ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--on-ink); }
.text-btn {
  display: block;
  min-height: 44px;
  margin: var(--s-2) auto 0;
  padding: 0 var(--s-3);
  border: 0;
  background: transparent;
  font-size: var(--fs-caption);
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.text-btn:hover { color: var(--danger); }

@media (prefers-reduced-motion: no-preference) {
  /* the same wipe that unveils the plates opens the list and tips in a slip */
  .select__list:not([hidden]) { animation: unveil 0.45s var(--ease-out); }
  .notice { animation: unveil-left 0.55s var(--ease-out); }
}

/* Scroll areas inside the overlays, for engines that ignore scrollbar-color */
.drawer__body::-webkit-scrollbar,
.viewer__text::-webkit-scrollbar,
.select__list::-webkit-scrollbar { width: 8px; }
.drawer__body::-webkit-scrollbar-thumb,
.viewer__text::-webkit-scrollbar-thumb,
.select__list::-webkit-scrollbar-thumb { background: var(--rule); border: 2px solid var(--paper-light); }
.drawer__body::-webkit-scrollbar-track,
.viewer__text::-webkit-scrollbar-track,
.select__list::-webkit-scrollbar-track { background: transparent; }

/* ───────── 4. Overlays ───────── */
dialog { color: var(--ink); }
dialog::backdrop {
  background: rgb(38 34 31 / 0);
  transition: background-color 0.5s var(--ease-out), overlay 0.5s allow-discrete, display 0.5s allow-discrete;
}
dialog[open]::backdrop { background: rgb(38 34 31 / 0.5); }
@starting-style {
  dialog[open]::backdrop { background: rgb(38 34 31 / 0); }
}

/* Bag drawer */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(460px, 100vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper-light);
  flex-direction: column;
  translate: 100% 0;
  transition: translate 0.55s var(--ease-out), overlay 0.55s allow-discrete, display 0.55s allow-discrete;
}
.drawer[open] { display: flex; translate: 0 0; }
@starting-style {
  .drawer[open] { translate: 100% 0; }
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--s-4) var(--s-4) var(--s-6);
  border-bottom: 1px solid var(--rule);
}
.drawer__head h2 { font-size: 1.75rem; }
.drawer__head h2 span { font-style: italic; color: var(--ink-soft); font-size: 1.125rem; letter-spacing: 0; }
.drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 var(--s-6);
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.bag-empty {
  display: grid;
  justify-items: start;
  gap: var(--s-2);
  padding: var(--s-8) 0;
  color: var(--ink-soft);
}
.bag-empty svg {
  width: 72px;
  height: 72px;
  margin-bottom: var(--s-4);
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bag-empty__title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--ink);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.bag-empty .btn { margin-top: var(--s-5); }
.bag-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--rule);
}
.bag-item.is-new { animation: settle 0.6s var(--ease-out); }
.bag-item img {
  grid-row: 1 / span 2;
  width: 84px;
  height: 104px;
  object-fit: cover;
  background: var(--paper-deep);
}
.bag-item__name {
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.2;
  font-variation-settings: "SOFT" 100;
}
.bag-item__name em { font-variation-settings: "SOFT" 100, "WONK" 1; }
.bag-item__sub { margin-top: 2px; font-size: var(--fs-caption); color: var(--ink-soft); }
.bag-item__price {
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.2;
  text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
}
.bag-item__tools {
  grid-column: 2 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: end;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
}
.qty button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.3s var(--ease-out), color 0.3s;
}
.qty button .icon { width: 16px; height: 16px; }
.qty button:hover:not([disabled]) { background: var(--ink); color: var(--on-ink); }
.qty button[disabled] { opacity: 0.3; cursor: default; }
.qty output { min-width: 1.6em; text-align: center; font-weight: 600; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.bag-item__remove {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  font-size: var(--fs-caption);
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.bag-item__remove:hover { color: var(--danger); }
.drawer__foot {
  padding: var(--s-5) var(--s-6) var(--s-3);
  border-top: 1px solid var(--rule-strong);
  background: var(--paper-light);
}
.bag-nudge { font-size: var(--fs-caption); color: var(--ink-soft); }
.bag-nudge b { color: var(--terracotta-deep); font-weight: 600; }
.bag-sums { margin: var(--s-4) 0 var(--s-5); }
.bag-sums div {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
}
.bag-sums dt { color: var(--ink-soft); }
.bag-sums__total {
  margin-top: var(--s-2);
  padding-top: var(--s-3) !important;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.bag-sums__total dt { color: var(--ink); font-weight: 600; }
.bag-sums__total dd {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-variation-settings: "SOFT" 100;
}
.drawer__done {
  flex: 1 1 auto;
  padding: var(--s-8) var(--s-6);
}
.drawer__done:focus { outline: none; }
.drawer__done .booking__tick { stroke: var(--terracotta-deep); }
.drawer__done h3 { margin-top: var(--s-5); font-size: 2rem; line-height: 1.15; font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.drawer__done p { margin-top: var(--s-4); color: var(--ink-soft); }
.drawer__done p b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.drawer__done .btn { margin-top: var(--s-6); }
[hidden] { display: none !important; }

/* Plate viewer */
.viewer {
  width: min(1040px, calc(100vw - 48px));
  max-width: none;
  max-height: min(760px, calc(100dvh - 48px));
  padding: 0;
  border: 0;
  background: var(--paper-light);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  overflow: hidden;
  opacity: 0;
  scale: 0.97;
  transition: opacity 0.4s var(--ease-out), scale 0.5s var(--ease-out), overlay 0.5s allow-discrete, display 0.5s allow-discrete;
}
.viewer[open] { display: grid; opacity: 1; scale: 1; }
@starting-style {
  .viewer[open] { opacity: 0; scale: 0.97; }
}
.viewer__close { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--paper-light); }
.viewer__photo { position: relative; isolation: isolate; background: var(--paper-light); min-height: 0; }
.viewer__photo img { width: 100%; height: 100%; object-fit: cover; }
.viewer__text {
  display: flex;
  flex-direction: column;
  padding: var(--s-8) var(--s-7) var(--s-7);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.viewer__text h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); line-height: 1.12; padding-right: var(--s-6); }
.viewer__plate {
  margin-top: var(--s-3);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
}
.viewer__note {
  margin-top: var(--s-5);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 340;
  font-size: 1.25rem;
  line-height: 1.38;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
.viewer__specs { margin-top: var(--s-6); border-top: 1px solid var(--rule); }
.viewer__specs div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--s-4);
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-small);
}
.viewer__specs dt { color: var(--ink-soft); }
.viewer__buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: auto;
  padding-top: var(--s-6);
}
.viewer__price {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: lining-nums;
  font-variation-settings: "SOFT" 100;
}

/* Mobile index */
.index {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0 var(--gutter) var(--s-6);
  border: 0;
  background: var(--paper);
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out), overlay 0.35s allow-discrete, display 0.35s allow-discrete;
}
.index[open] { display: flex; opacity: 1; }
@starting-style {
  .index[open] { opacity: 0; }
}
.index__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  margin-right: -12px;
}
.index nav { margin-top: var(--s-6); border-bottom: 1px solid var(--rule-strong); }
.index nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--rule-strong);
  text-decoration: none;
}
.index nav span {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100;
}
.index nav small { font-family: var(--serif); font-style: italic; font-size: var(--fs-caption); color: var(--ink-soft); white-space: nowrap; }
.index__foot { margin-top: auto; font-size: var(--fs-caption); color: var(--ink-soft); max-width: 22rem; }

/* The round "View" label that follows the pointer along the shelf */
.cursor-view {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  background: var(--terracotta-deep);
  color: var(--paper-light);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1875rem;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  pointer-events: none;
  translate: var(--x, -200px) var(--y, -200px);
  scale: 0;
  opacity: 0;
  transition: scale 0.45s var(--ease-out), opacity 0.3s;
}
.cursor-view.is-on { scale: 1; opacity: 1; }
.cursor-view.is-down { scale: 0.84; }

/* ───────── Motion ───────── */
/* Photos sit inside .reveal. They are visible by default. script.js veils the ones still below the
   fold once the reader starts to scroll, then lifts the veil with a clip-path wipe as each enters. */
.reveal {
  position: relative;
  isolation: isolate;
  clip-path: inset(0 0 0 0);
  overflow: hidden;
  background: var(--paper-light);
}
.reveal img { transform-origin: 50% 60%; }

/* One print run: every photograph is multiplied onto the paper stock and its blacks are lifted to
   the catalogue ink, so cool studio whites and a pure black backdrop sit together as a set. */
.reveal img,
.viewer__photo img {
  mix-blend-mode: multiply;
  filter: var(--print);
}
.reveal::after,
.viewer__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  mix-blend-mode: lighten;
  pointer-events: none;
}
.bag-item img { filter: var(--print); }

@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: clip-path 1.3s var(--ease-out); }
  .reveal img { transition: scale 1.9s var(--ease-out); }
  .reveal.is-veiled { clip-path: inset(0 0 100% 0); transition: none; }
  .reveal.is-veiled[data-wipe="left"] { clip-path: inset(0 100% 0 0); }
  .reveal.is-veiled img { scale: 1.16; transition: none; }
  .piece__photo img { transition: scale 1.2s var(--ease-out); }
  /* the first shelf pieces lift one after another, left to right */
  .piece:nth-child(2) .reveal { transition-delay: 90ms; }
  .piece:nth-child(3) .reveal { transition-delay: 180ms; }
  .piece:nth-child(4) .reveal { transition-delay: 270ms; }

  /* the three hero plates unveil on load, no script needed */
  .hero .reveal { animation: unveil 1s var(--ease-out) calc(var(--i) * 70ms) backwards; }
  .hero .reveal[data-wipe="left"] { animation-name: unveil-left; }
  .hero .reveal img { animation: settle-img 1.5s var(--ease-out) calc(var(--i) * 70ms) backwards; }

  .hero__title em { animation: rise 0.9s var(--ease-out) 0.25s backwards; }

  .booking__done:not([hidden]) .booking__tick path,
  .drawer__done:not([hidden]) .booking__tick path { animation: draw 0.7s var(--ease-out) 0.15s backwards; }
  .booking__done:not([hidden]) > * { animation: rise 0.7s var(--ease-out) backwards; }
  .booking__done:not([hidden]) > :nth-child(2) { animation-delay: 60ms; }
  .booking__done:not([hidden]) > :nth-child(3) { animation-delay: 120ms; }
  .booking__done:not([hidden]) > :nth-child(4) { animation-delay: 180ms; }
  .booking__done:not([hidden]) > :nth-child(5) { animation-delay: 240ms; }
}

@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes unveil-left { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle-img { from { scale: 1.16; } to { scale: 1; } }
@keyframes draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes settle { from { opacity: 0; translate: 24px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes bump { 0% { scale: 1; } 30% { scale: 1.28; } 100% { scale: 1; } }
@keyframes spin { to { rotate: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .btn[data-loading]::before { animation-duration: 0.8s !important; }
  .cursor-view { display: none; }
}

/* ───────── Responsive ───────── */
@media (max-width: 1180px) {
  .masthead__issue { display: none; }
  .masthead { grid-template-columns: auto 1fr auto; }
  .masthead__nav { justify-self: end; }
  .hero { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .plate--b { margin-left: calc(66.667% - clamp(64px, 6.4vw, 100px)); }
  .plate--b { margin-bottom: 88px; }
  .plate--a figcaption { left: 0; padding-right: 16px; }
  .shelf__head h2 { grid-column: 1 / 7; }
  .shelf__intro { grid-column: 7 / 13; }
  .workshop__intro { grid-column: 1 / 7; }
  .booking { grid-column: 7 / 13; }
  .booking__fields { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --k: 0.7; --mount: 8px; }
  html { scroll-padding-top: 76px; }

  .masthead { grid-template-columns: 1fr auto auto; gap: var(--s-3); min-height: 62px; }
  .masthead__nav { display: none; }
  .menu-btn { display: grid; }
  .wordmark { font-size: 1.5rem; }

  /* Hero: the cover block, plate 1 bled under it, plate 2 tipped over the join, then the ledger */
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__cover { min-height: 0; padding: var(--s-6) var(--gutter) clamp(124px, 34vw, 200px); gap: var(--s-6); }
  .hero__lede p { font-size: 1.0625rem; }
  .plate--a { aspect-ratio: 5 / 5.4; }
  .plate--a figcaption { left: auto; max-width: 62%; padding-right: var(--gutter); text-align: right; }
  .plate--a { grid-column: 1; grid-row: 2; }
  .plate--b { grid-column: 1; grid-row: 2; align-self: start; margin-bottom: 0; width: 42%; margin: 0 0 0 var(--gutter); translate: 0 -36%; }
  .hero__after { display: block; padding-top: var(--s-8); }
  .plate--c { width: 82%; margin-left: calc(-1 * var(--gutter)); }
  .plate--c figcaption { padding-left: var(--gutter); }
  .hero__ledger { margin-top: var(--s-7); }
  .hero__facts { margin-top: var(--s-6); }

  .shelf__head { display: block; }
  .shelf__intro { margin-top: var(--s-5); }
  .shelf__bar { display: block; margin-top: var(--s-6); }
  /* on a phone the list hangs from the whole row, so it can never run off the right edge */
  .shelf__sort { position: relative; }
  .shelf__sort .select { position: static; }
  .shelf__sort .select__list { min-width: min(100%, 300px); }
  .shelf__controls { margin-top: var(--s-4); }
  .shelf__rail { margin-top: var(--s-6); }
  .piece { width: max(264px, calc(var(--h) * var(--k) * 1px * var(--ar) + 32px)); }
  .piece__info { padding-right: 32px; }
  .piece__name, .piece__price { font-size: 1.3125rem; }

  .process__head, .step { display: block; }
  .process__head p { margin-top: var(--s-5); }
  .step { margin-top: var(--s-8) !important; }
  .step__text { padding: var(--s-6) 0 0 !important; }
  .step--throwing .step__figure { width: 88%; margin-left: calc(-1 * var(--gutter)); }
  .step--throwing figcaption { padding-left: var(--gutter); }
  .step--glazing .step__figure { width: 74%; margin-left: auto; }
  .step--firing .step__figure { margin-inline: calc(-1 * var(--gutter)); }
  .step--firing figcaption { padding-inline: var(--gutter); }

  .workshop { display: block; }
  .workshop__figure { margin-top: var(--s-7); margin-right: calc(-1 * var(--gutter)); }
  .workshop__figure figcaption { padding-right: var(--gutter); }
  .booking { margin-top: var(--s-8); }

  .journal { display: block; }
  .journal__head { display: grid; grid-template-columns: 1fr 34%; grid-template-rows: 1fr auto; column-gap: var(--s-5); align-items: end; }
  .journal__head h2, .journal__head > p { grid-column: 1; }
  .journal__figure { grid-column: 2; grid-row: 1 / span 2; width: auto; margin: 0; }
  .journal__figure figcaption { display: none; }
  .journal__list { margin-top: var(--s-7); }
  .entry {
    grid-template-columns: 1fr auto;
    grid-template-areas: "date icon" "title title" "meta meta";
    padding: var(--s-5) 0;
  }
  .entry time { padding-top: 0; }
  .entry__title { margin-top: var(--s-2); }
  .entry .icon { margin-top: 0; width: 20px; height: 20px; }

  .letter { display: block; }
  .letter__form { margin-top: var(--s-6); }

  .colophon { padding-top: var(--s-8); }
  .colophon__cols { grid-template-columns: 1fr 1fr; }
  .colophon li a { min-height: 44px; }

  .viewer {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    margin: 0;
    grid-template-columns: 1fr;
    grid-template-rows: 42dvh 1fr;
  }
  .viewer__text { padding: var(--s-6) var(--gutter) var(--s-5); }
  .viewer__buy { position: sticky; bottom: calc(-1 * var(--s-5)); margin-inline: calc(-1 * var(--gutter)); padding: var(--s-4) var(--gutter); background: var(--paper-light); border-top: 1px solid var(--rule); }
}

/* Tablets keep the stacked order but get their own collage proportions, not a blown-up phone */
@media (min-width: 600px) and (max-width: 860px) {
  :root { --k: 0.86; }
  .hero__cover { padding-bottom: clamp(150px, 24vw, 210px); }
  .plate--a { aspect-ratio: 16 / 11; }
  .plate--b { width: 28%; }
  .hero__after { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-6); }
  .plate--c { grid-column: 1; width: auto; }
  .hero__ledger { grid-column: 2; margin-top: 0; }
  .step--throwing .step__figure { width: 62%; }
  .step--glazing .step__figure { width: 54%; }
  .step__pull { max-width: 30rem; }
  .workshop__figure { margin-top: var(--s-7); }
  .booking__fields { grid-template-columns: 1fr 1fr; }
  .journal__head { grid-template-columns: 1fr 30%; }
}

/* Touch screens of any width get full-height footer links */
@media (pointer: coarse) {
  .colophon li a { min-height: 44px; }
}

/* With room to spare, the booking form stays in view beside the long intro column */
@media (min-width: 861px) and (min-height: 820px) {
  .booking { position: sticky; top: 104px; }
}

@media (max-width: 480px) {
  .bag-btn span:not([class]) { display: none; }
  .bag-btn { padding-left: 10px; gap: 6px; }
  .hero__actions .btn { width: 100%; }
  .slip { padding: var(--s-5); }
  .slip__actions { flex-direction: column-reverse; }
  .slip__actions .btn { width: 100%; }
  .select__option { font-size: 1.125rem; }
  .notices { bottom: var(--s-4); }
  .booking__foot .btn { flex-basis: 100%; }
  .stepper { width: 100%; justify-content: space-between; }
  .letter__row { flex-direction: column; border-radius: 28px; padding: 6px; }
  .letter__row input { min-height: 52px; text-align: center; padding: 0 var(--s-4); }
  .letter__msg { padding-left: 0; text-align: center; }
  .letter__msg.is-success { text-align: left; }
  .date { padding: 0 var(--s-3); gap: var(--s-3); }
  .date__day { font-size: 1.25rem; }
  .colophon__cols { gap: var(--s-6) var(--s-5); }
  .colophon__cols > div:first-child,
  .colophon__cols > div:last-child { grid-column: 1 / -1; }
  .colophon__cols > div:last-child p { max-width: 24rem; }
}

@media (min-width: 1500px) {
  .hero__after, .workshop, .journal, .letter, .process, .colophon, .shelf__head, .shelf__note {
    padding-inline: max(var(--gutter), calc((100vw - 1440px) / 2));
  }
  .shelf__rail { padding-inline: max(var(--gutter), calc((100vw - 1440px) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - 1440px) / 2)); }
  .masthead { padding-inline: max(var(--gutter), calc((100vw - 1440px) / 2)); }
  .shelf__bar { margin-inline: max(var(--gutter), calc((100vw - 1440px) / 2)); }
  .hero__cover { padding-left: max(var(--gutter), calc((100vw - 1440px) / 2)); }
  .plate--a figcaption { padding-right: max(var(--gutter), calc((100vw - 1440px) / 2)); }
}

/* Phone footer: keep the email address on one line. */
@media (max-width: 600px) {
  .colophon li a[href^='mailto:'] { font-size: 0.875rem; letter-spacing: -0.01em; white-space: nowrap; }
}
