/* ROOTED REVIVAL JUICERY — DESIGN SYSTEM & BRAND TOKENS
   Version 2.0 — Based on Developer Handoff & Brand Guidelines */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Core Brand Colors */
  --color-forest: #14372E;
  --color-forest-dark: #0D251F;
  --color-forest-light: #1D4C40;
  --color-forest-tint: rgba(20, 55, 46, 0.08);
  
  --color-sage: #A9B79F;
  --color-sage-light: #E3E9E0;
  --color-sage-ultralight: #F2F5F0;
  --color-sage-dark: #76856B;

  --color-gold: #B8924F;
  --color-gold-light: #D4B06F;
  --color-gold-dark: #917036;
  --color-gold-tint: rgba(184, 146, 79, 0.12);

  --color-cream: #F6F1E7;
  --color-cream-light: #FAF8F3;
  --color-cream-dark: #EDE5D5;
  --color-cream-card: #FFFFFF;

  --color-charcoal: #2D312E;
  --color-charcoal-muted: #5C635E;
  --color-charcoal-subtle: #8A918C;

  /* Feedback Colors */
  --color-success: #1B7A4B;
  --color-warning: #D97706;
  --color-danger: #B91C1C;
  --color-info: #1D5E75;

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px rgba(20, 55, 46, 0.04);
  --shadow-sm: 0 2px 8px rgba(20, 55, 46, 0.06);
  --shadow-md: 0 6px 18px rgba(20, 55, 46, 0.08);
  --shadow-lg: 0 14px 34px rgba(20, 55, 46, 0.12);
  --shadow-gold: 0 8px 24px rgba(184, 146, 79, 0.22);
  --shadow-floating: 0 20px 48px rgba(13, 37, 31, 0.2);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  /* Motion */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration-fast: 150ms;
  --duration-normal: 260ms;
  --duration-slow: 450ms;

  /* Layout dimensions */
  --mobile-width: 412px;
  --mobile-height: 870px;
  --header-height: 64px;
  --bottom-bar-height: 72px;
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--color-cream);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.simulator-active {
  background-color: #0E1815;
}

/* Base Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-forest);
  font-weight: 600;
  line-height: 1.18;
}

p {
  color: var(--color-charcoal);
  font-size: 0.95rem;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
}

/* Scrollbar aesthetic */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(169, 183, 159, 0.15);
}
::-webkit-scrollbar-thumb {
  background: var(--color-sage);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-forest-light);
}

/* Accessibility Focus */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}
