/* ============================================================
   UCHE MADUMERE — DESIGN SYSTEM
   colors_and_type.css
   Dark-mode-only. Single accent. Cinematic, motion-first.
   ============================================================ */

/* --- WEBFONTS ---------------------------------------------- */
/* Primary UI / brand body type */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700;800;900&display=swap');

/* Display/condensed substitute. The brand's logo type is
   "NotoSans Display ExtraCondensed Black" which is not on
   Google Fonts. Oswald (heavy weight) is the closest free
   equivalent: tall, condensed, geometric, architectural.
   SUBSTITUTION FLAG: see README.md "Typography fallbacks". */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Anton&display=swap');

/* ============================================================
   1. COLOR TOKENS
   ============================================================ */
:root {
  /* PRIMARY PALETTE ----------------------------------------- */
  --brand-blue:   #00A3FF;   /* signal accent — logo, CTAs, last keyword */
  --site-black:   #141414;   /* primary background — every composition */
  --pure-white:   #FFFFFF;   /* primary text + logo on dark */
  --card-dark:    #1E1E1E;   /* card / panel background */

  /* SECONDARY / UTILITY ------------------------------------- */
  --surface:      #2C2C2C;   /* tertiary layer, chips, inner panels */
  --border-grey:  #3A3A3A;   /* THE card border. 2px on all cards. */
  --muted-grey:   #AAAAAA;   /* body copy, captions */
  --dim-grey:     #666666;   /* metadata, page numbers, micro copy */
  --signal-green: #39FF14;   /* RARE — one featured skill-ring border. Never type. */

  /* SEMANTIC ALIASES ---------------------------------------- */
  --bg:           var(--site-black);
  --bg-card:      transparent;          /* cards have NO FILL — bg shows through */
  --bg-elevated:  var(--card-dark);     /* use only when fill is genuinely needed */
  --fg:           var(--pure-white);
  --fg-secondary: var(--muted-grey);
  --fg-tertiary:  var(--dim-grey);
  --accent:       var(--brand-blue);
  --border:       var(--border-grey);
  --border-strong: #5A5A5A;

  /* SHADOWS — used sparingly; brand is flat ----------------- */
  --shadow-glow:  0 0 80px rgba(0, 163, 255, 0.35);  /* blue light bloom only */
  --shadow-card:  none;                              /* cards do not use shadow */

  /* RADII --------------------------------------------------- */
  --radius-pill:   999px;
  --radius-card:   18px;     /* 16–20 acceptable; 18 is canonical */
  --radius-button: 999px;    /* primary CTAs are full pill */
  --radius-chip:   24px;
  --radius-small:  8px;

  /* BORDERS ------------------------------------------------- */
  --border-card-width: 2px;  /* non-negotiable: 2px solid border-grey */

  /* MOTION TIMING ------------------------------------------- */
  --t-micro:    140ms;       /* 100–200ms */
  --t-short:    320ms;       /* 250–400ms */
  --t-medium:   500ms;       /* 400–600ms */
  --t-standard: 760ms;       /* 600–900ms */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-snap:  cubic-bezier(0.4, 0, 0, 1);

  /* SPACING — 4px base ------------------------------------- */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-8:  32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;

  /* TYPE FAMILIES ------------------------------------------ */
  --font-display: 'Oswald', 'Anton', 'NotoSans Display ExtraCondensed', 'Arial Narrow', sans-serif;
  --font-body:    'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  /* TYPE SCALE — px ---------------------------------------- */
  --fs-display:   96px;   /* 64–120: cover heroes, motion title cards */
  --fs-h1:        56px;   /* 48–72 */
  --fs-h2:        40px;   /* 32–48 — section headings */
  --fs-h3:        28px;
  --fs-card-title: 20px;  /* 18–22 */
  --fs-body:      16px;   /* 14–16 */
  --fs-body-sm:   14px;
  --fs-meta:      12px;   /* 11–13 */
  --fs-label:     13px;   /* pill labels — all caps, +0.15em tracking */
  --fs-price:     56px;   /* 48–60 */
}

/* ============================================================
   2. RESET BASELINES
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

/* ============================================================
   3. TYPOGRAPHY — SEMANTIC CLASSES
   ============================================================ */

/* DISPLAY / HERO ------------------------------------------- */
.um-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--fg);
  font-stretch: 75%; /* Oswald is condensed; nudges metric closer to ExtraCondensed */
}

/* H1 / HEADLINE — mixed color: white base + blue last phrase */
.um-h1 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0;
}
.um-h1 .accent,
.um-h2 .accent,
.um-h3 .accent { color: var(--accent); }

/* H2 / SECTION HEADING ------------------------------------- */
.um-h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 0;
}

.um-h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.2;
  color: var(--fg);
  margin: 0;
}

/* SECTION LABEL (pill prefix) ------------------------------ */
.um-label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-grey);
  padding: 6px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-chip);
  background: transparent;             /* NO FILL — brand rule */
  white-space: nowrap;
}

/* CARD TITLE ----------------------------------------------- */
.um-card-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-card-title);
  line-height: 1.3;
  color: var(--fg);
  margin: 0;
}

/* BODY ----------------------------------------------------- */
.um-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--muted-grey);
  max-width: 62ch;
}

.um-body-sm {
  font-size: var(--fs-body-sm);
  color: var(--muted-grey);
  line-height: 1.55;
}

/* META ----------------------------------------------------- */
.um-meta {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-meta);
  color: var(--dim-grey);
  letter-spacing: 0.05em;
}

/* PRICE ---------------------------------------------------- */
.um-price {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--fs-price);
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.um-price-suffix {
  font-size: 18px;
  color: var(--fg);
  font-weight: 500;
}

/* QUOTE / TAGLINE ------------------------------------------ */
.um-quote {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--muted-grey);
  max-width: 12em;
}

/* ============================================================
   4. SEMANTIC ELEMENT MAPPINGS
   ============================================================ */
h1 { @extend .um-h1; }   /* postcss-only; keep manual class use for safety */
h1, h2, h3, p { margin: 0; }

/* ============================================================
   5. CORE COMPONENTS
   ============================================================ */

/* CARD — the brand's defining visual signature.
   NO FILL. 2px solid border-grey. 16–20px radius. */
.um-card {
  background: transparent;
  border: var(--border-card-width) solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--s-8);
  transition: border-color var(--t-short) var(--ease-out);
}
.um-card:hover { border-color: var(--border-strong); }

/* PRIMARY CTA — solid blue, white text, full pill */
.um-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--pure-white);
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-button);
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t-micro) var(--ease-snap),
              filter var(--t-short) var(--ease-out);
}
.um-btn-primary:hover { filter: brightness(1.1); }
.um-btn-primary:active { transform: scale(0.97); }

/* GHOST / SECONDARY — no fill + 2px border + pill */
.um-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  color: var(--fg);
  border: 2px solid var(--border);
  padding: 12px 26px;
  border-radius: var(--radius-button);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--t-short) var(--ease-out),
              color var(--t-short) var(--ease-out);
}
.um-btn-ghost:hover { border-color: var(--fg); }

/* SPEED LINE — horizontal blue rule, full-bleed divider */
.um-speed-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border: none;
  margin: var(--s-8) 0;
}
.um-speed-line.thin { height: 1px; }
.um-speed-line.thick { height: 3px; }

/* GRID OVERLAY — thin construction lines on backgrounds */
.um-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* SKILL OVAL — tall vertical pill, featured uses green ring */
.um-skill-oval {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  width: 110px;
  height: 180px;
  background: transparent;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  padding: var(--s-5);
}
.um-skill-oval.featured {
  border: 2px solid var(--signal-green);
  box-shadow: 0 0 24px rgba(57, 255, 20, 0.18);
}

/* ============= MOBILE RESPONSIVE ADDITIONS ============= */
@media (max-width: 720px) {
  /* Buttons full-width on mobile when in flex container */
  .um-btn-primary, .um-btn-ghost {
    padding: 16px 24px;
    font-size: 13px;
    justify-content: center;
  }

  /* Typography adjustments */
  .um-display { font-size: clamp(48px, 12vw, 72px); }
  .um-h1 { font-size: clamp(36px, 9vw, 48px); }
  .um-h2 { font-size: clamp(28px, 7vw, 36px); }
  .um-h3 { font-size: clamp(20px, 5vw, 24px); }
}
