/* ==========================================================================
   OnCue — brand tokens  (from the OnCue brand kit; see branding/BRAND-GUIDE.md)
   The single source of truth for brand colour, type, shape and motion.
   The app's semantic tokens (css/tokens.css) are built only from these --oc-* values.

   Local changes vs. the kit file:
   - fonts are served as woff2 latin / latin-ext subsets instead of the full TTFs (≈ 0.9 MB → 0.18 MB);
   - nothing else.

   The MAUI build reads --oc-midnight, --oc-paper and --oc-n-950 with a regex (Directory.Build.props):
   keep those as plain 6-digit hex.
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
                 U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
                 U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ---- Brand palette ------------------------------------------------------ */
  --oc-cue: #FF4F1A;          /* Cue Orange: alarms, "now", primary actions   */
  --oc-cue-strong: #C2370F;   /* orange TEXT on light backgrounds (5.0:1)      */
  --oc-cue-soft: #FFE4D9;     /* tints: today highlight, selected day (light)  */
  --oc-dawn: #FFB38A;         /* warm secondary accent, illustrations          */
  --oc-midnight: #16142E;     /* Midnight: brand dark, text, app-icon tile     */
  --oc-paper: #F7F5F0;        /* Paper: brand light, app background (light)    */

  /* ---- Neutrals (Paper -> Midnight) --------------------------------------- */
  --oc-n-0: #F7F5F0;  --oc-n-50: #EEECE8;  --oc-n-100: #E3E1DF; --oc-n-200: #D3D1D1;
  --oc-n-300: #B8B6BA; --oc-n-400: #98969F; --oc-n-500: #797783; --oc-n-600: #5A5868;
  --oc-n-700: #3E3C51; --oc-n-800: #2A283F; --oc-n-900: #16142E;
  --oc-n-950: #0E0C20;

  /* ---- Status ------------------------------------------------------------- */
  --oc-success: #1E9E6A;
  --oc-warning: #E8A317;
  --oc-danger:  #E5484D;      /* deliberately pinker than Cue Orange           */
  --oc-info:    #3B82F6;

  /* ---- Calendar colours (event bars, dots, calendar chips) ---------------- */
  --oc-cal-1: #FF4F1A; --oc-cal-2: #F5A524; --oc-cal-3: #7CC63E; --oc-cal-4: #17B0A2;
  --oc-cal-5: #3B9EF0; --oc-cal-6: #6C6CF6; --oc-cal-7: #A45CF0; --oc-cal-8: #EF4F96;

  /* ---- Typography --------------------------------------------------------- */
  --oc-font-display: "Outfit", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --oc-font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --oc-font-numeric: "Inter", system-ui, sans-serif; /* use with tabular-nums    */
  --oc-weight-regular: 400; --oc-weight-medium: 500; --oc-weight-semibold: 600; --oc-weight-bold: 700;
  --oc-text-xs: 0.75rem; --oc-text-sm: 0.875rem; --oc-text-md: 1rem; --oc-text-lg: 1.125rem;
  --oc-text-xl: 1.375rem; --oc-text-2xl: 1.75rem; --oc-text-3xl: 2.25rem; --oc-text-clock: 4.5rem;

  /* ---- Shape (same corner language as the logo's calendar page) ----------- */
  --oc-radius-xs: 6px; --oc-radius-sm: 10px; --oc-radius-md: 14px; --oc-radius-lg: 20px;
  --oc-radius-xl: 28px; --oc-radius-pill: 999px;
  --oc-stroke: 2px;          /* icon & outline weight, matches the icon pack   */

  /* ---- Motion --------------------------------------------------------------- */
  --oc-dur-fast: 120ms; --oc-dur-base: 220ms; --oc-dur-slow: 380ms;
  --oc-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --oc-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --oc-ease-spring: linear(0, 0.006, 0.025 2.8%, 0.101 6.1%, 0.539 18.9%, 0.721 25.3%, 0.849 31.5%,
                    0.937 38.1%, 0.968 41.8%, 0.991 45.7%, 1.006 50.1%, 1.015 55%, 1.017 63.9%, 1.001);

  /* ---- Theme: light (default) ------------------------------------------------ */
  color-scheme: light;
  --oc-bg: var(--oc-paper);
  --oc-surface: #FFFFFF;
  --oc-surface-2: var(--oc-n-50);
  --oc-border: var(--oc-n-200);
  --oc-text: var(--oc-midnight);
  --oc-text-muted: var(--oc-n-600);          /* 6.4:1 on Paper */
  --oc-accent: var(--oc-cue);                /* fills, bells, "now" line, FAB */
  --oc-accent-text: var(--oc-cue-strong);    /* orange text/links              */
  --oc-on-accent: var(--oc-midnight);        /* text on orange buttons (5.4:1) */
  --oc-today-bg: var(--oc-cue-soft);
  --oc-focus: var(--oc-cue);
  --oc-shadow: 0 1px 2px rgb(22 20 46 / 0.06), 0 8px 24px rgb(22 20 46 / 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --oc-bg: var(--oc-n-950);
    --oc-surface: var(--oc-midnight);
    --oc-surface-2: var(--oc-n-800);
    --oc-border: var(--oc-n-700);
    --oc-text: var(--oc-paper);
    --oc-text-muted: var(--oc-n-400);        /* 6.1:1 on Midnight */
    --oc-accent: var(--oc-cue);
    --oc-accent-text: var(--oc-cue);         /* 5.4:1 on Midnight */
    --oc-on-accent: var(--oc-midnight);
    --oc-today-bg: rgb(255 79 26 / 0.16);
    --oc-focus: var(--oc-cue);
    --oc-shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 30px rgb(0 0 0 / 0.35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --oc-bg: var(--oc-n-950);
  --oc-surface: var(--oc-midnight);
  --oc-surface-2: var(--oc-n-800);
  --oc-border: var(--oc-n-700);
  --oc-text: var(--oc-paper);
  --oc-text-muted: var(--oc-n-400);
  --oc-accent: var(--oc-cue);
  --oc-accent-text: var(--oc-cue);
  --oc-on-accent: var(--oc-midnight);
  --oc-today-bg: rgb(255 79 26 / 0.16);
  --oc-focus: var(--oc-cue);
  --oc-shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 30px rgb(0 0 0 / 0.35);
}

/* ---- Icon helper (OcIcon.razor) ------------------------------------------- */
.oc-icon { display: inline-block; flex: none; vertical-align: middle; color: inherit; }
.oc-icon.is-accent { color: var(--oc-accent); }

/* ---- Base ------------------------------------------------------------------ */
html { background: var(--oc-bg); color: var(--oc-text); font-family: var(--oc-font-ui); }
h1, h2, h3, .oc-display { font-family: var(--oc-font-display); font-weight: var(--oc-weight-semibold); letter-spacing: -0.01em; }
.oc-time { font-family: var(--oc-font-numeric); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  :root { --oc-dur-fast: 0ms; --oc-dur-base: 0ms; --oc-dur-slow: 0ms; }
}
