/*
 * Minimum design tokens. Single source for color, type, space, radius,
 * elevation, layering and motion. Every surface loads this file first.
 * Media queries can not read custom properties; breakpoints are listed
 * at the end for reference and written as literal values.
 */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../../fonts/geist/geist-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../../fonts/geist/geist-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../../fonts/bricolage/bricolage-grotesque-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../../fonts/bricolage/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --color-brand: #06b4fe;          /* logo blue: accents, icons, highlights; never under white text */
  --color-brand-soft: #e6f7ff;
  --color-primary: #0179ad;        /* same hue, 4.8:1 with white: buttons, links, focus */
  --color-primary-hover: #016b98;
  --color-primary-soft: #e8f4fa;

  /* Ink and surfaces (daylight: blue-tinted neutrals) */
  --color-ink: #0b2235;            /* headings, strong text */
  --color-text: #3a5064;           /* body text */
  --color-muted: #64768a;          /* secondary text, 4.6:1 */
  --color-placeholder: #8a9bad;
  --color-line: #e3ecf4;
  --color-line-strong: #cfdbe7;
  --color-surface: #ffffff;
  --color-canvas: #f5f9fd;
  --color-hover: #eef5fb;

  /* Daylight sky and glass */
  --sky-top: #dcefff;
  --sky-mid: #f2f8fe;
  --sky: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 340px, var(--color-canvas) 760px);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --glass-blur: saturate(170%) blur(18px);
  --sun: rgba(255, 226, 160, 0.5);

  /* Status: text color on white and soft background */
  --color-success: #15803d;
  --color-success-soft: #e8f7ef;
  --color-success-ink: #0f5132;
  --color-warning: #b45309;
  --color-warning-soft: #fff6e0;
  --color-warning-ink: #7a4a00;
  --color-danger: #c62828;
  --color-danger-soft: #fdecec;
  --color-danger-ink: #8f1d1d;
  --color-info-soft: var(--color-primary-soft);
  --color-info-ink: #0b4f70;

  /* Premium */
  --color-gold: #c9952b;
  --color-gold-strong: #92610a;
  --color-gold-soft: #fffdf5;
  --color-gold-line: #e5c44a;

  /* Rating */
  --color-star: #f59e0b;

  /* Type */
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-xs: 0.75rem;     /* 12 */
  --text-sm: 0.8125rem;   /* 13 */
  --text-base: 0.875rem;  /* 14, dense UI default */
  --text-md: 1rem;        /* 16, reading text */
  --text-lg: 1.125rem;    /* 18 */
  --text-xl: 1.25rem;     /* 20 */
  --text-2xl: 1.5rem;     /* 24 */
  --text-3xl: 1.75rem;    /* 28 */
  --text-4xl: 2.25rem;    /* 36 */
  --text-5xl: 3rem;       /* 48 */
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.55;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --tracking-tight: -0.02em;
  --tracking-display: -0.035em;

  /* Space (4px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Elevation */
  --ring: 0 0 0 1px rgba(11, 34, 53, 0.06);
  --shadow-sm: 0 0 0 1px rgba(11, 34, 53, 0.05), 0 1px 2px rgba(11, 34, 53, 0.05);
  --shadow-md: 0 0 0 1px rgba(11, 34, 53, 0.05), 0 16px 32px -20px rgba(11, 34, 53, 0.35);
  --shadow-lg: 0 0 0 1px rgba(11, 34, 53, 0.05), 0 30px 60px -26px rgba(11, 34, 53, 0.4);

  /* Focus */
  --focus-ring: 2px solid var(--color-primary);
  --focus-offset: 2px;

  /* Layering (sticky legacy headers sit at 9999) */
  --z-header: 9000;
  --z-dropdown: 10000;
  --z-overlay: 20000;
  --z-modal: 20100;
  --z-toast: 30000;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 120ms;
  --duration: 200ms;
  --duration-slow: 320ms;

  /* Layout */
  --container: 1200px;
  --control-height: 46px;
  --control-height-sm: 38px;
}

/*
 * Breakpoints (literal in media queries):
 * 525px  large phones
 * 768px  tablet
 * 992px  laptop
 * 1200px desktop
 */
