/* =====================================================================
   NWBC Design Tokens
   =====================================================================
   This file defines every variable used by the rest of the stylesheet.
   Change a value here and it propagates everywhere.

   When this file is copied into FaithConnector's site-wide CSS Override,
   it becomes the foundation for all custom styling on the live site.
   ===================================================================== */

:root {
  /* -------------------------------------------------------------------
     Color — Primary palette
     ------------------------------------------------------------------- */
  --color-navy:           #1B2D4A;
  --color-navy-dark:      #131E33;
  --color-navy-light:     #294163;

  --color-cream:          #F5EFE3;
  --color-cream-dark:     #EAE0C8;

  --color-gold:           #B89544;
  --color-gold-dark:      #7A5E1D;  /* WCAG AA: 5.32:1 against cream; was #8E6F2A (4.11:1, failed) */
  --color-gold-light:     #D4B568;

  /* -------------------------------------------------------------------
     Color — Neutrals
     ------------------------------------------------------------------- */
  --color-charcoal:       #2A2A2A;
  --color-warm-gray:      #6B6259;
  --color-warm-gray-light:#A39A91;
  --color-soft-white:     #FAFAF7;
  --color-divider:        #E5DFD3;

  /* -------------------------------------------------------------------
     Color — Semantic (form validation, alerts, status)
     ------------------------------------------------------------------- */
  --color-success:        #3F7D5C;
  --color-success-bg:     #E8F1EC;
  --color-warning:        #B8842B;
  --color-warning-bg:     #FBEFD8;
  --color-danger:         #A94442;
  --color-danger-bg:      #F5E2E1;
  --color-info:           #3A6E91;
  --color-info-bg:        #E2EBF2;

  /* -------------------------------------------------------------------
     Typography — Families
     ------------------------------------------------------------------- */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* -------------------------------------------------------------------
     Typography — Scale (desktop)
     Mobile sizes auto-scale via @media query in base.css
     ------------------------------------------------------------------- */
  --fs-display:   56px;
  --fs-h1:        44px;
  --fs-h2:        32px;
  --fs-h3:        24px;
  --fs-h4:        20px;
  --fs-body-lg:   19px;
  --fs-body:      17px;
  --fs-body-sm:   15px;
  --fs-caption:   13px;
  --fs-micro:     11px;

  /* -------------------------------------------------------------------
     Typography — Line heights
     ------------------------------------------------------------------- */
  --lh-tight:     1.15;
  --lh-snug:      1.3;
  --lh-normal:    1.5;
  --lh-relaxed:   1.65;
  --lh-loose:     1.75;

  /* -------------------------------------------------------------------
     Spacing scale (4px base, doubling-then-half)
     ------------------------------------------------------------------- */
  --space-1:      4px;
  --space-2:      8px;
  --space-3:      12px;
  --space-4:      16px;
  --space-5:      24px;
  --space-6:      32px;
  --space-7:      48px;
  --space-8:      64px;
  --space-9:      96px;
  --space-10:     128px;

  /* -------------------------------------------------------------------
     Borders & radius
     ------------------------------------------------------------------- */
  --radius-sm:    2px;
  --radius-md:    4px;
  --radius-lg:    8px;
  --radius-pill:  999px;

  --border-thin:   1px solid var(--color-divider);
  --border-medium: 2px solid var(--color-divider);

  /* -------------------------------------------------------------------
     Shadows (used sparingly)
     ------------------------------------------------------------------- */
  --shadow-sm:    0 1px 2px rgba(27, 45, 74, 0.06);
  --shadow-md:    0 4px 12px rgba(27, 45, 74, 0.08);
  --shadow-lg:    0 12px 32px rgba(27, 45, 74, 0.12);

  /* -------------------------------------------------------------------
     Motion
     ------------------------------------------------------------------- */
  --ease-standard:   220ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-emphasized: 320ms cubic-bezier(0.2, 0, 0, 1);

  /* -------------------------------------------------------------------
     Layout
     ------------------------------------------------------------------- */
  --content-max:   920px;     /* default content max-width */
  --reading-max:   720px;     /* long-form reading max-width */
  --nav-height:    72px;      /* sticky nav height (desktop) */
  --nav-height-mobile: 56px;
}


/* Honor the user's reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  :root {
    --ease-standard:   1ms linear;
    --ease-emphasized: 1ms linear;
  }
}
