/* GENERATED COPY of design-system/tokens.css. Edit that file, then rebuild. */
/* ==========================================================================
   Design tokens: The Pendle Home.
   Colors come from the current site: navy #0E2340 (top bar, logo), tan #D1BA98
   (logo figures, accents), sky blue #8DBCD2 / #C8E2ED and off-white #F3F2F0.
   Bronze and slate are darker relatives added so text passes contrast.
   Rules and contrast table: design-system/MASTER.md.

   Components must use these variables, never raw hex values.
   Fonts are not imported here: set "fonts_url" in site.config.json.
   ========================================================================== */

:root {
  /* 1. PRIMITIVE COLORS (components use the semantic colors below) */
  --brand-navy-900: #0E2340;   /* live site */
  --brand-navy-800: #1A3558;   /* hover */
  --brand-tan-400:  #D1BA98;   /* live site */
  --brand-tan-200:  #E9DDCB;   /* soft tint of the tan */
  --brand-bronze-700: #6F5A3A; /* tan family, dark enough for text */
  --brand-sky-400:  #8DBCD2;   /* live site */
  --brand-sky-200:  #C8E2ED;   /* live site */
  --brand-paper-100: #F3F2F0;  /* live site */
  --brand-white:    #FFFFFF;
  --brand-slate-700: #2F3B4C;  /* body text */
  --brand-slate-500: #5D6B7C;  /* input borders */
  --brand-line:     #DDD8D0;   /* decorative dividers */
  --brand-red-700:  #B42318;
  --brand-green-700: #2F6B2F;

  /* 2. SEMANTIC COLORS */
  --color-primary:            var(--brand-navy-900);
  --color-primary-hover:      var(--brand-navy-800);
  --color-on-primary:         var(--brand-white);
  --color-secondary:          var(--brand-tan-400);
  --color-on-secondary:       var(--brand-navy-900);
  --color-accent:             var(--brand-tan-400);    /* fills and rules, never text on white */
  --color-on-accent:          var(--brand-navy-900);
  --color-accent-text:        var(--brand-bronze-700);
  --color-warm:               var(--brand-bronze-700);
  --color-sky:                var(--brand-sky-400);
  --color-sky-soft:           var(--brand-sky-200);
  --color-tan-soft:           var(--brand-tan-200);

  --color-background:         var(--brand-paper-100);
  --color-background-alt:     var(--brand-sky-200);
  --color-surface:            var(--brand-white);
  --color-foreground:         var(--brand-slate-700);
  --color-heading:            var(--brand-navy-900);
  --color-heading-brand:      var(--brand-navy-900);
  --color-card:               var(--brand-white);
  --color-card-foreground:    var(--brand-slate-700);
  --color-muted:              var(--brand-paper-100);
  --color-muted-foreground:   var(--brand-slate-700);
  --color-border:             var(--brand-line);       /* decorative dividers */
  --color-input-border:       var(--brand-slate-500);
  --color-input-bg:           var(--brand-white);
  --color-link:               var(--brand-navy-900);
  --color-link-hover:         var(--brand-bronze-700);
  --color-ring:               var(--brand-navy-900);

  --color-destructive:        var(--brand-red-700);
  --color-on-destructive:     var(--brand-white);
  --color-error:              var(--brand-red-700);
  --color-error-bg:           #FDF1EF;
  --color-success:            var(--brand-green-700);
  --color-success-bg:         #EEF6EE;

  --color-footer-bg:          var(--brand-navy-900);
  --color-footer-fg:          var(--brand-paper-100);
  --color-footer-heading:     var(--brand-tan-400);
  --color-footer-divider:     rgba(209, 186, 152, 0.3); /* decorative line */

  /* 3. TYPOGRAPHY */
  --font-heading: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;

  --font-size-root: 100%;                                        /* respect browser setting */
  --text-sm:   1rem;                                             /* 16px, smallest allowed */
  --text-base: 1.125rem;                                         /* 18px, body */
  --text-lg:   1.25rem;                                          /* 20px, lead paragraphs */
  --text-xl:   1.375rem;                                         /* 22px, h4 / item titles */
  --text-2xl:  clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);          /* 24-30px, h3 / quotes */
  --text-3xl:  clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);           /* 28-40px, h2 */
  --text-4xl:  clamp(2.125rem, 1.5rem + 2.9vw, 3.5rem);          /* 34-56px, h1 / hero */
  --text-stat: clamp(2.5rem, 2rem + 2vw, 3.5rem);                /* big numbers */

  --leading-tight: 1.2;   /* headings */
  --leading-snug:  1.35;  /* card titles */
  --leading-body:  1.65;  /* paragraphs */

  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semibold: 700;
  --weight-bold:    700;

  --tracking-normal: 0;
  --tracking-eyebrow: 0.08em; /* small uppercase labels only */

  --measure: 68ch;        /* max line length for prose */

  /* ------------------------------------------------------------------
     4. SPACING — UI UX Pro Max density 3/10 "Spacious" scale (+ one 16px step)
     ------------------------------------------------------------------ */
  --space-xs:  0.25rem;  /*  4px */
  --space-sm:  0.5rem;   /*  8px */
  --space-ms:  1rem;     /* 16px — added: label↔input, list gaps */
  --space-md:  1.5rem;   /* 24px */
  --space-lg:  2rem;     /* 32px */
  --space-xl:  3rem;     /* 48px */
  --space-2xl: 4rem;     /* 64px */
  --space-3xl: 6rem;     /* 96px */

  --section-padding-y: clamp(var(--space-xl), 6vw, var(--space-3xl));

  /* ------------------------------------------------------------------
     5. LAYOUT
     Breakpoints (for reference — CSS can't use variables inside @media):
       sm 375px · md 768px · lg 1024px · xl 1440px  (mobile-first, min-width)
     ------------------------------------------------------------------ */
  --container-max:    75rem;    /* 1200px */
  --container-narrow: 45rem;    /* 720px — long text, contact form */
  --gutter:           clamp(1rem, 4vw, 2rem); /* 16–32px side padding */
  --grid-gap:         var(--space-md);
  --header-height:    5rem;     /* 80px — reserve for sticky header */

  /* ------------------------------------------------------------------
     6. BORDERS & RADII — Soft UI Evolution (8–12px)
     ------------------------------------------------------------------ */
  --border-width:       1px;
  --border-width-input: 2px;    /* thicker for visibility */
  --radius-sm:   6px;
  --radius-md:   10px;          /* buttons, inputs */
  --radius-lg:   16px;          /* cards, images */
  --radius-pill: 999px;
  --radius-arch: 999px 999px 0 0; /* echoes the arched fanlight over the front door */

  /* ------------------------------------------------------------------
     7. SHADOWS — soft, warm-tinted 
     ------------------------------------------------------------------ */
  --shadow-sm: 0 1px 2px rgba(14, 35, 64, 0.06);
  --shadow-md: 0 2px 4px rgba(14, 35, 64, 0.06), 0 6px 16px rgba(14, 35, 64, 0.08);
  --shadow-lg: 0 4px 8px rgba(14, 35, 64, 0.07), 0 14px 32px rgba(14, 35, 64, 0.10);

  /* ------------------------------------------------------------------
     8. FOCUS & INTERACTION — Accessible & Ethical style
     ------------------------------------------------------------------ */
  --focus-ring-width:  3px;
  --focus-ring-offset: 3px;
  --focus-ring-color:  var(--color-ring);
  --focus-ring: var(--focus-ring-width) solid var(--focus-ring-color);

  --touch-target-min: 48px;     /* ≥44px required; 48px chosen */
  --input-height:     3.25rem;  /* 52px */
  --button-height:    3.25rem;  /* 52px */
  --disabled-opacity: 0.5;

  /* ------------------------------------------------------------------
     9. MOTION — dial 2/10 "Subtle"
     ------------------------------------------------------------------ */
  --duration-fast: 150ms;   /* color/border changes */
  --duration-base: 220ms;   /* hover, shadow */
  --duration-slow: 350ms;   /* section fade-in */
  --ease-out:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --reveal-distance: 12px;

  /* ------------------------------------------------------------------
     10. ICONS — Phosphor "regular" outline (inline SVG)
     ------------------------------------------------------------------ */
  --icon-sm: 20px;
  --icon-md: 24px;
  --icon-lg: 32px;
  --icon-feature: 40px;     /* service card icons */

  /* ------------------------------------------------------------------
     11. Z-INDEX SCALE
     ------------------------------------------------------------------ */
  --z-base:    0;
  --z-raised:  10;
  --z-sticky:  40;   /* header */
  --z-overlay: 100;  /* mobile nav panel */
  --z-skip:    1000; /* skip link */
}

/* Reduced motion: remove non-essential movement globally. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
    --reveal-distance: 0px;
  }
}
