/*
 * Mieadi tokens for the coming-soon page.
 * Values come from packages/design-tokens/tokens.json (palette "navy", surface, radius, font).
 * If the brand palette changes there, copy the new values here.
 */

@font-face {
  font-family: 'Bukra';
  src: url('../assets/fonts/bukra-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bukra';
  src: url('../assets/fonts/bukra-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Palette: Calm Navy (light) */
  --color-bg: #f3f5f8;
  --color-bg-elevated: #fbfbfb;
  --color-fg: #1e2733;
  --color-fg-muted: #5e6b7a;
  --color-border: #d5dce6;
  --color-surface-soft: #e8edf4;
  --color-primary: #2a4a6e;
  --color-primary-hover: #1f3956;
  --color-on-primary: #ffffff;
  --color-link: #2a4a6e;
  --color-secondary: #c2a05c;
  --color-success: #2f7a55;
  --color-danger: #b04a4a;
  --color-focus: #4a7ab0;

  /* The visit ticket keeps a paper look in both themes */
  --ticket-paper: #fbfbf8;
  --ticket-ink: #0f1720;
  --ticket-ink-muted: #5e6b7a;
  --ticket-line: #d5dce6;
  --ticket-stamp-ink: #2a4a6e;
  --ticket-saved-ink: #2f7a55;

  /* Queue board (dark in both themes) */
  --board-bg: #101820;
  --board-edge: rgba(194, 160, 92, 0.45);
  --board-rule: rgba(255, 255, 255, 0.14);
  --board-fg: #e6ebf2;
  --board-muted: #9aabbf;
  --board-accent: #e2c387;
  --board-live: #7fc7a2;
  --shadow-board: 0 8px 22px rgba(16, 24, 32, 0.18);

  /* Surface */
  --shadow-clay: 0 10px 30px rgba(28, 36, 33, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --shadow-ticket: 0 18px 40px rgba(30, 39, 51, 0.14), 0 2px 6px rgba(30, 39, 51, 0.08);
  --glass-bg: rgba(243, 245, 248, 0.72);
  --glass-border: rgba(213, 220, 230, 0.55);
  --glass-blur: 14px;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.125rem;
  --radius-pill: 999px;

  /* Space (8px rhythm) */
  --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;

  /* Type */
  --font-sans: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-arabic: 'Bukra', 'Segoe UI', Tahoma, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.953rem;
  --step-hero: clamp(2.25rem, 1.35rem + 3.6vw, 4rem);

  --container: 72rem;
  --gutter: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --color-bg: #141920;
    --color-bg-elevated: #1d2530;
    --color-fg: #e6ebf2;
    --color-fg-muted: #b8c4d4;
    --color-border: #2f3b4c;
    --color-surface-soft: #1b222c;
    --color-link: #c5d8ef;
    --color-danger: #e59a9a;
    --color-success: #7fc7a2;
    --color-focus: #8fb4e0;
    --ticket-paper: #e9ebe6;
    --ticket-line: #c6ccd3;
    --shadow-clay: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --shadow-ticket: 0 18px 44px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.35);
    --glass-bg: rgba(20, 25, 32, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --board-bg: #0b1117;
    --shadow-board: 0 8px 22px rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --color-bg: #141920;
  --color-bg-elevated: #1d2530;
  --color-fg: #e6ebf2;
  --color-fg-muted: #b8c4d4;
  --color-border: #2f3b4c;
  --color-surface-soft: #1b222c;
  --color-link: #c5d8ef;
  --color-danger: #e59a9a;
  --color-success: #7fc7a2;
  --color-focus: #8fb4e0;
  --ticket-paper: #e9ebe6;
  --ticket-line: #c6ccd3;
  --shadow-clay: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-ticket: 0 18px 44px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.35);
  --glass-bg: rgba(20, 25, 32, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --board-bg: #0b1117;
  --shadow-board: 0 8px 22px rgba(0, 0, 0, 0.45);
}

@media (min-width: 30rem) {
  :root {
    --gutter: 1.5rem;
  }
}

@media (min-width: 52.5rem) {
  :root {
    --gutter: 2rem;
  }
}
