/* ==========================================================================
   Design Tokens
   ========================================================================== */

:root {
  /* Colors - Neutral (cool, purple-tinted to complement brand) */
  --color-gray-50: #f5f5fa;
  --color-gray-100: #ededf4;
  --color-gray-200: #d8d8e4;
  --color-gray-300: #c4c4d2;
  --color-gray-400: #9898a8;
  --color-gray-500: #6b6b78;
  --color-gray-600: #4b4b58;
  --color-gray-700: #373742;
  --color-gray-800: #1f1f2a;
  --color-gray-900: #111118;

  /* Colors - Brand (Layer 1: Eggplant PPG1247) */
  --color-primary: #5A4E88;
  --color-primary-hover: #4a4073;
  --color-primary-mid: #A598C7;
  --color-primary-light: #DBDBE4;

  /* Colors - Semantic (Layer 2: PPG house paint families) */
  --color-success: #008B6D;
  --color-success-mid: #1DB394;
  --color-success-light: #98DDC5;
  --color-danger: #B44940;
  --color-danger-hover: #963b34;
  --color-danger-mid: #EE867D;
  --color-danger-light: #F7CAC1;
  --color-warning: #D8AD39;
  --color-warning-mid: #F6D76E;
  --color-warning-light: #F7EAB9;
  --color-info: #0264AE;
  --color-info-mid: #3D8ED0;
  --color-info-light: #9BC7EA;

  /* Colors - Category Accents (Layer 3) */
  --color-purple: #5A4E88;
  --color-purple-mid: #A598C7;
  --color-purple-light: #DBDBE4;
  --color-blue: #0264AE;
  --color-blue-mid: #3D8ED0;
  --color-blue-light: #9BC7EA;
  --color-rose: #9D5A8F;
  --color-rose-mid: #DBA3CE;
  --color-rose-light: #EDDBE8;
  --color-green: #008B6D;
  --color-green-mid: #1DB394;
  --color-green-light: #98DDC5;
  --color-yellow: #D8AD39;
  --color-yellow-mid: #F6D76E;
  --color-yellow-light: #F7EAB9;
  --color-salmon: #B44940;
  --color-salmon-mid: #EE867D;
  --color-salmon-light: #F7CAC1;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;

  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Spacing */
  --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-16: 4rem;

  /* Layout */
  --max-width: 72rem;
  --radius-sm: 0.25rem;
  --radius: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 5%);
  --shadow: 0 1px 3px rgb(0 0 0 / 10%), 0 1px 2px rgb(0 0 0 / 6%);
  --shadow-md: 0 4px 6px rgb(0 0 0 / 7%), 0 2px 4px rgb(0 0 0 / 6%);
  --shadow-lg: 0 10px 15px rgb(0 0 0 / 10%), 0 4px 6px rgb(0 0 0 / 5%);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 200ms ease;
}

/* ==========================================================================
   CSS Reset (Modern)
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-gray-900);
  background-color: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* ==========================================================================
   Base Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  line-height: var(--leading-tight);
  font-weight: var(--font-semibold);
  color: var(--color-gray-900);
}

h1 {
  font-size: var(--text-3xl);
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
}

h4 {
  font-size: var(--text-lg);
}

p {
  color: var(--color-gray-600);
}

p + p {
  margin-top: var(--space-4);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* Focus indicator for accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Remove default focus for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

small {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

hr {
  border: none;
  border-top: 1px solid var(--color-gray-200);
  margin: var(--space-8) 0;
}

/* ==========================================================================
   Utility - Content Container
   ========================================================================== */

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
