/* =====================================================================
   The Sisters Cottage · Atelier design tokens · v1.0.0
   ---------------------------------------------------------------------
   The single source of truth for colour, type, space, shape and motion.
   Rules (see DESIGN.md §3):
   - Outside this file, never write a raw colour, font name, shadow or
     easing curve. Use these variables.
   - Changing a value here changes the whole site. That is a design
     change: it needs the owner's OK and a CHANGELOG entry.
   - Names marked "compat" keep the live site's existing CSS working.
     Do not use them in new code.
   ===================================================================== */

.atelier-home {
  /* ---------- Colour: surfaces ---------- */
  --paper: #f6f0e6;          /* page background (ivory) */
  --surface: #fbf7f0;        /* raised: inputs, drawers, popovers, cards on paper */
  --surface-alt: #efe6d8;    /* alternate section band, image placeholders */
  --image-matte: #eadfd4;    /* behind product photos while they load */
  --night: #1f1714;          /* the one dark band per page (craft / look closer) */

  /* ---------- Colour: text ---------- */
  --ink: #2a1a17;            /* body text and headings. 14.7:1 on paper */
  --muted: #6e5d54;          /* secondary text. ≥5:1 on paper, surface-alt */
  --on-accent: #f6efe3;      /* text on oxblood. 10:1 */
  --on-night: #efe4d3;       /* text on night. 14:1 */
  --on-night-muted: #bcae9c; /* secondary text on night. 8:1 */
  --on-accent-muted: #c9b49b;/* secondary text on oxblood (footer). 5.7:1 */

  /* ---------- Colour: brand ---------- */
  --oxblood: #6b1d22;        /* THE accent: primary buttons, emphasis, links on hover */
  --oxblood-deep: #4f1418;   /* hover / pressed state of oxblood */
  --gold: #a8823f;           /* DECORATIVE ONLY: frames, rules, stars, ✦. 3.1:1, never for text under 24px */
  --gold-ink: #7d5d27;       /* gold you can read: eyebrows, small labels. 5.3:1 on paper */
  --gold-light: #d9b46e;     /* gold on night. 9:1 */
  --gold-on-accent: #e3c286; /* gold on oxblood (footer headings). 6.8:1 */

  /* ---------- Colour: lines ---------- */
  --line: #ded5ca;           /* dividers and hairlines (decorative) */
  --line-strong: #8f7f73;    /* borders that carry meaning: inputs, size chips. 3.4:1 */
  --line-on-night: rgba(239, 228, 211, 0.16);
  --line-on-accent: rgba(234, 217, 195, 0.24);

  /* ---------- Colour: status ---------- */
  --success: #4f6146;        /* moss. In stock, order placed. 5.9:1 */
  --error: #9b2c22;          /* form errors, failed payment. 6.7:1 */
  --stock-low: var(--oxblood);   /* "Only 1 left" */
  --sold-out: var(--muted);

  /* ---------- Colour: third-party (the only allowed exceptions) ---------- */
  --whatsapp: #25d366;       /* WhatsApp floating button only */

  /* ---------- Type: families ---------- */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Pinyon Script", "Segoe Script", cursive; /* signature only, max once per page */

  /* ---------- Type: scale (serif = display, sans = reading & UI) ---------- */
  --text-display: 80px;   /* hero headline, one per page */
  --text-h1: 60px;      /* page title */
  --text-h2: 56px;      /* section title */
  --text-h3: 34px;      /* sub-section, occasion card */
  --text-h4: 22px;                          /* product name, review quote */
  --text-lede: 18px;                        /* intro paragraph under a title */
  --text-base: 16px;                        /* body */
  --text-md: 14px;                          /* secondary body, captions */
  --text-sm: 13px;                          /* meta (fabric, city) */
  --text-xs: 12px;                          /* button, nav, eyebrow sizes live here */
  --text-eyebrow: 11px;

  --leading-tight: 1;
  --leading-heading: 1.08;
  --leading-body: 1.6;

  --tracking-display: 0;
  --tracking-caps: 0;      /* buttons, badges, nav */
  --tracking-eyebrow: 0;

  --weight-light: 300;   /* sans: lede and large text only (≥18px) */
  --weight-regular: 400; /* sans: body; serif: all headings */
  --weight-medium: 500;  /* sans: buttons, labels, badges; serif: product names */

  /* ---------- Space (4px base) ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-18: 72px;
  --space-24: 96px;
  --space-30: 120px;

  --section-y: clamp(76px, 10vw, 120px);  /* vertical padding of every <section> */
  --container: 1320px;
  --container-narrow: 760px;              /* text pages: policy, terms, story */
  --gutter: clamp(20px, 3vw, 40px);
  --grid-gap-x: clamp(12px, 2vw, 28px);
  --grid-gap-y: clamp(30px, 3.4vw, 48px);

  /* ---------- Shape ---------- */
  --radius-none: 0;            /* buttons, cards, inputs, badges: Atelier is square */
  --radius-arch: 999px 999px 0 0;  /* editorial images only (hero, occasion, story) */
  --radius-round: 50%;         /* detail discs, swatches, avatars, icon buttons */
  --frame-offset: 14px;        /* gold hairline frame around an arch */

  /* ---------- Elevation ---------- */
  --shadow-lift: 0 40px 80px -40px rgba(42, 26, 23, 0.5);   /* hero arch, large images */
  --shadow-float: 0 18px 40px -18px rgba(42, 26, 23, 0.35); /* tags, popovers, drawers */
  --shadow-disc: 0 24px 50px -20px rgba(42, 26, 23, 0.45);

  /* ---------- Motion ---------- */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 0.2s;   /* colour and border changes */
  --dur: 0.45s;       /* slide-ins, quick-add, drawers */
  --dur-slow: 1.2s;   /* image zoom on hover */

  /* ---------- Controls ---------- */
  --control-height: 48px;   /* every tappable control ≥ 48px tall */
  --focus-ring: 0 0 0 2px var(--paper), 0 0 0 4px var(--oxblood);
  --focus-ring-on-dark: 0 0 0 2px var(--night), 0 0 0 4px var(--gold-light);

  /* ---------- Layers ---------- */
  --z-base: 1;
  --z-sticky: 50;     /* header */
  --z-float: 60;      /* WhatsApp button */
  --z-overlay: 90;    /* drawer scrim */
  --z-drawer: 100;    /* menu, bag, size sheet */
  --z-toast: 110;

  /* ---------- Breakpoints (reference only: CSS can't read these in @media) ----------
     phone   ≤ 760px      @media (max-width: 760px)
     tablet  761–1100px   @media (max-width: 1100px)
     desktop > 1100px
  ------------------------------------------------------------------------------- */

  /* ---------- compat: names used by the live site's styles.css (do not use in new code) ---------- */
  --accent: var(--oxblood);
  --accent-strong: var(--oxblood-deep);
  --copper: var(--gold-ink);
  --rose: var(--oxblood);
  --moss: var(--success);
  --radius-control: var(--radius-none);
  --radius-panel: var(--radius-none);
  --shadow: var(--shadow-float);
  --paper2: var(--surface-alt);
}

@media (max-width: 1100px) { .atelier-home { --text-display: 64px; --text-h2: 48px; } }
@media (max-width: 760px) { .atelier-home { --text-display: 40px; --text-h1: 36px; --text-h2: 34px; --text-h3: 28px; } }
