/* Advent design tokens (Pine & Sky colour system: see design-system/advent-colour-tokens.css).
   Every colour, font, radius and spacing used by the app chrome (landing page, forms, dialogs,
   toolbars) comes from these variables. To apply a design system, replace the values here
   (or load a file after this one that overrides them). The 3D cube themes live in
   vendor/css/style1-3.css and set their own colours; their matching token overrides are at the bottom. */

:root {
  /* Advent design system: Pine & Sky palette, Fraunces (display, bold serif) + Inter (text) */
  --adv-font-body: "Inter", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --adv-font-display: "Fraunces", Georgia, serif;

  --adv-bg: #F5EAD7;          /* Janna: ground */
  --adv-surface: #FBF5EA;     /* Marshmallow (ground-50): cards and inputs */
  --adv-surface-2: #E8DDCA;   /* Oat */
  --adv-text: #16342B;        /* Pine Ink */
  --adv-muted: #51614E;       /* ground-700: secondary text, 5.6:1 on Janna */
  --adv-border: #DACEBC;      /* Sand */
  --adv-accent: #0B6B3A;      /* Forest: buttons, accent text */
  --adv-accent-ink: #F5EAD7;
  --adv-brand: #03A753;       /* Green Haze: fills, highlights (not for text) */
  --adv-brand-soft: #C4E7D2;  /* Mint Tint: soft fills */
  --adv-highlight: #2FA5D8;   /* Curious Blue: graphics, fills */
  --adv-highlight-soft: #DEF1F9; /* Mist */
  --adv-highlight-ink: #1B6E93;  /* Harbour Blue: blue text, links */
  --adv-success: #0B6B3A;     /* Forest */
  --adv-danger: #A51826;      /* signal-700: error text, always with an icon or sentence */
  --adv-focus: #1B6E93;

  --adv-radius-sm: 6px;
  --adv-radius: 12px;
  --adv-radius-lg: 20px;
  --adv-shadow: 0 10px 30px rgba(35, 32, 29, 0.12);

  --adv-space-1: 4px;
  --adv-space-2: 8px;
  --adv-space-3: 12px;
  --adv-space-4: 16px;
  --adv-space-5: 24px;
  --adv-space-6: 40px;
  --adv-space-7: 64px;

  --adv-text-sm: 0.875rem;
  --adv-text-md: 1rem;
  --adv-text-lg: 1.25rem;
  --adv-text-xl: clamp(2rem, 5vw, 3.5rem);

  /* occasion line colours (Pine & Sky colour system: line-*) */
  --adv-line-christmas: #0B6B3A;  /* pine-700 */
  --adv-line-shower: #674E9A;     /* lilac-700 */
  --adv-line-birthday: #746700;   /* citron-700 */
  --adv-line-shower-soft: #EFEAFE;   /* lilac-100 */
  --adv-line-birthday-soft: #FDF5C0; /* citron-100 */

  /* calendar page chrome, overridden per cube theme */
  --adv-bar-bg: rgba(0, 0, 0, 0.35);
  --adv-bar-text: #ffffff;
}

/* Cube theme token overrides (calendar page) */
[data-theme="mandala"] { --adv-accent: #f8af8d; --adv-accent-ink: #2b2b2b; --adv-bar-bg: rgba(255, 255, 255, 0.75); --adv-bar-text: #3f3f45; }
[data-theme="colour"]  { --adv-accent: #e91e63; --adv-accent-ink: #ffffff; }
[data-theme="festive"] { --adv-accent: #fceeb8; --adv-accent-ink: #8a0012; }
