@font-face { font-family: Outfit; font-weight: 400; font-display: swap; src: url(outfit-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Outfit; font-weight: 400; font-display: swap; src: url(outfit-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Outfit; font-weight: 600; font-display: swap; src: url(outfit-600-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Outfit; font-weight: 600; font-display: swap; src: url(outfit-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Outfit; font-weight: 700; font-display: swap; src: url(outfit-700-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Outfit; font-weight: 700; font-display: swap; src: url(outfit-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Outfit; font-weight: 800; font-display: swap; src: url(outfit-800-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Outfit; font-weight: 800; font-display: swap; src: url(outfit-800-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Mono"; font-weight: 400; font-display: swap; src: url(spacemono-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Mono"; font-weight: 700; font-display: swap; src: url(spacemono-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Reading-page system mirrored from dashboard-v2/deploy/public/blog.css */
:root {
  --ink: #1a1a1a;
  --paper: #fff;
  --paper-soft: #f5f5f5;
  --cream: #fffef8;
  --yellow: #f7e857;
  --muted: #4a4a4a;
  --text-muted: #667085;
  --line: #1a1a1a;
  --line-soft: #e5e5e5;
  --max: 1180px;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Outfit, system-ui, sans-serif; font-size: 18px; line-height: 1.65; }
::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:focus-visible, .table-scroll:focus-visible { outline: 4px solid #2563eb; outline-offset: 4px; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }

.draft-banner { padding: 10px 24px; background: var(--ink); color: #fff; font-family: "Space Mono", monospace; font-size: .72rem; font-weight: 700; text-align: center; }

/* Header and footer mirror the homepage (public/landing.html) so the whole site shares one chrome. */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site-nav { position: sticky; top: 0; z-index: 100; padding: 20px 0; background: rgba(255, 254, 248, .9); backdrop-filter: blur(12px); border-bottom: 2px solid var(--ink); }
.site-nav .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; }
.logo-lockup { display: block; width: auto; height: 28px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; opacity: .85; transition: color .2s; }
.nav-links a:hover { opacity: 1; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: .95rem; text-decoration: none; transition: all .2s; }
.nav-links .btn { opacity: 1; }
.btn-primary { background: var(--yellow); border: 2px solid var(--ink); font-weight: 700; }
.btn-primary:hover { background: #f0df3a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(247, 232, 87, .4); }
.btn-secondary { background: var(--paper); border: 2px solid var(--ink); }
.btn-secondary:hover { background: var(--paper-soft); }

.post-header { max-width: 1040px; margin: auto; padding: 72px 24px 0; }
.post-header h1 { margin: 0; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.post-header__byline { margin: 20px 0 0; color: var(--text-muted); font-family: "Space Mono", monospace; font-size: .72rem; }

.post-layout { max-width: 1040px; margin: 64px auto 120px; padding: 0 24px; display: grid; grid-template-columns: 190px minmax(0, 720px); gap: 76px; align-items: start; }
.post-rail { position: sticky; top: 104px; padding-top: 14px; border-top: 4px solid var(--ink); color: var(--muted); font-size: .86rem; line-height: 1.4; }
.post-rail__title { margin: 0 0 8px; color: var(--ink); font-family: "Space Mono", monospace; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.post-rail ol { margin: 0; padding: 0; list-style: none; }
.post-rail a { display: flex; min-height: 32px; align-items: center; text-decoration: none; }
.post-rail a:hover { color: var(--ink); text-decoration: underline; }

.post-body { min-width: 0; max-width: 70ch; }
.post-body > :first-child { margin-top: 0; }
.post-body h2 { margin: 3rem 0 1rem; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -.03em; text-wrap: balance; }
.post-body p { margin: 0 0 1.35rem; }
.post-body ul { margin: 0 0 1.5rem; padding-left: 1.4rem; }
.post-body li { margin-bottom: .5rem; }
.post-body li::marker { color: var(--ink); }
.post-body p, .post-body li { color: var(--muted); }
.post-body strong { color: var(--ink); }

/* Evidence-table grammar from DESIGN.md: 2px ink frame, quiet gray header, soft row rules. */
.table-scroll { max-width: 100%; margin: 2rem 0; overflow-x: auto; border: 2px solid var(--line); border-radius: 10px; background: var(--paper); }
.post-body table { width: 100%; margin: 0; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.post-body th, .post-body td { padding: 14px 18px; text-align: left; vertical-align: top; }
.post-body th { background: var(--paper-soft); border-bottom: 1px solid var(--line); color: var(--ink); font-family: "Space Mono", monospace; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.post-body td { border-top: 1px solid var(--line-soft); color: var(--muted); }
.post-body tbody tr:first-child td { border-top: 0; }
.post-body td:first-child { width: 38%; color: var(--ink); font-weight: 600; }

mark { padding: 0 3px; border-radius: 4px; background: #fef9c3; color: #854d0e; outline: 1px dashed #854d0e; }

.site-footer { padding: 60px 0; background: var(--ink); }
.site-footer .container { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; text-align: center; }
.footer-links { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: rgba(255, 255, 255, .85); text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--yellow); }
.footer-copy { color: rgba(255, 255, 255, .85); font-size: .85rem; }

@media (max-width: 820px) {
  body { font-size: 17px; }
  .post-layout { grid-template-columns: 1fr; gap: 38px; margin-top: 48px; }
  .post-rail { position: static; max-width: 520px; }
  .post-rail ol { columns: 2; column-gap: 24px; }
}

@media (max-width: 768px) {
  .site-nav { position: relative; padding: 14px 0 12px; background: #fffef8; backdrop-filter: none; }
  .container { padding: 0 18px; }
  .logo-lockup { height: 24px; }
  .nav-links { display: none; }
}

@media (max-width: 520px) {
  .post-header, .post-layout { padding-left: 16px; padding-right: 16px; }
  .post-header { padding-top: 48px; }
  .post-header h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
  .post-layout { margin-top: 40px; margin-bottom: 86px; }
  .post-rail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
