:root {
    --bg-color: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #5b6779; /* darker than slate-500 for WCAG AA on white */
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-text: #b45309; /* accent colour safe for text on light backgrounds */
    --accent-soft: rgb(245 158 11 / 0.12);
    --on-accent: #1a1204; /* text on accent-coloured buttons */
    --line-color: #e2e8f0;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.08);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --input-bg: #f8fafc;
    --modal-overlay: rgba(15, 23, 42, 0.6);
    --danger: #dc2626;
    --danger-soft: rgb(220 38 38 / 0.1);
    --success: #16a34a;
    --success-soft: rgb(22 163 74 / 0.12);
    --night-shade: rgb(30 41 59 / 0.045);
    --day-shade: rgb(245 158 11 / 0.035);
    --focus-ring: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--accent-text);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    color-scheme: light;
}

/* Softer, neutral dark palette (less blue-black) */
.dark-theme {
    --bg-color: #141518;
    --text-primary: #ececf1;
    --text-secondary: #a3a3ad;
    --accent: #fbbf24;
    --accent-hover: #f59e0b;
    --accent-text: #fcd34d;
    --accent-soft: rgb(251 191 36 / 0.14);
    --on-accent: #1a1204;
    --line-color: #2c2e35;
    --card-bg: #1d1f24;
    --card-border: #2f323a;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.35);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.45);
    --input-bg: #17181c;
    --modal-overlay: rgba(0, 0, 0, 0.7);
    --danger: #f87171;
    --danger-soft: rgb(248 113 113 / 0.14);
    --success: #4ade80;
    --success-soft: rgb(74 222 128 / 0.14);
    --night-shade: rgb(0 0 0 / 0.18);
    --day-shade: rgb(251 191 36 / 0.04);
    color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
