/* coffee design tokens (palette and type: docs/design/COFFEE_REDESIGN.md). */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-nl-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  /* Arabic-script ranges only; Latin falls through to Inter/Manrope */
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}
/* Anton (OFL): condensed Latin display face for English headlines and the wordmark */
@font-face { font-family: "Anton"; src: url("../fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }

:root {
  /* brand — "coffee" (2026-10-21): espresso, dark chocolate, warm coffee brown, cream, ivory and soft coffee-beige.
     No orange. Ratios measured in docs/design/COFFEE_REDESIGN.md §4. Legacy token names (orange/saffron/terracotta)
     are kept so existing components inherit the new palette; their values are all browns and beiges now. */
  --c-wine: #5B1E2D;             /* logo colour: granate from the supplied colour card (10.81:1 on cream) */
  --c-brand: #6B4430;            /* warm coffee brown: primary actions, accents (7.23:1 on cream; ivory on it 7.94:1) */
  --c-coffee: #4A3326;           /* café oscuro: headings (10.06:1 on cream) */
  --c-chocolate: #2E1D15;        /* dark chocolate: footer, dark panels (cream on it 13.84:1) */
  --c-espresso: #3B2419;         /* espresso: secondary dark surface */
  --c-ink: #2E1D15;
  --c-orange: #C9A98A;           /* legacy name → latte beige: soft accent surfaces (chocolate text 7.31:1) */
  --c-orange-deep: #B8956F;      /* hover fill for the beige accent */
  --c-orange-soft: #E6D3BF;      /* light beige text on dark surfaces (11.08:1 on chocolate) */
  --c-orange-text: #7A4E33;      /* warm brown text on cream (6.08:1) */
  --c-terracotta: #8A5A3C;       /* legacy name → caramel brown, large display accents (5.0:1) */
  --c-caramel: #8A5A3C;
  --c-caramel-text: #7A4E33;
  --c-saffron: #6B4430;
  --c-saffron-soft: #E6D3BF;
  --c-matcha: #7A8B5A;
  --c-matcha-text: #55623D;
  --c-sand: #DCCAB3;             /* arena / soft coffee-beige */
  --c-cream: #F3EDE3;            /* crema natural: page */
  --c-paper: #FBF8F2;            /* ivory: cards, header */
  --c-warm-white: #FFFDF8;
  --c-brick: #C0392B;
  --c-brick-text: #A93226;

  /* semantic */
  --bg: var(--c-cream);
  --surface: var(--c-paper);
  --surface-sunk: #EAE0D2;
  --text: #4A3326;               /* café oscuro: body text (10.06:1 on cream) */
  --text-muted: #7A5A48;         /* 5.33:1 on cream, 5.85:1 on paper */
  --text-on-dark: #F3EDE3;
  --text-on-dark-muted: #E6D3C4;
  --border: #E3D8C8;
  --border-strong: #CDB89E;
  --grid-line: #E3D8C8;
  --accent: var(--c-brand);
  --on-accent: var(--c-paper);
  --primary: var(--c-coffee);
  --on-primary: var(--c-cream);
  --success: var(--c-matcha-text);
  --warning: #9A5B0B;
  --error: var(--c-brick-text);
  --focus: #1F6FB2;

  /* type */
  --font-fa: "Vazirmatn", "Inter", Tahoma, "Noto Sans Arabic", sans-serif;
  --font-en: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-en-display: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: var(--font-fa);
  --font-display: var(--font-fa);
  /* editorial display: hero / section headlines >= 32px. Digits inside stay Vazirmatn via .num */
  /* Persian display = Vazirmatn at heavy weights (readable, correct Persian shaping and digits). The decorative
     display face of the previous version was removed at the owner's request. */
  --font-display-fa: "Vazirmatn", "Inter", Tahoma, sans-serif;
  --font-display-en: "Anton", "Manrope", Impact, sans-serif;
  --font-editorial: var(--font-display-fa);
  --lh-editorial: 1.3;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.55vw, 1.5rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --fs-h1: clamp(1.875rem, 1.4rem + 2vw, 3.25rem);
  --fs-display: clamp(2.25rem, 1.5rem + 3.2vw, 4.25rem);

  --lh-body: 1.85;
  --lh-tight: 1.35;
  --lh-display: 1.3;

  /* space & shape */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --gutter: clamp(16px, 4vw, 40px);
  --container: 1240px;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgb(36 22 17 / 0.06), 0 2px 8px rgb(36 22 17 / 0.05);
  --shadow-art: 0 1px 0 rgb(255 255 255 / 0.6) inset, 0 18px 40px -18px rgb(59 35 26 / 0.35);
  --glass: rgb(255 253 249 / 0.62);
  --glass-border: rgb(255 253 249 / 0.7);
  --r-art: 28px;
  --shadow-2: 0 4px 12px rgb(36 22 17 / 0.08), 0 16px 40px rgb(36 22 17 / 0.08);
  --tap: 44px;

  /* motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 140ms;
  --t-med: 260ms;
  --t-slow: 520ms;
}

:root[lang="en"] {
  --font-body: var(--font-en);
  --font-display: var(--font-en-display);
  --lh-body: 1.6;
  --lh-tight: 1.2;
  --lh-display: 1.08;
  --lh-editorial: 0.98;
  --font-editorial: var(--font-display-en);
}

/* the hero partial's own variables, mapped onto the system */
:root {
  --color-espresso: #1c0c05;
  --color-cream: var(--c-cream);
  --color-cream-muted: #E9DFD2;
  --color-saffron: var(--c-saffron);
  --color-on-saffron: var(--c-ink);
  --font-sans: var(--font-body);
  --radius-pill: var(--r-pill);
  --space-gutter: var(--gutter);
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t-med: 0ms; --t-slow: 0ms; }
}
