/* Summit Calm design tokens (palette 2: slate and sunrise).
   Use in a website: <link rel="stylesheet" href="tokens.css"> then var(--sc-...).
   Fonts: add this line to your <head> before this file:
   <link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
   Guide: brand/DESIGN-SYSTEM.md */

:root {
  /* ---- Core brand colours ---- */
  --sc-slate:        #24364B; /* primary: logo, headings, dark sections */
  --sc-sky:          #4A8DB7; /* second peak, icons, illustrations (not for small text) */
  --sc-sky-deep:     #2F6E96; /* links and buttons (passes WCAG AA on white) */
  --sc-sunrise:      #F2A15A; /* the sun: highlights, numbers, shapes (never text on light) */

  /* ---- Ramps ---- */
  --sc-slate-900: #18232F;
  --sc-slate-800: #24364B;
  --sc-slate-700: #31475F;
  --sc-slate-600: #3D5470;
  --sc-slate-500: #55636F;
  --sc-slate-400: #7A8EA3;
  --sc-slate-200: #C9D4DF;
  --sc-slate-100: #D6E0E7;

  --sc-sky-700: #245A7C;
  --sc-sky-600: #2F6E96;
  --sc-sky-500: #4A8DB7;
  --sc-sky-300: #9CC3DD;
  --sc-sky-100: #E4EEF5;
  --sc-sky-50:  #F1F6FA;

  --sc-sunrise-700: #9A5520; /* sunrise as text on light backgrounds (passes AA) */
  --sc-sunrise-500: #F2A15A;
  --sc-sunrise-300: #F8C796;
  --sc-sunrise-100: #FDEEDF;

  /* ---- Neutrals ---- */
  --sc-paper: #F8FAFB;
  --sc-white: #FFFFFF;

  /* ---- Feedback (forms, alerts) ---- */
  --sc-success: #2E7D5B;
  --sc-success-bg: #E3F2EA;
  --sc-error: #B3412E;
  --sc-error-bg: #FBE9E5;

  /* ---- Semantic roles (use these in components) ---- */
  --sc-bg:            var(--sc-paper);
  --sc-surface:       var(--sc-white);
  --sc-surface-tint:  var(--sc-sky-100);
  --sc-text:          var(--sc-slate-900);
  --sc-text-muted:    var(--sc-slate-500);
  --sc-heading:       var(--sc-slate-800);
  --sc-link:          var(--sc-sky-600);
  --sc-link-hover:    var(--sc-sky-700);
  --sc-line:          var(--sc-slate-100);
  --sc-highlight:     var(--sc-sunrise-500);
  --sc-focus:         var(--sc-sky-500);

  --sc-btn-bg:        var(--sc-sky-600);
  --sc-btn-bg-hover:  var(--sc-sky-700);
  --sc-btn-text:      var(--sc-white);
  --sc-btn2-border:   var(--sc-slate-800);
  --sc-btn2-text:     var(--sc-slate-800);

  /* ---- Typography ---- */
  --sc-font-heading: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --sc-font-body:    "Inter", "Segoe UI", system-ui, sans-serif;

  --sc-text-xs:   0.8125rem;  /* 13px captions */
  --sc-text-sm:   0.9375rem;  /* 15px small */
  --sc-text-base: 1.0625rem;  /* 17px body */
  --sc-text-lg:   1.25rem;    /* 20px lead */
  --sc-h4:        1.25rem;    /* 20px */
  --sc-h3:        1.5rem;     /* 24px */
  --sc-h2:        2rem;       /* 32px */
  --sc-h1:        clamp(2.25rem, 5vw, 3.25rem); /* 36-52px */

  --sc-weight-body: 400;
  --sc-weight-medium: 500;
  --sc-weight-heading: 800;
  --sc-leading-body: 1.65;
  --sc-leading-heading: 1.15;
  --sc-tracking-heading: -0.01em;

  /* ---- Space, shape, depth ---- */
  --sc-space-1: 4px;
  --sc-space-2: 8px;
  --sc-space-3: 12px;
  --sc-space-4: 16px;
  --sc-space-5: 24px;
  --sc-space-6: 32px;
  --sc-space-7: 48px;
  --sc-space-8: 64px;
  --sc-space-9: 96px;

  --sc-radius-sm: 6px;   /* buttons, inputs */
  --sc-radius-md: 12px;  /* cards */
  --sc-radius-lg: 20px;  /* image frames, big panels */
  --sc-radius-pill: 999px;

  --sc-shadow-sm: 0 1px 2px rgba(24, 35, 47, 0.06), 0 1px 3px rgba(24, 35, 47, 0.08);
  --sc-shadow-md: 0 4px 12px rgba(24, 35, 47, 0.08), 0 2px 4px rgba(24, 35, 47, 0.05);

  --sc-content-width: 1120px;
  --sc-text-width: 68ch;
}

/* Dark sections (hero bands, footers): add class="sc-on-dark" */
.sc-on-dark {
  --sc-bg:          var(--sc-slate-800);
  --sc-surface:     var(--sc-slate-700);
  --sc-surface-tint: var(--sc-slate-700);
  --sc-text:        var(--sc-white);
  --sc-text-muted:  var(--sc-slate-200);
  --sc-heading:     var(--sc-white);
  --sc-link:        var(--sc-sunrise-300);
  --sc-link-hover:  var(--sc-sunrise-100);
  --sc-line:        var(--sc-slate-600);
  --sc-btn-bg:      var(--sc-sunrise-500);
  --sc-btn-bg-hover: var(--sc-sunrise-300);
  --sc-btn-text:    var(--sc-slate-900);
  --sc-btn2-border: var(--sc-white);
  --sc-btn2-text:   var(--sc-white);
  background: var(--sc-bg);
  color: var(--sc-text);
}

/* ---- Optional base styles: delete if your website builder has its own ---- */
body {
  margin: 0;
  background: var(--sc-bg);
  color: var(--sc-text);
  font-family: var(--sc-font-body);
  font-size: var(--sc-text-base);
  line-height: var(--sc-leading-body);
}
h1, h2, h3, h4 {
  font-family: var(--sc-font-heading);
  font-weight: var(--sc-weight-heading);
  line-height: var(--sc-leading-heading);
  letter-spacing: var(--sc-tracking-heading);
  color: var(--sc-heading);
  margin: 0 0 var(--sc-space-3);
}
h1 { font-size: var(--sc-h1); }
h2 { font-size: var(--sc-h2); }
h3 { font-size: var(--sc-h3); font-weight: 700; }
h4 { font-size: var(--sc-h4); font-weight: 700; }
a { color: var(--sc-link); text-underline-offset: 3px; }
a:hover { color: var(--sc-link-hover); }
:focus-visible { outline: 3px solid var(--sc-focus); outline-offset: 2px; }

.sc-btn {
  display: inline-block;
  font: 600 var(--sc-text-sm)/1 var(--sc-font-body);
  padding: 14px 22px;
  border-radius: var(--sc-radius-sm);
  background: var(--sc-btn-bg);
  color: var(--sc-btn-text);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
}
.sc-btn:hover { background: var(--sc-btn-bg-hover); color: var(--sc-btn-text); }
.sc-btn--secondary { background: transparent; border-color: var(--sc-btn2-border); color: var(--sc-btn2-text); }
.sc-btn--secondary:hover { background: var(--sc-surface-tint); color: var(--sc-btn2-text); }

.sc-card {
  background: var(--sc-surface);
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius-md);
  padding: var(--sc-space-5);
}
.sc-eyebrow { font: 600 var(--sc-text-xs)/1.3 var(--sc-font-body); color: var(--sc-link); letter-spacing: 0.02em; }
.sc-sun-bar { width: 40px; height: 4px; border-radius: 2px; background: var(--sc-highlight); }
.sc-tag {
  display: inline-block; font: 500 var(--sc-text-xs)/1 var(--sc-font-body);
  padding: 6px 10px; border-radius: var(--sc-radius-pill);
  background: var(--sc-sky-100); color: var(--sc-sky-700);
}
