/* H-Furnitures Design System — bundled (fonts + colors + typography + spacing + effects).
 *
 * GENERATED FILE — do not edit by hand.
 * Edit assets/css/ds/*.css and run `python tools/build-ds.py`.
 *
 * This is the file functions.php enqueues; the partials are never loaded
 * directly. Editing a partial without rebuilding ships a change that does
 * nothing at runtime and reports no error (see theme 1.5.0 / 1.5.1).
 *
 * Font URLs are relative to THIS file's location (assets/css/ds.css), which is
 * the same depth as the partials, so no rewriting is needed.
 */


/* Brand faces, self-hosted, OFL: Alexandria (headings, 500/600), IBM Plex Sans Arabic (text). */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plex-arabic-arabic-400.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plex-arabic-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plex-arabic-arabic-500.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plex-arabic-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plex-arabic-arabic-600.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plex-arabic-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/plex-arabic-arabic-700.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/plex-arabic-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Migration: Alexandria for display headings (weights 500 and 600), Arabic and Latin subsets. */
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/alexandria-arabic-500.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/alexandria-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/alexandria-arabic-600.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/alexandria-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* H-Furnitures — Color tokens
 * Brand identity 2.3 (11 November 2026): site grounds and text are neutral,
 * whites in light mode and blacks in dark mode. The brand hues are accents
 * only: the primary button, the footer / promo band, badges, links, the logo.
 *   #4C4B38 olive · #C8C1B4 greige · #F4F1EB off-white · #74818C slate · #252525 charcoal · #6B6354 stone
 * The petrol (1.8.3) and deep-olive dark grounds are retired. The warm-neutral
 * token names (--sand-*, --stone-*) are kept for their callers but now carry
 * neutral values, except --sand-50 / --sand-300, which stay the brand
 * off-white and greige (ink on the olive band).
 *
 * The handoff's own copy of this file predates this theme's accessibility work
 * and drops --stone-700 and the dark-theme --hf-heading / --hf-ink-brand
 * overrides. Those are kept here: they are documented fixes (WCAG AA muted
 * text; dark-mode headings, which without them render at 1.1:1). Official
 * values win on brand hues, this theme's fixes win on contrast.
 */
:root {
  /* ---- Brand core (the 5 brand hues) ---- */
  --olive-900: #2F2E22;   /* deepest olive ink */
  --olive-700: #3D3C2C;
  --olive-600: #4C4B38;   /* PRIMARY — official olive */
  --olive-500: #5C5A42;
  --olive-400: #7A785C;
  --olive-300: #A3A088;
  --olive-100: #E7E5D7;

  /* ---- Official neutrals ---- */
  --greige: #C8C1B4;      /* official — light accent, CTA on dark, borders */
  /* Official secondary accent — icons, tags, charts. White on it is 3.99:1, so
     it is not a fill for white text; use --slate-700 for text-on-tint. */
  --slate: #4F5B66;
  --slate-700: #5A6570;   /* slate for text (AA on off-white) */

  /* ---- Ink (official charcoal) ---- */
  --ink: #1A1A1A;
  --ink-2: #3D3D3D;

  --charcoal: #252525;    /* brand charcoal: logo and the sold-out badge, not body ink */

  --walnut-800: #5A3A1E;
  --walnut-600: #8A5A2E;  /* wood / walnut */

  /* Terracotta is retired as an accent in the official system. Kept as aliases
     onto olive so the legacy --hf-terracotta callers (sale/discount/custom-order
     badges, the active favourite, the filter-reset link, the required-field
     marker) resolve to the brand colour instead of a rust that is no longer
     part of the palette. */
  --terracotta-600: #A3412A;

  /* ---- Warm neutrals (surfaces) ---- */
  --sand-50:  #F4F1EB;    /* brand off-white: ink on the olive band, never a page ground */
  --sand-100: #F6F6F6;    /* neutral since identity 2.3 */
  --sand-200: #EDEDED;    /* neutral since identity 2.3 */
  --sand-300: #C8C1B4;    /* official greige */
  --stone-600: #707070;   /* struck-through price: 4.9:1 on white, 4.6:1 on sunken */
  --stone-700: #666666;   /* darker muted ink — clears WCAG AA (>=4.5:1) on white/sand cards */

  --white: #FFFFFF;

  /* ---- Semantic feedback ---- */
  --success: #3D6440;
  --success-bg: #EAEEDD;
  --warning: #8A6216;
  --warning-bg: #F6ECD6;
  --danger: #9E3B2E;
  --danger-bg: #F3DED9;
  --info: var(--slate-700);   /* official slate — AA on the slate tint below */
  --info-bg: #EEF1F3;

  /* Foreground inks for small (12px) status/notice text — darkened so they
     clear WCAG AA (>=4.5:1) on their pale -bg pairs. */
  --status-ok-fg: #3F4A24;
  --status-warn-fg: #7A4E12;
  --status-danger-fg: #7A271A;
  --status-muted-fg: #4D4D4D;

  /* ============ Semantic aliases ============ */
  --brand: var(--olive-600);
  --brand-hover: var(--olive-700);
  --brand-active: var(--olive-900);
  --brand-subtle: #EFEEE6;

  --bg-page: #FFFFFF;
  --bg-muted: #F6F6F6;
  --surface-card: var(--white);
  --surface-inverse: var(--ink);
  --surface-boucle: var(--sand-200);

  --text-strong: #1A1A1A;
  --text-body: #3D3D3D;
  /* ink-3. 5.7:1 on white, 5.3:1 on sunken. */
  --text-muted: #666666;
  --text-inverse: var(--sand-50);
  /* Small olive ink (links, icons, thin lines). #4C4B38 reads as black at
     small sizes next to charcoal, so text uses the lighter olive (7.0:1 on
     white). Button fills keep --olive-600 through --action / --brand. */
  --text-brand: var(--olive-500);
  --text-price: var(--ink);

  --border-subtle: #E6E6E6;
  --border-default: #8C8C8C;
  --border-strong: #8C8C8C;

  --focus-ring: #4F5B66;
  --overlay-olive: rgba(47,46,34,0.55);
  --overlay-scrim: rgba(23,23,18,0.42);
  /* Migration: semantic names (migration.md). */
  --canvas: #FFFFFF;
  --surface: #FFFFFF;
  --sunken: #F6F6F6;
  --ink-3: #666666;
  --line: #E6E6E6;
  --line-strong: #8C8C8C;
  --action: #4C4B38;
  --action-hover: #3D3C2C;
  --on-action: #FFFFFF;
  --action-soft: #EFEEE6;
  --on-action-soft: #3D3C2C;
  --slate-soft: #EEF1F3;
  --on-slate-soft: #3E4852;
  --sale: #A3412A;
  --on-sale: #FFFFFF;
  /* Solid band behind image-tile labels (>= 4.5:1 with --on-band). */
  /* Product-card frame. Light cards are frameless. Dark surfaces are only
     1.1:1 against the page, so dark cards carry a 1px --line frame with the
     card radius (brand identity 2.3). */
  --card-line: transparent;
  --card-frame-radius: 0;
  /* Ground behind product photos. Stays light in dark mode: the photos are
     blended with multiply, which would turn them black on a dark ground. */
  --photo-paper: #F6F6F6;
  --band: #4C4B38;
  --on-band: #F4F1EB;
  --on-band-muted: #C8C1B4;
  /* WhatsApp is a third-party brand colour, kept as its own tokens. */
  --whatsapp: #25D366;
  --on-whatsapp: #0B3D20;
}

:root[data-hf-theme="dark"] {
  /* Neutral black grounds (brand identity 2.3). Both dark blocks carry the same list. */
  --surface-inverse: #F5F5F5;
  --surface-boucle: #242424;
  --text-inverse: #121212;
  --text-brand: #B5B39A;   /* small olive ink, 8.0:1 on cards */
  --text-price: #F5F5F5;
  --border-strong: #858585;
  --brand-subtle: #2F2E22;
  --success-bg: #1F2A1D;
  --warning-bg: #302B19;
  --danger-bg: #35221F;
  --info: #A9B6C1;   /* light slate: the base --info is AA only on its pale tint */
  /* Walnut is only ever ink (stars, labels, icons) or a thin accent line;
     the base #8A5A2E is under 3:1 on the dark page. */
  --walnut-600: #C9A071;
  --walnut-800: #C9A071;
  --info-bg: #262C33;
  --status-ok-fg: #C4D19B;
  --status-warn-fg: #E8C57E;
  --status-danger-fg: #E0A097;
  --status-muted-fg: #BFBFBF;
  --overlay-olive: rgba(10,10,10,0.68);
  --overlay-scrim: rgba(0,0,0,0.58);
  /* Legacy --hf-* aliases that style.css still consumes directly. */
  --hf-cream: #1C1C1C;
  --hf-sand: #242424;
  --hf-slate: #B3B3B3;
  --hf-ink: #F5F5F5;
  /* Semantic names, dark. --hf-olive* stay dark on purpose: they are
     button/badge fills. --hf-heading / --hf-ink-brand are brand *ink* and
     must flip (see style.css). */
  --bg-page: #121212;
  --bg-muted: #242424;
  --surface-card: #1C1C1C;
  --text-strong: #F5F5F5;
  --text-body: #D9D9D9;
  --text-muted: #B3B3B3;
  --border-subtle: #2E2E2E;
  --border-default: #858585;
  --terracotta-600: #E39A85;
  --warning: #E8C57E;
  --success: #9CC19A;
  --danger: #E39A85;
  --slate: #A9B6C1;
  --brand: #C8C1B4;
  --brand-hover: #D9D3C8;
  --canvas: #121212;
  --surface: #1C1C1C;
  --sunken: #242424;
  --ink: #F5F5F5;
  --ink-2: #D9D9D9;
  --ink-3: #B3B3B3;
  --line: #2E2E2E;
  --line-strong: #858585;
  --action: #C8C1B4;
  --action-hover: #D9D3C8;
  --on-action: #121212;
  --action-soft: #2F2E22;
  --on-action-soft: #E7E5D7;
  --slate-soft: #262C33;
  --on-slate-soft: #C9D3DB;
  --sale: #E39A85;
  --on-sale: #121212;
  --focus-ring: #A9B6C1;
  --hf-heading: #F5F5F5;
  --hf-ink-brand: #F5F5F5;
  --card-line: var(--line);
  --card-frame-radius: var(--radius-card);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-hf-theme="light"]) {
    /* Neutral black grounds (brand identity 2.3). Both dark blocks carry the same list. */
    --surface-inverse: #F5F5F5;
    --surface-boucle: #242424;
    --text-inverse: #121212;
    --text-brand: #B5B39A;   /* small olive ink, 8.0:1 on cards */
    --text-price: #F5F5F5;
    --border-strong: #858585;
    --brand-subtle: #2F2E22;
    --success-bg: #1F2A1D;
    --warning-bg: #302B19;
    --danger-bg: #35221F;
    --info: #A9B6C1;   /* light slate: the base --info is AA only on its pale tint */
    /* Walnut is only ever ink (stars, labels, icons) or a thin accent line;
       the base #8A5A2E is under 3:1 on the dark page. */
    --walnut-600: #C9A071;
    --walnut-800: #C9A071;
    --info-bg: #262C33;
    --status-ok-fg: #C4D19B;
    --status-warn-fg: #E8C57E;
    --status-danger-fg: #E0A097;
    --status-muted-fg: #BFBFBF;
    --overlay-olive: rgba(10,10,10,0.68);
    --overlay-scrim: rgba(0,0,0,0.58);
    /* Legacy --hf-* aliases that style.css still consumes directly. */
    --hf-cream: #1C1C1C;
    --hf-sand: #242424;
    --hf-slate: #B3B3B3;
    --hf-ink: #F5F5F5;
    /* Semantic names, dark. --hf-olive* stay dark on purpose: they are
       button/badge fills. --hf-heading / --hf-ink-brand are brand *ink* and
       must flip (see style.css). */
    --bg-page: #121212;
    --bg-muted: #242424;
    --surface-card: #1C1C1C;
    --text-strong: #F5F5F5;
    --text-body: #D9D9D9;
    --text-muted: #B3B3B3;
    --border-subtle: #2E2E2E;
    --border-default: #858585;
    --terracotta-600: #E39A85;
    --warning: #E8C57E;
    --success: #9CC19A;
    --danger: #E39A85;
    --slate: #A9B6C1;
    --brand: #C8C1B4;
    --brand-hover: #D9D3C8;
    --canvas: #121212;
    --surface: #1C1C1C;
    --sunken: #242424;
    --ink: #F5F5F5;
    --ink-2: #D9D9D9;
    --ink-3: #B3B3B3;
    --line: #2E2E2E;
    --line-strong: #858585;
    --action: #C8C1B4;
    --action-hover: #D9D3C8;
    --on-action: #121212;
    --action-soft: #2F2E22;
    --on-action-soft: #E7E5D7;
    --slate-soft: #262C33;
    --on-slate-soft: #C9D3DB;
    --sale: #E39A85;
    --on-sale: #121212;
    --focus-ring: #A9B6C1;
    --hf-heading: #F5F5F5;
    --hf-ink-brand: #F5F5F5;
    --card-line: var(--line);
    --card-frame-radius: var(--radius-card);
  }
}

/* H-Furnitures — Typography tokens */
:root {
  /* Families: Alexandria for display and headings; IBM Plex Sans Arabic for all text, Arabic and Latin. Self-hosted (see fonts.css), not loaded from a CDN. */
  --font-latin: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;  /* secondary English — UI/body */
  --font-arabic: 'IBM Plex Sans Arabic', system-ui, sans-serif;   /* primary Arabic */
  --font-display: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;    /* headings */
  --font-body: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;      /* body/UI */

  /* Weights: text uses 400 and 600 only. Alexandria headings use 600 (large)
     and 500 (smaller), per DESIGN.md. 700/800 are retired. */
  --fw-regular: 400;   /* @kind font */
  --fw-medium: 500;    /* @kind font: smaller Alexandria headings only */
  --fw-semibold: 600;  /* @kind font */
  --fw-extrabold: 600; /* @kind font: alias, retired */

  /* Type scale. Stable rem sizes preserve browser zoom; narrow layouts use the
     scale below. Values follow DESIGN.md: display 56, h1 42, h2 32, h3 24,
     lead 20, body 17, small and label 15, caption 13 (the smallest allowed). */
  --fs-display: 3.5rem;     /* 56px */
  --fs-h1: 2.5rem;          /* 40px, line 56 */
  --fs-h2: 1.75rem;         /* 28px, line 40 */
  --fs-h3: 1.5rem;          /* 24px */
  --fs-h4: 1.25rem;         /* 20px */
  --fs-lead: 1.25rem;       /* 20px */
  --fs-body: 1rem;          /* 16px, line 26 */
  --fs-card: 0.9375rem;     /* 15px, line 24: card text */
  --fs-help: 0.875rem;      /* 14px, line 22: helper text */
  --fs-sm: 0.9375rem;       /* 15px */
  --fs-xs: 0.8125rem;       /* 13px: captions, labels, metadata */
  --fs-2xs: 0.8125rem;      /* 13px: floor, nothing renders smaller */

  /* Line heights */
  --lh-tight: 1.4;     /* @kind font */
  --lh-heading: 1.4;   /* @kind font */
  --lh-snug: 1.35;     /* @kind font */
  --lh-body: 1.6;      /* @kind font */
  --lh-loose: 1.75;    /* @kind font */

  /* Letter spacing */
  --ls-wide: 0;       /* @kind font */
  --ls-wider: 0;      /* @kind font */

}

@media (max-width: 1023px) {
  :root {
    --fs-display: 2.25rem; /* 36px */
    --fs-h1: 1.75rem;      /* 28px, line 40 */
    --fs-h2: 1.375rem;     /* 22px, line 34 */
    --fs-h3: 1.25rem;      /* 20px */
  }
}

/* Base document defaults */
html { font-size: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* RTL: Arabic content flips direction and uses the Arabic family */
[dir="rtl"], [lang="ar"] {
  font-family: var(--font-arabic);
  line-height: var(--lh-loose);
}

/* H-Furnitures — Spacing, radius & layout tokens (4px base grid) */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Radii — brand leans soft/rounded (pills, capsule frames) */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;      /* cards */
  --radius-field: 12px;
  --radius-card: 20px;
  --radius-pill: 999px;   /* buttons, chips, phone capsule */

  /* Container widths */
  --container-xl: 1240px;
  /* Page gutter scales with the viewport: 16px on a phone (where every pixel of
     content width counts) up to 32px on a wide screen. Fixed 24px was both too
     wide at 360px and too tight at 1360px. */
  --gutter: 16px;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } 
}

/* H-Furnitures — Elevation, borders & motion tokens
 * Shadows are neutral and soft (brand identity 2.3).
 * The brand feel is calm & tactile: gentle diffusion, no hard drop shadows.
 */
:root {
  /* Only two elevations (DESIGN.md). --shadow-1: card hover, sticky header.
     --shadow-2: dropdowns, drawers. Neutral since identity 2.3. */
  --shadow-1: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-2: 0 10px 24px -8px rgba(0,0,0,0.14);

  /* Borders */

  /* Focus */
  --focus-shadow: 0 0 0 3px var(--focus-ring);

  /* Motion: three durations, one ease-out curve, no bounce or overshoot.
     Everything is zeroed under prefers-reduced-motion (see style.css). */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);  /* @kind other */
  --dur-fast: 140ms;   /* @kind other */
  --dur-base: 240ms;   /* @kind other */
  --dur-slow: 400ms;   /* @kind other */

  /* Translucent frame (the recurring capsule/bracket motif over photos) */
}
