:root {
  color-scheme: light;
  --bg: #fdfcfa;
  --text: #1a1a1a;
  --text-2: #555;
  --text-3: #999;
  --accent: #c2410c;
  --hl: #ffd84d;
  --hl-ink: #1a1a1a;
  --divider: #e8e4de;
  --surface: #faf8f4;
  --surface-2: #ffffff;
  --btn-primary-fg: #fff;
  --code-bg: #f4f1ea;
  --prose: #2a2a2a;
  --shadow-soft: 0 1px 2px rgba(0,0,0,.04);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Inter", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --max: 720px;
  --theme-toggle-size: 36px;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121212;
  --text: #eceae6;
  --text-2: #a8a49c;
  --text-3: #6f6b64;
  --accent: #fb923c;
  /* Warm gold highlight: keeps marker feel without olive mud */
  --hl: #c9a227;
  --hl-ink: #121212;
  --divider: #2a2a2a;
  --surface: #1a1a1a;
  --surface-2: #1f1f1f;
  --btn-primary-fg: #121212;
  --code-bg: #1c1c1c;
  --prose: #d4d0c8;
  --shadow-soft: 0 1px 2px rgba(0,0,0,.35);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; min-height: 100vh; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
body { overflow-x: hidden; }
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid var(--divider);
  max-width: 768px; margin: 0 auto; gap: 12px;
}
.logo { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.nav-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; justify-content: flex-end; }
.nav-links a { color: var(--text-2); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 600; }

.nav-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.theme-toggle {
  width: var(--theme-toggle-size); height: var(--theme-toggle-size);
  border-radius: 999px; border: 1px solid var(--divider);
  background: var(--surface-2); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; flex-shrink: 0;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
  box-shadow: var(--shadow-soft);
}
.theme-toggle:hover { border-color: var(--text-3); background: var(--surface); }
.theme-toggle:active { transform: scale(0.96); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 16px; height: 16px; display: block; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.hero { padding: 64px 0 44px; }
.hero h1 {
  font-size: clamp(30px, 5vw, 44px); font-weight: 800; line-height: 1.12;
  letter-spacing: -0.03em; max-width: 640px;
}
.hero h1 .box {
  background: var(--hl);
  color: var(--hl-ink, inherit);
  padding: 0 10px;
  border-radius: 2px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.hero .lede { margin-top: 24px; font-size: 17px; color: var(--text-2); max-width: 540px; }
.hero-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 10px 20px; border-radius: 8px; border: 1px solid transparent;
}
.btn-primary { background: var(--text); color: var(--btn-primary-fg); }
.btn-ghost { border-color: var(--divider); color: var(--text); background: var(--surface-2); }
.marquee {
  border-top: 1px solid var(--text); border-bottom: 1px solid var(--text);
  padding: 11px 0; margin: 10px 0 40px; overflow: hidden; white-space: nowrap;
}
.marquee-track {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em;
  text-transform: uppercase; display: inline-block; animation: marquee 32s linear infinite;
}
.marquee-track b { color: var(--accent); font-weight: 500; margin: 0 14px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.nowbar {
  border: 1px solid var(--divider); border-radius: 8px; padding: 14px 18px;
  font-size: 14px; color: var(--text-2); display: flex; gap: 10px; align-items: baseline;
  margin-bottom: 48px; background: var(--surface);
}
.nowbar b {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); font-weight: 500; white-space: nowrap;
}
.nowbar a { color: var(--text); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--divider); }
.sec {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 20px; display: flex; align-items: center; gap: 14px;
}
.sec::after { content: ""; flex: 1; height: 1px; background: var(--divider); }
.sec a {
  margin-left: auto; font-family: var(--sans); font-size: 13px; letter-spacing: 0;
  text-transform: none; color: var(--accent); text-decoration: none;
}
.feat article { padding: 24px 0; border-bottom: 1px solid var(--divider); }
.feat article:last-child { border-bottom: none; }
.tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
}
.feat h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.35; margin-top: 6px; }
.feat h2 a { color: var(--text); text-decoration: none; }
.feat h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.feat .dek { margin-top: 8px; font-size: 15px; color: var(--text-2); max-width: 600px; }
.feat .meta { margin-top: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }
.latest article {
  display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--divider); align-items: baseline;
}
.latest article:last-child { border-bottom: none; }
.latest .date { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.latest h3 { font-size: 16px; font-weight: 600; line-height: 1.35; }
.latest h3 a { color: var(--text); text-decoration: none; }
.latest h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.latest .tag-muted { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-top: 4px; }
.topics { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 56px; }
.topics a {
  font-size: 13.5px; color: var(--text-2); text-decoration: none; border: 1px solid var(--divider);
  border-radius: 999px; padding: 7px 16px; background: var(--surface-2);
}
.topics a:hover { border-color: var(--text-3); color: var(--text); }
.topics a b { color: var(--text-3); font-weight: 500; margin-left: 4px; }
.sub { border-top: 1px solid var(--divider); padding: 48px 0 56px; }
.sub h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.sub p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.sub-note { margin-top: 12px; font-size: 13px; color: var(--text-3); }
.sub-note a { color: var(--accent); }
.site-footer {
  border-top: 1px solid var(--divider); padding: 24px 24px 40px; font-size: 13px;
  color: var(--text-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  max-width: 768px; margin: 0 auto;
}
.site-footer a { color: var(--text-3); text-decoration: none; }
.site-footer a:hover { color: var(--text-2); }
.page-head { padding: 48px 0 28px; }
.page-head h1 { font-family: var(--serif); font-size: 32px; font-weight: 600; }
.page-head .lede { margin-top: 10px; font-size: 16px; color: var(--text-2); max-width: 520px; }
.page-head .updated {
  margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-3);
}
.archive article { padding: 18px 0; border-bottom: 1px solid var(--divider); }
.archive h2 { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.35; margin-top: 4px; }
.archive h2 a { color: var(--text); text-decoration: none; }
.archive h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.archive .dek { font-size: 14.5px; color: var(--text-2); margin-top: 6px; max-width: 560px; }
.archive .meta { margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.art-head { padding: 56px 0 32px; border-bottom: 1px solid var(--divider); }
.art-head h1 {
  font-family: var(--serif); font-size: clamp(26px, 4vw, 34px); font-weight: 600;
  line-height: 1.28; margin-top: 12px; letter-spacing: -0.01em;
}
.art-head h1 .box {
  background: var(--hl);
  color: var(--hl-ink, inherit);
  padding: 0 6px;
  border-radius: 2px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.art-head .byline { margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.art-body {
  padding: 40px 0 24px; font-family: var(--serif); font-size: 19px; line-height: 1.75; color: var(--prose);
}
.art-body > * { max-width: 640px; }
.art-body > figure.is-wide { max-width: min(960px, calc(100vw - 48px)); }
.art-body p { margin-bottom: 26px; }
.art-body h2 { font-size: 24px; font-weight: 600; margin: 38px 0 14px; color: var(--text); }
.art-body h3 { font-size: 18px; font-weight: 600; margin: 28px 0 10px; color: var(--text); font-family: var(--sans); }
.art-body ul, .art-body ol { margin: 0 0 26px 1.25em; }
.art-body li { margin-bottom: 8px; }
.art-body a { color: var(--accent); }
.art-body pre {
  font-family: var(--mono); font-size: 13px; line-height: 1.55;
  background: var(--surface); border: 1px solid var(--divider); border-radius: 8px;
  padding: 16px 18px; overflow-x: auto; margin: 0 0 26px; color: var(--text);
}
.art-body code { font-family: var(--mono); font-size: 0.9em; }
.art-body blockquote {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 22px; font-style: italic;
  color: var(--text-2); margin: 0 0 26px;
}
.art-body figure {
  margin: 22px 0 32px;
  width: 100%;
  max-width: 100%;
}
.art-body figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 6px;
  border: 1px solid var(--divider);
  background: var(--surface);
}
/* Dense UI screenshots: break out of 640 prose column */
.art-body figure.is-wide {
  max-width: min(960px, calc(100vw - 48px));
  width: min(960px, calc(100vw - 48px));
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 0;
  margin-right: 0;
}
.art-body figure.is-wide img {
  width: 100%;
  max-width: 100%;
}
.art-body figure.is-wide figcaption {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.art-body figure.is-chart {
  width: 100%;
  max-width: 100%;
}
.art-body figcaption {
  margin-top: 10px;
  width: 100%;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-3);
  text-align: left;
}
.medium-note { margin: 0 0 40px; font-size: 13.5px; color: var(--text-3); font-family: var(--sans); }
.medium-note a { color: var(--accent); }
.related { border-top: 1px solid var(--divider); padding: 36px 0 48px; }
.related h4 {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 18px;
}
.related a {
  display: block; font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--text);
  text-decoration: none; padding: 10px 0; border-bottom: 1px dashed var(--divider);
}
.related a:hover { color: var(--accent); }
.prose {
  font-family: var(--serif); font-size: 19px; line-height: 1.75; color: var(--prose);
  max-width: 600px; padding-bottom: 56px;
}
.prose p { margin-bottom: 22px; }
.prose a { color: var(--accent); }
.prose .note {
  font-family: var(--sans); font-size: 14px; color: var(--text-3); border-top: 1px solid var(--divider);
  padding-top: 20px; margin-top: 28px; line-height: 1.55;
}
@media (max-width: 640px) {
  .latest article { grid-template-columns: 1fr; gap: 4px; }
  .nowbar { flex-direction: column; gap: 6px; }
  .site-nav {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo toggle"
      "links links";
    align-items: center;
    row-gap: 12px;
    column-gap: 12px;
    padding: 14px 20px 16px;
  }
  .site-nav > .logo {
    grid-area: logo;
  }
  .site-nav > .nav-right {
    display: contents;
  }
  .site-nav .nav-links {
    grid-area: links;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 16px;
    font-size: 13px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-nav .nav-links::-webkit-scrollbar {
    display: none;
  }
  .site-nav .theme-toggle {
    grid-area: toggle;
    justify-self: end;
  }
}

::selection { background: var(--hl); color: var(--hl-ink); }
body, .btn, .topics a, .theme-toggle, .nowbar, .site-nav, .site-footer {
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--text); color: var(--btn-primary-fg); }
.btn-ghost { border-color: var(--divider); color: var(--text); background: var(--surface-2); }
.btn-ghost:hover { border-color: var(--text-3); }
.art-body pre, .prose pre { background: var(--code-bg); }
html[data-theme="dark"] .marquee {
  border-top-color: var(--divider); border-bottom-color: var(--divider);
}
@media (max-width: 640px) {
  .theme-toggle { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  body, .btn, .topics a, .theme-toggle, .nowbar, .site-nav, .site-footer { transition: none; }
}

/* img layout 2026-07-17 */
/* 20260717083213 */


/* equal-width figures 2026-07-17T08:40:51.300549Z */
