/* ========================================
   YSB66 Base Styles
   Reset, Variables, Typography, Buttons
   ======================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--ysb-text);
  background-color: var(--ysb-bg);
  overflow-x: hidden;
}

/* Add padding-bottom on mobile to prevent content overlap with fixed CTA bar */
@media (max-width: 767px) {
  body {
    padding-bottom: 80px;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ========================================
   CSS Variables
   ======================================== */

:root {
  /* Brand Colors */
  --ysb-bg: #faf9ff;
  --ysb-primary: #8b5cf6;
  --ysb-primary-dark: #6d28d9;
  --ysb-accent: #c4b5fd;
  --ysb-text: #1e1b4b;
  --ysb-muted: #6b7280;
  --ysb-border: #e9e5ff;
  --ysb-white: #ffffff;
  
  /* Gold/Amber Accents */
  --ysb-gold: #f59e0b;
  --ysb-gold-light: #fbbf24;
  --ysb-gold-dark: #d97706;
  
  /* Neutral Depth */
  --ysb-dark: #0f0d1a;
  --ysb-dark-soft: #1a1625;
  
  /* Breakpoints */
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  
  /* Spacing Scale (8px base) */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 1rem;     /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-2xl: 4rem;     /* 64px */
  
  /* Typography */
  --font-size-xs: 0.8125rem;  /* 13px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.75rem;    /* 28px */
  --font-size-2xl: 2.25rem;   /* 36px */
  --font-size-3xl: 2.5rem;    /* 40px */
  --font-size-4xl: 3.5rem;    /* 56px */
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-base: 150ms ease-in-out;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--ysb-text);
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
  h1 {
    font-size: var(--font-size-4xl);
  }
}

h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

@media (min-width: 768px) {
  h2 {
    font-size: var(--font-size-2xl);
  }
}

h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-base);
}

@media (min-width: 768px) {
  p {
    font-size: var(--font-size-lg);
  }
}

small {
  font-size: var(--font-size-sm);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--ysb-primary);
  color: var(--ysb-white);
}

.btn-primary:hover {
  background-color: var(--ysb-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -2px rgba(139, 92, 246, 0.4), var(--shadow-md);
  filter: brightness(1.05);
}

.btn-primary:focus,
.btn-primary:focus-visible {
  outline: 2px solid var(--ysb-primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.btn-secondary {
  background-color: var(--ysb-white);
  color: var(--ysb-primary);
  border: 2px solid var(--ysb-primary);
}

.btn-secondary:hover {
  background-color: var(--ysb-accent);
  color: var(--ysb-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -2px rgba(139, 92, 246, 0.3), var(--shadow-md);
  filter: brightness(1.05);
}

.btn-secondary:focus,
.btn-secondary:focus-visible {
  outline: 2px solid var(--ysb-primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.btn-secondary:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   Accessibility
   ======================================== */

.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ysb-primary);
  color: var(--ysb-white);
  padding: var(--space-sm);
  z-index: 1000;
  text-decoration: none;
}

.skip-to-content:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
