/* Base: reset, typography, layout primitives, utilities */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100svh;
  font: 400 var(--fs-body)/var(--lh-body) var(--f-body);
  color: var(--c-text); background: var(--c-bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
  /* A word longer than its line breaks instead of overflowing, in any language at any width.
     "anywhere" (not "break-word") also lets grid/flex tracks shrink below the longest word;
     a break happens only when nothing else fits. Numbers and prices never break (below). */
  overflow-wrap: anywhere;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: var(--lh-head); text-wrap: balance; }
/* Hyphenation is a per-locale typographic choice (_locale.json → "hyphens"), body copy only */
[data-hyphens="auto"] :is(p, li, small, .t-lead) { hyphens: auto; }
/* ...and in headings, where a compound longer than the line would otherwise break without a hyphen */
[data-hyphens="auto"] :is(h1, h2, h3, h4, .lot__title, .s-card__title) { hyphens: auto; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 3px; border-radius: var(--r-xs); }
::selection { background: rgba(234, 91, 154, .35); }

/* Typography roles */
.t-display { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-xl); line-height: var(--lh-tight); letter-spacing: -.025em; }
.t-h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-lg); line-height: var(--lh-head); letter-spacing: -.02em; }
.t-h3 { font-family: var(--f-body); font-weight: 700; font-size: var(--fs-md); line-height: 1.25; letter-spacing: -.01em; }
.t-lead { font-size: var(--fs-body-lg); color: var(--c-text-2); max-width: 60ch; }
.t-muted { color: var(--c-text-3); }
.t-num { font-variant-numeric: tabular-nums; }

/* Layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); }
.section-head { display: grid; gap: var(--s-4); margin-bottom: clamp(32px, 4vw, 56px); max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.kicker { font-size: var(--fs-sm); font-weight: 600; color: var(--c-pink); letter-spacing: .02em; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -80px; z-index: 200; padding: 12px 18px;
  border-radius: var(--r-pill); background: var(--c-btn); color: #fff; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* Single-column text stacks take their width from the container, never from their longest word
   or number, so text wraps (or display type is fitted) instead of widening the card. */
:where(.p-card, .s-card, .story-row, .lot:not(.lot--compact), .section-head, .p-card__body, .s-card__body, .lot__body, .dialog__body, .feature-offer__body, .story-row__text, .thanks-empty, .rewards__head, .download__copy, .lot-detail__block, .site-footer__brand, .site-footer__col, .field, .shop-guide div, .drawer__foot) { grid-template-columns: minmax(0, 1fr); }

/* Numbers and prices keep their own direction inside RTL text */
.price, .price-xl, .lot__price, .lot-detail__price, .t-num, .p-card__qty, .cart-line__price, .cat-chip__count { unicode-bidi: isolate; overflow-wrap: normal; }
/* Directional icons point the other way in RTL */
[dir="rtl"] svg:has(> use[href="#i-arrow"], > use[href="#i-chev-l"], > use[href="#i-chev-r"]) { scale: -1 1; }

/* Scroll reveal: content is visible without JS; only .js pages animate it in. */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
