/* ==========================================================================
   Carried Away — Design Tokens
   Single source of truth for color, type, spacing, and motion.
   Nothing in this file should be a component style; main.css consumes these.
   ========================================================================== */

:root {
  /* ---------- Official palette (2026-11-05) ----------
     Rough proportions: 40% plum, 40% ivory, 15% persimmon, 5% oxblood.
       Deep Plum   logo, headings, body text, navigation, footer ground.
       Persimmon   statement sections, promotional bands, highlights and
                   decorative rules. Large areas only: it is too light for
                   small text on ivory.
       Warm Ivory  page background, negative space, text on dark grounds.
       Oxblood     CTA buttons and hover accents, used sparingly.
     No dark mode, no gradients behind content. */
  --color-purple: #3A1E4A;     /* Deep Plum. */
  --color-persimmon: #F06435;  /* Persimmon. */
  --color-ivory: #FFFCF8;      /* Warm Ivory, lightened 2026-11-10 (was #FFF9F2). */
  --color-oxblood: #682535;    /* Oxblood. */

  /* ---------- Derived steps ----------
     Only tints and shades of the four core colors — no new hues. */
  --color-purple-deep: #2A1336;
  --color-purple-soft: #6B4A7E;   /* Secondary text, captions, eyebrows. */
  --color-purple-muted: #7B6189;  /* Muted text; 5:1 on ivory. */
  --color-oxblood-deep: #4E1A27;  /* Button hover. */
  --color-persimmon-pale: #FDE5DB;  /* Persimmon tint for soft feature bands. */
  --color-ivory-deep: #F6EDE3;    /* Empty photo frames, quiet blocks. */
  --color-ivory-soft: #E3D8E6;    /* Secondary text on plum. */

  /* Structural hairlines. The site draws lines, not boxes. */
  --color-line: #EADFE3;
  --color-line-strong: var(--color-purple);

  /* ---------- Semantic roles ---------- */
  --bg-page: var(--color-ivory);
  --bg-alt: var(--color-ivory-deep);
  --bg-raised: var(--color-ivory);
  --text-primary: var(--color-purple);
  --text-secondary: var(--color-purple-soft);
  --text-muted: var(--color-purple-muted);
  --accent: var(--color-oxblood);

  /* ---------- Typography ----------
     SITE-WIDE DECISION (2026-11-04, final) — two fonts. Update this note
     and the Google Fonts <link> in every HTML page's <head> before adding
     a third. The logo is an image (images/logo.png, logo-ivory.png), not
     a font.
       --font-heading  Cormorant Garamond — headings (h1, h2, .page-title,
                       .section-head__title, .split__lead, .band__title,
                       .hero__title, .tier__price). Sentence case.
       --font-body / --font-ui  Jost — navigation, subheadings (h3–h6,
                       .item__title, eyebrows, labels), buttons and body
                       copy. Navigation, subheadings and buttons are
                       uppercase and tracked; body copy is sentence case.
     Italics appear only in .hero__title em; everything else is upright. */
  --font-heading: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-ui: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Fluid type scale — clamp(min, preferred, max) */
  --text-xs: clamp(0.69rem, 0.66rem + 0.14vw, 0.76rem);
  --text-sm: clamp(0.8rem, 0.77rem + 0.16vw, 0.88rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);   /* Body copy, 16–18px. */
  --text-lg: clamp(1.1rem, 1.03rem + 0.34vw, 1.3rem);
  --text-xl: clamp(1.3rem, 1.16rem + 0.68vw, 1.7rem);
  --text-2xl: clamp(1.6rem, 1.32rem + 1.36vw, 2.4rem);
  --text-3xl: clamp(2.1rem, 1.63rem + 2.34vw, 3.6rem);
  --text-4xl: clamp(2.6rem, 1.6rem + 4.8vw, 6rem);

  /* Brand type scale (2026-11-05). Element sizes from the brand guide;
     the low end of each range is the phone size. */
  --type-h1: clamp(2.75rem, 1.9rem + 2.9vw, 4.5rem);        /* Hero headline, 56–72px. */
  --type-h2: clamp(2rem, 1.55rem + 1.5vw, 3rem);            /* Section headings, 36–48px. */
  --type-h3: clamp(1.5rem, 1.35rem + 0.5vw, 2rem);          /* Smaller headings, 26–32px. */
  --type-subhead: clamp(1.125rem, 1.05rem + 0.3vw, 1.375rem); /* Subheadings, 18–22px. */
  --type-nav: clamp(0.875rem, 0.84rem + 0.1vw, 0.9375rem);  /* Navigation, 14–15px. */
  --type-button: clamp(0.9375rem, 0.92rem + 0.05vw, 1rem);  /* Buttons, 15–16px. */
  --type-eyebrow: 0.8125rem;                                /* Eyebrow labels, 12–13px. */
  --type-label: 0.75rem;

  --leading-tight: 1.08;
  --leading-snug: 1.28;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.08em;
  --tracking-caps: 0.1em;      /* Subheadings, navigation, buttons. */
  --tracking-eyebrow: 0.12em;  /* Eyebrows above headings. */
  --tracking-heading: 0;       /* Cormorant Garamond headings. */
  --tracking-wider: 0.18em;
  --tracking-widest: 0.24em;

  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* ---------- Spacing scale ---------- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 7rem;

  /* Section rhythm — scales with viewport */
  --section-y: clamp(3.5rem, 9vh, 7rem);
  --gutter: clamp(1.25rem, 5vw, 4rem);

  /* ---------- Layout ---------- */
  --container-max: 1240px;
  --container-narrow: 760px;

  /* Stacked editorial header: centered wordmark + nav row.
     --header-height is the total; main.css offsets page content by it. */
  --logo-row-height: 7rem;
  --nav-row-height: 3.25rem;
  --header-height: calc(var(--logo-row-height) + var(--nav-row-height));

  /* ---------- Borders ----------
     Structure comes from thin lines, never from boxes, radii, or elevation.
     Corners stay square: there is deliberately no radius token, and no
     shadow token — an editorial page has no floating cards. */
  --hairline: 1px solid var(--color-line);
  --hairline-strong: 1px solid var(--color-line-strong);

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 160ms;
  --duration-base: 280ms;
  --duration-slow: 520ms;

  /* ---------- Z-index ---------- */
  --z-header: 100;
  --z-menu: 200;
}
