/* ============================================================
   BASE.CSS — Variables, Reset, Typography
   Chianti Guide
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  /* Palette */
  --color-cream:       #FAFAF8;
  --color-gold:        #B8966E;
  --color-gold-light:  #D4B896;
  --color-gold-dark:   #8C6E4A;
  --color-charcoal:    #2C2C2C;
  --color-charcoal-80: rgba(44, 44, 44, 0.8);
  --color-charcoal-60: rgba(44, 44, 44, 0.6);
  --color-charcoal-30: rgba(44, 44, 44, 0.3);
  --color-charcoal-15: rgba(44, 44, 44, 0.15);
  --color-charcoal-08: rgba(44, 44, 44, 0.08);
  --color-sage:        #9CAF88;
  --color-sage-light:  #C4D4B6;
  --color-white:       #FFFFFF;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  /* Fluid Type Scale (clamp: min, preferred, max) */
  --text-xs:   clamp(0.65rem,  0.9vw,  0.75rem);
  --text-sm:   clamp(0.8rem,   1.1vw,  0.875rem);
  --text-base: clamp(0.9rem,   1.3vw,  1rem);
  --text-lg:   clamp(1rem,     1.6vw,  1.125rem);
  --text-xl:   clamp(1.1rem,   1.8vw,  1.25rem);
  --text-2xl:  clamp(1.3rem,   2.2vw,  1.5rem);
  --text-3xl:  clamp(1.6rem,   2.8vw,  2rem);
  --text-4xl:  clamp(2rem,     3.5vw,  2.75rem);
  --text-5xl:  clamp(2.5rem,   4.5vw,  3.75rem);
  --text-6xl:  clamp(3rem,     6.5vw,  5.25rem);

  /* Spacing */
  --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;
  --space-40: 10rem;

  /* Layout */
  --container-max:    1280px;
  --container-wide:   1440px;
  --container-narrow: 720px;
  --gutter:           clamp(1.25rem, 4vw, 2.5rem);
  --nav-height:       72px;

  /* Borders & Radius */
  --border-thin:   1px solid var(--color-charcoal-15);
  --border-gold:   1px solid var(--color-gold);
  --radius-sm:     2px;
  --radius-md:     4px;

  /* Shadows */
  --shadow-card:   0 2px 24px rgba(44, 44, 44, 0.08);
  --shadow-lift:   0 8px 40px rgba(44, 44, 44, 0.14);
  --shadow-hero:   0 1px 3px rgba(0, 0, 0, 0.3);

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

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  line-height: 1.2;
}

/* Focus styles — accessibility */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---- Typography Classes ---- */

/* Display — largest heading, always italic */
.text-display {
  font-family: var(--font-serif);
  font-size: var(--text-6xl);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-charcoal);
}

/* Heading levels */
.text-h1 {
  font-family: var(--font-serif);
  font-size: var(--text-5xl);
  font-weight: 400;
  line-height: 1.1;
}

.text-h2 {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  font-weight: 400;
  line-height: 1.15;
}

.text-h3 {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.2;
}

.text-h4 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.3;
}

/* Eyebrow — small uppercase label, always gold */
.text-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Body copy */
.text-body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-charcoal-60);
}

.text-body-lg {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--color-charcoal-60);
}

/* Caption — very small, secondary */
.text-caption {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-charcoal-60);
  line-height: 1.6;
}

/* Pull quote — large italic serif */
.text-quote {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  color: var(--color-charcoal);
}

/* Small label in sans-serif */
.text-label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-charcoal);
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="100"]  { transition-delay: 0.1s; }
.reveal[data-delay="200"]  { transition-delay: 0.2s; }
.reveal[data-delay="300"]  { transition-delay: 0.3s; }
.reveal[data-delay="400"]  { transition-delay: 0.4s; }
.reveal[data-delay="500"]  { transition-delay: 0.5s; }

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

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.color-gold     { color: var(--color-gold); }
.color-charcoal { color: var(--color-charcoal); }
.color-cream    { color: var(--color-cream); }
.color-muted    { color: var(--color-charcoal-60); }
