/* ============================================================
   app-shell.css — brand fonts + theme tokens ONLY, no component
   selectors. Loaded by the transactional pages (checkout, welcome,
   hub, the gated e-book) together with theme.js so they are part of
   the family and follow the saved light / Desert / dark theme without
   inheriting (or fighting) the full site stylesheet's component rules.

   The token VALUES mirror styles.css :root + html[data-theme=...].
   If the brand palette ever changes in styles.css, update it here too.
   ============================================================ */

/* ---- Self-hosted fonts (same files styles.css uses) ---- */
@font-face { font-family: 'Amiri'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/Amiri-Regular-Arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Amiri'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/Amiri-Bold-Arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Montserrat Arabic'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/MontserratArabic-Regular.woff2') format('woff2'), url('fonts/MontserratArabic-Regular.woff') format('woff'); }
@font-face { font-family: 'Montserrat Arabic'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/MontserratArabic-Bold.woff2') format('woff2'), url('fonts/MontserratArabic-Bold.woff') format('woff'); }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400 700; font-display: optional;
  src: url('fonts/Unbounded-latin.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: 'Unbounded'; font-style: normal; font-weight: 400 700; font-display: optional;
  src: url('fonts/Unbounded-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-display: optional;
  src: url('fonts/InstrumentSans-latin.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: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-display: optional;
  src: url('fonts/InstrumentSans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: optional;
  src: url('fonts/JetBrainsMono-latin.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: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: optional;
  src: url('fonts/JetBrainsMono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---- Dark green (base / [data-theme="dark"]) ---- */
:root {
  --bg: #0B1917; --bg-2: #10221F; --bg-3: #163029;
  --surface: #1B3831; --surface-2: #214339;
  --stroke: rgba(230, 184, 97, 0.14); --stroke-strong: rgba(230, 184, 97, 0.32);
  --cream: #FAF5E8; --cream-muted: #E8DFC8; --secondary: #B8B2A0; --muted: #7E8981;
  --gold: #E6B861; --gold-2: #F5D08C; --gold-deep: #B88838; --gold-glow: rgba(230, 184, 97, 0.35);
  --chip-bg: rgba(0,0,0,0.16); --track-bg: rgba(0,0,0,0.25);
  --green: #4DBF8E; --green-deep: #2E7D5C; --coral: #E8614A; --coral-deep: #B8442F; --accent-cool: #43CDBD;
  --f-display: "Unbounded", "Outfit", system-ui, sans-serif;
  --f-body: "Instrument Sans", "DM Sans", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-arabic: "Montserrat Arabic", "Amiri", "Noto Naskh Arabic", sans-serif;
  --f-arabic-hero: "Amiri", "Montserrat Arabic", "Noto Naskh Arabic", serif;
  --ease-smooth: cubic-bezier(.22,.8,.36,1); --ease-bounce: cubic-bezier(.34,1.56,.64,1);
}

/* ---- Light (clean white) ---- */
html[data-theme="light"] {
  --bg: #FAFAFA; --bg-2: #F4F4F5; --bg-3: #ECECEE; --surface: #FFFFFF; --surface-2: #F4F4F5;
  --gold: #A87B2E; --gold-2: #C99A3F; --gold-deep: #7E5A18; --gold-glow: rgba(168,123,46,0.16);
  --green: #1F7A52; --coral: #C8432B; --accent-cool: #138B86;
  --chip-bg: rgba(0,0,0,0.05); --track-bg: rgba(0,0,0,0.08);
  --cream: #18181B; --cream-muted: #3F3F46; --secondary: #52525B; --muted: #71717A;
  --stroke: rgba(0,0,0,0.08); --stroke-strong: rgba(0,0,0,0.13);
}

/* ---- Desert (warm brown) ---- */
html[data-theme="default"] {
  --bg: #1F140A; --bg-2: #2A1B0F; --bg-3: #352314; --surface: #3F2B19; --surface-2: #4A341F;
  --stroke: rgba(230,184,77,0.14); --stroke-strong: rgba(230,184,77,0.32);
  --cream: #F5E6CC; --cream-muted: #D4C094; --secondary: #B89E73; --muted: #8A7656;
  --gold: #E6B84D; --gold-2: #F0CA6E; --gold-deep: #B88838; --gold-glow: rgba(230,184,77,0.40);
  --green: #D4A03A; --coral: #E8614A; --accent-cool: var(--coral);
  --chip-bg: rgba(230,184,77,0.15); --track-bg: rgba(212,160,58,0.18);
}
