/* Shared light-theme design tokens and generic error notice colors. */

/* Raw palette (the website's). */
:root {
  --brand-navy: #0e2a4a;
  --brand-teal: #0fb5a0;
  --brand-slate-blue: #5b7185;
  --brand-mist: #f7f9fb;
  --brand-paper: #fcfcfa;
  --brand-ink: #243b4a;
  --brand-night: #071423;
  --brand-red: #b42318;
}

/* Roles, light theme (the website's). */
:root {
  color-scheme: light;

  --theme-text: var(--brand-ink);
  --theme-text-muted: color-mix(in srgb, var(--brand-slate-blue) 85%, var(--brand-navy));
  --theme-text-strong: var(--brand-navy);

  --theme-link: color-mix(in srgb, var(--brand-teal) 58%, var(--brand-night));
  --theme-focus-ring: color-mix(in srgb, var(--brand-teal) 58%, var(--brand-night));
  --theme-button-surface: var(--brand-teal);
  --theme-button-text: var(--brand-navy);
  --theme-button-surface-hover: color-mix(in srgb, var(--brand-teal) 85%, var(--brand-paper));

  --theme-accent: var(--brand-teal);
  --theme-accent-text: var(--brand-navy);
  --theme-accent-ink: color-mix(in srgb, var(--brand-teal) 58%, var(--brand-night));

  --theme-danger: var(--brand-red);

  --theme-clay-surface: color-mix(in srgb, var(--brand-slate-blue) 9%, var(--brand-mist));
  --theme-clay-shadow: color-mix(in srgb, var(--brand-slate-blue) 30%, transparent);
  --theme-clay-highlight: var(--brand-paper);
  --theme-clay-divider: color-mix(in srgb, var(--brand-slate-blue) 14%, transparent);
  --theme-accent-glow: color-mix(in srgb, var(--brand-teal) 35%, transparent);
  --theme-accent-shade: color-mix(in srgb, var(--brand-navy) 22%, transparent);
  --theme-accent-sheen: color-mix(in srgb, var(--brand-paper) 40%, transparent);
  --theme-accent-surface: color-mix(in srgb, var(--brand-teal) 12%, var(--brand-mist));
}

/* Not themed: the shadows, the radii and the fonts (the website's). */
:root {
  --shadow-raised:
    8px 8px 18px var(--theme-clay-shadow),
    -8px -8px 18px var(--theme-clay-highlight),
    inset 1px 1px 0 var(--theme-clay-highlight);
  --shadow-raised-sm:
    4px 4px 9px var(--theme-clay-shadow),
    -4px -4px 9px var(--theme-clay-highlight);
  --shadow-sunken:
    inset 4px 4px 9px var(--theme-clay-shadow),
    inset -4px -4px 9px var(--theme-clay-highlight);
  --shadow-accent:
    4px 5px 10px var(--theme-accent-glow),
    inset -2px -3px 6px var(--theme-accent-shade),
    inset 2px 3px 5px var(--theme-accent-sheen);
  --shadow-ring-accent: 0 0 0 1.5px var(--theme-accent);

  --radius-card: 20px;
  --radius-popover: 16px;
  --radius-well: 14px;
  --radius-control: 12px;
  --radius-nav: 11px;
  --radius-row: 10px;
  --radius-segment: 9px;
  --radius-chip: 8px;
  --radius-tag: 7px;
  --radius-pill: 999px;

  --font-display: "Fraunces Variable", Georgia, "Times New Roman", serif;
  --font-body: "Inter Variable", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
}

:root {
  --portal-red-deep: #8a1b12;
  --portal-red-pale: #f6e3e1;
  --theme-notice-refusal-surface: var(--portal-red-pale);
  --theme-notice-refusal-text: var(--portal-red-deep);
  --theme-notice-refusal-dot: var(--brand-red);
}
