/* =============================================================
   Whirlpool KMS — Design tokens (strict monochrome)
   No colour anywhere. State = fill + weight + border, never hue.
   ============================================================= */

:root {
  /* ---- Colour ramp (the only colours allowed) ---- */
  --white:     #FFFFFF;
  --paper:     #FAFAFA;
  --surface:   #F4F4F4;
  --line-soft: #E6E6E6;
  --line:      #D4D4D4;
  --disabled:  #BDBDBD;
  --muted:     #8A8A8A;
  --secondary: #565656;
  --ink:       #1A1A1A;
  --black:     #000000;

  /* ---- Semantic accents (used sparingly, for state only) ----
     The base remains monochrome; green = positive/published/success,
     red = negative/overdue/failure. Each has a quiet tint for fills. */
  --success:      #1B7A4B;  /* approved / published / positive delta */
  --success-soft: #E7F3EC;  /* success pill / banner fill */
  --success-line: #B7DDC6;
  --danger:       #B42318;  /* overdue / failed / rejected / negative delta */
  --danger-soft:  #FCEBE9;  /* danger pill / banner fill */
  --danger-line:  #F1C4BF;

  /* ---- Typography ---- */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "IBM Plex Sans", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --t-display-xl: 3.5rem;
  --t-display-l:  2.5rem;
  --t-h1:         2rem;
  --t-h2:         1.5rem;
  --t-h3:         1.25rem;
  --t-body:       1rem;
  --t-small:      0.875rem;
  --t-caption:    0.75rem;

  /* ---- Shape & space ---- */
  --radius:      4px;
  --radius-pill: 999px;

  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-6:  24px;
  --s-8:  32px;
  --s-12: 48px;
  --s-16: 64px;

  --maxw: 1280px;

  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04);

  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
}

button {
  font: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---- Focus: visible 2px black ring on everything interactive ---- */
:where(a, button, input, select, [tabindex], .card):focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---- Caption / overline label utility ---- */
.overline {
  font-family: var(--font-mono);
  font-size: var(--t-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =============================================================
   Signature element: every technical code in a mono tag
   ============================================================= */
.code-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--t-caption);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  white-space: nowrap;
}

/* Inverted variant for the primary/queried code */
.code-tag--solid {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.code-tag--ghost {
  border-style: dashed;
  color: var(--secondary);
}
