/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN TOKENS
   ---------------------------------------------------------------------------
   The single place the design system is defined. Every colour, shadow, radius,
   blur, duration and layout width used by theme.css and the blocks resolves to
   a custom property declared here. Change the system here, not in components.
   Source of truth: index.html. Values are copied verbatim.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --color-primary:        #FA3C05;   /* CTA orange sampled from the mocks   */
  --color-primary-dark:   #DD3203;
  --color-primary-soft:   #FEEDDD;   /* peach icon wells                    */
  --color-primary-tint:   #FFF6EF;   /* selected-card wash                  */

  --color-secondary:      #0B2357;   /* heading navy                        */
  --color-navy-deep:      #14314E;   /* dark utility header (mocks 20/21)   */
  --color-navy-footer:    #14293B;   /* footer — matches logo-light.png so
                                        the reversed logo has no visible box */
  --color-charcoal:       #30383D;   /* “Why Home Sketchery” panel          */

  /* Text */
  --color-text:           #1C3A72;
  --color-heading:        var(--color-secondary);
  --color-muted:          #5C6B8C;
  --color-on-dark:        #F3F6FA;
  --color-on-dark-muted:  #C2CEDC;

  /* Surfaces */
  --color-background:     #FFFFFF;
  --color-surface:        #FFFFFF;
  --color-surface-blue:   #F2F7FC;
  --color-surface-blue-2: #ECF2F9;
  --color-surface-cream:  #FEF8F0;
  --color-surface-warm:   #F4F2F0;
  --color-surface-sand:   #F4F3EF;

  /* Lines */
  --color-border:         #DFE6F0;
  --color-border-strong:  #B9C8DC;
  --color-border-warm:    #EFE3D6;

  /* Status */
  --color-success:        #16A34A;
  --color-success-soft:   #EAF7EF;
  --color-danger:         #D92D20;
  --color-danger-soft:    #FDF0EE;
  --color-warning:        #E8710A;
  --color-warning-soft:   #FEF4E9;

  /* Type */
  --font-heading: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-primary: "DM Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-script:  "Brittany Signature", "Sacramento", "Segoe Script", cursive;

  /* Scale calibrated against the approved mocks (1024px artboards × 1.41) */
  --fs-eyebrow:   0.8125rem;
  --fs-small:     0.775rem;
  --fs-body:      1rem;
  --fs-lead:      1.125rem;
  --fs-h4:        1.0625rem;
  --fs-h3:        clamp(1.1875rem, 1rem + 0.5vw, 1.4375rem);
  --fs-h2:        clamp(1.75rem, 1.2rem + 1.65vw, 2.625rem);
  --fs-h1:        clamp(2rem, 1.35rem + 2vw, 3rem);
  --fs-display:   clamp(2.5rem, 1.6rem + 2.9vw, 3.75rem);

  --lh-tight:     1.1;
  --lh-heading:   1.16;
  --lh-body:      1.62;
  --ls-eyebrow:   0.18em;

  /* Metrics */
  --container-width: 1200px;
  --container-narrow: 960px;
  --container-wide: 1320px;
  --gutter: 1.5rem;
  --header-height: 4.125rem;

  /* Distance from a container's content edge to the viewport edge. Used to
     let media break out of the grid and run flush to the window. */
  --bleed: calc(max(0px, (100vw - var(--container-width)) / 2) + var(--gutter));

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --spacing-xxs: 0.25rem;
  --spacing-xs:  0.5rem;
  --spacing-sm:  0.75rem;
  --spacing-md:  1.25rem;
  --spacing-lg:  1rem;
  --spacing-xl:  2.25rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 5.5rem;

  --shadow-xs: 0 1px 2px rgba(11, 35, 87, .06);
  --shadow-sm: 0 2px 8px rgba(11, 35, 87, .07);
  --shadow-md: 0 8px 24px rgba(11, 35, 87, .09);
  --shadow-lg: 0 18px 48px rgba(11, 35, 87, .14);
  --shadow-primary: 0 8px 20px rgba(250, 60, 5, .28);

  --transition: 180ms cubic-bezier(.4, 0, .2, 1);

  /* ── Colour channels + extras. Referenced by the tokenised stylesheet and
        overridden by Site Settings → Design; keep in sync with the hexes above. ── */
  --green-rgb:11,95,50; --green-lift-rgb:18,123,66; --green-deep-rgb:6,46,27;
  --green-tint-rgb:230,240,234; --tint-2-rgb:240,245,242;
  --red-rgb:178,47,29; --yellow-rgb:255,222,33; --ink-rgb:23,32,28; --shadow-rgb:20,30,25;
  --green-lift-2:#0E6E3B; --canvas-hi:#F5F7F6;
  --ph-1:#E7EBE9; --ph-2:#DBE1DE; --ph-3:#CDD5D1; --ph-rgb:214,222,218;
  --f-heading:var(--f-sans);
  --logo-h:34px; --foot-logo-h:40px;
  /* Signature gradients: buttons, dark panels (CTA shell, dark footer, dark mega
     menus), the hero visual and the tonal section wash. */
  --grad-btn:linear-gradient(180deg,var(--green-lift),var(--green));
  --grad-btn-hover:linear-gradient(180deg,var(--green),var(--green-2));
  --grad-panel:linear-gradient(155deg,var(--green-lift-2) 0%, var(--green) 45%, var(--green-deep) 100%);
  --grad-shell:linear-gradient(155deg,var(--green-lift-2) 0%, var(--green) 40%, var(--green-deep) 100%);
  --grad-visual:linear-gradient(160deg,var(--green-lift),var(--green) 55%,var(--green-2));
  --grad-visual-2:linear-gradient(160deg,var(--green-lift),var(--green) 60%,var(--green-2));
  --grad-tonal:linear-gradient(180deg, rgba(var(--green-rgb),.045), rgba(var(--green-rgb),0) 78%);
}
