/* Copyright (c) 2026 Ashley Bayliss. All rights reserved.
 *
 * NummyBites design tokens. One block per season; every color is light-dark(LIGHT, DARK) so a
 * season only has to be described once. The page picks light/dark through color-scheme:
 * data-theme="light|dark" forces one, otherwise the OS preference wins.
 *
 * tests/NummyBites.Tests/Design/ContrastTests.cs parses this file and checks WCAG AA contrast
 * for every season in both modes, so keep the "--name: light-dark(#hex, #hex);" shape.
 */

:root {
  color-scheme: light dark;
  --font-body: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --container: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* ---------- Spring: sage, blossom pink and cream ---------- */
[data-season="spring"] {
  --bg: light-dark(#f7f4ec, #121a15);
  --card: light-dark(#ffffff, #1b2620);
  --surface: light-dark(#eef2e8, #223029);
  --ink: light-dark(#1f2d23, #e8f0e5);
  --muted: light-dark(#56665a, #a9b9ab);
  --line: light-dark(#dbe3d3, #2f3d34);
  --accent: light-dark(#356f44, #8fd19e);
  --accent-ink: light-dark(#ffffff, #0d1a11);
  --accent-2: light-dark(#b8406a, #f4a3bd);
  --accent-soft: light-dark(#e3efdd, #24392c);
  --highlight: light-dark(#fbe3ec, #3a2430);
  --danger: light-dark(#b42318, #ff8a7a);
  --success: light-dark(#2f6b3c, #86d39a);
  --font-display: "Fraunces Variable", "Fraunces", Georgia, serif;
  --display-weight: 650;
  --card-radius: 18px;
  --shadow: 0 1px 2px rgb(35 60 40 / .06), 0 8px 28px -12px rgb(35 60 40 / .22);
  --texture: radial-gradient(circle at 12% 18%, rgb(184 64 106 / .07) 0 2px, transparent 3px),
             radial-gradient(circle at 78% 64%, rgb(53 111 68 / .06) 0 2px, transparent 3px);
  --texture-size: 46px 46px, 64px 64px;
}

/* ---------- Summer: citrus, coral and sky ---------- */
[data-season="summer"] {
  --bg: light-dark(#fff8ee, #16110d);
  --card: light-dark(#ffffff, #221912);
  --surface: light-dark(#fff0dd, #2d2118);
  --ink: light-dark(#2a201b, #fdf0e4);
  --muted: light-dark(#685950, #c8b2a3);
  --line: light-dark(#f2dfcb, #3d2d22);
  --accent: light-dark(#b93d0c, #ff9f6e);
  --accent-ink: light-dark(#ffffff, #2a1105);
  --accent-2: light-dark(#0e6c86, #6fd6ea);
  --accent-soft: light-dark(#ffe7d1, #3a2619);
  --highlight: light-dark(#fff1b8, #3b3214);
  --danger: light-dark(#b42318, #ff8a7a);
  --success: light-dark(#2d6a3a, #86d39a);
  --font-display: "Bricolage Grotesque Variable", "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --display-weight: 750;
  --card-radius: 24px;
  --shadow: 0 1px 2px rgb(120 60 20 / .06), 0 10px 30px -14px rgb(185 61 12 / .28);
  --texture: radial-gradient(circle at 20% 30%, rgb(255 190 60 / .10) 0 3px, transparent 4px),
             radial-gradient(circle at 70% 80%, rgb(14 108 134 / .06) 0 2px, transparent 3px);
  --texture-size: 52px 52px, 74px 74px;
}

/* ---------- Fall: pumpkin, cranberry and walnut ---------- */
[data-season="fall"] {
  --bg: light-dark(#f6eee1, #18120d);
  --card: light-dark(#fffaf2, #231a13);
  --surface: light-dark(#f1e4d1, #2e2219);
  --ink: light-dark(#2d1f16, #f6e8d8);
  --muted: light-dark(#6a5546, #c5ab93);
  --line: light-dark(#e4d3bd, #3c2d21);
  --accent: light-dark(#a54b07, #f5a252);
  --accent-ink: light-dark(#ffffff, #2a1404);
  --accent-2: light-dark(#9a1638, #fb7f9c);
  --accent-soft: light-dark(#f7e0c3, #37271b);
  --highlight: light-dark(#f9e0cf, #402619);
  --danger: light-dark(#b42318, #ff8a7a);
  --success: light-dark(#3d6b2f, #9bcf86);
  --font-display: "Fraunces Variable", "Fraunces", Georgia, serif;
  --display-weight: 700;
  --card-radius: 14px;
  --shadow: 0 1px 2px rgb(70 40 15 / .07), 0 10px 30px -14px rgb(90 45 10 / .30);
  --texture: radial-gradient(circle at 15% 25%, rgb(165 75 7 / .07) 0 2px, transparent 3px),
             radial-gradient(circle at 65% 70%, rgb(154 22 56 / .05) 0 2px, transparent 3px);
  --texture-size: 44px 44px, 70px 70px;
}

/* ---------- Winter: pine, frost blue and cocoa ---------- */
[data-season="winter"] {
  --bg: light-dark(#f0f4f7, #0d151b);
  --card: light-dark(#ffffff, #15212a);
  --surface: light-dark(#e5edf2, #1c2b35);
  --ink: light-dark(#1a2831, #e5eff5);
  --muted: light-dark(#53656f, #9fb4c0);
  --line: light-dark(#d5e0e8, #263742);
  --accent: light-dark(#1d6b58, #7ad3b8);
  --accent-ink: light-dark(#ffffff, #07201a);
  --accent-2: light-dark(#6b4430, #e3b79c);
  --accent-soft: light-dark(#dcece9, #1b3332);
  --highlight: light-dark(#e2ecf8, #1f2f45);
  --danger: light-dark(#b42318, #ff8a7a);
  --success: light-dark(#1d6b40, #86d3a8);
  --font-display: "DM Serif Display", Georgia, serif;
  --display-weight: 400;
  --card-radius: 12px;
  --shadow: 0 1px 2px rgb(20 40 55 / .07), 0 10px 30px -14px rgb(20 60 80 / .28);
  --texture: radial-gradient(circle at 25% 20%, rgb(37 99 168 / .07) 0 1.5px, transparent 2.5px),
             radial-gradient(circle at 75% 60%, rgb(29 107 88 / .05) 0 1.5px, transparent 2.5px);
  --texture-size: 38px 38px, 58px 58px;
}
