/* pivotplan.dev — colors from docs/design/tokens.json (chartBackground,
   chartSurface, chartSurfaceSecondary, brand.harborTeal, brand.warmPaper,
   secondaryInk, accent, brand.buoyRust / buoyRustOnField). */
:root {
  color-scheme: light dark;
  --field: #F4EFE5;
  --surface: #FFFCF7;
  --well: #EBE3D3;
  --ink: #0D3D40;
  --secondary-ink: #4E5F60;
  --accent: #0D3D40;
  --rule: #C8573D;
}
@media (prefers-color-scheme: dark) {
  :root {
    --field: #07191A;
    --surface: #0D3D40;
    --well: #12504E;
    --ink: #F4EFE5;
    --secondary-ink: #BBC4C4;
    --accent: #7FD3D0;
    --rule: #DA8D7B;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
.page { max-width: 44rem; margin: 0 auto; padding: 2rem 1rem 4rem; }
.site-header { border-bottom: 3px solid var(--rule); padding-bottom: 0.75rem; margin-bottom: 2rem; }
.site-header a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.5rem 0 0.75rem; scroll-margin-top: 1rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; scroll-margin-top: 1rem; }
p, ul, ol, table, blockquote { margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }
a { color: var(--accent); text-underline-offset: 0.15em; }
.meta { color: var(--secondary-ink); font-size: 0.95rem; }
.gist { background: var(--well); border-radius: 12px; padding: 1rem 1.25rem; margin: 1.5rem 0 2rem; }
.gist h2 { margin-top: 0; }
blockquote { background: var(--surface); border-left: 4px solid var(--rule); border-radius: 0 8px 8px 0; margin-left: 0; padding: 0.75rem 1rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem; border-bottom: 1px solid var(--well); }
th { font-weight: 600; }
.site-footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--well); color: var(--secondary-ink); font-size: 0.9rem; }
