/* ============================================================
   MIRIAM SIMON — Growth Strategy
   colors_and_type.css  ·  Design tokens (colour + type)
   ------------------------------------------------------------
   Fonts: Montserrat (headings) + Lato (body) — SELF-HOSTED below from
   the project /fonts folder. No Google Fonts link required; just link
   this file. The @font-face block follows immediately.

   The script in the logo ("growth strategy") is part of the LOGO ARTWORK ONLY.
   Never set headings or body copy in a script face.
   ============================================================ */

/* ============================================================
   SELF-HOSTED BRAND FONTS
   All families below are served from the project's /fonts folder,
   so no Google Fonts (or other CDN) link is required any more.
   Primary system per brand direction: Montserrat (headings) + Lato (body).
   ============================================================ */

/* ---- Montserrat — headings (variable, full weight axis) ---- */
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900; font-style: italic; font-display: swap;
}

/* ---- Lato — body (static weights used by the system) ------- */
@font-face { font-family:"Lato"; src:url("fonts/Lato-Thin.ttf") format("truetype"); font-weight:100; font-style:normal; font-display:swap; }
@font-face { font-family:"Lato"; src:url("fonts/Lato-Light.ttf") format("truetype"); font-weight:300; font-style:normal; font-display:swap; }
@font-face { font-family:"Lato"; src:url("fonts/Lato-LightItalic.ttf") format("truetype"); font-weight:300; font-style:italic; font-display:swap; }
@font-face { font-family:"Lato"; src:url("fonts/Lato-Regular.ttf") format("truetype"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Lato"; src:url("fonts/Lato-Italic.ttf") format("truetype"); font-weight:400; font-style:italic; font-display:swap; }
@font-face { font-family:"Lato"; src:url("fonts/Lato-Bold.ttf") format("truetype"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Lato"; src:url("fonts/Lato-BoldItalic.ttf") format("truetype"); font-weight:700; font-style:italic; font-display:swap; }
@font-face { font-family:"Lato"; src:url("fonts/Lato-Black.ttf") format("truetype"); font-weight:900; font-style:normal; font-display:swap; }

/* ---- Charlotte Southern — LOGO / tagline script ONLY -------
   The "growth strategy" script. Never for headings or body. */
@font-face { font-family:"Charlotte Southern"; src:url("fonts/Charlotte_Southern.otf") format("opentype"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Charlotte Southern Swash"; src:url("fonts/Charlotte_Southern_Swash.otf") format("opentype"); font-weight:400; font-style:normal; font-display:swap; }

/* ---- Optional / legacy faces from the 2021 brand book ------
   Wired so they are reachable, but NOT part of the live system.
   Lintel was a co-"main" font; Roboto a social suggestion; the
   Arial faces were "header suggestion" fallbacks. Prefer the
   tokens above. */
@font-face { font-family:"Lintel"; src:url("fonts/Lintel-Regular.otf") format("opentype"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Lintel"; src:url("fonts/Lintel-Italic.otf") format("opentype"); font-weight:400; font-style:italic; font-display:swap; }
@font-face { font-family:"Roboto"; src:url("fonts/Roboto-Regular.ttf") format("truetype"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Roboto"; src:url("fonts/Roboto-Medium.ttf") format("truetype"); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:"Roboto"; src:url("fonts/Roboto-Bold.ttf") format("truetype"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Arial MT Black"; src:url("fonts/ARIBL0.ttf") format("truetype"); font-weight:900; font-style:normal; font-display:swap; }
@font-face { font-family:"Arial GEO"; src:url("fonts/G_ari_bd.TTF") format("truetype"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Arial GEO"; src:url("fonts/G_ari_i.TTF") format("truetype"); font-weight:400; font-style:italic; font-display:swap; }

:root {
  /* Declare the page as dark so mobile browsers (Android Chrome "Auto dark
     theme" / Force Dark, iOS auto-darkening) do NOT algorithmically invert an
     already-dark design — which was lightening section backgrounds and
     desaturating the coral accent on small screens. */
  color-scheme: dark;

  /* ---- Brand core palette --------------------------------- */
  --coral:        #e8546d;   /* primary accent — the one brand colour */
  --black:        #000000;   /* core neutral */
  --grey-light:   #ebeaea;   /* core neutral — light grey */

  /* ---- Coral tints / shades (derived, harmonious) --------- */
  --coral-700:    #c23a52;   /* pressed / deep */
  --coral-600:    #d6455f;   /* hover on light */
  --coral-500:    #e8546d;   /* = --coral, base */
  --coral-400:    #ef7589;   /* hover on dark */
  --coral-300:    #f59caa;   /* soft */
  --coral-100:    #fbe0e5;   /* wash / tint background */
  --coral-tint:   rgba(232, 84, 109, 0.12); /* translucent fill */

  /* ---- Neutral ramp (warm-cool neutral, calm & premium) --- */
  --ink-900:      #0a0a0b;   /* near-black surface */
  --ink-850:      #121214;   /* raised dark surface */
  --ink-800:      #1c1c1f;   /* card on dark */
  --ink-700:      #2a2a2e;   /* hairline on dark / borders */
  --ink-500:      #6f6f76;   /* muted text on dark */
  --ink-400:      #9a9aa1;   /* secondary text on dark */
  --grey-300:     #d8d7d7;   /* hairline on light */
  --grey-200:     #ebeaea;   /* = --grey-light, panels on light */
  --grey-100:     #f5f4f4;   /* subtle fill on light */
  --white:        #ffffff;

  /* ---- Suggestion palette (secondary, OPTIONAL) -----------
     From the 2021 brand book. Use sparingly, never instead of
     coral, and never the magenta/purple drift the live site fell
     into. These are for occasional data / illustration accents. */
  --sug-peach:    #f8b195;
  --sug-rose:     #f67280;
  --sug-sage:     #8fbbaf;
  --sug-slate:    #6b7b8e;

  /* ============================================================
     SEMANTIC TOKENS — DARK THEME (primary, on-brand)
     Apply on <body> or a wrapper. This is the default.
     ============================================================ */
  --bg:           var(--black);     /* page background */
  --bg-raised:    var(--ink-850);   /* raised section */
  --surface:      var(--ink-800);   /* card surface */
  --surface-2:    var(--ink-700);   /* nested / input surface */
  --border:       var(--ink-700);   /* hairline borders */
  --border-soft:  rgba(255,255,255,0.08);

  --fg:           #f7f6f6;          /* primary text */
  --fg-2:         #dcdbdb;          /* secondary / body text — lifted to high-contrast off-white */
  --fg-muted:     var(--ink-500);   /* muted / captions — reserved for genuinely secondary lines */
  --accent:       var(--coral);     /* links, accents, CTAs */
  --accent-hover: var(--coral-400);
  --accent-press: var(--coral-700);
  --on-accent:    #ffffff;          /* text on coral */
  --focus-ring:   rgba(232, 84, 109, 0.55);

  /* ---- Type families -------------------------------------- */
  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;     /* headings */
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;           /* body */
  --font-script: "Charlotte Southern", cursive;                       /* LOGO / tagline ONLY */
  --font-display-alt: "Arial MT Black", "Montserrat", Arial, sans-serif; /* optional heavy display */

  /* ---- Type scale (rem, 1rem = 16px) ---------------------- */
  --text-xs:    0.75rem;   /* 12px — micro labels (avoid for body) */
  --text-sm:    0.875rem;  /* 14px */
  --text-base:  1rem;      /* 16px — base body */
  --text-md:    1.125rem;  /* 18px — lead body */
  --text-lg:    1.375rem;  /* 22px */
  --text-xl:    1.75rem;   /* 28px */
  --text-2xl:   2.25rem;   /* 36px */
  --text-3xl:   3rem;      /* 48px */
  --text-4xl:   3.75rem;   /* 60px */
  --text-5xl:   4.75rem;   /* 76px — hero display */

  /* ---- Weights -------------------------------------------- */
  --w-light: 300;
  --w-regular: 400;
  --w-medium: 500;
  --w-semibold: 600;
  --w-bold: 700;
  --w-extrabold: 800;

  /* ---- Line heights & tracking ---------------------------- */
  --lh-tight: 1.05;
  --lh-snug:  1.2;
  --lh-base:  1.6;
  --lh-relaxed: 1.75;
  --track-tight: -0.02em;
  --track-normal: 0;
  --track-wide: 0.04em;
  --track-caps: 0.16em;   /* eyebrows / overlines */

  /* ---- Radii ---------------------------------------------- */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

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

  /* ---- Shadows (restrained — premium, not flashy) --------- */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.28);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.32);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.45);
  --shadow-coral: 0 12px 30px rgba(232,84,109,0.28);

  /* ---- Motion --------------------------------------------- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1); /* calm ease-out */
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 420ms;

  /* ---- Layout --------------------------------------------- */
  --maxw: 1200px;     /* content max width */
  --maxw-prose: 68ch; /* readable measure */
  --logo-min: 300px;  /* min logo width on web (brand rule) */
}

/* ============================================================
   LIGHT THEME — opt-in by adding class="theme-light"
   ============================================================ */
.theme-light {
  color-scheme: light;
  --bg:          var(--white);
  --bg-raised:   var(--grey-100);
  --surface:     var(--white);
  --surface-2:   var(--grey-100);
  --border:      var(--grey-300);
  --border-soft: rgba(0,0,0,0.08);

  --fg:          #16161a;
  --fg-2:        #4a4a52;
  --fg-muted:    #7d7d85;
  --accent:      var(--coral);
  --accent-hover: var(--coral-600);
  --accent-press: var(--coral-700);
  --on-accent:   #ffffff;

  --shadow-sm: 0 1px 2px rgba(16,16,20,0.06);
  --shadow-md: 0 10px 28px rgba(16,16,20,0.10);
  --shadow-lg: 0 28px 64px rgba(16,16,20,0.16);
}

/* ============================================================
   ELEMENT DEFAULTS  (semantic, ready to use)
   ============================================================ */
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--w-regular);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--fg);
  line-height: var(--lh-snug);
  letter-spacing: var(--track-tight);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--text-4xl); font-weight: var(--w-bold); line-height: var(--lh-tight); }
h2 { font-size: var(--text-3xl); font-weight: var(--w-bold); }
h3 { font-size: var(--text-2xl); font-weight: var(--w-semibold); }
h4 { font-size: var(--text-xl); font-weight: var(--w-semibold); letter-spacing: var(--track-normal); }
h5 { font-size: var(--text-lg); font-weight: var(--w-semibold); letter-spacing: var(--track-normal); }
h6 { font-size: var(--text-base); font-weight: var(--w-semibold); letter-spacing: var(--track-normal); }

p { margin: 0 0 1em; max-width: var(--maxw-prose); text-wrap: pretty; }
.lead { font-size: var(--text-md); color: var(--fg-2); line-height: var(--lh-relaxed); }
small, .caption { font-size: var(--text-sm); color: var(--fg-muted); }

/* Eyebrow / overline — Montserrat, all caps, wide tracking, coral */
.eyebrow {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: var(--w-semibold);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--accent);
}

a { color: var(--accent); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--accent-hover); }

::selection { background: var(--coral); color: #fff; }

*:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--r-xs); }
