/**
 * Будинок Затишку — design tokens. See mebelvdom-redesign-spec.md §2.
 * Do not scatter raw hex values outside this file.
 */
:root {
  /* §2.1 color palette v2 */
  --c-coffee: #4A3426;
  --c-ginger: #E8821E;
  --c-bg: #F5F1EA;
  --c-card: #FFFDF9;
  --c-text: #3A2C20;
  --c-pillow: #F3D9B8;
  --c-line: #E5DDD0;
  /* Both text colours are AA (>= 4.5:1) on --c-bg and --c-card; the old #8B8072 / #7D8F63
     were 3.4:1 / 3.1:1 (PageSpeed accessibility audit, 2026-10-27). --c-muted-on-dark is
     the same role for text on --c-text (the footer), where the darker value would fail. */
  --c-muted: #6F6556;
  --c-muted-on-dark: #C2B8A8;
  --c-stock: #587044;
  --c-sale: #C9403A;

  /* §2.2 typography */
  /* Emoji/symbol families kept last, as Cassiopeia's own stack does: the UI
     uses bare glyphs (☰ ✉ ♡ ★ →) and product copy uses emoji, and neither
     Lora nor Manrope carries them. */
  --font-heading: 'Lora', 'Georgia', serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-body: 'Manrope', 'Segoe UI', sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

  /* Cassiopeia's template.min.css is enqueued AFTER tokens.css and re-declares
     body{font-family} and h1..h6{font-family}, which silently reverted ~89% of
     the site to the system stack. It reads both from the two variables below
     (with a system-stack fallback) and never declares them itself, so defining
     them here wins regardless of stylesheet order - and, unlike re-ordering the
     sheets, this changes ONLY the family, never the size. */
  --cassiopeia-font-family-body: var(--font-body);
  --cassiopeia-font-family-headings: var(--font-heading);
  /* Cassiopeia also sets every heading's weight from this var, defaulting to
     700. Artboard 1b specifies 600, and it never declares the var itself, so
     defining it here is enough. Sizes are a different story - see below. */
  --cassiopeia-font-weight-headings: 600;

  /* §2.3 other tokens */
  --radius-sm: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;

  --shadow-card: 0 8px 28px rgba(47, 58, 51, .10);
}

/* `:root body` (0,1,1) rather than plain `body` (0,0,1): Cassiopeia's
   template.min.css loads after this file and sets body font-size/line-height
   from --body-font-size/--body-line-height, which it also DECLARES (1rem/1.5)
   - so overriding those vars at :root loses on source order and only extra
   specificity puts artboard 1b's 14/22 back in charge. */
:root body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  /* Unitless, NOT the literal 22px of artboard 1b: a px line-height inherits
     as a fixed value, so every larger descendant that sets no line-height of
     its own (.bz-price--lg at 28px, the e1 total, ...) would get a 22px line
     box. 1.571 is exactly 22/14, so body copy still renders 14/22 as specced
     while larger children scale proportionally. */
  line-height: 1.571;
}

:root h1, :root h2, :root h3, :root h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--c-coffee);
  margin: 0 0 var(--space-3);
}

/* Artboard 1b fixes only H1 (28/34) and H2 (20). h3-h6 continue the scale
   downward so the hierarchy stays monotonic: Cassiopeia would otherwise leave
   h3 at 1.75rem/28px and h4 at 1.5rem/24px, i.e. BIGGER than our h2. The
   17/15 values match what our own components already use for those levels.
   Specificity (0,1,1) beats Cassiopeia's bare h1..h6 while still yielding to
   every component rule (.bz-product__info h1, .bz-vhero__copy h1, ...), which
   is exactly the precedence we want. */
:root h1 { font-size: 28px; line-height: 34px; }
:root h2 { font-size: 20px; line-height: 26px; }
:root h3 { font-size: 17px; line-height: 24px; }
:root h4 { font-size: 15px; line-height: 22px; }
:root h5 { font-size: 14px; line-height: 22px; }
:root h6 { font-size: 13px; line-height: 20px; }

a { color: var(--c-coffee); }

.bz-price {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 18px;
  color: var(--c-text);
}

.bz-muted { color: var(--c-muted); }
.bz-stock { color: var(--c-stock); }
.bz-sale { color: var(--c-sale); }
