/* =============================================================
   kiniq.ai — colors_and_type.css
   Foundations: black & white, Helvetica Neue + Inconsolata (mono)
   ============================================================= */

/* Mono fallback for Consolas */
@import url("https://fonts.googleapis.com/css2?family=Inconsolata:wght@300;400;500;600;700&display=swap");

:root {
  /* -------- Palette: monochrome -------- */
  --ink:        #0A0A0A;   /* near-black, primary fg */
  --ink-2:      #1F1F1F;   /* secondary text on light */
  --ink-3:      #555555;   /* tertiary / labels */
  --ink-4:      #8A8A8A;   /* placeholder / disabled */
  --rule:       #E4E4E4;   /* hairline borders */
  --rule-2:     #EFEFEF;   /* subtle dividers */
  --paper:      #FFFFFF;   /* primary surface */
  --paper-2:    #FAFAF9;   /* warm off-white surface */
  --paper-3:    #F4F4F2;   /* deeper surface / wells */

  /* Inverted (dark) */
  --ink-inv:    #FFFFFF;
  --paper-inv:  #0A0A0A;
  --paper-inv-2:#161616;
  --rule-inv:   #2A2A2A;

  /* Accent — used sparingly. Brand is mono; this is for status only. */
  --accent:     #0A0A0A;   /* default: just ink */
  --positive:   #0A0A0A;
  --warning:    #0A0A0A;
  --negative:   #C0392B;   /* destructive only */

  /* -------- Semantic foreground / background -------- */
  --fg-1: var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: var(--ink-3);
  --fg-4: var(--ink-4);
  --bg-1: var(--paper);
  --bg-2: var(--paper-2);
  --bg-3: var(--paper-3);
  --border-1: var(--rule);
  --border-2: var(--rule-2);

  /* -------- Type families -------- */
  --font-sans: "Helvetica Neue", "Helvetica", "Arial", "Liberation Sans", sans-serif;
  --font-mono: "Consolas", "Inconsolata", "Menlo", "Courier New", monospace;
  --font-display: var(--font-sans); /* same family, heavier weight */

  /* -------- Type scale (modular, 1.250 minor third) -------- */
  --fs-xs:   11px;   /* eyebrow / overline */
  --fs-sm:   13px;   /* caption / meta */
  --fs-base: 15px;   /* body */
  --fs-md:   17px;   /* lead */
  --fs-lg:   21px;   /* h4 */
  --fs-xl:   28px;   /* h3 */
  --fs-2xl:  40px;   /* h2 */
  --fs-3xl:  56px;   /* h1 */
  --fs-4xl:  80px;   /* display */
  --fs-5xl:  120px;  /* hero */

  /* -------- Weights — Helvetica Neue is most expressive at the extremes -------- */
  --fw-thin:    100;
  --fw-light:   300;
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-bold:    700;
  --fw-black:   900;

  /* -------- Line heights -------- */
  --lh-tight:   1.05;   /* display */
  --lh-snug:    1.18;   /* headings */
  --lh-normal:  1.5;    /* body */
  --lh-relaxed: 1.65;   /* longform */

  /* -------- Letter-spacing — Helvetica Neue benefits from negative tracking at scale -------- */
  --tracking-tightest: -0.04em;   /* hero display */
  --tracking-tight:    -0.02em;   /* h1 / h2 */
  --tracking-normal:    0em;
  --tracking-wide:      0.04em;   /* eyebrows, all-caps labels */
  --tracking-mono:      0em;

  /* -------- Spacing scale (4px base) -------- */
  --space-0:  0;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* -------- Radii — restrained. The brand is mostly square. -------- */
  --radius-0:    0;
  --radius-sm:   2px;     /* inputs, tags */
  --radius-md:   4px;     /* buttons, small cards */
  --radius-lg:   8px;     /* cards, panels */
  --radius-pill: 999px;   /* chips, avatars */

  /* -------- Borders -------- */
  --border-hairline: 1px solid var(--border-1);
  --border-strong:   1px solid var(--ink);
  --border-divider:  1px solid var(--border-2);

  /* -------- Shadows — minimal. Use borders first, shadow only for floats. -------- */
  --shadow-0:  none;
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.05);
  --shadow-md: 0 4px 12px rgba(10, 10, 10, 0.06), 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-lg: 0 12px 32px rgba(10, 10, 10, 0.08), 0 2px 4px rgba(10, 10, 10, 0.04);
  --shadow-focus: 0 0 0 3px rgba(10, 10, 10, 0.12);

  /* -------- Motion -------- */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-in:     cubic-bezier(0.55, 0, 1, 0.45);
  --dur-fast:   120ms;
  --dur-base:   180ms;
  --dur-slow:   320ms;

  /* -------- Layout -------- */
  --container-sm:  640px;
  --container-md:  960px;
  --container-lg:  1200px;
  --container-xl:  1440px;
  --gutter:        24px;
}

/* ============================================================
   Semantic styles — apply directly or compose into classes
   ============================================================ */

html, body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.k-display, h1.k-hero {
  font-family: var(--font-display);
  font-size: var(--fs-5xl);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tightest);
}

h1, .k-h1 {
  font-family: var(--font-sans);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}

h2, .k-h2 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}

h3, .k-h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}

h4, .k-h4 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
  letter-spacing: 0;
  margin: 0;
}

p, .k-body {
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--fg-2);
  margin: 0;
}

.k-lead {
  font-size: var(--fs-md);
  font-weight: var(--fw-light);
  line-height: var(--lh-relaxed);
  color: var(--fg-2);
}

.k-caption, small {
  font-size: var(--fs-sm);
  color: var(--fg-3);
  line-height: var(--lh-normal);
}

.k-eyebrow, .k-overline {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--fg-3);
}

code, kbd, samp, pre, .k-mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  font-weight: var(--fw-regular);
  letter-spacing: var(--tracking-mono);
}

code {
  background: var(--bg-3);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
  color: var(--fg-1);
}

a {
  color: var(--fg-1);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity var(--dur-base) var(--ease-out);
}
a:hover { opacity: 0.6; }

hr, .k-rule {
  border: 0;
  border-top: var(--border-hairline);
  margin: var(--space-8) 0;
}

::selection { background: var(--ink); color: var(--paper); }
