/* ============================================================
   STEPHEN SUMNER — DESIGN SYSTEM
   colors_and_type.css — foundational + semantic tokens
   Brand: International SEO & Search Marketing Consultant
   Aesthetic: "Quiet authority" — editorial, premium, human, data-literate
   ============================================================ */

/* ---- Self-hosted variable fonts (woff2, latin + latin-ext subsets). ---- */
@font-face {
  font-family: 'Newsreader'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('fonts/newsreader.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader'; font-style: italic; font-weight: 300 600; font-display: swap;
  src: url('fonts/newsreader-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('fonts/newsreader-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader'; font-style: italic; font-weight: 300 600; font-display: swap;
  src: url('fonts/newsreader-italic-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/hanken.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/hanken-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('fonts/jetbrains.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('fonts/jetbrains-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ============== TYPE FAMILIES ============== */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;   /* editorial headlines, big statements */
  --font-sans:    'Hanken Grotesk', system-ui, -apple-system, sans-serif; /* UI + body */
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;    /* metrics, data, code */

  /* ============== BRAND PALETTE ==============
     Slate — pulled directly from the SS shield mark (#617480) */
  --slate-50:  #F1F4F5;
  --slate-100: #E1E7EA;
  --slate-200: #C5CED3;
  --slate-300: #A2AEB6;
  --slate-400: #7E8E98;
  --slate-500: #617480;  /* ◀ BRAND PRIMARY — the logo slate */
  --slate-600: #4F606B;
  --slate-700: #3D4A54;
  --slate-800: #2C363D;
  --slate-900: #1B232B;  /* ink — near-black slate */

  /* Amber — the single accent: growth, warmth, value. Used sparingly. */
  --amber-50:  #FBF4E5;
  --amber-100: #F4E2BF;
  --amber-200: #E8C988;
  --amber-300: #DBAF54;
  --amber-400: #CE9A39;
  --amber-500: #C68A2E;  /* ◀ ACCENT */
  --amber-600: #A6711F;
  --amber-700: #835815;

  /* Warm paper neutrals — backgrounds */
  --paper-0:  #FFFFFF;
  --paper-1:  #FAF8F3;  /* default page background */
  --paper-2:  #F4F0E9;  /* raised / alt sections */
  --paper-3:  #ECE6DB;  /* sunken / hairline fills */

  /* ============== SEMANTIC STATUS ============== */
  --success: #3F7A52;  --success-bg: #E7F0E8;
  --warning: #B5821C;  --warning-bg: #F8EFD7;
  --danger:  #B24A3C;  --danger-bg:  #F6E3DF;
  --info:    var(--slate-500); /* @kind color */

  /* ============== SEMANTIC ROLES ============== */
  --bg:          var(--paper-1);
  --bg-raised:   var(--paper-0);
  --bg-alt:      var(--paper-2);
  --bg-sunken:   var(--paper-3);
  --bg-inverse:  var(--slate-900);

  --fg:          var(--slate-900);   /* primary text */
  --fg-muted:    var(--slate-600);   /* secondary text */
  --fg-subtle:   #586A75;   /* tertiary / captions — darkened from slate-400 for WCAG AA (4.5:1 on paper) */
  --fg-on-dark:  var(--paper-1);
  --fg-on-accent:#2A1C05;

  --primary:        var(--slate-500);
  --primary-hover:  var(--slate-600);
  --primary-press:  var(--slate-700);
  --accent:         var(--amber-500);
  --accent-hover:   var(--amber-600);

  --border:        #DED7CB;          /* hairline on paper */
  --border-strong: #C9C0B1;
  --border-ondark: rgba(255,255,255,.14);
  --ring:          rgba(97,116,128,.38); /* focus ring (slate) */

  /* ============== RADII ============== */
  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* ============== SPACING (4pt base) ============== */
  --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;

  /* ============== ELEVATION ============== */
  --shadow-xs: 0 1px 2px rgba(27,35,43,.06);
  --shadow-sm: 0 1px 3px rgba(27,35,43,.08), 0 1px 2px rgba(27,35,43,.05);
  --shadow-md: 0 4px 14px rgba(27,35,43,.08), 0 2px 5px rgba(27,35,43,.05);
  --shadow-lg: 0 14px 40px rgba(27,35,43,.12), 0 4px 12px rgba(27,35,43,.06);
  --shadow-ring: inset 0 0 0 1px var(--border);

  /* ============== MOTION ============== */
  --ease: cubic-bezier(.22,.61,.36,1); /* @kind other */
  --ease-out: cubic-bezier(.16,1,.3,1); /* @kind other */
  --dur-1: .12s;  /* @kind other */
  --dur-2: .2s;  /* @kind other */
  --dur-3: .34s; /* @kind other */
}

/* ============================================================
   TYPE SCALE  —  semantic element styling
   Display = Newsreader (editorial serif). UI/body = Hanken Grotesk.
   ============================================================ */

.ss-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 5.25rem);
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--fg);
  text-wrap: balance;
}
.ss-display em { font-style: italic; font-weight: 400; }

h1, .ss-h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -.018em;
  color: var(--fg);
  text-wrap: balance;
}
h2, .ss-h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -.012em;
  color: var(--fg);
  text-wrap: balance;
}
h3, .ss-h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--fg);
}
h4, .ss-h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--fg);
}

/* Eyebrow / kicker — the brand's signature label */
.ss-eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber-700);
}

p, .ss-body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--fg-muted);
  text-wrap: pretty;
}
.ss-lead {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--fg-muted);
  text-wrap: pretty;
}
.ss-small {
  font-family: var(--font-sans);
  font-size: .875rem;
  line-height: 1.5;
  color: var(--fg-subtle);
}

/* Metric / data — mono, tabular. SEO work is numbers. */
.ss-metric {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  color: var(--fg);
}
.ss-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

a { color: var(--slate-700); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
