/* Design tokens shared by the public pages and the signed-in application.
   Colours, type and spacing live here only; styles.css and app/styles.css
   use these names and never raw values for them. */
:root {
  color-scheme: light dark;

  /* Colour */
  --color-bg: #f3f1ea;
  --color-surface: #fffefa;
  --color-surface-muted: #ebe8df;
  --color-text: #171917;
  --color-muted: #5f645b;
  --color-line: rgba(27, 31, 27, 0.13);
  --color-line-strong: rgba(27, 31, 27, 0.24);
  --color-accent: #e2552a;
  --color-accent-strong: #b23513;
  --color-accent-surface: #fbe7dd;
  --color-ink: #14241d;
  --color-on-ink: #ffffff;
  --color-success: #23704d;
  --color-success-surface: #e2f1e8;
  --color-progress: #2f5fa8;
  --color-progress-surface: #e3ebf7;
  --color-danger: #9a3223;
  --color-danger-surface: #f9e9e5;
  --color-notice: #6b5310;
  --color-notice-surface: #f6ecd0;

  /* Type */
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-xs: 0.75rem;
  --text-s: 0.875rem;
  --text-m: 1rem;
  --text-l: 1.25rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.5rem;
  --text-display: clamp(3rem, 9vw, 7.2rem);
  --weight-regular: 450;
  --weight-medium: 600;
  --weight-bold: 760;
  --leading: 1.55;
  --leading-tight: 1.1;

  /* Space */
  --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;

  /* Shape */
  --radius-s: 0.5rem;
  --radius-m: 0.75rem;
  --radius-l: 1rem;
  --radius-pill: 999px;
  --shadow: 0 18px 50px rgba(32, 38, 31, 0.1);
  --shadow-small: 0 1px 2px rgba(32, 38, 31, 0.08);

  font-family: var(--font-sans);
  line-height: var(--leading);
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #111411;
    --color-surface: #1a1f1b;
    --color-surface-muted: #232923;
    --color-text: #f2f0e9;
    --color-muted: #aab1a7;
    --color-line: rgba(235, 240, 232, 0.13);
    --color-line-strong: rgba(235, 240, 232, 0.26);
    --color-accent: #ff7a4d;
    --color-accent-strong: #ff9670;
    --color-accent-surface: #3a2016;
    --color-ink: #eff4ec;
    --color-on-ink: #122017;
    --color-success: #72cf9d;
    --color-success-surface: #15291e;
    --color-progress: #8fb4f0;
    --color-progress-surface: #182338;
    --color-danger: #f0a08a;
    --color-danger-surface: #2c1813;
    --color-notice: #ecd48a;
    --color-notice-surface: #2f2811;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --shadow-small: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}
