/* ============================================================
   RIVELUNE-SUR-MER — DESIGN SYSTEM
   Single source of truth: tokens only. No hardcoded px for type
   or spacing anywhere else in the codebase.
   ============================================================ */

:root {
  /* ---- Palette (Côte d'Ambre / Art Déco Anglo-Normand) ---- */
  --color-sand:       #E8DFD0;
  --color-dune:       #C8B89A;
  --color-sea:        #2C4A6B;
  --color-sea-light:  #4A7FA8;
  --color-sky:        #F0EAE0;
  --color-night:      #0D1B2A;
  --color-gold:       #BFA07A;
  --color-cream:      #FAF7F2;
  --color-text:       #1A1A1A;
  --color-text-muted: #6B6B6B;

  /* Derived / utility tints */
  --color-night-80:   rgba(13, 27, 42, 0.80);
  --color-night-95:   rgba(13, 27, 42, 0.95);
  --color-line:       rgba(26, 26, 26, 0.12);
  --color-line-light: rgba(250, 247, 242, 0.18);

  /* ---- Fluid type scale (clamp only — zero breakpoints) ---- */
  --text-xs:   clamp(0.75rem,  0.70rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.80rem + 0.375vw, 1rem);
  --text-base: clamp(1rem,     0.90rem + 0.50vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1.00rem + 0.75vw, 1.375rem);
  --text-xl:   clamp(1.25rem,  1.00rem + 1.25vw, 1.75rem);
  --text-2xl:  clamp(1.5rem,   1.10rem + 2.00vw, 2.5rem);
  --text-3xl:  clamp(2rem,     1.20rem + 3.50vw, 4rem);
  --text-4xl:  clamp(2.5rem,   1.00rem + 6.00vw, 6.5rem);
  --text-hero: clamp(3rem,     1.00rem + 9.00vw, 10rem);

  /* ---- Fluid spacing scale ---- */
  --space-2xs: clamp(0.25rem, 0.20rem + 0.25vw, 0.375rem);
  --space-xs:  clamp(0.5rem,  0.40rem + 0.50vw, 0.75rem);
  --space-sm:  clamp(0.75rem, 0.60rem + 0.75vw, 1.25rem);
  --space-md:  clamp(1rem,    0.75rem + 1.25vw, 2rem);
  --space-lg:  clamp(1.5rem,  1.00rem + 2.50vw, 3.5rem);
  --space-xl:  clamp(2rem,    1.00rem + 4.00vw, 6rem);
  --space-2xl: clamp(3rem,    1.50rem + 6.00vw, 9rem);
  --space-3xl: clamp(4rem,    2.00rem + 8.00vw, 12rem);

  /* ---- Typography families ---- */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body:    'Jost', 'Inter', system-ui, sans-serif;
  --font-accent:  'Cormorant SC', 'Cormorant Garamond', serif;

  /* ---- Motion ---- */
  --ease-signature:  cubic-bezier(0.25, 0.10, 0.25, 1.0);
  --ease-entrance: cubic-bezier(0.16, 1, 0.30, 1);
  --dur-fast: 0.3s;
  --dur-med:  0.6s;
  --dur-slow: 1.1s;

  /* ---- Radii & layers ---- */
  --radius-pill: 999rem;
  --radius-sm: 0.25rem;
  --z-nav: 100;
  --z-overlay: 200;
  --z-curtain: 300;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

::selection { background: var(--color-gold); color: var(--color-cream); }

:focus-visible {
  outline: 2px solid var(--color-sea-light);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
