/* ==========================================================================
   EVNT BOOTH — BRAND DESIGN SYSTEM TOKENS
   Approved Color Tokens & Typography from Brand Identity Guide V1.0
   ========================================================================== */

:root {
  /* Core Brand Color Tokens */
  --color-ink: #191919;               /* Text and core mark (RGB 25 / 25 / 25) */
  --color-cream: #F5F1E8;             /* Main backgrounds (RGB 245 / 241 / 232) */
  --color-evergreen: #153E35;         /* Features and primary buttons (RGB 21 / 62 / 53) */
  --color-champagne: #C8B58A;         /* Accents and dividers (RGB 200 / 181 / 138) */

  /* Supporting Color Tones (Preserving Brand Purity) */
  --color-cream-card: #FCFAF6;        /* Subtle elevated card background on cream */
  --color-cream-subtle: #EBE5D8;      /* Borders and subtle dividers on cream */
  --color-cream-hover: #E3DCCF;       /* Hover state for light elements */
  
  --color-evergreen-dark: #0D2721;    /* Deep evergreen background for high contrast */
  --color-evergreen-light: #1D5247;   /* Hover state for evergreen buttons */
  --color-evergreen-card: #1C4D43;    /* Elevated cards on evergreen sections */
  
  --color-champagne-subtle: rgba(200, 181, 138, 0.25); /* Subtle borders/glows */
  --color-champagne-light: #DFD3B6;   /* Light champagne accent */
  --color-champagne-dark: #A89569;    /* Dark champagne for border contrast */

  --color-ink-muted: #575757;         /* Secondary body text on light backgrounds */
  --color-ink-light: #7A7A7A;         /* Tertiary subtle labels */
  --color-white: #FFFFFF;             /* Pure white for crisp contrast where needed */
  
  /* Contrast Guidelines (Brand Guide Page 04)
     - Ink on Cream: 15.6:1 (AAA)
     - Cream on Evergreen: 10.5:1 (AAA)
     - Champagne on Evergreen: 5.9:1 (AA)
     - NEVER use Champagne text on Cream (1.8:1 - fails WCAG)
  */

  /* Typography */
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Cormorant Garamond', Garamond, Georgia, 'Times New Roman', serif;

  /* Font Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Type Scale (Brand Guide Page 05)
     H1: 56-72px desktop / 36-44px mobile
     H2: 32-40px
     H3: 22-26px
     Body: 16-18px with 1.5-1.65 line height
     Buttons: 14-16px Semibold
  */
  --font-size-xs: 0.8125rem;   /* 13px */
  --font-size-sm: 0.9375rem;   /* 15px */
  --font-size-base: 1.0625rem; /* 17px */
  --font-size-lg: 1.25rem;     /* 20px */
  --font-size-h3: clamp(1.375rem, 2vw + 0.8rem, 1.625rem); /* 22px - 26px */
  --font-size-h2: clamp(2rem, 3vw + 1rem, 2.5rem);         /* 32px - 40px */
  --font-size-h1: clamp(2.25rem, 4.5vw + 1rem, 4.5rem);    /* 36px - 72px */

  --line-height-tight: 1.15;
  --line-height-snug: 1.3;
  --line-height-base: 1.6;
  --line-height-loose: 1.75;

  /* Spacing System (8px rhythm - Brand Guide Page 07) */
  --space-1: 0.5rem;   /* 8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px - standard card padding */
  --space-4: 2rem;     /* 32px */
  --space-5: 2.5rem;   /* 40px */
  --space-6: 3rem;     /* 48px */
  --space-7: 4rem;     /* 64px - desktop section padding */
  --space-8: 5rem;     /* 80px */
  --space-9: 6rem;     /* 96px - hero/feature section padding */

  /* Layout Widths */
  --max-width-content: 72ch;    /* 60-75 characters readable width */
  --max-width-container: 1200px;
  --max-width-wide: 1360px;

  /* Borders & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --border-light: 1px solid var(--color-cream-subtle);
  --border-champagne: 1px solid var(--color-champagne);
  --border-evergreen: 1px solid rgba(200, 181, 138, 0.3);

  --shadow-subtle: 0 4px 20px rgba(25, 25, 25, 0.04);
  --shadow-card: 0 8px 30px rgba(25, 25, 25, 0.06);
  --shadow-hover: 0 12px 36px rgba(25, 25, 25, 0.1);

  /* Transitions */
  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 240ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Foundation */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-cream);
  color: var(--color-ink);
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  font-weight: var(--fw-regular);
  line-height: var(--line-height-base);
  background-color: var(--color-cream);
  color: var(--color-ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography Rules */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--color-ink);
  font-weight: var(--fw-bold);
  line-height: var(--line-height-tight);
  text-wrap: balance;
}

/* Campaign Headlines: Cormorant Garamond (Brand Guide Page 05) */
.headline-campaign {
  font-family: var(--font-serif);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.015em;
  line-height: var(--line-height-tight);
}

.headline-campaign-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--fw-semibold);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }

p {
  margin-bottom: var(--space-2);
  max-width: var(--max-width-content);
}

p.lead {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-snug);
  color: var(--color-ink-muted);
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-evergreen);
  outline-offset: 3px;
}

/* Container Utility */
.container {
  width: 100%;
  max-width: var(--max-width-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

.container-wide {
  width: 100%;
  max-width: var(--max-width-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

/* Photo-Frame Motif (Brand Guide Page 06) */
.photo-frame-accent {
  position: relative;
}

.photo-frame-accent::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  width: 28px;
  height: 28px;
  border-top: 2px solid var(--color-champagne);
  border-left: 2px solid var(--color-champagne);
  pointer-events: none;
}

.photo-frame-accent::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 12px;
  height: 12px;
  background-color: var(--color-champagne);
  pointer-events: none;
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
