/* ==========================================================================
   Shared Appnatic palette and type. Studio A was approved on 30 Nov 2026.
   The site follows the device setting until the visitor chooses a theme.
   ========================================================================== */

@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-var.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Noto Naskh Arabic"; src: url("../fonts/noto-naskh-arabic-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

@font-face { font-family: "Geist"; src: url("../fonts/geist-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

/* Light theme (default when the device has no dark preference) */
:root {
  --bg: #F7F6ED;
  --bg-deep: #ECEFE2;
  --surface: #FFFEF8;
  --surface-2: #ECEFE2;
  --line: #CBD2C4;
  --line-2: #A6B3A5;
  --text: #142E24;
  --text-2: #455C50;
  --text-3: #53665B;
  --green: #235C43;
  --green-ink: #235C43;
  --green-wash: rgba(35, 92, 67, .09);
  --green-line: rgba(35, 92, 67, .55);
  --gold: #B8862B;
  --star: #E8A93A;
  --calorie: #1E66F5;
  --calorie-wash: rgba(30, 102, 245, .10);
  --danger: #C2412D;
  --btn-bg: #214E3B;
  --btn-fg: #FBFBEF;
  --btn-bg-hover: #183D2D;
  --header-bg: #F7F6ED;
  --event-bg: #E1EAD7;
  --event-fg: #243E2E;
  --shadow: 0 18px 44px rgba(11, 31, 26, .10);
  --shadow-sm: 0 4px 14px rgba(11, 31, 26, .08);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --head: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Noto Naskh Arabic", "Geeza Pro", "Arial", sans-serif;
  --wrap: 1200px;
  --gutter: 32px;
  color-scheme: light;
}

/* Dark theme: device preference, unless the visitor chose light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #13251D;
    --bg-deep: #1D3228;
    --surface: #20382C;
    --surface-2: #284236;
    --line: #4E6758;
    --line-2: #6E8B7A;
    --text: #F1F4E8;
    --text-2: #C3CFC3;
    --text-3: #B0C0B3;
    --green-ink: #A9DCC0;
    --green-wash: rgba(169, 220, 192, .12);
    --green-line: rgba(169, 220, 192, .55);
    --gold: #E8C47A;
    --calorie: #6E9BFF;
    --calorie-wash: rgba(110, 155, 255, .14);
    --danger: #FF8A73;
    --btn-bg: #BCE1C6;
    --btn-fg: #152C23;
    --btn-bg-hover: #D0E9D4;
    --header-bg: #13251D;
    --event-bg: #294535;
    --event-fg: #EDF6E8;
    --shadow: 0 24px 60px rgba(0, 0, 0, .35);
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, .28);
    color-scheme: dark;
  }
}

/* Dark theme chosen with the header button (same values as above) */
:root[data-theme="dark"] {
  --bg: #13251D;
  --bg-deep: #1D3228;
  --surface: #20382C;
  --surface-2: #284236;
  --line: #4E6758;
  --line-2: #6E8B7A;
  --text: #F1F4E8;
  --text-2: #C3CFC3;
  --text-3: #B0C0B3;
  --green-ink: #A9DCC0;
  --green-wash: rgba(169, 220, 192, .12);
  --green-line: rgba(169, 220, 192, .55);
  --gold: #E8C47A;
  --calorie: #6E9BFF;
  --calorie-wash: rgba(110, 155, 255, .14);
  --danger: #FF8A73;
  --btn-bg: #BCE1C6;
  --btn-fg: #152C23;
  --btn-bg-hover: #D0E9D4;
  --header-bg: #13251D;
  --event-bg: #294535;
  --event-fg: #EDF6E8;
  --shadow: 0 24px 60px rgba(0, 0, 0, .35);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, .28);
  color-scheme: dark;
}

@media (max-width: 720px) { :root { --gutter: 16px; } }
