/* =========================================================
   K&M — SHARED DESIGN TOKENS
   Loaded by every section document. Reset + variables +
   typography + shared components (buttons, bracket tags).
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, blockquote { margin: 0; }
ul[class]{ list-style:none; padding:0; }
a{ color:inherit; text-decoration:none; }
img, svg{ display:block; max-width:100%; }
button{ font:inherit; cursor:pointer; }

:root{
  --navy-950:#050f1f;
  --navy-900:#0a2140;
  --navy-800:#0f3059;
  --navy-700:#164174;
  --blue-600:#1f6fd1;
  --blue-500:#3c8ce8;
  --blue-100:#e6f0fc;
  --gold-600:#a9821c;
  --gold-500:#c9a227;
  --gold-400:#e3c15a;
  --paper:#f7f9fc;
  --paper-dim:#eef2f8;
  --white:#ffffff;
  --ink:#101c2b;
  --ink-soft:#48586b;
  --ink-faint:#7c8ba0;
  --line:#dbe3ee;
  --line-strong:#b9c7db;

  --font-display:'Fraunces','Georgia',serif;
  --font-body:'Inter',-apple-system,sans-serif;
  --font-mono:'IBM Plex Mono','Courier New',monospace;

  --radius-sm:6px;
  --radius-md:12px;
  --radius-lg:20px;
  --shadow-soft:0 20px 60px -20px rgba(10,33,64,.28);
  --shadow-card:0 12px 30px -14px rgba(10,33,64,.22);
  --ease:cubic-bezier(.22,1,.36,1);
}

html, body{ height:100%; }
body{
  font-family: var(--font-body);
  color: var(--ink);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

.wrap{ max-width:1240px; margin-inline:auto; padding-inline: clamp(1.4rem, 4vw, 3.4rem); }

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--navy-900);
  font-weight:600;
  letter-spacing:-.01em;
  line-height:1.08;
}

/* Bracketed mono label — the site's signature marker */
.tag{
  display:inline-flex;
  align-items:center;
  font-family: var(--font-mono);
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color: var(--gold-600);
  font-weight:600;
}
.tag--on-dark{ color: var(--gold-400); }

.section-head h2{ font-size:clamp(1.7rem,3vw,2.5rem); margin-top:.6rem; }
.section-head p{ color:var(--ink-soft); font-size:1.02rem; margin-top:.9rem; max-width:54ch; }

.btn{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.82rem 1.5rem; border-radius: var(--radius-sm);
  font-weight:600; font-size:.88rem; letter-spacing:.01em;
  border:1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary{ background: var(--blue-600); color:#fff; box-shadow:0 12px 24px -10px rgba(31,111,209,.55); }
.btn-primary:hover{ background: var(--blue-500); transform: translateY(-2px); }
.btn-dark{ background: var(--navy-900); color:#fff; }
.btn-dark:hover{ background: var(--navy-800); transform: translateY(-2px); }
.btn-outline{ background:transparent; border-color: var(--line-strong); color: var(--navy-900); }
.btn-outline:hover{ border-color: var(--navy-900); }
.btn-outline--on-dark{ border-color: rgba(255,255,255,.3); color:#fff; }
.btn-outline--on-dark:hover{ border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); }
.btn svg{ width:15px; height:15px; }

.chip{
  display:inline-flex; align-items:center; gap:.45rem;
  padding:.4rem .8rem; border-radius:999px;
  border:1px solid var(--line); background:#fff;
  font-family: var(--font-mono); font-size:.68rem; letter-spacing:.05em;
  color: var(--ink-soft); text-transform:uppercase;
}
.chip .dot{ width:5px; height:5px; border-radius:50%; background: var(--gold-500); }
.chip--dark{ background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.72); }
.chip--dark .dot{ background: var(--gold-400); }

@keyframes rise{ from{ opacity:0; transform: translateY(16px);} to{ opacity:1; transform:translateY(0);} }
.rise{ animation: rise .7s var(--ease) both; }
.rise-1{ animation-delay:.08s; } .rise-2{ animation-delay:.16s; } .rise-3{ animation-delay:.24s; } .rise-4{ animation-delay:.32s; }

@media (prefers-reduced-motion: reduce){ *{ animation-duration:.01ms !important; } }
::selection{ background: var(--gold-400); color: var(--navy-950); }

/* Page-level scroll offset so #anchors clear the sticky header */
html{ scroll-behavior: smooth; scroll-padding-top: 96px; }
