/* ============================================
   LOGFILE — shared styles
   ============================================ */
:root {
  --purple-900: oklch(0.30 0.13 292);
  --purple-800: oklch(0.38 0.16 293);
  --purple-700: oklch(0.45 0.18 294);
  --purple-600: oklch(0.545 0.19 294);
  --purple-500: oklch(0.645 0.17 295);
  --purple-400: oklch(0.73 0.13 295);
  --purple-300: oklch(0.82 0.09 295);
  --purple-200: oklch(0.905 0.048 295);
  --purple-100: oklch(0.955 0.026 295);
  --purple-50:  oklch(0.982 0.012 295);

  /* secondary accent — keeps the purple from flattening out */
  --teal-700: oklch(0.46 0.09 205);
  --teal-500: oklch(0.66 0.10 200);
  --teal-100: oklch(0.955 0.028 200);

  --peach: oklch(0.965 0.012 60);
  --peach-deep: oklch(0.90 0.035 60);
  --mint: oklch(0.965 0.018 180);
  --mint-deep: oklch(0.90 0.04 180);
  --lavender: oklch(0.955 0.028 295);
  --butter: oklch(0.965 0.025 90);
  --rose: oklch(0.955 0.020 20);

  --ink: oklch(0.205 0.018 290);
  --ink-soft: oklch(0.415 0.016 290);
  --ink-faint: oklch(0.585 0.013 290);
  --line: oklch(0.895 0.008 290);
  --line-soft: oklch(0.945 0.006 290);
  --paper: oklch(0.995 0.002 290);
  --paper-warm: oklch(0.978 0.006 292);

  --navy: oklch(0.165 0.030 288);
  --navy-soft: oklch(0.225 0.034 288);
  --navy-line: oklch(0.315 0.030 288);

  --green: oklch(0.58 0.11 160);
  --green-100: oklch(0.955 0.035 160);
  --amber: oklch(0.68 0.13 75);
  --amber-100: oklch(0.960 0.045 85);
  --red: oklch(0.57 0.16 25);
  --red-100: oklch(0.955 0.030 25);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-2xl: 26px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(22, 20, 38, .05), 0 1px 1px rgba(22, 20, 38, .04);
  --shadow-md: 0 6px 18px -6px rgba(22, 20, 38, .12), 0 2px 6px rgba(22, 20, 38, .05);
  --shadow-lg: 0 24px 60px -22px rgba(22, 20, 44, .24), 0 6px 18px rgba(22, 20, 44, .07);
  --shadow-xl: 0 44px 110px -34px rgba(22, 20, 44, .34), 0 10px 30px rgba(22, 20, 44, .10);
  --ring: 0 0 0 3px oklch(0.545 0.19 294 / .30);

  --ease: cubic-bezier(.22,.61,.36,1);

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --font-hand: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "ss01" 1, "tnum" 0;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--purple-700); }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--purple-200); color: var(--purple-900); }

:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--r-sm);
}

/* ===== Layout ===== */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.wrap-tight { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 1220px; margin: 0 auto; padding: 0 28px; }

/* ===== Type ===== */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.04;
  text-wrap: balance;
}
.h1 { font-size: clamp(42px, 6.0vw, 76px); letter-spacing: -0.038em; }
.h2 { font-size: clamp(31px, 4.2vw, 50px); letter-spacing: -0.032em; }
.h3 { font-size: clamp(23px, 2.7vw, 33px); letter-spacing: -0.026em; }
.kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--purple-700);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 9px;
}
.kicker::before {
  content: ""; width: 18px; height: 1px;
  background: var(--purple-400);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 15px;
  border-radius: var(--r-pill);
  background: var(--purple-100);
  color: var(--purple-700);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--purple-200);
}
.italic-serif { font-style: normal; font-weight: 700; color: var(--purple-700); }
.hand, .hand-note, .squiggle { display: none; }

.lead {
  font-size: clamp(17px, 1.35vw, 20.5px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62ch;
  text-wrap: pretty;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 15px;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
  position: relative;
}
.btn:active { transform: translateY(0) scale(.985); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { color: var(--paper); transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(22,20,38,.6); }
.btn-purple {
  background: linear-gradient(180deg, var(--purple-500), var(--purple-600));
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,.24) inset, 0 6px 16px -8px var(--purple-600);
}
.btn-purple:hover { color: white; background: linear-gradient(180deg, var(--purple-600), var(--purple-700)); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 14px 28px -10px var(--purple-600); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--purple-50); border-color: var(--purple-300); color: var(--purple-700); }
.btn-soft { background: white; color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft); }
.btn-soft:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: oklch(1 0 0 / .74);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.nav.is-stuck {
  border-bottom-color: var(--line-soft);
  background: oklch(1 0 0 / .88);
  box-shadow: 0 8px 24px -20px rgba(22,20,44,.5);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.nav-left { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-link {
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 450;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 0;
  position: relative;
  transition: color .18s var(--ease);
}
.nav-links .nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1.5px; border-radius: 2px;
  background: var(--purple-600);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-links .nav-link:hover::after, .nav-links .nav-link.is-active::after { transform: scaleX(1); }
.nav-link:hover, .nav-link.is-active { color: var(--purple-700); }
.nav-link .chev { width: 10px; height: 10px; opacity: .5; }
.nav-right { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  align-items: center; justify-content: center;
  background: white;
}
.nav-toggle span { display: block; width: 17px; height: 1.6px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 17px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after { top: 5.5px; }
.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { transform: translateY(5.5px) rotate(45deg); }
.nav.is-open .nav-toggle span::after { transform: translateY(-5.5px) rotate(-45deg); }
.nav-mobile {
  display: none;
  border-top: 1px solid var(--line-soft);
  background: white;
  padding: 14px 0 22px;
}
.nav.is-open .nav-mobile { display: block; }
.nav-mobile .wrap { display: flex; flex-direction: column; gap: 2px; }
.nav-mobile a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line-soft); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .btn { margin-top: 14px; justify-content: center; border-bottom: none; }

.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--purple-400), var(--purple-700));
  position: relative;
  display: grid; place-items: center;
  color: white;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  font-style: normal;
  box-shadow: 0 6px 16px -6px var(--purple-500);
  flex: none;
}
.logo-mark::after {
  content: ""; position: absolute;
  inset: 3px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.28);
}

/* ===== Footer ===== */
.footer {
  margin-top: 120px;
  background: oklch(0.185 0.030 292);
  border-top: 1px solid oklch(0.28 0.03 292);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: ""; position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 460px at 12% -10%, oklch(0.30 0.075 294 / .9), transparent 62%),
    radial-gradient(700px 400px at 92% 10%, oklch(0.26 0.06 250 / .55), transparent 60%);
  pointer-events: none;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 48px; position: relative; }
.footer .logo { color: white; }
.footer .logo:hover { color: white; }
.footer-col h4 {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: oklch(0.66 0.03 294);
  margin-bottom: 16px;
  font-weight: 500;
  font-family: var(--font-mono);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14.5px; color: oklch(0.82 0.012 292); transition: color .18s var(--ease), transform .18s var(--ease); display: inline-block; }
.footer-col a:hover { color: white; transform: translateX(3px); }
.footer-bottom {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid oklch(0.28 0.03 292);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px;
  color: oklch(0.60 0.015 292);
  position: relative;
}

/* ===== Cards ===== */
.card {
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.card-hover { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--purple-200); }

/* ===== Pastel surfaces ===== */
.surface-lavender { background: linear-gradient(140deg, var(--lavender), var(--purple-100)); }
.surface-peach { background: linear-gradient(140deg, var(--peach), var(--rose)); }
.surface-mint { background: linear-gradient(140deg, var(--mint), var(--teal-100)); }
.surface-butter { background: linear-gradient(140deg, var(--butter), var(--peach)); }
.surface-paper { background: var(--paper-warm); }

/* ===== Hero gradient (signature dark hero) ===== */
.hero-gradient {
  background:
    radial-gradient(1100px 560px at 16% -8%, oklch(0.32 0.085 294) 0%, transparent 62%),
    radial-gradient(900px 520px at 88% 14%, oklch(0.25 0.07 250) 0%, transparent 58%),
    var(--navy);
  color: oklch(0.94 0.006 290);
  position: relative;
  isolation: isolate;
}
.hero-gradient::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .30;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.hero-gradient .display, .hero-gradient h1, .hero-gradient h2, .hero-gradient h3 { color: white; }
.hero-gradient .lead, .hero-gradient p { color: oklch(0.815 0.015 290); }
.hero-gradient .italic-serif { color: var(--purple-300); }
.hero-gradient .kicker { color: var(--purple-300); }
.hero-gradient .kicker::before { background: var(--purple-400); opacity: .7; }
.hero-gradient .eyebrow { background: rgba(255,255,255,.09); color: white; border-color: rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.hero-gradient .btn-ghost { color: white; border-color: rgba(255,255,255,.28); }
.hero-gradient .btn-ghost:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.45); color: white; }
.hero-gradient .hero-meta, .hero-gradient .text-soft, .hero-gradient .text-faint { color: oklch(0.70 0.012 290); }
.hero-gradient a:hover { color: var(--purple-300); }
.hero-gradient .breadcrumb, .hero-gradient .breadcrumb a { color: oklch(0.72 0.015 292); }
.hero-gradient .breadcrumb a:hover { color: white; }
.hero-gradient .article-meta { color: oklch(0.70 0.012 290); }
/* light surfaces nested inside the dark hero opt back out */
.hero-gradient :is(.on-light, .card, .post, .mock, .surface-lavender, .surface-peach, .surface-mint, .surface-butter, .surface-paper) { color: var(--ink); }
.hero-gradient :is(.on-light, .card, .post, .mock, .surface-lavender, .surface-peach, .surface-mint, .surface-butter, .surface-paper) :is(.display, h1, h2, h3, h4) { color: var(--ink); }
.hero-gradient :is(.on-light, .card, .post, .mock, .surface-lavender, .surface-peach, .surface-mint, .surface-butter, .surface-paper) :is(p, .lead) { color: var(--ink-soft); }
.hero-gradient :is(.on-light, .card, .post, .mock, .surface-lavender, .surface-peach, .surface-mint, .surface-butter, .surface-paper) :is(.kicker, .text-purple, .italic-serif) { color: var(--purple-700); }
.hero-gradient :is(.on-light, .card, .post, .mock, .surface-lavender, .surface-peach, .surface-mint, .surface-butter, .surface-paper) .kicker::before { background: var(--purple-400); }
.hero-gradient :is(.on-light, .card, .post, .mock, .surface-lavender, .surface-peach, .surface-mint, .surface-butter, .surface-paper) :is(.text-soft, .text-faint, .article-meta, .post-meta) { color: var(--ink-faint); }
.hero-gradient :is(.on-light, .card, .post, .mock) .eyebrow { background: var(--purple-100); color: var(--purple-700); border-color: var(--purple-200); }

/* ===== Section spacing ===== */
.section { padding: 100px 0; }
.section-tight { padding: 64px 0; }

/* ===== Pill ===== */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  white-space: nowrap;
}
.chip-purple { background: var(--purple-100); color: var(--purple-700); }
.chip-green  { background: var(--green-100); color: oklch(0.42 0.09 160); }
.chip-amber  { background: var(--amber-100); color: oklch(0.46 0.10 70); }
.chip-rose   { background: var(--red-100); color: oklch(0.47 0.13 25); }
.chip-mint   { background: var(--teal-100); color: var(--teal-700); }

/* ===== Article / prose (blog + KB) ===== */
.article-hero { padding: 72px 0 44px; }
.article-meta { display: flex; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; margin-top: 22px; }
.breadcrumb { font-size: 13.5px; color: var(--ink-faint); }
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--purple-700); }

.read-progress {
  position: fixed; top: 0; left: 0; z-index: 70;
  height: 2.5px; width: 0;
  background: linear-gradient(90deg, var(--purple-500), var(--purple-700));
  transition: width .1s linear;
}

.prose { max-width: 920px; margin: 0 auto; }
.prose h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 2.3vw, 30px); letter-spacing: -0.028em; line-height: 1.18;
  margin: 52px 0 16px; text-wrap: balance; color: var(--ink);
}
.prose h2:first-child, .prose > img:first-child + h2 { margin-top: 0; }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; margin: 34px 0 10px; }
.prose p { font-size: 17px; line-height: 1.78; color: var(--ink-soft); margin-bottom: 20px; text-wrap: pretty; }
.prose > p:first-of-type { font-size: 18.5px; line-height: 1.7; color: var(--ink); }
.prose a:not(.btn) { color: var(--purple-700); text-decoration: underline; text-decoration-color: var(--purple-300); text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: text-decoration-color .18s var(--ease); }
.prose a:not(.btn):hover { text-decoration-color: var(--purple-600); }
.prose ul, .prose ol { margin: 0 0 22px 4px; font-size: 17px; line-height: 1.78; color: var(--ink-soft); padding-left: 22px; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 26px; }
.prose ul > li::before {
  content: ""; position: absolute; left: 6px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple-400);
}
.prose ol > li::marker { color: var(--purple-600); font-weight: 600; font-variant-numeric: tabular-nums; }
.prose li { margin-bottom: 10px; }
.prose li strong { color: var(--ink); font-weight: 600; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 44px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.prose th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); font-family: var(--font-mono); font-weight: 500; }
.prose td { color: var(--ink-soft); }
.prose blockquote {
  border-left: 3px solid var(--purple-400);
  padding: 4px 24px; margin: 32px 0;
  font-size: 19px; line-height: 1.6; font-style: normal; font-weight: 450;
  color: var(--ink); letter-spacing: -0.01em;
}
.prose blockquote p { font-size: inherit; color: inherit; line-height: inherit; }
.prose blockquote cite { display: block; margin-top: 10px; font-size: 13.5px; font-style: normal; color: var(--ink-faint); }
.callout { padding: 20px 24px; border-radius: var(--r-md); background: var(--purple-50); border: 1px solid var(--purple-200); border-left: 3px solid var(--purple-500); margin: 28px 0; }
.callout.tip { background: var(--teal-100); border-color: oklch(0.88 0.05 200); border-left-color: var(--teal-500); }
.callout-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; letter-spacing: -0.01em; }
.callout p { margin-bottom: 0; font-size: 15.5px; line-height: 1.65; }
.article-cta {
  margin-top: 72px; padding: 34px;
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, var(--purple-50), var(--purple-100));
  border: 1px solid var(--purple-200);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  max-width: 920px; margin-left: auto; margin-right: auto;
}

/* ===== Knowledge base ===== */
.kb-search { max-width: 560px; margin: 32px auto 0; display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-radius: 999px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 15px; color: var(--ink-faint); }
.kb-sections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.kb-section { background: white; border-radius: var(--r-lg); border: 1px solid var(--line); padding: 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.kb-section:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--purple-200); }
.kb-section h3 { font-family: var(--font-display); font-size: 21px; letter-spacing: -0.022em; }
.kb-section ul { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.kb-section a { font-size: 14.5px; color: var(--ink-soft); }
.kb-section a:hover { color: var(--purple-700); }
@media (max-width:880px) { .kb-sections { grid-template-columns: 1fr; } .article-cta { flex-direction: column; text-align: center; } }

/* ===== Mock UI primitives ===== */
.mock {
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: var(--purple-50); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-dot.r { background: oklch(0.75 0.15 25); }
.mock-dot.y { background: oklch(0.82 0.14 80); }
.mock-dot.g { background: oklch(0.76 0.13 160); }

/* ===== Utilities ===== */
.row { display: flex; gap: 12px; align-items: center; }
.col { display: flex; flex-direction: column; gap: 12px; }
.between { display: flex; justify-content: space-between; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.text-center { text-align: center; }
.text-soft { color: var(--ink-soft); }
.text-faint { color: var(--ink-faint); }
.text-purple { color: var(--purple-700); }
.mono { font-family: var(--font-mono); }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-right .nav-link { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .section { padding: 64px 0; }
  .wrap, .wrap-tight, .wrap-narrow { padding: 0 20px; }
  .article-hero { padding: 48px 0 32px; }
  .article-cta { padding: 26px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer { padding: 56px 0 32px; margin-top: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Print ===== */
@media print {
  .nav, .footer, .article-cta, .read-progress { display: none !important; }
  body { background: white; }
  .prose { max-width: none; }
}

/* ===== Anim ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes drift {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(8px,-6px); }
}
@keyframes pulse-soft {
  0%, 100% { opacity: .7; }
  50% { opacity: 1; }
}
@keyframes slide-up-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}
@keyframes typewrite {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
