/* LeArts: the bead board.
   Felt is the ground, white dishes hold the pieces, tags are tied on with graphite thread.
   One family (Noto Sans Hebrew, variable weight + width); hierarchy by size and width.
   Cobalt appears only on contact actions. */

@font-face {
  font-family: "Noto Sans Hebrew";
  src: url("../fonts/noto-sans-hebrew-hebrew-standard-normal.woff2") format("woff2-variations"),
       url("../fonts/noto-sans-hebrew-hebrew-standard-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Noto Sans Hebrew";
  src: url("../fonts/noto-sans-hebrew-latin-standard-normal.woff2") format("woff2-variations"),
       url("../fonts/noto-sans-hebrew-latin-standard-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --felt: #d8dbd5;
  --felt-deep: #c8ccc5;
  --shade: 30 34 38;            /* felt shadow, rgb triplet */
  --ink: #1f2226;
  --ink-2: #444a50;
  --paper: #fbfbf9;
  --dish: #ffffff;              /* matches the photos' white ground exactly */
  --cobalt: #2a3fb0;
  --cobalt-deep: #20318e;
  --on-cobalt: #f5f6ff;

  --r-dish: 22px;
  --r-tag: 3px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-swing: cubic-bezier(.22, 1, .36, 1);

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --head-h: 64px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--felt);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 12px);
  scrollbar-color: rgb(var(--shade) / .45) var(--felt);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--felt) url("../felt.webp") repeat;
  background-size: 320px 320px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: var(--felt); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--felt); }
::-webkit-scrollbar-thumb { background: rgb(var(--shade) / .38); border-radius: 12px; border: 3px solid var(--felt); }
::-webkit-scrollbar-thumb:hover { background: rgb(var(--shade) / .55); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .28em; text-decoration-thickness: 1.5px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
/* read by screen readers, not shown */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; inset-inline-start: var(--gutter); top: -60px; z-index: 30;
  background: var(--ink); color: var(--felt); padding: .6em 1em; border-radius: var(--r-pill);
  transition: top .2s var(--ease-out);
}
.skip:focus { top: 10px; }

/* ---------- type ---------- */
.display {
  margin: 0;
  font-weight: 820;
  font-stretch: 66%;
  font-size: clamp(3rem, 1.4rem + 4.6vw, 6rem);
  line-height: 1.06;
  letter-spacing: -.01em;
}
.display .line { display: block; }
.h2 {
  margin: 0 0 .35em;
  font-weight: 780;
  font-stretch: 72%;
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.h2-big { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.4rem); }
.lede {
  margin: 1.1rem 0 0;
  max-width: 34ch;
  font-size: clamp(1.125rem, 1.02rem + .45vw, 1.375rem);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
.section-lede {
  margin: 0;
  max-width: 58ch;
  color: var(--ink-2);
  font-size: 1.125rem;
  text-wrap: pretty;
}

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 1.9rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 1.5em;
  border: 0; border-radius: var(--r-pill);
  font-weight: 650; font-stretch: 88%; font-size: 1.0625rem; line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease-out), background-color .22s var(--ease-out), box-shadow .22s var(--ease-out), color .22s var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-sm { min-height: 40px; padding: 0 1.1em; font-size: .975rem; }
.btn-contact {
  background: var(--cobalt); color: var(--on-cobalt);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 10px 22px -12px rgb(32 49 142 / .75);
}
.btn-contact:hover { background: var(--cobalt-deep); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: rgb(var(--shade) / .07); }
.btn-ghost .ico { transition: transform .25s var(--ease-out); }
.btn-ghost:hover .ico { transform: translateX(-3px); }
.btn-ghost-contact { background: transparent; color: var(--cobalt); box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.btn-ghost-contact:hover { background: rgb(42 63 176 / .07); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 1px 0 rgb(255 255 255 / .7) inset, 0 6px 14px -8px rgb(var(--shade) / .6), 0 0 0 1px rgb(var(--shade) / .1);
  transition: transform .18s var(--ease-out), box-shadow .2s var(--ease-out);
}
.icon-btn:hover { box-shadow: 0 1px 0 rgb(255 255 255 / .7) inset, 0 10px 18px -8px rgb(var(--shade) / .6), 0 0 0 1px rgb(var(--shade) / .16); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .ico { width: 20px; height: 20px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: var(--felt) url("../felt.webp") repeat;
  background-size: 320px 320px;
  box-shadow: 0 1px 0 rgb(var(--shade) / .12);
}
.head-row { display: flex; align-items: center; gap: 28px; height: var(--head-h); }
.wordmark {
  font-weight: 800; font-stretch: 70%; font-size: 1.75rem; letter-spacing: .005em;
  text-decoration: none; line-height: 1;
}
.wordmark-sm { font-size: 1.35rem; }
.head-nav { display: flex; gap: 26px; margin-inline-start: auto; }
.head-row > .wordmark + .btn { margin-inline-start: auto; }   /* pages without the nav */
.head-nav a { font-weight: 600; font-stretch: 88%; padding-block: 6px; text-decoration: underline 1.5px; text-underline-offset: .45em; text-decoration-color: transparent; transition: text-decoration-color .25s var(--ease-out); }
.head-nav a:hover { text-decoration-color: var(--ink); }
@media (max-width: 860px) {
  .head-nav { display: none; }
  .head-row > .btn { margin-inline-start: auto; }
}

/* ---------- dishes ---------- */
.dish {
  position: relative; display: block; overflow: hidden;
  margin: 0; padding: 0; border: 0;
  background: var(--dish);
  border-radius: var(--r-dish);
  box-shadow:
    0 -1px 0 rgb(var(--shade) / .22),          /* felt edge falling into the well */
    0 1.5px 0 rgb(255 255 255 / .7);           /* light lower lip */
}
.dish::after {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  box-shadow:
    inset 0 9px 14px -8px rgb(var(--shade) / .42),
    inset 0 2px 3px rgb(var(--shade) / .2),
    inset 0 -2px 1px rgb(255 255 255 / .95);
}
.dish img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.dish-round { border-radius: 50%; }
button.dish { cursor: zoom-in; }

/* ---------- hero: the board ---------- */
.hero { padding-block: clamp(20px, 3.5vw, 48px) clamp(32px, 4vw, 56px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
}
.board {
  position: relative; justify-self: center;
  width: min(100%, 600px, calc(100dvh - var(--head-h) - 150px));
  aspect-ratio: 1;
}
.ruler { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; direction: ltr; }
.ruler-turn { transition: transform 1.1s var(--ease-out); transform-origin: 0 0; }
.ruler .tick { stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
.ruler .tick.minor { stroke-width: 1; opacity: .55; }
.ruler .rim { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: .8; }
.ruler .num { fill: var(--ink-2); font-family: "Noto Sans Hebrew", sans-serif; font-size: 15px; font-weight: 650; font-stretch: 75%; text-anchor: middle; dominant-baseline: central; }
.ruler .nums text { fill: var(--ink-2); }
.ruler .unit { fill: var(--ink-2); font-family: "Noto Sans Hebrew", sans-serif; font-size: 13px; font-weight: 600; text-anchor: middle; }

#board-dish { position: absolute; inset: 14%; }
#board-dish .board-img {
  position: absolute; inset: 9%; width: 82%; height: 82%;
  opacity: 0; transform: scale(.96); filter: blur(6px);
  transition: opacity .45s var(--ease-out), transform .7s var(--ease-out), filter .45s var(--ease-out);
}
#board-dish .board-img.is-on { opacity: 1; transform: none; filter: none; }

.tag {
  position: relative;
  background: var(--paper);
  border-radius: var(--r-tag);
  box-shadow: 0 1px 1px rgb(var(--shade) / .1), 0 10px 18px -12px rgb(var(--shade) / .55);
  transform-origin: 50% 0;
}
/* the punched hole */
.tag::after {
  content: ""; position: absolute; top: 8px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%; background: var(--felt);
  box-shadow: inset 0 1px 2px rgb(var(--shade) / .45);
}
/* the thread */
.tag::before {
  content: ""; position: absolute; left: 50%; bottom: calc(100% - 11px); width: 1.5px; height: 30px; margin-left: -.75px;
  background: var(--ink); opacity: .75; border-radius: 1px;
}

.board-label {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0; z-index: 2;
  display: flex; align-items: center; gap: 14px;
}
/* the arrows keep their size; a long name yields instead (two lines, then an ellipsis) */
.board-label .icon-btn { flex-shrink: 0; }
.board-tag {
  display: grid; justify-items: center; gap: 2px;
  min-width: 11.5rem; max-width: 16rem; padding: 22px 18px 12px;
  rotate: -3deg;
  text-align: center;
}
.board-tag .t-name { font-weight: 700; font-stretch: 85%; font-size: 1rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.board-tag.swing { animation: swing .9s var(--ease-swing); }
@keyframes swing { 0% { rotate: 9deg; } 45% { rotate: -6deg; } 75% { rotate: -1.5deg; } 100% { rotate: -3deg; } }


/* ---------- collection ---------- */
.collection { padding-block: clamp(56px, 7vw, 104px) clamp(64px, 8vw, 112px); }
.tabs-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 34px 40px; margin: 2.4rem 0 2.6rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px 30px; }
/* the category's price tag, tied on beside the tabs: the only price on the page, never per piece */
.cat-price {
  display: grid; justify-items: center; gap: 2px;
  margin: 0; padding: 22px 20px 12px;
  rotate: -3deg; text-align: center;
  font-weight: 760; font-size: 1.0625rem; line-height: 1.35; white-space: nowrap;
}
.cat-price[hidden] { display: none; }
.cp-kind { font-weight: 600; font-stretch: 88%; color: var(--ink-2); }
.cat-price.swing { animation: swing .9s var(--ease-swing); }
.tab {
  position: relative; display: inline-flex; align-items: baseline; gap: .4em;
  padding: 6px 0 10px; border: 0; background: none; cursor: pointer;
  font-weight: 760; font-stretch: 72%; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.1;
  color: var(--ink-2);
  transition: color .2s var(--ease-out);
}
.tab .count { font-size: max(.55em, .8125rem); font-weight: 650; font-stretch: 85%; font-variant-numeric: tabular-nums; }
.tab::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
@media (max-width: 640px) {
  .tabs { gap: 6px 14px; }
  .tab { font-size: clamp(1.1rem, .1rem + 4.6vw, 1.3rem); gap: .3em; }
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }

.pieces {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  /* 4 / 3 / 2 columns: each batch of 12 fills its rows exactly */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(18px, 2.6vw, 40px);
}
@media (max-width: 1080px) { .pieces { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 14px; }
}
.piece { display: grid; grid-template-rows: auto 1fr; }
.piece .dish { aspect-ratio: 4 / 5; width: 100%; }
.piece .dish img { padding: 7%; transition: transform .6s var(--ease-out); }
.piece.is-photo .dish img { padding: 0; object-fit: cover; mix-blend-mode: normal; }
.piece .dish:hover img { transform: scale(1.035); }

.piece .tag {
  margin: 24px 6% 0; padding: 22px 14px 12px;
  rotate: var(--tilt, -1deg);
  transition: rotate .5s var(--ease-swing), translate .5s var(--ease-out);
}
.piece:nth-child(3n+2) .tag { --tilt: .8deg; }
.piece:nth-child(3n) .tag { --tilt: -.4deg; }
.piece:hover .tag { rotate: 0deg; translate: 0 2px; }
.t-name { margin: 0; font-weight: 700; font-stretch: 85%; font-size: 1.0625rem; line-height: 1.3; text-wrap: balance; }
.piece .t-desc {
  margin: .3em 0 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.t-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: .7em; }
.t-ask { color: var(--cobalt); font-weight: 650; font-size: .9375rem; text-decoration: underline; text-decoration-color: rgb(42 63 176 / .35); }
.t-ask:hover { text-decoration-color: currentColor; }
.t-recipe { display: inline-block; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); font-weight: 650; font-size: .9375rem; text-decoration: underline; text-decoration-color: rgb(var(--shade) / .35); text-underline-offset: .28em; }
.t-recipe:hover { text-decoration-color: currentColor; }
.t-ask .ico { width: 1.05em; height: 1.05em; margin-inline-end: .25em; vertical-align: -.15em; }

@media (max-width: 640px) {
  .piece .tag { margin-inline: 2%; padding: 20px 10px 10px; }
  .t-name { font-size: .9875rem; }
  .piece .t-desc { font-size: .875rem; -webkit-line-clamp: 3; }
  .tabs-row { gap: 30px 20px; }
  .cat-price { font-size: 1rem; padding: 20px 16px 10px; }
}

.cat-note { margin: -1.2rem 0 2.2rem; max-width: 58ch; color: var(--ink-2); font-size: 1.0625rem; text-wrap: pretty; }

.more-row { display: flex; justify-content: center; margin-top: 3.2rem; }
.more-row:has(#more[hidden]) { display: none; }

.earrings {
  max-width: 34rem; margin-top: .5rem; padding: 34px 30px 28px;
  background: var(--paper); border-radius: var(--r-tag); rotate: -.6deg;
  box-shadow: 0 1px 1px rgb(var(--shade) / .1), 0 18px 30px -20px rgb(var(--shade) / .55);
}
.earrings-text { margin: 0 0 1.4rem; font-size: 1.25rem; line-height: 1.55; text-wrap: pretty; }

/* ---------- recipe ---------- */
.recipe { padding-block: clamp(64px, 8vw, 112px); }
.groove {
  position: relative;
  margin: 2.8rem 0 0; padding: 50px clamp(32px, 4.5vw, 56px) 36px;
  background: var(--felt-deep) url("../felt.webp") repeat; background-size: 320px 320px;
  border-radius: 26px;
  box-shadow: inset 0 4px 10px rgb(var(--shade) / .22), inset 0 -1px 0 rgb(255 255 255 / .55), 0 1px 0 rgb(255 255 255 / .5);
}
/* centimeter scale printed along the groove (svg pattern, see index.html) */
.groove-ruler { position: absolute; inset-inline: clamp(32px, 4.5vw, 56px); top: 14px; width: calc(100% - 2 * clamp(32px, 4.5vw, 56px)); height: 14px; color: var(--ink); opacity: .8; }
.groove { container-type: inline-size; }
.strand {
  --k: min(.4px, 100cqi / 2540);            /* px per source-photo px: real proportions */
  position: relative; display: flex; align-items: flex-start; justify-content: center;
  margin-top: 22px; padding-bottom: calc(var(--k) * 262);
}
.strand img { flex: none; height: auto; max-width: none; mix-blend-mode: normal; }
.strand .bead { margin-inline: calc(var(--k) * -3); filter: drop-shadow(0 calc(var(--k) * 6) calc(var(--k) * 6) rgb(var(--shade) / .35)); }
.strand .spacer, .strand .ball, .strand .star { filter: drop-shadow(0 calc(var(--k) * 4) calc(var(--k) * 4) rgb(var(--shade) / .3)); }
.strand .hang { position: relative; flex: none; }
.strand .star { position: absolute; }
.strand-break { display: none; flex-basis: 100%; height: calc(var(--k) * 70); }
.strand[hidden] { display: none; }

/* close-ups: three magnified crops of the chosen piece's own photo, set like loupes on the ruler */
.closeups { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 3vw, 44px); margin-top: 26px; }
.closeups[hidden], .closeup[hidden] { display: none; }
.closeup {
  --d: clamp(110px, 15vw, 210px);
  flex: none; width: var(--d); height: var(--d); border-radius: 50%;
  background-color: var(--dish); background-repeat: no-repeat;
  background-size: calc(var(--d) / var(--s)) calc(var(--d) / var(--s) * var(--ar));
  background-position: calc(var(--d) / 2 - var(--cx) * var(--d) / var(--s)) calc(var(--d) / 2 - var(--cy) * var(--d) / var(--s) * var(--ar));
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px rgb(var(--shade) / .4), 0 16px 30px -14px rgb(var(--shade) / .6);
}
.closeup:nth-child(2) { --d: clamp(130px, 18vw, 250px); }
.closeups:not([hidden]) + .bench { padding-top: 26px; border-top: 1.5px solid rgb(var(--shade) / .28); margin-top: 30px; }
@media (max-width: 640px) {
  /* sized from the groove's own content width so the three plates always sit inside its padding */
  .closeups { gap: 10px; }
  .closeup { --d: min(118px, calc((100cqi - 20px) / 3.2)); }
  .closeup:nth-child(2) { --d: min(136px, calc((100cqi - 20px) / 2.8)); }
}
@media (max-width: 640px) {
  .strand { --k: min(.4px, 100cqi / 1290); flex-wrap: wrap; }
  .strand-break { display: block; }
}

/* the chooser: a paper tag holding a native select, beside the heading it changes */
.recipe-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.recipe-top .h2 { margin: 0; }
.recipe-lede { margin-top: .9rem; }
/* the select sizes to its longest option: cap it so a long piece name never widens the page */
.picker { display: grid; gap: 6px; min-width: 0; max-width: 100%; }
.picker-label { font-weight: 650; font-stretch: 88%; font-size: .95rem; color: var(--ink-2); }
.picker-box { position: relative; display: block; }
.picker select {
  appearance: none; -webkit-appearance: none;
  min-width: min(100%, 300px); max-width: min(100%, 26rem); width: 100%;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
  padding: 13px 18px 13px 48px; border: 0; border-radius: var(--r-tag);
  background: var(--paper); color: var(--ink);
  font: inherit; font-weight: 700; font-stretch: 85%; font-size: 1.0625rem; line-height: 1.3;
  box-shadow: 0 1px 1px rgb(var(--shade) / .1), 0 10px 18px -12px rgb(var(--shade) / .55);
  cursor: pointer;
}
.picker select:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.picker-box .ico { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; pointer-events: none; }

/* the bench: the chosen piece's recipe beside the piece itself */
.bench {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: start; gap: 32px clamp(28px, 4vw, 64px);
  margin-top: 26px;
}
.strand:not([hidden]) + .bench { padding-top: 24px; border-top: 1.5px solid rgb(var(--shade) / .28); }
.stations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 26px 30px; }
.station .st-name {
  margin: 0 0 .55em; padding-bottom: .45em; border-bottom: 1.5px solid rgb(var(--shade) / .28);
  font-weight: 760; font-stretch: 72%; font-size: 1.4rem; line-height: 1.1;
}
.st-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.st-items li { display: flex; align-items: baseline; gap: .5em; color: var(--ink-2); font-weight: 600; font-stretch: 88%; font-size: 1rem; line-height: 1.35; }
.st-items .ln { flex: none; min-width: 1.4em; color: var(--ink); font-weight: 780; font-stretch: 72%; font-size: 1.45rem; line-height: 1; font-variant-numeric: tabular-nums; }
.recipe-total {
  margin: 30px 0 0; padding-top: 20px; border-top: 1.5px solid rgb(var(--shade) / .28);
  font-weight: 760; font-stretch: 72%; font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.15rem); line-height: 1.18; text-wrap: balance;
}
.recipe-total .rt-n { font-weight: 820; font-variant-numeric: tabular-nums; }

.bench-piece { position: relative; margin: 0; display: grid; justify-items: center; gap: 14px; text-align: center; }
.bench-dish { width: min(100%, 360px); aspect-ratio: 1; }
.bench-dish img { padding: 8%; }
.bench-dish.is-photo img { padding: 0; object-fit: cover; mix-blend-mode: normal; }
.bench-tag { margin-top: 24px; display: grid; justify-items: center; gap: 2px; min-width: 12rem; padding: 22px 18px 12px; rotate: -2deg; }
.bench-tag .t-name { font-size: 1.1rem; }
.loupe-hint { display: none; margin: 0; font-size: .875rem; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .loupe-hint { display: block; } }
.recipe-ask { margin: 22px 0 0; color: var(--ink-2); font-weight: 650; font-stretch: 88%; font-size: 1.0625rem; }
/* the deeper cobalt keeps 4.5:1 even over the darkest fibres of the groove's deep felt */
.recipe-ask a { color: var(--cobalt-deep); font-weight: 750; text-decoration: underline; text-decoration-color: rgb(42 63 176 / .35); text-underline-offset: .25em; white-space: nowrap; }
.recipe-ask a:hover { text-decoration-color: currentColor; }
.recipe-ask .ico { width: 1.1em; height: 1.1em; margin-inline-end: .3em; vertical-align: -.18em; }
/* a piece with little documented detail: the dish shrinks and dish + recipe close up into one centred group */
.bench.is-thin { align-items: center; justify-content: center; grid-template-columns: minmax(0, 480px) auto; column-gap: clamp(32px, 5vw, 72px); }
.bench.is-thin .bench-dish { width: min(100%, 250px); }
@media (max-width: 860px) { .bench.is-thin { grid-template-columns: 1fr; } }
.loupe {
  position: absolute; left: 0; top: 0; z-index: 3;
  width: 150px; height: 150px; border-radius: 50%;
  background-color: var(--dish); background-repeat: no-repeat;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px rgb(var(--shade) / .4), 0 16px 30px -12px rgb(var(--shade) / .7);
  opacity: 0; scale: .85; pointer-events: none;
  transition: opacity .2s var(--ease-out), scale .25s var(--ease-out);
}
.loupe.on { opacity: 1; scale: 1; }
@media (hover: hover) and (pointer: fine) { .bench-dish:not(.is-photo) { cursor: zoom-in; } }

@media (max-width: 860px) {
  .bench { grid-template-columns: 1fr; }
  .bench-piece { order: -1; }
  .bench-dish { width: min(78%, 300px); }
}
@media (prefers-reduced-motion: no-preference) {
  .stations.swap .station { animation: rise .55s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 70ms); }
}

/* ---------- about: the maker, beside a bracelet she has not finished yet ---------- */
.about { padding-block: clamp(64px, 8vw, 112px) clamp(24px, 3vw, 40px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.about-art { order: -1; justify-self: center; width: min(100%, 480px); padding-bottom: 40px; }
.about-lead {
  margin: .2rem 0 0; max-width: 30ch;
  font-weight: 560; font-stretch: 88%; font-size: clamp(1.3rem, 1.05rem + .8vw, 1.7rem); line-height: 1.42;
  text-wrap: pretty;
}
.about-copy p:not(.about-lead) { margin: 1.15rem 0 0; max-width: 54ch; color: var(--ink-2); font-size: 1.125rem; text-wrap: pretty; }
.about-copy .about-lead + p { margin-top: 1.6rem; }

.atelier { position: relative; aspect-ratio: 1; }
.atelier-dish { position: absolute; inset: 0; }
/* one shadow for the whole still life, so every bead and the thread are lit from the same side */
.atelier-items { position: absolute; inset: 0; filter: drop-shadow(0 3px 2.5px rgb(var(--shade) / .34)); }
.atelier-items img { position: absolute; max-width: none; height: auto; translate: -50% -50%; }
.atelier-thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.atelier-thread path { fill: none; stroke: var(--ink); stroke-width: .42; stroke-linecap: round; opacity: .82; }
.atelier-thread .knot { fill: var(--ink); opacity: .82; }
/* the tag hangs from the thread's free end (svg point 50,80): the punched hole sits exactly there */
.atelier-tag {
  position: absolute; left: 50%; top: 80%; z-index: 2;
  translate: -50% -11.5px; transform-origin: 50% 11.5px; rotate: -4deg;
  padding: 22px 18px 11px;
  width: max-content; max-width: 66%; text-align: center; text-wrap: balance;
  font-weight: 720; font-stretch: 85%; font-size: 1.0625rem; line-height: 1.2;
}
.atelier-tag::before { display: none; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-art { width: min(86vw, 400px); padding-bottom: 12px; }
  .atelier-tag { font-size: .9375rem; padding: 20px 14px 9px; }
}

/* ---------- contact ---------- */
.contact { padding-block: clamp(64px, 8vw, 120px) clamp(72px, 9vw, 128px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.contact-actions { margin-top: 1.8rem; }
.btn-lg { min-height: 58px; padding: 0 1.9em; font-size: 1.2rem; }
.btn-lg .ico { width: 1.35em; height: 1.35em; }
.channels-lead { margin: 2rem 0 0; color: var(--ink-2); font-weight: 600; font-stretch: 88%; }
.channels { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: 6px; }
.channel {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px;
  align-items: center; text-decoration: none; color: var(--cobalt);
  padding: 14px 0; border-top: 1.5px solid rgb(var(--shade) / .22);
}
.ch-ico { grid-row: 1 / 3; width: 30px; height: 30px; }
.ch-label { font-weight: 650; font-stretch: 88%; font-size: .95rem; color: var(--ink-2); }
.ch-value {
  justify-self: start;
  font-weight: 760; font-stretch: 70%; font-size: clamp(1.35rem, 1rem + 1.4vw, 2.1rem); line-height: 1.15;
  overflow-wrap: anywhere;
  text-decoration: underline 2px; text-underline-offset: .18em; text-decoration-color: transparent;
  transition: text-decoration-color .3s var(--ease-out);
}
.channel:hover .ch-value { text-decoration-color: currentColor; }
.contact-photo { aspect-ratio: 1; }
.contact-photo img { object-fit: cover; mix-blend-mode: normal; }

/* ---------- footer ---------- */
.site-foot { padding-block: 34px 44px; box-shadow: 0 -1px 0 rgb(var(--shade) / .14); color: var(--ink-2); font-size: .9375rem; }
.foot-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; }
.foot-row p { margin: 0; }
.foot-legal { margin-inline-start: auto !important; font-variant-numeric: tabular-nums; }

.foot-link { font-weight: 650; text-decoration: underline; text-decoration-color: rgb(var(--shade) / .4); }
.foot-link:hover { text-decoration-color: currentColor; }

/* ---------- accessibility statement: one sheet of tag paper laid on the felt ---------- */
.statement { padding-block: clamp(32px, 5vw, 72px) clamp(56px, 7vw, 104px); }
.statement:focus { outline: none; }
.sheet {
  max-width: 46rem; margin-inline: auto;
  padding: clamp(26px, 5vw, 60px) clamp(20px, 5vw, 60px) clamp(28px, 4vw, 48px);
  background: var(--paper); border-radius: var(--r-tag);
  box-shadow: 0 1px 1px rgb(var(--shade) / .1), 0 18px 30px -20px rgb(var(--shade) / .55);
}
.back-link {
  display: inline-flex; align-items: center; gap: .35em; min-height: 32px; margin-bottom: 1.2rem;
  font-weight: 650; font-stretch: 88%; color: var(--ink-2); text-decoration: none;
}
.back-link:hover { color: var(--ink); text-decoration: underline; }
.back-link .ico { width: 18px; height: 18px; }
.sheet-lede { margin: .2rem 0 0; font-size: 1.125rem; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.sheet h2 {
  margin: 2.2rem 0 .6rem; padding-bottom: .4rem; border-bottom: 1.5px solid rgb(var(--shade) / .22);
  font-weight: 760; font-stretch: 72%; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); line-height: 1.15;
}
.sheet p { margin: .8rem 0 0; line-height: 1.7; text-wrap: pretty; }
.sheet ul { margin: .8rem 0 0; padding-inline-start: 1.25em; display: grid; gap: .55rem; line-height: 1.6; }
.sheet li::marker { color: var(--ink-2); }
.sheet kbd {
  display: inline-block; padding: 0 .4em; border-radius: 4px;
  font: inherit; font-weight: 650; font-size: .9em; direction: ltr;
  background: var(--felt); box-shadow: inset 0 -1px 0 rgb(var(--shade) / .3);
}
.sheet-contact { list-style: none; padding-inline-start: 0 !important; gap: 0 !important; margin-top: 1rem !important; }
.sheet-contact li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px;
  padding: 12px 0; border-top: 1.5px solid rgb(var(--shade) / .18);
}
.sc-label { min-width: 9.5rem; font-weight: 650; font-stretch: 88%; color: var(--ink-2); }
.sheet-contact a {
  display: inline-flex; align-items: center; gap: .45em; min-height: 32px;
  color: var(--cobalt); font-weight: 700; font-size: 1.125rem;
  text-decoration: underline; text-decoration-color: rgb(42 63 176 / .35); text-underline-offset: .25em;
}
.sheet-contact a:hover { text-decoration-color: currentColor; }
.sheet-contact .ico { width: 1.2em; height: 1.2em; }
.sheet-updated { margin-top: 2rem !important; padding-top: 1rem; border-top: 1.5px solid rgb(var(--shade) / .22); color: var(--ink-2); font-size: .9375rem; }

/* ---------- viewer ---------- */
.viewer {
  width: min(1040px, 100% - 24px); max-width: none; max-height: min(92dvh, 760px);
  margin: auto; padding: 0; border: 0; border-radius: 26px; overflow: auto;
  background: var(--felt) url("../felt.webp") repeat; background-size: 320px 320px; color: var(--ink);
  box-shadow: 0 30px 80px -30px rgb(var(--shade) / .7);
}
.viewer::backdrop { background: rgb(var(--shade) / .55); }
.viewer-body { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); padding: clamp(16px, 2.6vw, 32px); align-items: center; }
.v-dish { aspect-ratio: 1; }
.v-dish img { padding: 6%; }
.v-dish.is-photo img { padding: 0; object-fit: cover; mix-blend-mode: normal; }
.v-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; }
.v-name { margin: 0; font-weight: 790; font-stretch: 72%; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1.1; text-wrap: balance; padding-inline-end: 52px; }
.v-desc { margin: .7rem 0 0; color: var(--ink-2); font-size: 1.125rem; }
.v-nav { display: flex; gap: 10px; margin-top: 2rem; }
@media (max-width: 760px) {
  .viewer-body { grid-template-columns: 1fr; }
  .v-dish { width: min(100%, 52dvh); justify-self: center; }
  .v-name { padding-inline-end: 0; }
  .v-close { top: 22px; inset-inline-end: 22px; }
}
html:has(.viewer[open]) { overflow: hidden; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 18px; }
  .board { order: -1; width: min(86vw, 420px, calc(100dvh - var(--head-h) - 390px)); min-width: 260px; }
  .board-tag { min-width: 9.5rem; padding: 20px 14px 10px; }
  .board-tag .t-name { font-size: .9375rem; }
  .board-label { gap: 10px; bottom: -42px; }
  .board { margin-bottom: 44px; }
  .icon-btn { width: 42px; height: 42px; }
  .actions { margin-top: 1.4rem; }
  .lede { margin-top: .8rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-photo { width: min(100%, 420px); }
}

/* a phone turned sideways: board and headline side by side, so the first screen still says who this is */
@media (max-width: 860px) and (orientation: landscape) and (max-height: 520px) {
  .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px; }
  .board { order: 0; width: min(100%, calc(100dvh - var(--head-h) - 76px)); min-width: 210px; }
  .display { font-size: clamp(2.4rem, 1rem + 4.2vw, 3.4rem); }
}

/* ---------- motion (only when welcome) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .display .line, .hero .lede, .hero .actions { animation: rise .9s var(--ease-out) both; }
  .display .line:nth-child(2) { animation-delay: .08s; }
  .hero .lede { animation-delay: .16s; }
  .hero .actions { animation-delay: .24s; }
  .ruler-turn.is-entering { animation: settle 1.4s var(--ease-out) both; }
  #board-dish { animation: rise-soft 1s .1s var(--ease-out) both; }
  .board-tag { animation: drop .95s .45s var(--ease-swing) both; }
  .js .piece { opacity: 0; translate: 0 14px; transition: opacity .6s var(--ease-out), translate .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
  .js .piece.in { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  #board-dish .board-img { transition: opacity .2s linear; transform: none; filter: none; }
  .ruler-turn { transition: none; }
  .board-tag.swing { animation: none; }
  .piece .tag, .piece .dish img { transition: none; }
}
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes rise-soft { from { opacity: 0; scale: .965; } to { opacity: 1; scale: 1; } }
@keyframes settle { from { rotate: -28deg; opacity: 0; } to { rotate: 0deg; opacity: 1; } }
@keyframes drop { 0% { opacity: 0; rotate: 14deg; translate: 0 -14px; } 55% { opacity: 1; rotate: -7deg; translate: 0 0; } 100% { opacity: 1; rotate: -3deg; translate: 0 0; } }

.viewer[open] { animation: open .35s var(--ease-out); }
.viewer[open]::backdrop { animation: fade .3s var(--ease-out); }
@keyframes open { from { opacity: 0; scale: .97; } to { opacity: 1; scale: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .viewer[open], .viewer[open]::backdrop { animation: none; } }
