/* ===== YOUTHBITE DESIGN SYSTEM ===== */
/* public/css/main.css */

:root {
  /* Colors */
  --color-bg:             #FFFFFF;
  --color-bg-subtle:      #F8F7F4;
  --color-bg-dark:        #0F1117;
  --color-accent:         #1A6B5A;
  --color-accent-mid:     #2E8B72;
  --color-accent-light:   #E8F4F0;
  --color-gold:           #C4922A;
  --color-text-primary:   #111827;
  --color-text-secondary: #4B5563;
  --color-text-muted:     #6B7280;
  --color-border:         #E5E7EB;
  --color-error:          #DC2626;
  --color-success:        #059669;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', 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;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  /* Spacing */
  --max-width-content: 768px;
  --max-width-wide:    1200px;
  --space-section:     80px;

  /* Borders */
  --border-radius-sm:   6px;
  --border-radius-md:   12px;
  --border-radius-lg:   20px;
  --border-radius-pill: 999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);

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

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-primary);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-mid); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--color-text-primary);
}

p + p { margin-top: 1rem; }

.container {
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.container--content {
  max-width: var(--max-width-content);
}

.section {
  padding: var(--space-section) 0;
}

.section--subtle {
  background: var(--color-bg-subtle);
}

.section--dark {
  background: var(--color-bg-dark);
  color: #fff;
}

/* Utilities */
.text-muted     { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-accent    { color: var(--color-accent); }
.text-gold      { color: var(--color-gold); }
.text-sm        { font-size: var(--text-sm); }
.text-lg        { font-size: var(--text-lg); }
.text-center    { text-align: center; }
.font-mono      { font-family: var(--font-mono); }

.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--border-radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--color-accent-light);
  color: var(--color-accent);
}

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

/* Prose styles for article bodies */
.prose h2 { font-size: var(--text-2xl); margin: 2rem 0 1rem; }
.prose h3 { font-size: var(--text-xl); margin: 1.5rem 0 .75rem; }
.prose p  { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 1rem 0 1rem 1.5rem; }
.prose li { margin-bottom: .5rem; }
.prose blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: 16px;
  color: var(--color-text-secondary);
  font-style: italic;
  margin: 1.5rem 0;
}
.prose a { color: var(--color-accent); text-decoration: underline; }
.prose strong { font-weight: 700; }
.prose cite { font-size: var(--text-sm); color: var(--color-text-muted); }
