/*
 * Design tokens. :root is the default pop theme; data-theme overrides it (ADR 0006).
 * Values follow THEMES in docs/design/events-mock/. Primary red #d9363e meets contrast with white text.
 */
:root {
  --color-bg: #fff8f0;
  --color-surface: #ffffff;
  --color-text: #2d2a32;
  --color-muted: #6b6470;
  --color-primary: #d9363e;
  --color-primary-contrast: #ffffff;
  --color-soft: #fff1c9;
  --color-border: #f1e3d3;
  --color-best: #fff1c9;
  --color-best-text: #8a4b00;
  --color-hero: #c8323a;

  --color-yes: #0a7f60;
  --color-maybe: #8a5a00;
  --color-no: #c02c4b;
  --color-yes-bg: #e3f7f0;
  --color-maybe-bg: #fff4d6;
  --color-no-bg: #fde7ec;
  --color-yes-bar: #0fa97c;
  --color-maybe-bar: #f2b705;

  --color-warn-bg: #fff4e5;
  --color-warn-border: #f5c27a;
  --color-warn-text: #7a4a00;

  --color-avatar-1: #ffd166;
  --color-avatar-2: #9bf0d2;
  --color-avatar-3: #ffc4c4;
  --color-avatar-4: #c9d7ff;

  /* Share-target brand colors; theme-independent */
  --color-line: #06873a;
  --color-x: #141414;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-button: 999px;

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

  --container-max: 640px;
  --container-max-wide: 960px;

  --control-height: 48px;
  --control-height-lg: 56px;

  /* Self-hosted via fonts-mplus-rounded-1c.css (ADR 0010); local rounded gothic while loading or for missing glyphs */
  --font-sans:
    "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", system-ui,
    sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
  --transition-fast: 150ms ease-out;
  /* Business theme tones down seasonal decor */
  --season-opacity: 1;
}

[data-theme="business"] {
  --color-bg: #f5f6f8;
  --color-surface: #ffffff;
  --color-text: #1d2433;
  --color-muted: #566074;
  --color-primary: #2457d6;
  --color-soft: #eef2fa;
  --color-border: #dde2ea;
  --color-best: #eaf0fd;
  --color-best-text: #1c46ae;
  --color-hero: #1d3f94;

  --color-yes: #1f7a4d;
  --color-maybe: #7a5200;
  --color-no: #b42318;
  --color-yes-bg: #e7f4ec;
  --color-maybe-bg: #fbf1dc;
  --color-no-bg: #fdecea;
  --color-yes-bar: #2e9a63;
  --color-maybe-bar: #d9a21b;

  --color-warn-bg: #fff8eb;
  --color-warn-border: #e9b65c;
  --color-warn-text: #6e4600;

  --color-avatar-1: #dce6fb;
  --color-avatar-2: #ddefe4;
  --color-avatar-3: #f4e6cc;
  --color-avatar-4: #e6e0f5;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-button: 8px;

  /* Self-hosted via fonts-noto-sans-jp.css (ADR 0010) */
  --font-sans: "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
  --season-opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
