/* ==========================================================================
   RIEL — Design tokens
   Palette & type per client brief §2/§3. Layout scale modelled on us.sunpower.com.
   ========================================================================== */

@import url("../fonts/fonts.css");

:root {
  /* ---- Brand palette (brief §2) ---- */
  --c-dark:          #2E2E2E;
  --c-white:         #FFFFFF;
  --c-orange:        #F47C20;
  --c-orange-hover:  #D96A14;
  --c-orange-soft:   #FEF3EA;
  --c-grey-100:      #F5F5F5;
  --c-grey-200:      #ECECEC;
  --c-grey-300:      #DADADA;
  --c-grey-500:      #777777;
  --c-grey-700:      #4A4A4A;
  --c-grey-900:      #1F1F1F;

  /* Division accents (brief v2 §2.2: Solar warm yellow/gold, Steel cool
     industrial greys). Gold is an accent only: it fails contrast as text on
     white, so text in the solar accent uses --c-solar-ink. */
  --c-solar:         #E9A21B;
  --c-solar-ink:     #A86E00;
  --c-solar-soft:    #FDF5E3;
  --c-steel:         #4A5568;
  --c-steel-soft:    #EEF1F5;

  /* ---- Semantic ---- */
  --bg:              var(--c-white);
  --bg-alt:          var(--c-grey-100);
  --bg-dark:         var(--c-dark);
  --text:            var(--c-grey-700);
  --text-strong:     var(--c-dark);
  --text-muted:      var(--c-grey-500);
  --text-on-dark:    rgba(255, 255, 255, .78);
  --border:          var(--c-grey-200);
  --border-dark:     rgba(255, 255, 255, .14);

  /* ---- Type ---- */
  /* Brief v2 §2.3: headings Merriweather 700, body and UI Lato. */
  --font-head: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-ui:   var(--font-body);

  /* Display sizes and weights measured from us.sunpower.com: h1 72px/300,
     h2 44px/400, both tracked -0.02em. Light weight at large size is what
     gives that page its calm — see --fw-display below. */
  /* Merriweather is wide with a tall x-height, so the display sizes sit a
     step below the SunPower measurements to keep the same visual weight. */
  --fs-h1:    clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);  /* 36 → 60 */
  --fs-h2:    clamp(1.75rem, 1.45rem + 1.2vw, 2.5rem);  /* 28 → 40 */
  --fs-h3:    clamp(1.375rem, 1.2rem + .8vw, 1.75rem);  /* 22 → 28 */
  --fs-h4:    clamp(1.125rem, 1.05rem + .4vw, 1.3125rem); /* 18 → 21 */
  --fs-lead:  clamp(1.0625rem, 1rem + .4vw, 1.25rem);   /* 17 → 20 */
  --fs-body:  clamp(1rem, .96rem + .18vw, 1.125rem);    /* 16 → 18 */
  --fs-sm:    .875rem;
  --fs-xs:    .75rem;

  --lh-tight: 1.05;
  --lh-head:  1.2;
  --lh-body:  1.65;

  /* Heading weights */
  --fw-display: 700;   /* h1 — brief v2: Merriweather 700 for H1-H4 */
  --fw-head:    700;   /* h2 */
  --fw-sub:     700;   /* h3/h4 */

  --ls-eyebrow: .14em;

  /* ---- Space ---- */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 96px;  --s-10: 128px;

  --section-y: clamp(64px, 8vw, 128px);
  --container: 1240px;
  --container-wide: 1440px;
  --gutter: clamp(20px, 4vw, 48px);

  /* ---- Shape ---- */
  --r-pill: 999px;
  --r-btn:  8px;     /* buttons are rounded rectangles, not pills */
  --r-card: 20px;
  --r-lg:   24px;
  --r-md:   16px;
  --r-sm:   12px;

  --shadow-sm:  0 2px 8px rgba(0, 0, 0, .05);
  --shadow-md:  0 10px 30px rgba(0, 0, 0, .08);
  --shadow-lg:  0 24px 60px rgba(0, 0, 0, .12);
  --shadow-head: 0 1px 0 rgba(0, 0, 0, .06), 0 6px 24px rgba(0, 0, 0, .06);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .2s;
  --t-base: .32s;
  --t-slow: .6s;

  /* ---- Chrome ---- */
  --header-h: 92px;
  --header-h-scrolled: 68px;
  --z-header: 500;
  --z-drawer: 600;
  --z-float: 700;
  --z-modal: 800;
}

@media (max-width: 1199px) {
  :root { --header-h: 72px; --header-h-scrolled: 64px; }
}
