/* ═══════════════════════════════════════════════════
   MADEYOUTHIS.COM — Design System
   Extracted from Stitch UI exports
   ═══════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Quicksand:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* ── Design Tokens ── */
:root {
  /* Colors */
  --color-primary: #E07A5F;
  --color-primary-dark: #c96246;
  --color-primary-light: rgba(224, 122, 95, 0.1);
  --color-primary-glow: rgba(224, 122, 95, 0.4);

  --color-secondary: #81B29A;
  --color-secondary-dark: #6a947f;
  --color-secondary-light: rgba(129, 178, 154, 0.1);

  --color-bg: #FAF7F2;
  --color-bg-dark: #F5F0E6;
  --color-surface: #FFFFFF;
  --color-surface-hover: #FEFCFA;

  --color-charcoal: #2D2D2D;
  --color-charcoal-light: #4A4A4A;
  --color-text-muted: #5C5C5C;
  --color-text-faint: #9CA3AF;

  --color-border: #EAE0D5;
  --color-border-light: rgba(0, 0, 0, 0.05);

  --color-success: #81B29A;
  --color-error: #E07A5F;

  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-heading: 'Newsreader', serif;
  --font-body: 'Quicksand', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Radii */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-2xl: 3rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 10px 30px -5px rgba(45, 45, 45, 0.03);
  --shadow-hover: 0 20px 40px -5px rgba(224, 122, 95, 0.15);
  --shadow-btn: 0 4px 14px rgba(224, 122, 95, 0.4);
  --shadow-btn-hover: 0 6px 20px rgba(224, 122, 95, 0.6);
  --shadow-lg: 0 20px 60px -15px rgba(224, 122, 95, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* ── Homepage Design System ── */
  --bg-cream: #FAF7F2;
  --bg-cream-dark: #F5F0EA;
  --coral: #E07A5F;
  --coral-dark: #C94F3A;
  --charcoal: #2D2D2D;
  --sage: #81B29A;
  --text-body: #2D2D2D;
  --text-muted: rgba(45, 45, 45, 0.5);
  --text-faint: rgba(45, 45, 45, 0.25);
  --hp-font-body: 'Plus Jakarta Sans', sans-serif;
  --hp-font-display: 'Instrument Serif', 'Playfair Display', Georgia, serif;
  --hp-radius-sm: 8px;
  --hp-radius-md: 12px;
  --hp-radius-pill: 50px;
  --hp-section-padding: 120px 24px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-charcoal-light);
  background: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

::selection {
  background: var(--color-secondary);
  color: white;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: #D3CDC6; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-charcoal);
  line-height: 1.2;
  font-weight: 500;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

.heading-hero {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.heading-section {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-style: italic;
  font-weight: 500;
}

.text-body { font-size: 1rem; line-height: 1.6; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.text-muted { color: var(--color-text-muted); }
.text-faint { color: var(--color-text-faint); }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }

.font-display { font-family: var(--font-display); }
.font-heading { font-family: var(--font-heading); }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 0.75rem;
}

/* ── Links ── */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-primary-dark); }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ── App Container ── */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Page Transitions ── */
.page {
  animation: pageIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-exit {
  animation: pageOut 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pageOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ── Background Blobs ── */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.bg-blob-primary {
  background: rgba(224, 122, 95, 0.05);
  filter: blur(100px);
}

.bg-blob-secondary {
  background: rgba(129, 178, 154, 0.08);
  filter: blur(120px);
}

/* ── Material Symbols ── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

.icon-filled {
  font-variation-settings: 'FILL' 1, 'wght' 700;
}

/* ── Utility ── */
.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;
}

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --hp-section-padding: 60px 20px;
  }
  .container, .container-narrow {
    padding: 0 var(--space-md);
  }
}
