/* ==========================================================================
   CLAWZ BY SMALLZ — stylesheet
   Brand system per the Website Revamp plan:
   Coquette Pink #F598D3 · Warm White #FFF9F5 · Soft Beige #E3CBA5
   Onyx #0D0D0D · Deep Merlot #5C1A2B
   Playfair Display (headers) · Inter (body) · Marck Script (accents)
   ========================================================================== */

/* ---- Fonts (self-hosted, latin subsets) -------------------------------- */
@font-face { font-family: "Playfair Display"; src: url("../assets/fonts/playfair-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../assets/fonts/playfair-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../assets/fonts/playfair-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../assets/fonts/playfair-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Marck Script"; src: url("../assets/fonts/marck-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* Fallback faces with metric overrides: layout stays put while the real fonts load (no CLS) */
@font-face { font-family: "Playfair Fallback"; src: local("Times New Roman"), local("Times"); size-adjust: 111%; ascent-override: 96%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica Neue"); size-adjust: 107%; ascent-override: 90%; descent-override: 22.5%; line-gap-override: 0%; }
@font-face { font-family: "Marck Fallback"; src: local("Snell Roundhand"), local("Brush Script MT"); size-adjust: 100%; ascent-override: 92%; descent-override: 30%; line-gap-override: 0%; }

/* ---- Tokens -------------------------------------------------------------- */
:root {
  --pink: #F598D3;
  --pink-soft: #FBDCEF;
  --pink-whisper: #FDF0F8;
  --cream: #FFF9F5;
  --beige: #E3CBA5;
  --beige-soft: #F5EBDD;
  --ink: #0D0D0D;
  --merlot: #5C1A2B;
  --merlot-70: rgb(92 26 43 / .72);
  --line: rgb(92 26 43 / .16);

  --serif: "Playfair Display", "Playfair Fallback", Georgia, serif;
  --sans: "Inter", "Inter Fallback", system-ui, -apple-system, sans-serif;
  --script: "Marck Script", "Marck Fallback", cursive;

  --fs-900: clamp(2.6rem, 2.5vw + 2rem, 4.4rem);
  --fs-800: clamp(2rem, 1.6vw + 1.5rem, 3rem);
  --fs-700: clamp(1.55rem, 1vw + 1.25rem, 2.1rem);
  --fs-600: clamp(1.25rem, .4vw + 1.1rem, 1.45rem);
  --fs-500: 1.125rem;
  --fs-400: 1rem;
  --fs-300: .875rem;
  --fs-200: .78rem;

  --space-1: .375rem; --space-2: .75rem; --space-3: 1.25rem;
  --space-4: 2rem;   --space-5: 3.25rem; --space-6: 5rem;

  --radius: 18px;
  --radius-arch: 999px 999px 18px 18px;   /* the nail-arch motif */
  --shadow-1: 0 1px 2px rgb(92 26 43 / .06), 0 8px 24px rgb(92 26 43 / .08);
  --shadow-2: 0 2px 6px rgb(92 26 43 / .08), 0 18px 48px rgb(92 26 43 / .16);
  --wrap: 72rem;
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-400);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: var(--fs-900); }
h2 { font-size: var(--fs-800); }
h3 { font-size: var(--fs-600); }
p  { margin: 0 0 1em; max-width: 65ch; }
a  { color: var(--merlot); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
ul, ol { padding-inline-start: 1.2em; }
::selection { background: var(--pink); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--merlot);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .8em 1.2em; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3rem, 8vw, var(--space-6)); }
.section--tint  { background: var(--pink-whisper); }
.section--beige { background: var(--beige-soft); }
.section--ink   { background: var(--ink); color: var(--cream); }
.section--ink :is(h1,h2,h3) { color: var(--cream); }
.section--ink a:not(.btn) { color: var(--pink); }
.section--ink .btn--primary { color: var(--ink); }          /* dark text on the pink button */
.section--ink .btn--primary:hover { background: var(--cream); color: var(--ink); }
.section--ink .btn--ghost { border-color: var(--cream); color: var(--cream); }
.section--ink .btn--ghost:hover { background: var(--cream); color: var(--ink); }
.section--ink .steps > li { background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .18); }
.section--ink .steps h3 { color: var(--cream); }
.section--ink .steps p { color: rgb(255 249 245 / .8); }

/* Script + eyebrow accents */
.script { font-family: var(--script); font-weight: 400; color: var(--merlot); font-size: clamp(1.35rem, .8vw + 1.15rem, 1.8rem); line-height: 1.2; }
.section--ink .script { color: var(--pink); }
.eyebrow {
  font-size: var(--fs-200); font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--merlot-70); margin: 0 0 .9em;
}
.section--ink .eyebrow { color: var(--pink); }
.center { text-align: center; }
.center p { margin-inline: auto; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: 600 var(--fs-400)/1 var(--sans);
  padding: .95em 1.7em; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; transition: background .2s, color .2s, border-color .2s, translate .15s;
}
.btn--primary { background: var(--pink); color: var(--ink); }
.btn--primary:hover { background: var(--merlot); color: var(--cream); }
.btn--ghost { border-color: var(--merlot); color: var(--merlot); background: transparent; }
.btn--ghost:hover { background: var(--merlot); color: var(--cream); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: var(--merlot); color: var(--cream); }
.btn .arrow { transition: translate .2s; }
.btn:hover .arrow { translate: 3px 0; }
.btn:active { translate: 0 1px; }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); min-height: 4.25rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 118px; height: auto; }
.site-nav { display: none; }
.menu-btn {
  display: inline-grid; place-items: center; gap: 4px;
  background: none; border: 1.5px solid var(--merlot); border-radius: 999px;
  padding: .65em 1.1em; font: 600 var(--fs-300) var(--sans); color: var(--merlot); cursor: pointer;
}
[popover].menu {
  inset: auto 0 0 auto;
  position: fixed; top: 4.5rem; right: .75rem;
  width: min(20rem, calc(100vw - 1.5rem));
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--cream); box-shadow: var(--shadow-2);
  padding: var(--space-3); margin: 0;
}
[popover].menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
[popover].menu a {
  display: block; padding: .7em .9em; border-radius: 12px;
  font-weight: 500; text-decoration: none; color: var(--ink);
}
[popover].menu a:hover, [popover].menu a[aria-current="page"] { background: var(--pink-soft); color: var(--merlot); }
[popover].menu a[aria-current="page"] { font-weight: 600; }

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .site-nav { display: flex; gap: clamp(1rem, 2vw, 1.9rem); align-items: center; }
  .site-nav a {
    font: 500 var(--fs-300)/1 var(--sans); color: var(--ink);
    text-decoration: none; padding-block: .4em; position: relative;
  }
  .site-nav a::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
    background: var(--merlot); scale: 0 1; transform-origin: left; transition: scale .22s;
  }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { scale: 1 1; }
  .site-nav a[aria-current="page"] { color: var(--merlot); font-weight: 600; }
  .site-nav .btn { padding: .7em 1.3em; font-size: var(--fs-300); }
  .site-nav .btn::after { content: none; }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero { overflow: clip; background: linear-gradient(180deg, var(--pink-whisper), var(--cream) 70%); }
.hero .wrap {
  display: grid; gap: var(--space-4); align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}
.hero-copy .script { display: block; margin-bottom: .4em; }
.hero-copy h1 { margin-bottom: .35em; }
.hero-copy .lede { font-size: var(--fs-500); color: var(--merlot-70); max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.hero-figure { margin: 0; position: relative; }
.hero-figure img {
  width: min(100%, 34rem); margin-inline: auto;
  border-radius: var(--radius-arch);
  box-shadow: var(--shadow-2);
}
.hero-figure figcaption {
  position: absolute; inset: auto auto -0.9rem 50%; translate: -50% 0;
  background: var(--ink); color: var(--cream);
  font: 500 var(--fs-300)/1 var(--sans);
  padding: .6em 1.1em; border-radius: 999px; box-shadow: var(--shadow-1);
  /* shrink-wrap the pill, but let long captions wrap instead of spilling past a phone screen */
  width: max-content; max-width: calc(100% - 2rem); text-align: center; line-height: 1.3;
}
@media (min-width: 820px) {
  .hero .wrap { grid-template-columns: 1.05fr .95fr; }
}

/* trust strip */
.trust { border-block: 1px solid var(--line); background: var(--cream); }
.trust ul {
  list-style: none; margin: 0; padding: var(--space-3) 0;
  display: flex; flex-wrap: wrap; gap: .6em clamp(1.2rem, 4vw, 3rem);
  justify-content: center;
}
.trust li { font: 500 var(--fs-300) var(--sans); color: var(--merlot); display: flex; gap: .5em; align-items: center; }
.trust li::before { content: "✦"; color: var(--pink); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Card grid (container-query driven) ---------------------------------- */
.card-grid {
  display: grid; gap: clamp(1rem, 2.5vw, 1.8rem);
  grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
}
/* JS fills these grids; reserve space so the footer never jumps (CLS) */
#set-grid { min-height: 100svh; }
#featured { min-height: min(100svh, 30rem); }
.set-card {
  container-type: inline-size;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: clip;
  transition: box-shadow .25s, translate .25s;
}
.set-card:hover { box-shadow: var(--shadow-2); translate: 0 -3px; }
.set-card figure { margin: 0; overflow: clip; aspect-ratio: 1; background: var(--pink-whisper); }
.set-card img { width: 100%; height: 100%; object-fit: cover; transition: scale .45s cubic-bezier(.2,.7,.2,1); }
.set-card:hover img { scale: 1.04; }
.set-card .meta { padding: var(--space-3); display: grid; gap: .35rem; }
.set-card h3 { margin: 0; font-size: var(--fs-600); }
.set-card .price { font: 600 var(--fs-400) var(--sans); color: var(--merlot); }
.set-card .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .2rem; }
.set-card .tag {
  font: 500 var(--fs-200)/1 var(--sans); color: var(--merlot);
  background: var(--pink-whisper); border: 1px solid var(--line);
  padding: .35em .7em; border-radius: 999px;
}
/* whole card clickable via stretched link */
.set-card .card-link { position: absolute; inset: 0; border-radius: inherit; }
.set-card .card-link:focus-visible { outline-offset: -3px; }
/* wider card → put text beside image */
@container (min-width: 26rem) {
  .set-card .inner { display: grid; grid-template-columns: 45% 1fr; align-items: center; }
}

/* ---- Filters -------------------------------------------------------------- */
.filters { display: grid; gap: var(--space-3); margin-block: var(--space-4); }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.filter-group .group-label {
  font: 600 var(--fs-200)/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--merlot-70); margin-right: .35rem; min-width: 4.2rem;
}
.chip {
  font: 500 var(--fs-300)/1 var(--sans); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: .55em 1em; cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.chip:hover { border-color: var(--merlot); }
.chip[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: var(--cream);
}
.filters-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2);
}
.result-count { font: 500 var(--fs-300) var(--sans); color: var(--merlot-70); }
.clear-filters { background: none; border: none; cursor: pointer; font: 500 var(--fs-300) var(--sans); color: var(--merlot); text-decoration: underline; text-underline-offset: .18em; padding: .4em; }
.clear-filters:hover { color: var(--ink); }
.no-results { padding: var(--space-5) 0; }

/* ---- Set detail dialog ----------------------------------------------------- */
dialog.set-detail {
  border: none; border-radius: var(--radius); padding: 0;
  width: min(60rem, calc(100vw - 2rem));
  max-height: min(92dvh, 60rem);
  box-shadow: var(--shadow-2); background: var(--cream);
}
dialog.set-detail::backdrop { background: rgb(13 13 13 / .55); backdrop-filter: blur(3px); }
.detail-grid { display: grid; }
.detail-grid figure { margin: 0; aspect-ratio: 1; background: var(--pink-whisper); }
.detail-grid img { width: 100%; height: 100%; object-fit: cover; }
.detail-body { padding: clamp(1.2rem, 3vw, 2.2rem); display: grid; gap: .7rem; align-content: start; }
.detail-body h2 { margin: 0; font-size: var(--fs-700); }
.detail-body .price { font: 600 var(--fs-500) var(--sans); color: var(--merlot); }
.detail-body .tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.detail-body .tags[hidden] { display: none; }
.detail-body .tag { font: 500 var(--fs-200)/1 var(--sans); color: var(--merlot); background: var(--pink-whisper); border: 1px solid var(--line); padding: .35em .7em; border-radius: 999px; }
.detail-body h3 { font: 600 var(--fs-300) var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--merlot-70); margin: .6em 0 .2em; }
.detail-body ul { margin: 0; columns: 2; column-gap: 1.5rem; padding-inline-start: 1.1em; font-size: var(--fs-300); }
.detail-body .order-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.detail-note { font-size: var(--fs-300); color: var(--merlot-70); }
.detail-close {
  position: absolute; top: .7rem; right: .7rem; z-index: 2;
  background: var(--cream); border: 1px solid var(--line); border-radius: 999px;
  width: 2.6rem; height: 2.6rem; font-size: 1.15rem; cursor: pointer; color: var(--ink);
  display: grid; place-items: center;
}
.detail-close:hover { background: var(--pink-soft); }
@media (min-width: 760px) {
  .detail-grid { grid-template-columns: minmax(0, 44%) 1fr; }
  .detail-grid figure { aspect-ratio: auto; height: 100%; }
}

/* ---- Sizing tool ----------------------------------------------------------- */
.tool-shell {
  display: grid; gap: var(--space-4);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.2rem, 3.5vw, 2.5rem);
}
@media (min-width: 880px) { .tool-shell { grid-template-columns: 1fr 1fr; } }

.hands { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); align-content: start; }
.hand-figure { margin: 0; text-align: center; }
.hand-figure figcaption { font: 600 var(--fs-300) var(--sans); color: var(--merlot-70); margin-top: .4rem; }
.hand-svg { max-width: 12rem; margin-inline: auto; }
.hand-svg .skin { fill: #F3E4D3; stroke: #C9A98A; stroke-width: 1.6; stroke-linejoin: round; }
.hand-svg .palm-fill { fill: #F3E4D3; }
.hand-svg .skin-edge { fill: none; stroke: #C9A98A; stroke-width: 1.6; stroke-linecap: round; }
.hand-svg .crease { fill: none; stroke: #C9A98A; stroke-width: 1.2; opacity: .7; }
.hand-svg .nail { fill: #fff; stroke: #C9A98A; stroke-width: 1.4; cursor: pointer; transition: fill .2s, stroke .2s; }
.hand-svg .nail:hover { stroke: var(--merlot); }
.hand-svg .nail.done { fill: var(--pink); stroke: var(--merlot); }
.hand-svg .nail.current { fill: var(--merlot); stroke: var(--ink); stroke-width: 2; }
.hand-svg .nail:focus-visible { outline: none; stroke: var(--ink); stroke-width: 3; }

.step-panel { display: grid; gap: var(--space-2); align-content: start; }
.step-panel .progress { font: 600 var(--fs-300) var(--sans); color: var(--merlot-70); }
.step-panel .finger-name { font-size: var(--fs-700); margin: 0; }
.measure-illustration { max-width: 15rem; margin-block: .3rem; }
.mm-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.mm-row input[type="number"] {
  font: 600 var(--fs-700) var(--sans); width: 6.2ch; text-align: center;
  padding: .3em .2em; border: 2px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--ink);
}
.mm-row input[type="number"]:focus-visible { border-color: var(--merlot); outline-offset: 1px; }
.unit-toggle { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.unit-toggle button {
  border: none; background: none; font: 600 var(--fs-300) var(--sans);
  padding: .5em 1em; cursor: pointer; color: var(--merlot);
}
.unit-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.size-hint {
  border-left: 3px solid var(--pink); background: var(--pink-whisper);
  padding: .8em 1em; border-radius: 0 12px 12px 0; font-size: var(--fs-300);
}
.size-hint strong { color: var(--merlot); }
.step-nav { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: .4rem; }
.session-note { font-size: var(--fs-200); color: var(--merlot-70); }

/* summary block */
.size-summary { margin-top: var(--space-4); }
.summary-box {
  background: var(--ink); color: var(--cream);
  border-radius: var(--radius); padding: var(--space-3);
  font: 500 var(--fs-300)/1.8 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
}
.summary-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); align-items: center; }
.copy-status { font: 500 var(--fs-300) var(--sans); color: var(--merlot); }

/* conversion table */
table.size-table { border-collapse: collapse; width: 100%; max-width: 30rem; font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { border: 1px solid var(--line); padding: .5em .9em; text-align: center; }
.size-table th { background: var(--pink-whisper); font: 600 var(--fs-300) var(--sans); color: var(--merlot); }
.size-table caption { caption-side: bottom; font-size: var(--fs-200); color: var(--merlot-70); padding-top: .6em; text-align: left; }

/* ---- Care / steps ----------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); counter-reset: step; }
.steps > li {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3);
}
.steps > li::before {
  counter-increment: step; content: counter(step);
  font: 600 var(--fs-600) var(--serif); color: var(--merlot);
  background: var(--pink-soft); width: 2.4rem; height: 2.4rem; border-radius: 999px;
  display: grid; place-items: center;
}
.steps h3 { margin: 0 0 .25em; font-size: var(--fs-500); font-family: var(--sans); font-weight: 600; }
.steps p { margin: 0; font-size: var(--fs-300); }
.recipe {
  background: var(--beige-soft); border-radius: var(--radius); padding: var(--space-3);
  font-size: var(--fs-300); border: 1px dashed var(--beige);
}

/* two-column info blocks (Why page) */
.split { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 820px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.flip > :first-child { order: 2; }
}
.split figure { margin: 0; }
.split img { border-radius: var(--radius-arch); box-shadow: var(--shadow-1); }

/* FAQ accordions */
details.faq {
  border-bottom: 1px solid var(--line); padding-block: var(--space-2);
}
details.faq summary {
  font: 600 var(--fs-500) var(--sans); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.4em; color: var(--merlot); transition: rotate .2s; }
details.faq[open] summary::after { rotate: 45deg; }
details.faq p { padding-top: .6em; }

/* ---- Footer ----------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--cream); margin-top: var(--space-6); }
.site-footer .wrap { padding-block: var(--space-5) var(--space-4); display: grid; gap: var(--space-4); }
.site-footer .tagline { font-family: var(--script); color: var(--pink); font-size: 1.6rem; margin: .3em 0 0; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--pink); text-decoration: underline; }
.site-footer .foot-head { font: 600 var(--fs-200)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--pink); margin-bottom: .8em; }
.site-footer .legal { border-top: 1px solid rgb(255 255 255 / .14); padding-top: var(--space-3); font-size: var(--fs-200); color: rgb(255 249 245 / .7); }
.site-footer .legal a { color: inherit; }
@media (min-width: 760px) { .site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: var(--space-4); } }
@media (max-width: 759.98px) { .site-footer .cols { display: grid; gap: var(--space-4); } }

/* ---- Motion: scroll-driven reveals (progressive enhancement) --------------- */
.reveal { /* visible by default — animation only where supported */ }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 45%;
    }
    @keyframes rise-in {
      from { opacity: 0; translate: 0 28px; }
      to   { opacity: 1; translate: 0 0; }
    }
    .hero-figure img {
      animation: hero-drift linear both;
      animation-timeline: scroll();
      animation-range: 0 60vh;
    }
    @keyframes hero-drift { to { translate: 0 -18px; } }
  }
}

/* ---- View transitions (cross-document + dialog morph) ----------------------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation-duration: .18s; }
  ::view-transition-new(root) { animation-duration: .26s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---- Print: everything hidden except the size chart ------------------------- */
.print-sheet { display: none; }
@media print {
  @page { size: letter portrait; margin: 0.5in; }
  body * { visibility: hidden; }
  .print-sheet { display: block !important; visibility: visible !important; position: absolute; inset: 0; background: #fff; color: #000; }
  .print-sheet * { visibility: visible !important; }
  .print-sheet h1 { font-size: 20pt; margin-bottom: 2mm; }
  .print-sheet p { font-size: 9.5pt; max-width: none; }

  /* True-scale pieces: mm units are honored by print engines at 100% scale */
  .cal-ruler { width: 100mm; height: 10mm; border: 0.4mm solid #000; position: relative; margin: 4mm 0 1mm; }
  .cal-ruler .tick { position: absolute; top: 0; width: 0.25mm; background: #000; height: 4mm; }
  .cal-ruler .tick.major { height: 7mm; }
  .size-bars { list-style: none; padding: 0; margin: 4mm 0; }
  .size-bars li { display: flex; align-items: center; gap: 4mm; margin-bottom: 3.2mm; }
  .size-bars .bar { height: 9mm; background: #f7cfe9; border: 0.4mm solid #000; border-radius: 4.5mm 4.5mm 1mm 1mm; }
  .size-bars .lbl { font: 600 10pt "Inter", sans-serif; width: 46mm; }
}
