/* Design tokens of the Spice design system.
   Copied from design/tokens.css – do not edit here, change it there and
   copy it over again. Only two things differ from the original:
   the fonts are served as WOFF2 from /static/fonts/, and the dark theme
   additionally follows the device setting (block at the end). */
/* Spice Backend — generated from tokens.json */
:root, [data-theme="light"] {
  --brand-oxblood: #6e0d1c; /* The Spice dark red. Logo, top bar, brand moments. Same in both themes. */
  --brand-blush: #f9d3dc; /* The Spice pink. Logo on dark, selected nav item, brand moments. Same in both themes. */
  --brand-chili: #c8102e; /* The chili itself and the heat-level icons. Never for buttons or errors. */
  --brand-rose: #f2a7b8; /* Soft accent on oxblood, e.g. secondary text in the top bar. */
  --bg: #fcf7f8; /* Page background behind cards and tables. */
  --surface: #ffffff; /* Cards, tables, panels, inputs. */
  --surface-sunken: #f6edef; /* Table header row, read-only fields, hover on rows. */
  --border: #eadade; /* Hairlines between rows and around cards. */
  --border-strong: #9c7f86; /* Input borders and outlined buttons (3:1 on surface). */
  --ink: #2a0a10; /* Primary text on bg and surface. */
  --ink-muted: #6e5359; /* Secondary text, captions, table meta, placeholders. */
  --action: #6e0d1c; /* Primary button fill and links. Oxblood in light, blush in dark. */
  --action-hover: #4f0913; /* Primary button hover. */
  --on-action: #fff5f2; /* Text and icons on the action fill. */
  --focus: #c8102e; /* 3px focus ring on every interactive element. */
  --selected: #f9d3dc; /* Selected nav item, selected table row, active filter chip. */
  --success: #1f7a4d; /* Text and icon for Published, Confirmed, Checked in. */
  --success-bg: #e3f3ea; /* Badge fill behind success. */
  --warning: #8f5400; /* Text and icon for Almost full, Waitlist. */
  --warning-bg: #fcf1dc; /* Badge fill behind warning. */
  --danger: #b42318; /* Cancelled, No-show, destructive buttons, field errors. Always with a label, never colour alone. */
  --danger-bg: #fde7e5; /* Badge fill behind danger, error banners. */
  --info: #2557a7; /* Text and icon for Draft notes, hints, Scheduled. */
  --info-bg: #e6eefa; /* Badge fill behind info. */
  --shadow-pop: 0 8px 24px rgba(42,10,16,0.14); /* Menus, popovers, dialogs. Cards stay flat with a border. */
}
[data-theme="dark"] {
  --brand-oxblood: #6e0d1c;
  --brand-blush: #f9d3dc;
  --brand-chili: #e5384f;
  --brand-rose: #f2a7b8;
  --bg: #170c0e;
  --surface: #221316;
  --surface-sunken: #120809;
  --border: #3a262a;
  --border-strong: #8a6971;
  --ink: #f7e9ec;
  --ink-muted: #c2a6ac;
  --action: #f9d3dc;
  --action-hover: #fbe1e7;
  --on-action: #6e0d1c;
  --focus: #f2a7b8;
  --selected: #4a1d26;
  --success: #5cc891;
  --success-bg: #12301f;
  --warning: #f2b84b;
  --warning-bg: #33240a;
  --danger: #f2766b;
  --danger-bg: #3a1512;
  --info: #7fa8ee;
  --info-bg: #142440;
  --shadow-pop: 0 8px 24px rgba(0,0,0,0.55);
}
:root {
  --space-1: 4px; /* Icon to text. */
  --space-2: 8px; /* Inside badges and chips, between label and field. */
  --space-3: 12px; /* Table cell padding (vertical), button padding (vertical). */
  --space-4: 16px; /* Card padding on phones, gap between form fields, table cell padding (horizontal). */
  --space-6: 24px; /* Card padding, gap between cards. */
  --space-8: 32px; /* Gap between page sections. */
  --space-12: 48px; /* Top of page, empty states. */
  --radius-sm: 6px; /* Inputs, checkboxes, small buttons. */
  --radius-md: 10px; /* Buttons, cards, dialogs, tables. */
  --radius-pill: 999px; /* Status badges, filter chips, avatars. */
  --font-display: Shrikhand, Georgia, serif;
  --font-sans: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-brand-title: 400 32px/36px var(--font-display); /* Only for the greeting on the dashboard and empty states. Once per screen at most. */
  --text-h1: 800 26px/32px var(--font-sans); /* Page title. */
  --text-h2: 700 19px/26px var(--font-sans); /* Section and card titles. */
  --text-h3: 700 16px/22px var(--font-sans); /* Event name in lists and dialogs. */
  --text-body: 400 15px/22px var(--font-sans); /* Default text. */
  --text-body-strong: 600 15px/22px var(--font-sans); /* Emphasis inside body text, button labels. */
  --text-table: 400 14px/20px var(--font-sans); /* Table cells. Use tabular numbers. */
  --text-small: 400 13px/18px var(--font-sans); /* Helper text, captions, timestamps. */
  --text-label: 700 12px/16px var(--font-sans); /* Uppercase labels above fields, table headers, section eyebrows. Same treatment as the labels on the Instagram posts. */
}
.brand-title {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 36px;
  font-weight: 400;
  letter-spacing: 0;
}
.h1 {
  font-family: var(--font-sans);
  font-size: 26px;
  line-height: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.h2 {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: 0;
}
.h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  letter-spacing: 0;
}
.body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  letter-spacing: 0;
}
.body-strong {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: 0;
}
.table {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: 0;
}
.small {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  letter-spacing: 0;
}
.label {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
@font-face {
  font-family: "Shrikhand";
  src: url("/static/fonts/Shrikhand-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/static/fonts/Archivo-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/static/fonts/Archivo-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/static/fonts/Archivo-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/static/fonts/Archivo-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* The design system defines the dark theme on [data-theme="dark"]. The site
   has no theme switch, so the device setting decides – unless a page asks
   for the light theme explicitly. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-chili: #e5384f;
    --bg: #170c0e;
    --surface: #221316;
    --surface-sunken: #120809;
    --border: #3a262a;
    --border-strong: #8a6971;
    --ink: #f7e9ec;
    --ink-muted: #c2a6ac;
    --action: #f9d3dc;
    --action-hover: #fbe1e7;
    --on-action: #6e0d1c;
    --focus: #f2a7b8;
    --selected: #4a1d26;
    --success: #5cc891;
    --success-bg: #12301f;
    --warning: #f2b84b;
    --warning-bg: #33240a;
    --danger: #f2766b;
    --danger-bg: #3a1512;
    --info: #7fa8ee;
    --info-bg: #142440;
    --shadow-pop: 0 8px 24px rgba(0, 0, 0, 0.55);
  }
}
