/* tokens.css — Royce The Car Wash Guy design system
   Brand colors from the v3 logo: navy #0A2136, red #B51F1F, cream #FBEDD6, sky #9DC0C8.
   Headings: Alfa Slab One (logo plate lettering). Labels/buttons: Oswald. Body: Satoshi.
   Fonts are self-hosted in assets/fonts (SIL Open Font License 1.1). */

@font-face {
  font-family: 'Alfa Slab One';
  src: url('../fonts/alfa-slab-one-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('../fonts/oswald-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('../fonts/oswald-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette (fixed, not theme-dependent) */
  --brand-navy: #0a2136;
  --brand-red: #b51f1f;
  --brand-cream: #fbedd6;
  --brand-sky: #9dc0c8;

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(1.9rem, 1.2rem + 2.2vw, 3.1rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  --text-hero: clamp(2.3rem, 1.1rem + 3.6vw, 4.4rem);

  /* 4px spacing system */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 1000px;
  --content-wide: 1240px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Alfa Slab One', 'Rockwell', 'Georgia', serif;
  --font-label: 'Oswald', 'Arial Narrow', 'Segoe UI', sans-serif;
  --font-body: 'Satoshi', 'Segoe UI', system-ui, sans-serif;
}

:root,
[data-theme='light'] {
  /* Surfaces */
  --color-bg: #fffaf2;
  --color-surface: #ffffff;
  --color-surface-2: #fdf4e4;
  --color-surface-offset: #fbedd6; /* brand cream */
  --color-surface-navy: #0a2136; /* brand navy */
  --color-surface-navy-2: #14334f;
  --color-divider: #efe1c9;
  --color-border: #e2d1b5;

  /* Text */
  --color-text: #0a2136;
  --color-text-muted: #45566a;
  --color-text-faint: #5f6d7c;
  --color-text-inverse: #fbedd6;

  /* Accent text/links/prices (brand red: 6.6:1 on white, 5.7:1 on cream) */
  --color-primary: #b51f1f;
  --color-primary-hover: #941818;
  --color-primary-active: #7a1313;
  --color-primary-highlight: #f9e0dc;

  /* Buttons (always brand red with cream text: 6.35:1) */
  --color-btn: #b51f1f;
  --color-btn-hover: #941818;
  --color-btn-text: #fffaf2;

  /* Sky accent: decorative fills, and text/icons on navy only (8.4:1 on navy) */
  --color-sky: #9dc0c8;
  --color-sky-highlight: #e1edf0;
  --color-on-navy-accent: #9dc0c8;

  --color-red: #b51f1f;
  --color-red-bg: #b51f1f;
  --color-red-highlight: #f9e0dc;

  /* Semantic */
  --color-success: #2f7a4f;
  --color-success-highlight: #d9efe1;
  --color-error: #b5372f;
  --color-error-highlight: #f6dbd8;
  --color-warning: #a15b12;
  --color-warning-highlight: #f3e2c9;

  --shadow-sm: 0 1px 2px rgb(10 33 54 / 0.08);
  --shadow-md: 0 6px 16px rgb(10 33 54 / 0.1);
  --shadow-lg: 0 16px 40px rgb(10 33 54 / 0.16);
}

[data-theme='dark'] {
  --color-bg: #061524;
  --color-surface: #0a2136;
  --color-surface-2: #0f2a44;
  --color-surface-offset: #0c2640;
  --color-surface-navy: #040f1a;
  --color-surface-navy-2: #0a2136;
  --color-divider: #1b3a57;
  --color-border: #2a4c6c;

  --color-text: #fbedd6;
  --color-text-muted: #c3cfd4;
  --color-text-faint: #9fb0b8;
  --color-text-inverse: #fbedd6;

  --color-primary: #f2958b;
  --color-primary-hover: #f6b0a8;
  --color-primary-active: #e5786d;
  --color-primary-highlight: #3a1a1f;

  --color-btn: #b51f1f;
  --color-btn-hover: #c92b2b;
  --color-btn-text: #fffaf2;

  --color-sky: #9dc0c8;
  --color-sky-highlight: #153a52;
  --color-on-navy-accent: #9dc0c8;

  --color-red: #f2958b;
  --color-red-bg: #b51f1f;
  --color-red-highlight: #3a1a1f;

  --color-success: #6fce93;
  --color-success-highlight: #1d3a29;
  --color-error: #ff8f86;
  --color-error-highlight: #3a1715;
  --color-warning: #f0b46a;
  --color-warning-highlight: #3a2a12;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow-md: 0 6px 16px rgb(0 0 0 / 0.35);
  --shadow-lg: 0 16px 40px rgb(0 0 0 / 0.45);
}
