/* ==========================================================================
   «عاجي» — IVORY
   --------------------------------------------------------------------------
   The answer to the complaint, taken at its word: no dark surface anywhere.
   Carnauba and chamois — the materials the shop actually sells. The logo gold
   becomes the buy button, which is legal at 6.55:1 with ink text and has been
   sitting unused in the palette all along, and the footer is grounded by a 3px
   gold rule instead of a black slab.

   Shape is the softest of the four: the largest radii and wide, low-opacity
   shadows. Borders stay 1px — dropping them entirely would silently kill the
   hover state on every category tile, which is a border-colour change.
   ========================================================================== */


:root[data-theme="ivory"]{
  /* ---------- scales ---------- */
  --n-0:#FFFFFF;  --n-25:#FBF8F2; --n-50:#F7F2E8;  --n-100:#F0E9DA;
  --n-200:#E6DCC7; --n-300:#D6C9AE; --n-400:#AC9E86; --n-500:#847660;
  --n-600:#6B5F4C; --n-700:#4A4132; --n-800:#332C21;

  /* The dark scale becomes espresso rather than black. Almost nothing large is
     painted with it here — it is text, and the ring around a chosen swatch. */
  --ink-950:#231D14; --ink-900:#2B241A; --ink-800:#3E362A;
  --ink-700:#544A3A; --ink-600:#6B5F4C;

  --silver-100:#EFEADF; --silver-300:#D6C9AE; --silver-500:#847660;

  /* ---------- roles ---------- */
  --bg:#FBF8F2; --bg-elevated:#FFFFFF; --bg-sunken:#F4EFE5;
  --border:#E6DCC7; --border-strong:#D6C9AE; --border-perceivable:#8D8171;
  --text:#2B241A; --text-muted:#6B5F4C;
  --accent:#BF9A58; --accent-text:#7A5E29; --accent-on-dark:#E6C074;

  /* ---------- chrome: a cream header ---------- */
  --surface-header:#F6EFE0;
  /* The header is light in this theme, so the native search-clear glyph must be dark. */
  --chrome-scheme:light;
  --on-header:#2B241A;
  --on-header-quiet:#6B5F4C;
  --on-header-muted:#726751;
  --header-field:#FFFFFF;
  --header-field-border:#D6C9AE;
  --header-hover:#EFE5D0;
  --header-hairline:#E3D6BB;
  --mark-sub:#7A5E29;          /* the logo gold is 2.63:1 on cream — this is the text gold */

  /* ---------- chrome: a cream footer, capped in gold ---------- */
  --surface-footer:#F1E8D6;
  --on-footer:#2B241A;
  --on-footer-quiet:#6B5F4C;
  --footer-link:#4A4132;
  --footer-link-hover:#7A5E29;
  --footer-heading:#7A5E29;
  --footer-rule:#DCCDB0;
  --footer-cap:3px;
  --footer-cap-color:#BF9A58;

  /* ---------- hero ---------- */
  --surface-hero:#F6EFE0;
  --on-hero:#2B241A;
  --on-hero-quiet:#6B5F4C;
  --hero-glow:rgba(191,154,88,.30);
  --hero-eyebrow:#7A5E29;
  /* Both stops legal as text: a gradient headline whose light end reads at 3.9
     is a headline half the customers cannot read in sunlight. */
  --hero-em-from:#7A5E29;
  --hero-em-to:#5C4720;
  --hero-btn-border:#C9B593;
  --hero-btn-fg:#4A4132;
  /* The cream hero needs the TEXT gold for the current-slide dot, not the on-dark gold: #E6C074
     was picked to glow on near-black and read 1.51 here, so the active dot was the faintest
     thing in the row it was supposed to lead. */
  --hero-dot-on:#7A5E29;

  /* ---------- the wiper finder ---------- */
  --surface-feature:#F6EFE0;
  --on-feature:#2B241A;
  --on-feature-quiet:#6B5F4C;
  --feature-glow:rgba(191,154,88,.28);
  --feature-field:#FFFFFF;
  --feature-field-border:#D6C9AE;
  --feature-card:#FFFFFF;
  --accent-on-feature:#7A5E29;
  --feature-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B5F4C' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  /* The finder is light here, so «هذا القياس غير متوفّر لدينا حاليًا» takes the ordinary error
     tint rather than the on-dark one. */
  --miss-surface:#FDECEA; --miss-border:#F5C6C0; --miss-text:#9B1C14; --miss-quiet:#8A3A33;

  /* ---------- selected ---------- */
  --surface-selected:#7A5E29;
  --surface-selected-hover:#5C4720;
  --on-selected:#FFFFFF;
  --on-selected-quiet:#F0E7D4;
  /* Light, not gold-300: the mark is lettering on the selected surface, and
     #E6C074 on the gold-brown reads 3.51. */
  --accent-on-selected:#F2E4C6;
  --skip-link-fg:#F2E4C6;

  /* ---------- accent ---------- */
  --accent-strong:#BF9A58;
  --accent-strong-hover:#D4B071;
  --on-accent-strong:#201A12;
  --sh-accent:0 2px 16px rgba(191,154,88,.42);
  --accent-tint:#F7EFDD;
  --on-accent-tint:#7A5E29;
  --accent-border:#BF9A58;
  --accent-icon:#9E773B;
  --accent-halo:#F0E2C4;
  --accent-on-chrome:#7A5E29;

  /* ---------- controls and detail ---------- */
  --control-accent:#9E773B;
  --control-accent-strong:#7A5E29;
  --focus-ring:#7A5E29;
  --focus-ring-on-header:#5C4720;
  --focus-ring-on-footer:#5C4720;
  --focus-ring-soft:rgba(122,94,41,.28);
  --swatch-ring:rgba(43,36,26,.20);
  --ph-from:#FBF6EC; --ph-to:#F1E8D6;
  --ph-glow:rgba(191,154,88,.16); --ph-shade:rgba(43,36,26,.05);
  --scrim:rgba(43,36,26,.45);
  --sticky-veil:rgba(251,248,242,.97);

  /* ---------- shape: the softest of the four ---------- */
  --r-sm:8px; --r-md:14px; --r-lg:20px; --r-xl:28px;
  --sh-sm:0 1px 2px rgba(43,36,26,.05);
  --sh-md:0 3px 12px rgba(43,36,26,.07),0 1px 3px rgba(43,36,26,.04);
  --sh-lg:0 14px 34px rgba(43,36,26,.10),0 3px 8px rgba(43,36,26,.05);
  --sh-gold:0 2px 16px rgba(191,154,88,.42);
  --heading-tracking:-.01em;
}
