/* Lillirode design system -- tokens, day theme (the default). The palette is the value authority; every colour outside it is derived
   and its derivation stated in tokens-resolved.json. Role names are neutral. The motion tokens are in tokens-motion.css.
   Logical properties are used in layout rules. Hand-kept: a change goes to this file, to tokens-dark.css and to tokens-resolved.json together. */
:root, [data-theme="light"] {
  color-scheme: light;
  /* ---- Colour roles ---- */
  --color-bg: #F3F0F7;
  --color-surface: #FFFFFF;
  --color-surface-raised: #FFFFFF;
  --color-surface-sunken: #EAE7EE;
  --color-text: #17141C;
  --color-muted: #52495E;
  --color-border: #B9AFCB;
  --color-border-strong: #8B819A;
  --color-accent: #B1105E;
  --color-accent-hover: #8F0C4C;
  --color-on-accent: #FFFFFF;
  --color-accent-subtle: #F7E7EF;
  --color-second: #5F43A0;
  --color-second-subtle: #EFECF6;
  --color-gold: #A67C1A;
  --color-success: #2F6B4F;
  --color-success-subtle: #E6EDEA;
  --color-warning: #8A5A00;
  --color-warning-subtle: #F1EBE0;
  --color-danger: #A3342F;
  --color-danger-subtle: #F4E7E6;
  --color-focus-ring: var(--color-second);
  --color-selection-bg: #E2B8D1;
  --color-selection-text: var(--color-text);
  --color-disabled-text: #9A94A3;
  --color-disabled-bg: #D9D3E3;
  --color-glow: #A99FC0;
  --color-link: var(--color-accent);
  --color-link-hover: var(--color-accent-hover);
  --color-scrim: rgba(23,20,28,0.5);
  /* ---- Elevation ---- */
  --shadow-sm: 0 1px 2px rgba(23,20,28,.06), 0 1px 3px rgba(23,20,28,.08);
  --shadow-md: 0 4px 8px rgba(23,20,28,.06), 0 8px 24px rgba(23,20,28,.10);
  --shadow-lg: 0 12px 24px rgba(23,20,28,.08), 0 24px 56px rgba(23,20,28,.16);
  /* ---- Typography ---- */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-text: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fw-heading-medium: 500;
  --fw-heading-bold: 700;
  --fw-text: 400;
  --fw-text-strong: 600;
  --fs-h1: 3.09375rem;
  --lh-h1: 1.12;
  --ls-h1: -0.01em;
  --fw-h1: var(--fw-heading-bold);
  --ff-h1: var(--font-heading);
  --fs-h2: 2.390625rem;
  --lh-h2: 1.15;
  --ls-h2: -0.01em;
  --fw-h2: var(--fw-heading-bold);
  --ff-h2: var(--font-heading);
  --fs-h3: 1.828125rem;
  --lh-h3: 1.2;
  --ls-h3: 0em;
  --fw-h3: var(--fw-heading-medium);
  --ff-h3: var(--font-heading);
  --fs-h4: 1.40625rem;
  --lh-h4: 1.25;
  --ls-h4: 0em;
  --fw-h4: var(--fw-heading-medium);
  --ff-h4: var(--font-heading);
  --fs-lead: 1.375rem;
  --lh-lead: 1.5;
  --ls-lead: 0em;
  --fw-lead: var(--fw-text);
  --ff-lead: var(--font-text);
  --fs-body: 1.125rem;
  --lh-body: 1.6;
  --ls-body: 0em;
  --fw-body: var(--fw-text);
  --ff-body: var(--font-text);
  --fs-small: 1rem;
  --lh-small: 1.5;
  --ls-small: 0em;
  --fw-small: var(--fw-text);
  --ff-small: var(--font-text);
  --fs-label: 0.875rem;
  --lh-label: 1.4;
  --ls-label: 0.06em;
  --fw-label: var(--fw-text-strong);
  --ff-label: var(--font-text);
  /* ---- Spacing, radii, layout ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --radius-round: 50%;
  --w-text: 40rem;
  --w-content: 72rem;
  --w-wide: 80rem;
  --gutter: 1rem;
  --gutter-wide: 1.5rem;
  --size-touch: 3rem;
  --size-icon: 1.25rem;
  --size-icon-lg: 1.5rem;
  --line-width: 1px;
  --focus-width: 3px;
  --focus-offset: 2px;
}
/* Mobile step: the sizes below re-bind the same names under 640px. Breakpoints (documentation, a media or container query cannot read a property): sm 640px, split 720px (container queries on the page and on .ds-screen), md 900px, header 1024px (the site header's links stand in the bar from it, a menu button below it), lg 1200px. */
@media (max-width: 639.98px) {
  :root, [data-theme="light"], [data-theme="dark"] {
    --fs-h1: 2.390625rem;
    --fs-h2: 1.96875rem;
    --fs-h3: 1.546875rem;
    --fs-h4: 1.265625rem;
    --fs-lead: 1.25rem;
  }
}
@media (min-width: 640px) {
  :root, [data-theme="light"] { --gutter: var(--gutter-wide); }
}
