/* ============================================================
   CHIANTI VINTAGE EXPEDITIONS — Design System
   main.css: variables, reset, typography, utilities
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Lato:wght@300;400;700&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Colors */
  --color-black:    #1C1714;
  --color-cream:    #F5F0E8;
  --color-gold:     #C9A052;
  --color-gold-light: #DDB96B;
  --color-burgundy: #7A1C2E;
  --color-grey:     #888078;
  --color-white:    #FFFFFF;
  --color-cream-dark: #EDE8DF;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lato', system-ui, sans-serif;

  /* Type Scale */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  2rem;      /* 32px */
  --text-4xl:  2.75rem;   /* 44px */
  --text-5xl:  3.75rem;   /* 60px */
  --text-6xl:  5rem;      /* 80px */
  --text-hero: clamp(3rem, 8vw, 6.5rem);

  /* 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;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 720px;
  --container-wide: 1440px;

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

  /* Border */
  --border-gold: 1px solid var(--color-gold);
  --border-gold-thin: 1px solid rgba(201, 160, 82, 0.35);

  /* Shadows */
  --shadow-card: 0 4px 32px rgba(28, 23, 20, 0.18);
  --shadow-nav:  0 2px 20px rgba(28, 23, 20, 0.25);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::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-black);
  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;
}

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

ul, ol {
  list-style: none;
}

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

/* ── Base Typography ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: inherit;
}

/* ── Utility Classes ──────────────────────────────────────── */

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

/* Colors */
.bg-black   { background-color: var(--color-black); }
.bg-cream   { background-color: var(--color-cream); }
.bg-dark    { background-color: #141110; }

.text-cream    { color: var(--color-cream); }
.text-gold     { color: var(--color-gold); }
.text-grey     { color: var(--color-grey); }
.text-black    { color: var(--color-black); }
.text-burgundy { color: var(--color-burgundy); }

/* Text transform */
.text-center { text-align: center; }
.text-left   { text-align: left; }

/* Label style — small caps, spaced */
.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Italic lead */
.lead {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
}

/* ── Gold Ornamental Divider ──────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-gold);
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.ornament-diamond::before {
  content: '◆';
  flex: none;
  font-size: 0.5rem;
  opacity: 0.7;
}

/* Standalone thin gold rule */
.gold-rule {
  border: none;
  border-top: var(--border-gold-thin);
  margin: var(--space-12) 0;
}

/* ── Scroll Animations ────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
