/* =========================================================
   NUAGE — Sacred Earth Design System
   ========================================================= */

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

/* ---- DESIGN TOKENS ---- */
:root {
  /* Sacred Earth Palette */
  --bone:       #F5F0EA;
  --parchment:  #EDE8E0;
  --linen:      #E4DDD3;
  --sand:       #D6CEBF;
  --umber:      #2C2118;
  --charcoal:   #3D3228;
  --driftwood:  #6B5D52;
  --stone:      #8C7E74;
  --sage:       #7A8C6E;
  --sage-pale:  #BEC9B3;
  --sage-light: #9BAF8D;
  --sage-dark:  #4A5C40;
  --rose-clay:  #C49A8A;
  --gold:       #A8905A;
  --gold-light: #C4AC78;
  --midnight:   #1E1610;
  --white:      #FFFFFF;

  /* Aliases kept for JS/component compatibility */
  --cream:       var(--parchment);
  --warm-white:  var(--bone);
  --terracotta:  var(--rose-clay);
  --stone-light: var(--stone);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  /* Spacing — Golden Ratio progression */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 100px;
  --space-4xl: 160px;

  /* Layout */
  --max-width:  1380px;
  --radius-sm:  3px;
  --radius-md:  6px;
  --radius-lg:  12px;
  --radius-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:  cubic-bezier(0.64, 0, 0.78, 0);
  --duration:      340ms;
  --duration-fast: 180ms;
  --duration-slow: 600ms;

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(44, 33, 24, 0.06);
  --shadow-md:   0 4px 20px rgba(44, 33, 24, 0.09);
  --shadow-lg:   0 16px 52px rgba(44, 33, 24, 0.14);
  --shadow-card: 0 2px 14px rgba(122, 140, 110, 0.10);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background-color: var(--bone);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

button {
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  background: none;
}

input, textarea, select {
  font-family: var(--font-sans);
  font-size: 1rem;
}

/* ---- TYPOGRAPHY SCALE ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
}

.display-xl {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.01em;
}

.display-lg {
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.08;
}

.display-md {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.12;
}

.heading-lg {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-family: var(--font-serif);
  font-weight: 400;
}

.heading-sm {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-family: var(--font-serif);
  font-weight: 400;
}

.label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.body-sm {
  font-size: 0.875rem;
  color: var(--driftwood);
}

/* ---- LAYOUT HELPERS ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-xl); }
}
@media (min-width: 1200px) {
  .container { padding: 0 var(--space-2xl); }
}

.section {
  padding: var(--space-2xl) 0;
}
@media (min-width: 768px) {
  .section { padding: var(--space-3xl) 0; }
}

/* ---- UTILITIES ---- */
.text-center  { text-align: center; }
.text-sage    { color: var(--sage); }
.text-gold    { color: var(--gold); }
.text-stone   { color: var(--driftwood); }
.text-white   { color: var(--white); }

.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.flex           { display: flex; }
.flex-col       { flex-direction: column; }
.items-center   { align-items: center; }
.justify-between{ justify-content: space-between; }

/* Visually hide but keep accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
