/* ========================================
   BASE.CSS — Marripadu Jamoon Farm
   Reset + design tokens + foundations
   ======================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body { min-height: 100vh; line-height: 1.55; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 2px; }

/* ============ DESIGN TOKENS ============ */
:root {
  /* COLORS — Heritage Jamoon palette */
  --color-jamoon: #4A235A;          /* deep jamoon purple */
  --color-jamoon-deep: #2E1538;     /* deeper jamoon for emphasis */
  --color-jamoon-light: #6B3A82;    /* lighter jamoon */
  --color-jamoon-soft: #F2E8F5;     /* very pale jamoon wash */

  --color-grove: #2D5016;            /* forest grove green */
  --color-grove-deep: #1A3009;       /* darker grove */
  --color-grove-light: #5C7A3D;      /* lighter grove */

  --color-gold: #C9A85B;             /* heritage gold (muted) */
  --color-gold-bright: #D4AF37;      /* bright accent gold */

  --color-terracotta: #B85C38;       /* warm earth accent */

  --color-cream: #FAF6EE;            /* primary background */
  --color-cream-warm: #F2EBD9;       /* warmer cream */
  --color-bone: #ECE5D2;             /* slightly deeper cream */

  --color-ink: #1A1410;              /* near-black warm */
  --color-ink-soft: #3A3530;         /* softer body text */
  --color-muted: #6B6359;            /* muted text */
  --color-line: rgba(74, 35, 90, 0.12);  /* hairline borders */

  --color-bg: var(--color-cream);
  --color-text: var(--color-ink);
  --color-accent: var(--color-jamoon);

  /* TYPOGRAPHY */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Fluid type scale */
  --text-xs:   clamp(0.75rem, 0.72rem + 0.15vw, 0.85rem);
  --text-sm:   clamp(0.875rem, 0.84rem + 0.18vw, 1rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-xl:   clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
  --text-2xl:  clamp(2rem, 1.7rem + 1.5vw, 2.75rem);
  --text-3xl:  clamp(2.5rem, 2rem + 2.5vw, 3.875rem);
  --text-hero: clamp(3rem, 2rem + 5vw, 6rem);

  /* SPACING — 4px base */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* RADIUS */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* SHADOWS — warm tinted */
  --shadow-sm: 0 1px 3px rgba(74, 35, 90, 0.08), 0 1px 2px rgba(74, 35, 90, 0.06);
  --shadow-md: 0 4px 12px rgba(74, 35, 90, 0.10), 0 2px 4px rgba(74, 35, 90, 0.06);
  --shadow-lg: 0 16px 40px rgba(74, 35, 90, 0.14), 0 4px 12px rgba(74, 35, 90, 0.08);
  --shadow-xl: 0 30px 60px rgba(74, 35, 90, 0.18);

  /* LAYOUT */
  --container-max: 1280px;
  --container-narrow: 880px;
  --container-prose: 65ch;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);

  /* MOTION */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 200ms;
  --dur: 350ms;
  --dur-slow: 600ms;

  /* HEADER */
  --header-h: 76px;
}

/* ============ BASE TYPOGRAPHY ============ */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  font-feature-settings: "kern", "liga", "calt", "ss01";
}
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; color: var(--color-ink); }
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); font-weight: 500; }
h4 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.01em; }
p { line-height: 1.6; color: var(--color-ink-soft); }
em, i { font-style: italic; font-feature-settings: "kern", "liga", "ss01"; }
strong, b { font-weight: 600; color: var(--color-ink); }

/* utility */
.container { max-width: var(--container-max); margin: 0 auto; padding-inline: var(--container-pad); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding-inline: var(--container-pad); }
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-jamoon);
}
.section { padding-block: clamp(var(--space-16), 8vw, var(--space-32)); }

/* sr only */
.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; }

@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; }
}
