/* ==========================================================================
   Haya Atelier storefront - base, typography, layout, buttons, media, primitives (V6 "Warm Glass Atelier")
   Uses tokens.css custom properties only. Mobile-first, logical properties (RTL-ready), rem units.
   Component files: components/{header,footer,forms,ui,dialog,cms}.css ; pages: pages/*.css ; art direction: docs/DESIGN_V6.md ; tokens + contrast: docs/DESIGN_SYSTEM.md
   ========================================================================== */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-block-start: calc(var(--header-h) + 1.25rem); scrollbar-gutter: stable; background: var(--cream); }
html:not([data-motion="reduced"]) { scroll-behavior: smooth; }
body {
  margin: 0; min-width: 20rem; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--fs-base); line-height: var(--lh-base); font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }
img, svg, video, canvas, picture { max-width: 100%; display: block; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
p, ul, ol, dl, figure, blockquote { margin: 0 0 var(--space-4); }
ul, ol { padding-inline-start: 1.25rem; }
hr { border: 0; border-block-start: var(--hairline); margin-block: var(--space-6); }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--cocoa); color: var(--cream); }
main:focus { outline: none; }
table { border-collapse: collapse; }

/* ---------- typography: Instrument Serif headings (ONE weight, tight leading, italic for the emphasised word), plain sans body, tracked uppercase labels ---------- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: var(--fw-display); line-height: var(--lh-snug); margin: 0 0 var(--space-4); letter-spacing: var(--tracking-title); text-wrap: balance; }
h1, h2 { letter-spacing: var(--tracking-display); }
h1 { font-size: var(--fs-h1); line-height: .98; }
h2 { font-size: var(--fs-h2); line-height: 1.02; }
h3 { font-size: var(--fs-h3); line-height: 1.08; }
h4 { font-size: var(--fs-h4); line-height: 1.15; }
h5 { font-size: var(--fs-md); line-height: 1.2; }
/* Emphasis in a headline is the italic serif (same colour: the italic itself is the accent). */
h1 em, h2 em, h3 em, h4 em, .display em, .statement em { font-style: italic; font-weight: inherit; color: inherit; }
.on-dark em, .text-on-photo em { color: inherit; }
p { text-wrap: pretty; }
.display { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-3xl); line-height: .92; letter-spacing: var(--tracking-display); margin: 0; }
.display--xl { font-size: var(--fs-2xl); line-height: .95; }
/* section statement: big serif sentence, very tight */
.statement { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-statement); line-height: .94; letter-spacing: var(--tracking-display); margin: 0; text-wrap: balance; overflow-wrap: break-word; }
.statement--md { font-size: clamp(2.25rem, 1rem + 5vw, 6rem); }
.statement--sentence { line-height: .96; }
.lead { font-size: var(--fs-md); line-height: 1.55; color: var(--text-muted); max-width: 46ch; }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-sm); }
.num { font-variant-numeric: tabular-nums; }
.caps, .label { text-transform: uppercase; letter-spacing: var(--tracking-label); font-size: var(--fs-label); font-weight: 600; line-height: 1.3; }
.serif { font-family: var(--font-display); font-weight: var(--fw-display); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 var(--space-4);
  font: 600 var(--fs-label)/1.2 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted);
}
.eyebrow::before { content: ""; inline-size: .4rem; block-size: .4rem; border-radius: 50%; background: var(--olive); flex: none; }
/* tracked-caps tagline between two hairlines (hero / banners) */
.tagline-lines { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0; font: 600 var(--fs-label)/1.2 var(--font-body); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.tagline-lines::before, .tagline-lines::after { content: ""; flex: 0 1 4rem; block-size: 1px; background: currentColor; opacity: .55; }
.on-dark, .text-on-photo { color: var(--on-dark); }
.on-dark .muted, .on-dark .lead { color: var(--on-dark-muted); }
.on-dark .eyebrow { color: var(--on-dark-muted); }
.nowrap { white-space: nowrap; }

/* ---------- layout: full-bleed sections, 12-col inner grid ---------- */
.container { inline-size: 100%; max-inline-size: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-inline-size: calc(var(--container-narrow) + var(--gutter) * 2); }
.container--wide { max-inline-size: var(--container); }
.container--bleed { max-inline-size: none; padding-inline: 0; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .55); }
.section--flush { padding-block: 0; }
.section--alt, .section--surface { background: var(--sand); }
/* Never a dark section: the old --dark / --ink / --poppy names are warm TAUPE panels with ink text (8.9:1), --blush a sand panel. */
.section--dark, .section--ink, .section--poppy { background: var(--taupe); color: var(--ink); --text: var(--ink); --text-muted: var(--muted-strong); --line: rgba(42, 27, 21, .18); --line-strong: rgba(42, 27, 21, .34); --ctl-border: var(--ink); }
.section--blush { background: var(--sand); --line: rgba(var(--cocoa-rgb), .16); --line-strong: rgba(var(--cocoa-rgb), .3); }

/* section head: eyebrow + serif headline on the left, underlined link / rail arrows on the right */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4) var(--space-6); margin-block-end: clamp(1.5rem, 1rem + 2.4vw, 3.5rem); }
.sec-head > div:first-child { min-inline-size: 0; flex: 1 1 24rem; }
.sec-head .eyebrow { margin-block-end: var(--space-3); }
.sec-head p { margin: var(--space-3) 0 0; max-inline-size: 52ch; color: var(--text-muted); }
.sec-head__tail { display: flex; align-items: center; gap: var(--space-4); flex: none; }
/* legacy head (older sections / other pages) */
.section__head { display: grid; gap: var(--space-4); margin-block-end: clamp(2rem, 1rem + 3vw, 4rem); }
.section__head h2 { margin: 0; max-inline-size: 18ch; font-size: var(--fs-xl); }
.section__head p { margin: 0; max-inline-size: 50ch; color: var(--text-muted); }
@media (min-width: 48rem) {
  .section__head--split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; column-gap: var(--space-7); }
  .section__head--split .section__tail { justify-self: end; text-align: end; }
}
/* page head (listings, content pages): eyebrow, serif H1, count / description */
.page-head { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(1.25rem, .5rem + 2vw, 2.5rem); }
.page-head__title { margin: 0 0 var(--space-3); }
.page-head__sub { margin: 0; max-inline-size: 56ch; color: var(--text-muted); }
.page-head__meta { margin: var(--space-3) 0 0; color: var(--text-muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.page-head--center { text-align: center; }
.page-head--center .page-head__sub { margin-inline: auto; }
.stack > * + * { margin-block-start: var(--stack, var(--space-4)); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, var(--space-3)); }
.grid { display: grid; gap: var(--grid-gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.grid--12, .grid-12 { display: grid; grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr)); gap: var(--grid-gap); }
.grid-12 > *, .grid--12 > * { grid-column: span 12; min-inline-size: 0; }
.cols-1-2 { grid-column: span 12; }
@media (min-width: 48rem) {
  .grid-12 > .span-1, .grid--12 > .span-1 { grid-column: span 1; } .grid-12 > .span-2, .grid--12 > .span-2 { grid-column: span 2; } .grid-12 > .span-3, .grid--12 > .span-3 { grid-column: span 3; }
  .grid-12 > .span-4, .grid--12 > .span-4 { grid-column: span 4; } .grid-12 > .span-5, .grid--12 > .span-5 { grid-column: span 5; } .grid-12 > .span-6, .grid--12 > .span-6 { grid-column: span 6; }
  .grid-12 > .span-7, .grid--12 > .span-7 { grid-column: span 7; } .grid-12 > .span-8, .grid--12 > .span-8 { grid-column: span 8; } .grid-12 > .span-9, .grid--12 > .span-9 { grid-column: span 9; }
  .grid-12 > .span-10, .grid--12 > .span-10 { grid-column: span 10; } .grid-12 > .span-11, .grid--12 > .span-11 { grid-column: span 11; } .grid-12 > .span-12, .grid--12 > .span-12 { grid-column: span 12; }
}
@media (min-width: 64rem) { .cols-1-2 { grid-column: span 6; } }
.visually-hidden, .sr-only { position: absolute !important; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; inset-inline-start: var(--space-4); inset-block-start: var(--space-4); z-index: calc(var(--z-preloader) + 5); padding: var(--space-3) var(--space-5); border-radius: 999px; white-space: nowrap;
  background: var(--cocoa); color: var(--cream); font-weight: 600; text-decoration: none; transform: translateY(calc(-100% - 2rem)); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; outline: 2px solid var(--cream); outline-offset: 2px; box-shadow: 0 0 0 4px var(--cocoa); }
.divider { display: flex; align-items: center; gap: var(--space-4); color: var(--text-muted); }
.divider::before, .divider::after { content: ""; flex: 1; block-size: 1px; background: var(--line-strong); }

/* ---------- icons ---------- */
.icon { inline-size: 1.25rem; block-size: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }
.icon--sm { inline-size: 1rem; block-size: 1rem; }
.icon--lg { inline-size: 1.75rem; block-size: 1.75rem; }
[dir="rtl"] .icon--flip { transform: scaleX(-1); }

/* ---------- links: underline slide; link-arrow = underlined text + arrow ---------- */
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-block-end: .15em; transition: background-size var(--dur-3) var(--ease-soft), color var(--dur-2); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .65rem; min-block-size: var(--tap); font: 600 var(--fs-sm)/1.2 var(--font-body); letter-spacing: .01em; text-decoration: none; color: var(--text); }
.link-arrow > span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .38em; transition: text-decoration-color var(--dur-2), text-decoration-thickness var(--dur-2); }
.link-arrow .icon { inline-size: 1.1rem; block-size: 1.1rem; transition: transform var(--dur-3) var(--ease-soft); }
.link-arrow:hover > span { text-decoration-color: var(--olive); text-decoration-thickness: 2px; }
.link-arrow:hover .icon { transform: translateX(.3rem); }
[dir="rtl"] .link-arrow:hover .icon { transform: translateX(-.3rem) scaleX(-1); }

/* ---------- buttons (V6): pills. Primary = cocoa with cream text, hover lifts softly (the `translate` property, so it never fights the magnetic transform) and lightens to cocoa-2.
   Secondary = cream / white glass with a hairline, hover white + cocoa border. Outline = hairline cocoa. Accent = taupe fill with INK text. Add data-magnetic for the pointer pull (motion kit). ---------- */
.btn {
  --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--line-strong); --btn-fill: var(--cream); --btn-fill-fg: var(--ink); --btn-fill-bd: var(--cocoa); --btn-sh: none;
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-block-size: var(--btn-h); padding: .8rem 1.75rem; border: 1px solid var(--btn-bd); border-radius: var(--btn-radius, var(--radius-pill)); background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--btn-sh);
  font: 600 var(--fs-sm)/1.1 var(--font-body); letter-spacing: .01em; text-decoration: none; text-align: center; white-space: nowrap;
  cursor: pointer; transition: background-color var(--dur-3) var(--ease-soft), color var(--dur-3) var(--ease-soft), border-color var(--dur-3) var(--ease-soft), box-shadow var(--dur-3) var(--ease-soft), translate var(--dur-3) var(--ease-soft), transform var(--dur-2) var(--ease-out);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 60%); opacity: 0; transition: opacity var(--dur-3) var(--ease-soft); }
.btn:hover, .btn:focus-visible { background: var(--btn-fill); color: var(--btn-fill-fg); border-color: var(--btn-fill-bd); translate: 0 -2px; box-shadow: var(--shadow-1); }
.btn:hover::before, .btn:focus-visible::before { opacity: 1; }
.btn .icon { inline-size: 1.05rem; block-size: 1.05rem; transition: transform var(--dur-3) var(--ease-soft); }
.btn:hover .icon { transform: translateX(.25rem); }
[dir="rtl"] .btn:hover .icon { transform: translateX(-.25rem) scaleX(-1); }
.btn:active { translate: 0 0; transform: scale(.985); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn--primary { --btn-bg: var(--cocoa); --btn-fg: var(--cream); --btn-bd: var(--cocoa); --btn-fill: var(--cocoa-2); --btn-fill-fg: var(--cream); --btn-fill-bd: var(--cocoa-2); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--white); --btn-fill: var(--cream); --btn-fill-fg: var(--ink); --btn-fill-bd: var(--cream); }
/* accent: taupe fill with INK text (8.9:1). .btn--gold / .btn--sky are the old names. */
.btn--accent, .btn--gold, .btn--sky { --btn-bg: var(--taupe); --btn-fg: var(--ink); --btn-bd: var(--taupe); --btn-fill: var(--sand); --btn-fill-fg: var(--ink); --btn-fill-bd: var(--sand); }
.btn--secondary { --btn-bg: rgba(255, 250, 244, .72); --btn-fg: var(--ink); --btn-bd: var(--line-strong); --btn-fill: var(--white); --btn-fill-fg: var(--ink); --btn-fill-bd: var(--cocoa); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--cocoa); --btn-bd: var(--cocoa); --btn-fill: var(--cocoa); --btn-fill-fg: var(--cream); --btn-fill-bd: var(--cocoa); }
/* over photography: frosted cream glass with INK text (never white-on-photo) */
.btn--outline-light { --btn-bg: var(--glass-bg-strong); --btn-fg: var(--ink); --btn-bd: rgba(255, 255, 255, .8); --btn-fill: var(--white); --btn-fill-fg: var(--ink); --btn-fill-bd: var(--white); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn--ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fill: var(--sand); --btn-fill-fg: var(--text); --btn-fill-bd: transparent; padding-inline: 1.1rem; }
.btn--sm { min-block-size: var(--tap); padding: .6rem 1.3rem; font-size: var(--fs-xs); }
.btn--lg { min-block-size: 3.5rem; padding: 1rem 2.25rem; font-size: var(--fs-base); }
.btn--block { inline-size: 100%; }
.btn--icon { inline-size: var(--tap); min-inline-size: var(--tap); padding: 0; }
@media (prefers-reduced-motion: reduce) { .btn, .btn::before { transition: none; } .btn:hover, .btn:focus-visible { translate: none; } .btn:active { transform: none; } }
html[data-motion="reduced"] .btn, html[data-motion="reduced"] .btn::before { transition: none; }
html[data-motion="reduced"] .btn:hover, html[data-motion="reduced"] .btn:focus-visible { translate: none; }
html[data-motion="reduced"] .btn:active { transform: none; }
/* small circular arrow button (category cards, rails, banners): a round glass disc, fills cocoa on hover */
.arrow-btn { display: inline-grid; place-items: center; inline-size: var(--tap); block-size: var(--tap); padding: 0; border: 1px solid var(--glass-border); border-radius: 50%; background: var(--glass-bg-strong); color: var(--ink); text-decoration: none; cursor: pointer; -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: var(--shadow-1); transition: background-color var(--dur-3) var(--ease-soft), color var(--dur-3) var(--ease-soft), translate var(--dur-3) var(--ease-soft); }
.arrow-btn .icon { inline-size: 1.05rem; block-size: 1.05rem; transition: transform var(--dur-3) var(--ease-soft); }
.arrow-btn:hover, a:hover > .arrow-btn, .arrow-btn:focus-visible { background: var(--cocoa); color: var(--cream); translate: 0 -2px; }
.arrow-btn:hover .icon, a:hover > .arrow-btn .icon { transform: translateX(.15rem); }

/* ---------- tags and stickers: small pill labels; INK or CREAM text on every fill ---------- */
.tag { display: inline-flex; align-items: center; padding: .28rem .65rem; border-radius: var(--radius-pill); background: var(--white); color: var(--ink); font: 700 var(--fs-label)/1.1 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; white-space: nowrap; }
.tag--sale { background: var(--cocoa); color: var(--cream); }
.tag--new { background: var(--olive-soft); color: var(--ink); }
.tag--dark { background: var(--cocoa); color: var(--cream); }
.tag--blush, .tag--sky { background: var(--sand); color: var(--ink); }
.tag--mint { background: var(--olive-soft); color: var(--ink); }
.tag--line { background: transparent; border: 1px solid var(--line-strong); }
.sticker {
  --sticker-bg: var(--taupe); --sticker-rot: -3deg; display: inline-block; padding: .45em .95em .4em; border-radius: var(--radius-pill); background: var(--sticker-bg); color: var(--ink);
  font: 700 var(--fs-xs)/1 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; white-space: nowrap; rotate: var(--sticker-rot);
}
.sticker--tangerine { --sticker-bg: var(--taupe); --sticker-rot: 4deg; }
.sticker--sky { --sticker-bg: var(--sand); --sticker-rot: -5deg; }
.sticker--mint { --sticker-bg: var(--olive-soft); --sticker-rot: 3deg; }
.sticker--white { --sticker-bg: var(--white); box-shadow: 0 0 0 1px var(--line); }

/* ---------- media: rounded photographs ---------- */
.media { position: relative; overflow: hidden; background: var(--ph-cool); border-radius: var(--r-img); }
.media > img, .media > picture, .media > picture > img, .media > video { inline-size: 100%; block-size: 100%; object-fit: cover; }
.zoom { overflow: hidden; }
.zoom img { transition: transform 1.2s var(--ease-out); }
.zoom:hover img, a:hover > .zoom img, a:hover .zoom img { transform: scale(1.04); }
.ratio-1 { aspect-ratio: 1 / 1; } .ratio-4-5 { aspect-ratio: 4 / 5; } .ratio-3-4 { aspect-ratio: 3 / 4; } .ratio-2-3 { aspect-ratio: 2 / 3; }
.ratio-3-2 { aspect-ratio: 3 / 2; } .ratio-16-9 { aspect-ratio: 16 / 9; } .ratio-21-9 { aspect-ratio: 21 / 9; }
.arch { border-start-start-radius: 999px; border-start-end-radius: 999px; }
.round-xl { border-radius: var(--radius-xl); }
.round-2xl { border-radius: var(--radius-2xl); }
/* Honest placeholder when an image has not been produced yet: soft warm gradient + monogram, never a broken image. */
.ph {
  position: relative; display: grid; place-items: center; overflow: hidden; color: rgba(var(--cocoa-rgb), .3);
  background: var(--ph-cool);
}
.ph::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .5; mix-blend-mode: multiply; pointer-events: none; }
.ph svg { inline-size: 22%; max-inline-size: 5rem; block-size: auto; opacity: .45; position: relative; z-index: 1; }
.ph--dark { color: rgba(var(--cocoa-rgb), .4); background: linear-gradient(180deg, var(--taupe), #BFAB95); }
.ph--sage { background: linear-gradient(180deg, var(--olive-soft), #D6DABF); color: rgba(var(--cocoa-rgb), .4); }
:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .1 0 0 0 0 .08 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* category / editorial tile: rounded 3:4 photograph, caption BELOW (underlined) */
.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); list-style: none; margin: 0; padding: 0; }
@media (min-width: 48rem) { .tile-grid { grid-template-columns: repeat(var(--tiles, 4), minmax(0, 1fr)); } }
.tile-grid > li { min-inline-size: 0; }
.cat-tile { display: block; color: inherit; text-decoration: none; }
.cat-tile__media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--ph-cool); border-radius: var(--r-card); }
.cat-tile__media img, .cat-tile__media picture { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-out); }
.cat-tile:hover .cat-tile__media img { transform: scale(1.04); }
.cat-tile__cap { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding: 1rem .25rem 1.5rem; }
.cat-tile__name { font: 400 var(--fs-lg)/1.1 var(--font-display); letter-spacing: var(--tracking-title); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; text-decoration-color: var(--line-strong); }
.cat-tile:hover .cat-tile__name { text-decoration-color: var(--olive); text-decoration-thickness: 2px; }
.cat-tile__go { flex: none; transition: transform var(--dur-3) var(--ease-soft); }
.cat-tile:hover .cat-tile__go { transform: translateX(.3rem); }
.cat-tile__blurb { display: block; margin-block-start: .25rem; font-size: var(--fs-sm); color: var(--text-muted); }

/* split: two rounded panels */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gutter); }
@media (min-width: 64rem) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split--reverse > :first-child { order: 2; } }
.split__media { position: relative; min-inline-size: 0; min-block-size: 24rem; background: var(--ph-cool); overflow: hidden; border-radius: var(--r-card-lg); }
.split__panel { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--space-4); min-inline-size: 0; padding: clamp(2rem, 1rem + 5vw, 6rem) var(--gutter); background: var(--sand); border-radius: var(--r-card-lg); }
@media (min-width: 64rem) { .split__panel { padding-inline: clamp(2rem, 6vw, 7rem); } }
.split--blush .split__panel { background: var(--sand); --line: rgba(var(--cocoa-rgb), .16); --line-strong: rgba(var(--cocoa-rgb), .3); }
.split--ink .split__panel { background: var(--taupe); color: var(--ink); }

/* ---------- product grids (cards themselves: components/product-card, pages/product-card.css) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--gutter); list-style: none; margin: 0; padding: 0; }
@media (min-width: 48rem) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem var(--gutter); } }
@media (min-width: 70rem) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 48rem) { .product-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* horizontal rail with native scroll-snap (works with no JS, keyboard scrollable); --rail-cols = visible columns (fractions peek the next card) */
.rail-wrap { position: relative; --rail-gap: var(--gutter); --rail-cols: 2.15; --rail-pad: var(--gutter); }
@media (min-width: 48rem) { .rail-wrap { --rail-cols: 3.2; } }
@media (min-width: 70rem) { .rail-wrap { --rail-cols: 4.2; } }
@media (min-width: 100rem) { .rail-wrap { --rail-cols: 5.2; --rail-pad: max(var(--gutter), calc(50% - var(--container) / 2 + var(--gutter))); } }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - var(--rail-pad) * 2 - var(--rail-gap) * (var(--rail-cols) - 1)) / var(--rail-cols)); gap: var(--rail-gap); list-style: none; margin: 0;
  padding: 0 var(--rail-pad) var(--space-3); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--rail-pad); scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; min-inline-size: 0; }
.rail--bleed { margin-inline: 0; }
.rail-bar { position: relative; block-size: 2px; margin: var(--space-4) var(--gutter) 0; background: var(--line); --rail-v: 1; --rail-p: 0; border-radius: 2px; }
@media (min-width: 100rem) { .rail-bar { margin-inline: auto; max-inline-size: calc(var(--container) - var(--gutter) * 2); } }
.rail-bar > span { display: block; block-size: 100%; background: var(--cocoa); border-radius: inherit; inline-size: calc(var(--rail-v) * 100%); margin-inline-start: calc((1 - var(--rail-v)) * var(--rail-p) * 100%); transition: margin-inline-start .15s linear; }
.rail-nav { display: flex; gap: .5rem; }
.rail-nav button { display: inline-grid; place-items: center; inline-size: var(--tap); block-size: var(--tap); padding: 0; border: 1px solid var(--glass-border); border-radius: 50%; background: var(--glass-bg-strong); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-1); transition: background-color var(--dur-3) var(--ease-soft), color var(--dur-3) var(--ease-soft), translate var(--dur-3) var(--ease-soft); }
.rail-nav button:hover:not(:disabled) { background: var(--cocoa); color: var(--cream); translate: 0 -2px; }
.rail-nav button:disabled { opacity: .35; cursor: default; }
/* Minimal product tile used by homepage sections until/unless components/product-card is available */
.tile { position: relative; display: grid; gap: var(--space-3); text-decoration: none; }
.tile__img { display: block; aspect-ratio: 4 / 5; }
.tile__name { font-family: var(--font-body); font-weight: 500; font-size: var(--fs-base); line-height: 1.25; margin: 0; }
.tile__price { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; font-variant-numeric: tabular-nums; }

/* marquee: structure and keyframes live in css/motion.css (motion kit), the band look in css/pages/home/marquee.css */

/* ---------- bento (lookbook): rounded photographs, hover captions ---------- */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(11rem, 44vw, 18rem); gap: 12px; list-style: none; margin: 0; padding: 0; }
.bento__item { position: relative; min-inline-size: 0; overflow: hidden; background: var(--ph-cool); border-radius: var(--r-card); }
.bento__item:first-child { grid-column: span 2; grid-row: span 2; }
.bento__item img, .bento__item picture { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-out); }
.bento__item:hover img { transform: scale(1.04); }
.bento__link { position: absolute; inset: 0; z-index: 1; color: var(--on-dark); text-decoration: none; }
.bento__cap { position: absolute; inset: auto 0 0 0; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 1.5rem 1.25rem 1rem; font: 600 var(--fs-label)/1.2 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; background: linear-gradient(0deg, rgba(42, 27, 21, .74), rgba(42, 27, 21, 0)); transform: translateY(0); }
@media (max-width: 63.99rem) { .bento__item:last-child:nth-child(even) { grid-column: 1 / -1; } }
@media (min-width: 64rem) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(12rem, 17vw, 17rem); gap: 16px; }
  .bento__item:first-child { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .bento__item:nth-child(2) { grid-column: 3; grid-row: 1; }
  .bento__item:nth-child(3) { grid-column: 4; grid-row: 1 / span 2; }
  .bento__item:nth-child(4) { grid-column: 3; grid-row: 2; }
  .bento__item:nth-child(5) { grid-column: 1 / span 2; grid-row: 3; }
  .bento__item:nth-child(6) { grid-column: 3 / span 2; grid-row: 3; }
  .bento__item:nth-child(5):last-child { grid-column: 1 / -1; }
  .bento__cap { opacity: 0; transform: translateY(.6rem); transition: opacity .4s var(--ease-soft), transform .6s var(--ease-out); }
  .bento__item:hover .bento__cap, .bento__link:focus-visible .bento__cap { opacity: 1; transform: none; }
}

/* ---------- stats (why us): big serif numerals over hairline columns ---------- */
.stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; }
@media (min-width: 48rem) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); } }
.stats__item { padding-block: var(--space-5) var(--space-6); border-block-start: 1px solid var(--cocoa); }
.stats__num { display: block; margin: 0 0 var(--space-4); font: 400 clamp(4rem, 2rem + 8vw, 9rem)/.85 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats__num small { font: 600 .16em/1 var(--font-body); letter-spacing: var(--tracking-caps); margin-inline-start: .35em; text-transform: uppercase; }
.stats__title { margin: 0 0 var(--space-2); font: 600 var(--fs-md)/1.25 var(--font-body); }
.stats__text { margin: 0; max-inline-size: 36ch; color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- full-width block with a big headline (newsletter) ---------- */
.cta-block { display: grid; gap: var(--space-6); align-items: end; }
@media (min-width: 64rem) { .cta-block { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-8); } }

/* ---------- scroll reveal (JS adds html.hz-motion; without JS nothing is ever hidden; slow and soft) ---------- */
html.hz-motion [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(1.5rem); }
html.hz-motion [data-reveal] { transition: opacity .9s var(--ease-soft) calc(var(--i, 0) * 90ms), transform 1.1s var(--ease-out) calc(var(--i, 0) * 90ms); }
html.hz-motion [data-mask]:not(.is-in) { opacity: 0; }
html.hz-motion [data-mask] { transition: opacity .9s var(--ease-soft) calc(var(--i, 0) * 90ms); }

/* ---------- view transitions (progressive) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .38s; animation-timing-function: var(--ease-out); }
::view-transition-group(product-image) { animation-duration: .7s; animation-timing-function: var(--ease-editorial); }
::view-transition-old(product-image), ::view-transition-new(product-image) { block-size: 100%; object-fit: cover; }
html[data-motion="reduced"]::view-transition-group(*), html[data-motion="reduced"]::view-transition-old(*), html[data-motion="reduced"]::view-transition-new(*) { animation-duration: .01ms !important; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- page wrapper ---------- */
#hz-page { min-block-size: 100vh; display: flex; flex-direction: column; }
#hz-page > main { flex: 1 0 auto; }
.page-pad { padding-block: clamp(2rem, 1rem + 3vw, 4rem); }
.noscript-note { padding: var(--space-3) var(--gutter); background: var(--sand); text-align: center; font-size: var(--fs-sm); }

@media print {
  .site-header, .announce, .demo-strip, .site-footer, .consent, #hz-toasts, .drawer, .search-overlay { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Owner rule (2026-11-29): image-provenance chips and lines are not shown on the storefront unless SHOW_IMAGE_NOTICE=true adds .show-image-notice to <html>. The full attribution lives in docs/CREDITS.md and the asset register (no public credits page). */
html:not(.show-image-notice) :is(.ai-chip, .ai-tag, .sh-ai, .fx-photo__ai, .hx__ai) { display: none !important; }

/* ==========================================================================
   APPEARANCE settings (Admin > Settings > Appearance & 3D). These rules only match when App\Services\Appearance writes a data attribute on <html>; the default settings write none,
   so nothing below applies to the current design. Token overrides (colours, fonts, widths, radii, speed) arrive in one <style> block from the layout, not from here.
   ========================================================================== */
/* Sticky header OFF: the bar scrolls away with the page; the sticky page widgets (filters, sidebars) then start at the top instead of below a header that is no longer there. */
html[data-sticky="off"] { --header-h: 0px; }
html[data-sticky="off"] .site-header { position: relative; }
html[data-sticky="off"] .site-header.is-hidden { transform: none; }
/* Icon style: bold = thicker outline; tint = a soft fill on the closed-shape icons of the sprite (the arrows / chevrons / ticks stay lines). */
html[data-icons="bold"] svg.icon, html[data-icons="bold"] .cbtn svg, html[data-icons="bold"] .pc svg, html[data-icons="bold"] .pdp-gallery__full svg, html[data-icons="bold"] .qv svg { stroke-width: 2.1; }
html[data-icons="tint"] .icon:not(.icon--fill) use:where([href="#i-heart"], [href="#i-bag"], [href="#i-user"], [href="#i-mail"], [href="#i-info"], [href="#i-alert"], [href="#i-truck"], [href="#i-cash"], [href="#i-lock"], [href="#i-camera"], [href="#i-shield"], [href="#i-pin"], [href="#i-cube"], [href="#i-hanger"], [href="#i-eye"], [href="#i-search"], [href="#i-sparkle"]) { fill: rgba(var(--cocoa-rgb), .16); }

/* ---------- PHONES: readable text and comfortable tap targets (phone audit 2026-11-30): the look stays, the touch area grows ---------- */
/* phones and tablets are touch screens: the same comfortable touch areas up to the desktop layout (tablet audit 2026-11-30) */
@media (max-width: 63.99rem) {
  .breadcrumbs a { min-block-size: 2.5rem; padding-inline: .3rem; }
  .footer-brand address a { display: inline-flex; align-items: center; min-block-size: 2.5rem; }
  .cms-help__blocks a { display: inline-flex; align-items: center; min-block-size: 2.5rem; }
  /* the announcement link keeps its size; only its touch area grows (padding on an inline link does not change the line) */
  .announce__item a { padding-block: .8em; }
}
@media (max-width: 47.99rem) {
  .hx-sw { inline-size: 2rem; block-size: 2rem; }
}
