@font-face {
  font-family: "Baloo Bhaijaan 2";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/BalooBhaijaan2.ttf") format("truetype");
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Tajawal-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/Tajawal-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/Tajawal-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/Tajawal-ExtraBold.ttf") format("truetype");
}
@font-face {
  font-family: "Playpen Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/PlaypenSansArabic.ttf") format("truetype");
}

:root {
  /* concept-4 green / gold / ivory */
  --bg: #FBF7EF;
  --ink: #1B2B26;
  --mute: #55665F;
  --line: #E4D9C3;
  --brand: #0F5C4A;
  --tomato: #A9781F;
  --sun: #D9A441;
  --teal: #0F5C4A;
  --sky: #1E7A63;
  --plum: #0A3F33;

  /* aliases used by login/signup/404 */
  --page: var(--bg);
  --paper: #FFFDF8;
  --surface: #FFFDF8;
  --border: var(--line);
  --muted: var(--mute);
  --heading: var(--brand);
  --link: var(--brand);
  --emerald: #0B5D4B; /* official logo only — do not map into logo SVG */
  --gold: #D4AF6A;
  --goldLight: #F0D08C;
  --btn-primary-bg: var(--brand);
  --btn-primary-fg: #FFFDF8;
  --btn-ghost-fg: var(--ink);
  --focus: var(--sun);
  --radius: 16px;
  --shadow: 4px 4px 0 var(--ink);
  --font: "Tajawal", "Noto Sans Arabic", sans-serif;
  --font-display: "Baloo Bhaijaan 2", "Tajawal", sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0A1F1A;
  --ink: #F3ECDD;
  --mute: #A8B8B1;
  --line: #1E3D34;
  --brand: #1E7A63;
  --tomato: #E9C77F;
  --sun: #D9A441;
  --teal: #8FC3B1;
  --sky: #1E7A63;
  --plum: #CFE6DD;
  --page: var(--bg);
  --paper: #122A23;
  --surface: #122A23;
  --border: var(--line);
  --muted: var(--mute);
  --heading: var(--ink);
  --link: #8FC3B1;
  --btn-primary-bg: #1E7A63;
  --btn-primary-fg: #FFFDF8;
  --btn-ghost-fg: var(--ink);
  --focus: var(--sun);
  --shadow: 4px 4px 0 #061410;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1F1A;
    --ink: #F3ECDD;
    --mute: #A8B8B1;
    --line: #1E3D34;
    --brand: #1E7A63;
    --tomato: #E9C77F;
    --sun: #D9A441;
    --teal: #8FC3B1;
    --sky: #1E7A63;
    --plum: #CFE6DD;
    --page: var(--bg);
    --paper: #122A23;
    --surface: #122A23;
    --border: var(--line);
    --muted: var(--mute);
    --heading: var(--ink);
    --link: #8FC3B1;
    --btn-primary-bg: #1E7A63;
    --btn-primary-fg: #FFFDF8;
    --btn-ghost-fg: var(--ink);
    --focus: var(--sun);
    --shadow: 4px 4px 0 #061410;
    color-scheme: dark;
  }
}
