/* ═══════════════════════════════════════════════════════════════════════
   KL Design Language v7 — Complete Identity CSS
   Source: kl-design-language-v7-final-2026-05-23.html
   Last updated: 2026-05-28

   Includes: color tokens, @font-face declarations, typography system,
   component styles (header, nav, cards, decisions, reviewers).

   Usage: <link rel="stylesheet" href="/static/brand/kl-identity-v7.css">
   This file is self-contained — no need to also import colors.css.
   ═══════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════
   §1 — COLOR TOKENS
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --ink:           #0A1118;
  --paper:         #F5F0EB;
  --crimson:       #7A1B1F;
  --rule:          rgba(10, 17, 24, 0.12);
  --rule-strong:   rgba(10, 17, 24, 0.32);
  --muted:         rgba(10, 17, 24, 0.55);
  --code-bg:       rgba(10, 17, 24, 0.06);
  --max-w:         920px;
}


/* ═══════════════════════════════════════════════════════════════════════
   §2 — @FONT-FACE DECLARATIONS
   All fonts served locally from /static/brand/fonts/
   No CDN dependencies. SIL OFL licensed.
   ═══════════════════════════════════════════════════════════════════════ */

/* Big Shoulders Display — variable weight (300–700) */
@font-face {
  font-family: 'Big Shoulders Display';
  src: url('/static/brand/fonts/BigShouldersDisplay-Variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* IBM Plex Serif — Regular */
@font-face {
  font-family: 'IBM Plex Serif';
  src: url('/static/brand/fonts/IBMPlexSerif-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* IBM Plex Serif — Medium */
@font-face {
  font-family: 'IBM Plex Serif';
  src: url('/static/brand/fonts/IBMPlexSerif-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* IBM Plex Serif — Bold */
@font-face {
  font-family: 'IBM Plex Serif';
  src: url('/static/brand/fonts/IBMPlexSerif-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* IBM Plex Serif — Italic */
@font-face {
  font-family: 'IBM Plex Serif';
  src: url('/static/brand/fonts/IBMPlexSerif-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* IBM Plex Sans — Regular */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/static/brand/fonts/IBMPlexSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* IBM Plex Sans — Medium */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/static/brand/fonts/IBMPlexSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* IBM Plex Sans — Bold */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/static/brand/fonts/IBMPlexSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* IBM Plex Mono — Regular */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/static/brand/fonts/IBMPlexMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* IBM Plex Mono — Medium */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/static/brand/fonts/IBMPlexMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}


/* ═══════════════════════════════════════════════════════════════════════
   §3 — BASE TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Headings — Big Shoulders Display ───────────────────────────────── */

h1, h2, h3 {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 500;
  font-variant-caps: small-caps;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: 64px; letter-spacing: 0.02em; margin-bottom: 8px; }
h2 { font-size: 32px; letter-spacing: 0.05em; margin: 72px 0 22px; }
h3 { font-size: 22px; letter-spacing: 0.06em; margin: 36px 0 14px; }

/* ── Paragraphs ─────────────────────────────────────────────────────── */

p              { margin: 0 0 16px; max-width: 68ch; }
p.lede         { font-size: 19px; line-height: 1.55; margin-bottom: 28px; }
p.meta         { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }

strong         { font-weight: 700; color: var(--ink); }

code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85em;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 3px;
}

hr { border: 0; border-top: 1px solid var(--rule); margin: 56px 0; }


/* ═══════════════════════════════════════════════════════════════════════
   §4 — WORDMARK + NAME
   font-variant-caps: small-caps on natural title-case "Ken Lovell"
   K and L stay full-size; en and ovell render as small caps.
   ═══════════════════════════════════════════════════════════════════════ */

.kl-name {
  font-family: 'Big Shoulders Display', sans-serif;
  font-variant-caps: small-caps;
  letter-spacing: 0.04em;
  font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════════════════
   §5 — HEADER + NAV
   ═══════════════════════════════════════════════════════════════════════ */

.kl-header {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 3px solid var(--ink);
  padding-top: 20px;
  margin-bottom: 12px;
}

.kl-header .kl-mark {
  width: 36px;
  height: auto;
  flex-shrink: 0;
}

.kl-header .kl-name {
  font-size: 28px;
  line-height: 1;
}

.kl-header .kl-stamp {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-left: auto;
}

.kl-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 14px 0 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 36px;
}

.kl-nav a {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}

.kl-nav a:hover,
.kl-nav a.active {
  color: var(--ink);
}


/* ═══════════════════════════════════════════════════════════════════════
   §6 — UI COMPONENTS
   Labels, tags, subtitle, decision callouts
   ═══════════════════════════════════════════════════════════════════════ */

.subtitle {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}

.tag {
  display: inline-block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
}

.tag.recommended {
  color: var(--paper);
  background: var(--crimson);
  border-color: var(--crimson);
}

.decision {
  background: white;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--crimson);
  padding: 24px 28px;
  margin: 24px 0;
}

.decision .label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}


/* ═══════════════════════════════════════════════════════════════════════
   §7 — LOCKUP STYLES
   Horizontal and vertical mark + wordmark combinations
   ═══════════════════════════════════════════════════════════════════════ */

.lockup-h {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.lockup-v {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}


/* ═══════════════════════════════════════════════════════════════════════
   §8 — TABLES
   ═══════════════════════════════════════════════════════════════════════ */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 28px;
  font-size: 15px;
}

th {
  text-align: left;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  padding: 12px 14px;
  border-bottom: 2px solid var(--ink);
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}


/* ═══════════════════════════════════════════════════════════════════════
   §9 — FOOTER
   ═══════════════════════════════════════════════════════════════════════ */

footer {
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
