/* ══════════════════════════════════════════════════════════════════
   LA VALETTE BOUTIQUE — SHARED DESIGN SYSTEM
   ──────────────────────────────────────────────────────────────────
   Single source of truth for every page EXCEPT index.html.

   The homepage (index.html) keeps its own inline CSS and is the locked
   visual reference. The :root block below is extracted verbatim from it,
   so tokens cannot drift. If the homepage changes, re-extract.

   Layer 1 of 2. Layer 2 is pages.css, which maps legacy class names
   onto these tokens.
   ══════════════════════════════════════════════════════════════════ */

:root {
  /* ═══ COLOUR — Provence Morning Light ═══ */
  --bg:         #F2EBE0;
  --travertine: #E7DED2;
  --limestone:  #D9D0C4;
  --cream:      #EFEADD;
  --white:      #FBF7EC;

  --ink:        #251F1C;
  --ink-70:     rgba(37,31,28,0.70);
  --ink-55:     rgba(37,31,28,0.55);
  --ink-40:     rgba(37,31,28,0.40);
  --ink-25:     rgba(37,31,28,0.25);
  --ink-15:     rgba(37,31,28,0.15);
  --ink-08:     rgba(37,31,28,0.08);

  --sage:       #8B8E70;
  --sage-dk:    #6E7159;
  --sage-lt:    #A6A788;
  --sage-05:    rgba(139,142,112,0.05);
  --sage-10:    rgba(139,142,112,0.10);
  --sage-20:    rgba(139,142,112,0.20);

  --avail:      #7A8C7E;
  --busy:       #A6685C;

  --border:     rgba(37,31,28,0.14);
  --border-lt:  rgba(37,31,28,0.08);
  --border-md:  rgba(37,31,28,0.22);

  /* ═══ TYPOGRAPHY ═══ */
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --w-light: 300;
  --w-book:  400;
  --w-med:   500;
  --w-semi:  600;
  --w-bold:  700;

  --fs-display:   clamp(2.25rem, 5.5vw, 3.5rem);
  --fs-hero:      clamp(1.75rem, 4.2vw, 2.75rem);
  --fs-h1:        clamp(1.5rem, 3.4vw, 2.25rem);
  --fs-h2:        clamp(1.25rem, 2.6vw, 1.75rem);
  --fs-h3:        clamp(1.0625rem, 1.8vw, 1.25rem);
  --fs-body-lg:   clamp(1rem, 1.2vw, 1.0625rem);
  --fs-body:      0.9375rem;
  --fs-body-tight:0.875rem;
  --fs-caption:   0.8125rem;
  --fs-micro:     0.6875rem;
  --fs-nano:      0.625rem;

  --lh-tight:   1.05;
  --lh-snug:    1.15;
  --lh-heading: 1.2;
  --lh-h3:      1.3;
  --lh-body:    1.75;
  --lh-tight-body: 1.55;
  --lh-micro:   1.4;

  --ls-tighter: -0.02em;
  --ls-tight:   -0.015em;
  --ls-normal:  0;
  --ls-wide:    0.015em;
  --ls-kicker:  0.2em;
  --ls-nano:    0.25em;

  /* ═══ SPACING ═══ */
  --s0: 4px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;
  --s7: 128px;
  --s8: 160px;

  --section:    clamp(96px, 12vw, 160px);
  --section-sm: clamp(64px, 9vw, 128px);
  --gutter:     clamp(16px, 5vw, 80px);

  /* ═══ RADII ═══ */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;

  /* ═══ SHADOWS (used sparingly) ═══ */
  --sh-modal:   0 20px 60px rgba(37,31,28,0.12);
  --sh-lg:      0 12px 32px rgba(37,31,28,0.08);
  --sh-cookie:  0 -4px 24px rgba(37,31,28,0.06);

  /* ═══ MOTION ═══ */
  --t-fast:  160ms;
  --t-base:  240ms;
  --t-slow:  400ms;
  --t-xslow: 800ms;
  --ez:      cubic-bezier(0.16, 1, 0.3, 1);
  --ez-alt:  cubic-bezier(0.4, 0, 0.2, 1);

  /* ═══ Z-INDEX ═══ */
  --z-base:            0;
  --z-raised:         10;
  --z-sticky:        100;
  --z-drawer:        900;
  --z-modal-back:   1000;
  --z-modal:        1010;
  --z-gallery:     10000;

  /* ═══ CONTAINERS ═══ */
  --container:     1280px;
  --container-w:    920px;
  --container-ed:   620px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: var(--w-light);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--ink);
  font-weight: var(--w-light);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-heading);
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h1); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: var(--w-med); }

/* Homepage sets accents in sage rather than the legacy gold. */
h1 em, h2 em, h3 em { font-style: italic; color: var(--sage-dk); }

p { color: var(--ink-70); }

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

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

::selection { background: var(--sage-20); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ═══ LAYOUT ═══ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ═══ KICKER ═══ */
.kicker {
  display: inline-block;
  font-size: var(--fs-micro);
  font-weight: var(--w-med);
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
  color: var(--sage);
  line-height: var(--lh-micro);
  position: relative;
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: var(--fs-micro);
  font-weight: var(--w-med);
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
  background: var(--sage);
  color: var(--white);
  border: 1px solid var(--sage);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t-base) var(--ez-alt),
              border-color var(--t-base) var(--ez-alt),
              transform var(--t-fast) var(--ez-alt);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover {
  background: var(--sage-dk);
  border-color: var(--sage-dk);
  transform: translateY(-1px);
}

/* ═══ REVEAL ═══
   Mirrors the homepage: hidden only where motion is welcome, and never
   dependent on JS for legibility. */
@media (prefers-reduced-motion: no-preference) {
  .reveal, .sr {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--t-xslow) var(--ez), transform var(--t-xslow) var(--ez);
  }
  .reveal.in, .sr.vis {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .sr { opacity: 1; transform: none; }
}
