/* ልዩ ፀጋ · Liyu Tsega — design tokens
   Layout concept: an album on a writing desk. Ivory paper ground, framed photos,
   serif headings, champagne gold only as hairlines and small marks.
   Every colour used by components lives here. Dark values are redefined below. */

:root {
  /* Surfaces — brand palette (owner-approved, Nov 2026):
     Dusty Rose #E8C9C2 · Warm Ivory #F8F1E8 · Champagne Gold #B68B70 · Muted Burgundy #6B4148.
     --lav and --sage keep their names for compatibility but now hold rose and sand tints. */
  --bg: #F8F1E8;          /* Warm Ivory */
  --card: #FFFAF7;        /* raised paper */
  --rose: #E8C9C2;        /* Dusty Rose */
  --lav: #F4E2DD;         /* rose mist (was lavender) */
  --sage: #EFE3D6;        /* warm sand (was sage green) */
  --sunk: #F2E8DC;        /* recessed areas, inputs at rest */

  /* Ink */
  --ink: #2E2224;         /* main text — 13.7:1 on --bg */
  --ink-2: #5E4A4C;       /* secondary text — 7.3:1 on --bg, 5.3:1 on --rose */
  --gold: #B68B70;        /* Champagne Gold — lines and decoration only, never text */
  --gold-ink: #7A5843;    /* gold for small text and icons — 5.7:1 on --bg */
  --line: #EBD8D1;
  --line-2: #D9C2B6;

  /* Actions — Muted Burgundy */
  --primary: #6B4148;     /* 8.2:1 with --on-primary */
  --on-primary: #FFFAF7;
  --primary-hover: #57333A;
  --focus: #6B4148;

  /* Status (each text colour is 5.4:1 or more on its background) */
  --ok: #1F6B40;      --ok-bg: #DCEFE2;
  --warn: #7A4E00;    --warn-bg: #FBE7C2;
  --danger: #A3203A;  --danger-bg: #FADCE2;
  --info: #6B4148;    --info-bg: #F4E2DD;

  --shadow-sm: 0 1px 2px rgb(53 43 54 / .06);
  --shadow: 0 1px 2px rgb(53 43 54 / .05), 0 10px 28px -14px rgb(53 43 54 / .22);
  --shadow-lg: 0 2px 6px rgb(53 43 54 / .06), 0 28px 56px -28px rgb(53 43 54 / .34);
  --scrim: rgb(30 22 30 / .48);

  /* Type */
  /* Intended faces load from Google Fonts (all SIL Open Font License 1.1). If they are
     blocked or offline, the stacks fall back to faces that ship with the system:
     Ethiopic — Noto (Android/Linux), Kefa (Apple), Nyala / Ebrima (Windows);
     Latin — Iowan Old Style (Apple), Noto Serif / Roboto (Android), Georgia, Segoe UI. */
  --f-display: "Newsreader", "Noto Serif Ethiopic", "Kefa", "Nyala", "Iowan Old Style", "Noto Serif", Georgia, serif;
  --f-body: "Figtree", "Noto Sans Ethiopic", "Kefa", "Ebrima", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-ethi-display: "Noto Serif Ethiopic", "Kefa", "Nyala", "Ebrima", "Newsreader", "Noto Serif", Georgia, serif;

  /* S13: one step larger for easier reading (owner request) */
  --fs-xs: .95rem;
  --fs-sm: 1.0625rem;
  --fs-base: 1.1875rem;
  --fs-md: 1.3rem;
  --fs-lg: 1.55rem;
  --fs-xl: 1.9rem;
  --fs-2xl: clamp(1.9rem, 1.4rem + 1.8vw, 2.5rem);
  --fs-3xl: clamp(2.4rem, 1.6rem + 3.4vw, 3.9rem);

  --lh-tight: 1.15;
  --lh-body: 1.6;
  --lh-ethi: 1.85;        /* Ethiopic needs more air between lines */

  /* Space (4-point scale) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* Shape */
  --r-xs: 6px; --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-pill: 999px;

  --measure: 66ch;
  --wrap: 1180px;
  --sidebar: 252px;
  --tap: 44px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1E1719; --card: #2A2023; --rose: #4D2F35; --lav: #3A2A2E; --sage: #332A27; --sunk: #241B1D;
    --ink: #F5ECE6; --ink-2: #CDB9B5; --gold: #C9A28A; --gold-ink: #DDBBA4; --line: #3E3033; --line-2: #523F43;
    --primary: #E8C9C2; --on-primary: #3A2226; --primary-hover: #F2DAD4; --focus: #E8C9C2;
    --ok: #9FD2B1; --ok-bg: #20352A; --warn: #E8C27F; --warn-bg: #3A2E18; --danger: #F2A3AE; --danger-bg: #42232A; --info: #E8C9C2; --info-bg: #3A2A2E;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 28px -14px rgb(0 0 0 / .6);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / .3), 0 28px 56px -28px rgb(0 0 0 / .7);
    --scrim: rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1E1719; --card: #2A2023; --rose: #4D2F35; --lav: #3A2A2E; --sage: #332A27; --sunk: #241B1D;
  --ink: #F5ECE6; --ink-2: #CDB9B5; --gold: #C9A28A; --gold-ink: #DDBBA4; --line: #3E3033; --line-2: #523F43;
  --primary: #E8C9C2; --on-primary: #3A2226; --primary-hover: #F2DAD4; --focus: #E8C9C2;
  --ok: #9FD2B1; --ok-bg: #20352A; --warn: #E8C27F; --warn-bg: #3A2E18; --danger: #F2A3AE; --danger-bg: #42232A; --info: #E8C9C2; --info-bg: #3A2A2E;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 28px -14px rgb(0 0 0 / .6);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / .3), 0 28px 56px -28px rgb(0 0 0 / .7);
  --scrim: rgb(0 0 0 / .6);
  color-scheme: dark;
}
