@charset "UTF-8";
:root {
  --paper: #F8F7FA;
  --surface: #FFFFFF;
  --card: #FCFCFE;
  --summary: #F3EEFB;
  --ink: #414653;
  --heading: #55338B;
  --muted: #687080;
  --brand: #7B5AA8;
  --line: #E6DFF2;
  --card-line: #E9E0F4;
  --top-accent: #AC8BD5;
  --card-accent: #BEA7DF;
  --accent: #55338B;
  --accent-soft: #F3EEFB;
  --green: #247469;
  --green-soft: #EAF6F1;
  --blue: #326A9C;
  --blue-soft: #EAF3FC;
  --warm: #9A6028;
  --warm-soft: #FFF4E7;
  --sun: #E5AF51;
  --cloud: #FFFFFF;
  --cloud-line: #B6D0E1;
  --sky: #EAF3FC;
  --diagram: #EAF6F1;
  --code: #F5F6FA;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: var(--sans);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #19191D;
  --surface: #222227;
  --card: #26262D;
  --summary: #30303B;
  --ink: #E0E4EC;
  --heading: #D7C2F2;
  --muted: #B1BAC9;
  --brand: #C1A5E7;
  --line: #45424D;
  --card-line: #4B4555;
  --top-accent: #AC8BD5;
  --card-accent: #BEA7DF;
  --accent: #D7C2F2;
  --accent-soft: #30303B;
  --green: #9AD6C4;
  --green-soft: #203A35;
  --blue: #A4CCEE;
  --blue-soft: #23364A;
  --warm: #EDBD84;
  --warm-soft: #3A3028;
  --sun: #E8C28B;
  --cloud: #303D51;
  --cloud-line: #637892;
  --sky: #23364A;
  --diagram: #203A35;
  --code: #20252F;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--heading); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { border: 0; background: none; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 60; top: -100px; left: 20px; padding: 10px 18px; color: var(--surface); background: var(--ink); }
.skip-link:focus { top: 12px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.page-shell { width: calc(100% - 40px); max-width: 1184px; padding: 20px; margin: 24px auto 32px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--top-accent); border-radius: 12px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1184px; height: 92px; padding: 0 32px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { height: 42px; width: 42px; border-radius: 10px; background: var(--summary); color: var(--heading); border: 1px solid var(--line); font-family: var(--sans); font-size: 28px; font-weight: 700; line-height: 40px; text-align: center; letter-spacing: -1.5px; }
.brand-mark span { font-size: 28px; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-text strong { font-family: var(--sans); font-size: 25px; line-height: 1; letter-spacing: -1px; color: var(--heading); }
.brand-period, .footer-brand span { color: var(--accent); }
.brand-text small { font: 8px var(--mono); letter-spacing: 1.75px; color: var(--brand); }
.main-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.main-nav a { font-size: 13px; color: var(--muted); padding: 12px 0; }
.main-nav a.active { color: var(--ink); position: relative; }
.main-nav a.active:after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; background: var(--accent); }
.main-nav a:hover { color: var(--accent); }
.header-actions { display: flex; gap: 20px; align-items: center; margin-left: 24px; }
.search-shortcut { display: flex; align-items: center; gap: 9px; color: var(--muted); padding: 9px 0; font-size: 12px; }
.search-shortcut .icon { width: 17px; height: 17px; }
kbd { border: 1px solid var(--line); font: 11px var(--mono); line-height: 19px; min-width: 20px; text-align: center; border-radius: 4px; color: var(--muted); }
.search-shortcut kbd { margin-left: 5px; }
.action-divider { height: 20px; width: 1px; background: var(--line); }
.theme-button { display: flex; align-items: center; justify-content: center; height: 40px; width: 36px; border-radius: 6px; }
.theme-button:hover { background: var(--accent-soft); }
.theme-button .icon { width: 18px; height: 18px; }
.sun-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 35px; padding: 76px 0 72px; }
.eyebrow { font: 10px var(--mono); letter-spacing: 1.5px; color: var(--muted); margin: 0 0 22px; display: flex; align-items: center; gap: 9px; }
.tiny-dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex: none; }
.hero h1 { font-family: var(--serif); font-size: clamp(58px, 6.6vw, 80px); font-weight: normal; line-height: 1.07; letter-spacing: -4px; margin: 0 0 25px; }
.hero h1 em { color: var(--accent); font-weight: normal; }
.hero-description { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 0 0 28px; }
.hero-link, .read-link { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--accent); }
.hero-link { padding-bottom: 6px; border-bottom: 1px solid var(--accent); }
.hero-link .icon, .read-link .icon { width: 18px; height: 18px; transition: transform .2s; }
.hero-link:hover .icon, .feature-card:hover .read-link .icon { transform: translateX(4px); }
.hero-topics { display: flex; gap: 12px; color: var(--muted); margin-top: 36px; font: 10px var(--mono); letter-spacing: .45px; }
.meta-dot { color: var(--muted); }
.hero-art { position: relative; margin-top: 9px; width: 100%; padding: 22px 8px 20px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, var(--sky), var(--surface) 48%, var(--accent-soft)); }
.art-label { display: block; font: 9px var(--mono); color: var(--muted); letter-spacing: 1.7px; margin: 0 0 8px 26px; }
.notebook-diagram { display: block; width: 100%; }
.grid-stroke { stroke: var(--line); }
.diagram-lines { stroke: var(--muted); opacity: .45; }
.diagram-paper { fill: var(--paper); stroke: var(--line); }
.diagram-accent { fill: var(--accent); }
.why-label { fill: var(--surface); font: italic 23px var(--sans); }
.diagram-node rect { fill: var(--surface); stroke: var(--line); }
.diagram-node.storage rect { fill: var(--green-soft); }
.diagram-node.development rect { fill: var(--blue-soft); }
.diagram-node.storage .node-dot { fill: var(--green); }
.diagram-node.development .node-dot { fill: var(--blue); }
.node-index { fill: var(--muted); font: 8px var(--mono); }
.node-name { fill: var(--heading); font: 9px var(--mono); letter-spacing: .7px; }
.node-dot { fill: var(--accent); }
.coordinate-label { fill: var(--muted); font: 8px var(--mono); }
.registration-mark { stroke: var(--accent); stroke-width: 1.2; }
.art-footer { display: flex; align-items: center; justify-content: center; gap: 9px; font: 8px var(--mono); letter-spacing: 1.4px; color: var(--muted); margin-top: 13px; }
.art-footer .tiny-dot { width: 4px; height: 4px; }
.section-label { display: flex; justify-content: space-between; font: 9px var(--mono); letter-spacing: 1.2px; color: var(--muted); margin-bottom: 14px; }
.feature-card { display: grid; grid-template-columns: 1.32fr 1fr; background: var(--card); border: 1px solid var(--card-line); border-left: 3px solid var(--card-accent); border-radius: 10px; overflow: hidden; transition: border-color .2s; }
.feature-card:hover { border-color: var(--accent); }
.feature-copy { padding: 24px; }
.article-meta { font-size: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--muted); }
.topic-label { font-weight: 600; }
.topic-label.storage { color: var(--green); }
.topic-label.ai { color: var(--accent); }
.topic-label.development { color: var(--blue); }
.feature-copy h2 { font-family: var(--serif); font-size: 35px; line-height: 1.19; letter-spacing: -1.2px; font-weight: normal; margin: 18px 0 16px; }
.feature-copy p { font-size: 13px; color: var(--muted); max-width: 410px; line-height: 1.8; margin: 0 0 24px; }
.feature-art { background: var(--diagram); color: var(--green); padding: 22px 25px 19px; display: flex; flex-direction: column; justify-content: space-between; border-left: 1px solid var(--line); }
.feature-art-head, .feature-art-foot { display: flex; justify-content: space-between; font: 8px var(--mono); letter-spacing: 1px; }
.feature-art svg { width: 100%; max-height: 225px; margin: 3px 0; }
.feature-endpoint rect { fill: var(--diagram); stroke: currentColor; stroke-opacity: .6; }
.feature-core { fill: var(--surface); stroke: currentColor; stroke-opacity: .6; }
.feature-core-title { fill: currentColor; font: 13px var(--mono); letter-spacing: 2px; }
.feature-core-sub { fill: currentColor; font: 10px var(--mono); opacity: .8; }
.feature-caption { fill: currentColor; font: 8px var(--mono); letter-spacing: 1px; }
.feature-art-foot { font-size: 8px; letter-spacing: .2px; opacity: .85; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 58px; margin: 68px 0 56px; align-items: start; }
.index-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.index-heading .eyebrow { margin-bottom: 11px; }
.index-heading h2 { font: normal 42px/1.2 var(--serif); letter-spacing: -1.6px; margin: 0; }
.index-heading h2 span { color: var(--accent); }
.article-count { color: var(--heading); font: 10px var(--mono); padding-bottom: 5px; white-space: nowrap; }
.starter-caption { color: var(--muted); font-size: 11px; margin: 13px 0 25px; }
.filter-bar { display: flex; align-items: center; gap: 5px; border-bottom: 1px solid var(--line); padding-bottom: 15px; flex-wrap: wrap; }
.filter-bar button { font-size: 10px; padding: 9px 11px; border-radius: 5px; color: var(--muted); white-space: nowrap; border: 1px solid transparent; }
.filter-bar button span { font: 8px var(--mono); color: var(--heading); margin-left: 6px; }
.filter-bar button[aria-pressed="true"] { color: var(--heading); background: var(--summary); border-color: var(--card-accent); }
.filter-bar button:hover:not([aria-pressed="true"]) { color: var(--accent); background: var(--accent-soft); }
.search-field { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 6px; padding: 0 13px; margin: 19px 0 6px; height: 45px; color: var(--muted); }
.search-field:focus-within { border-color: var(--accent); }
.search-field .icon { height: 16px; width: 16px; }
.search-field input { width: 100%; min-width: 0; height: 100%; border: 0; color: var(--ink); background: transparent; outline: 0; font-size: 12px; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-field kbd { flex: none; }
.article-list { margin-top: 12px; }
.article-row { display: grid; grid-template-columns: 76px minmax(0,1fr) 27px; gap: 21px; background: var(--card); border: 1px solid var(--card-line); border-left: 3px solid var(--card-accent); border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.row-art { height: 81px; border-radius: 7px; position: relative; border: 1px solid transparent; display: flex; align-items: center; justify-content: center; }
.row-art:hover { border-color: currentColor; }
.row-art.storage { background: var(--green-soft); color: var(--green); }
.row-art.ai { background: var(--accent-soft); color: var(--accent); }
.row-art.development { background: var(--blue-soft); color: var(--blue); }
.row-art svg { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; width: 67px; height: 67px; }
.row-art span { position: absolute; bottom: 6px; left: 8px; font: 7px var(--mono); }
.row-body h3 { margin: 8px 0 8px; font: normal 22px/1.3 var(--serif); letter-spacing: -.5px; }
.row-body h3 a:hover { color: var(--accent); }
.row-body p { margin: 0 0 13px; font-size: 12px; color: var(--muted); line-height: 1.75; }
.row-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.row-tags span { font: 8px var(--mono); color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 4px 6px; border-radius: 4px; }
.row-arrow { color: var(--muted); align-self: center; width: 27px; height: 30px; display: flex; justify-content: center; align-items: center; }
.row-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }
.row-arrow:hover { color: var(--accent); }
.row-arrow:hover .icon { transform: translate(2px,-2px); }
.sidebar { padding-top: 3px; }
.notifications-bar { position: sticky; top: 0; z-index: 40; background: var(--surface); border-top: 2px solid var(--top-accent); border-bottom: 1px solid var(--line); box-shadow: 0 2px 8px color-mix(in srgb,var(--ink) 3%,transparent); }
.notifications-inner { max-width: 1184px; height: 32px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.notification-context { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.notification-context-label { flex: none; color: var(--brand); font-size: 9px; letter-spacing: .4px; }
.notification-page-title { color: var(--heading); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-divider { flex: none; height: 12px; width: 1px; background: var(--line); }
.notification-weather { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 45%; }
.weather-ticker-slides { display: flex; align-items: center; gap: 10px; min-width: 0; }
.weather-slide { min-width: 0; perspective: 240px; }
.weather-slide-main { display: flex; align-items: center; gap: 6px; white-space: nowrap; min-width: 0; min-height: 18px; backface-visibility: hidden; transform-origin: center; }
[data-weather-flip="out"] .weather-slide:not([hidden]) .weather-slide-main { animation: weather-flip-out 180ms ease-in both; }
[data-weather-flip="in"] .weather-slide:not([hidden]) .weather-slide-main { animation: weather-flip-in 180ms ease-out both; }
@keyframes weather-flip-out { from { transform: rotateX(0deg); } to { transform: rotateX(-90deg); } }
@keyframes weather-flip-in { from { transform: rotateX(90deg); } to { transform: rotateX(0deg); } }
.weather-city, .weather-temperature { flex: none; color: var(--heading); font-size: 11px; font-weight: 500; white-space: nowrap; }
.weather-city:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.weather-temperature { font-variant-numeric: tabular-nums; }
.weather-description, .weather-status { color: var(--muted); font-size: 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-weather-state="ok"] .weather-status { display: none; }
[data-weather-state="stale"] .weather-status { color: var(--warm); }
.weather-source { flex: none; color: var(--brand); font: 9px var(--mono); }
.weather-source:hover { color: var(--heading); }
.weather-no-script { color: var(--muted); font-size: 10px; }
@media (max-width: 780px) {
  .notifications-inner { padding-right: 24px; padding-left: 24px; gap: 12px; }
}
@media (max-width: 560px) {
  .notifications-inner { padding: 0 12px; gap: 8px; }
  .notification-context { gap: 6px; }
  .notification-context-label { display: none; }
  .notification-page-title { font-size: 10px; }
  .notification-weather { gap: 7px; max-width: 54%; }
  .weather-source { font-size: 8px; }
  .weather-slide-main { gap: 4px; }
  .weather-ticker-slides { gap: 6px; }
}
.topic-directory .section-label { padding: 0 0 18px; border-bottom: 1px solid var(--line); margin: 0; }
.topic-link { display: flex; align-items: start; gap: 13px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.topic-number { font: 9px var(--mono); color: var(--accent); padding-top: 4px; }
.topic-link strong { font-size: 12px; font-weight: 600; color: var(--heading); }
.topic-link p { font-size: 11px; line-height: 1.75; color: var(--muted); margin: 6px 0 0; }
.topic-link .icon { margin-left: auto; margin-top: 3px; height: 15px; width: 15px; color: var(--muted); }
.topic-link:hover strong, .topic-link:hover .icon { color: var(--accent); }
.about-card { background: var(--warm-soft); border: 1px solid var(--card-line); border-left: 3px solid var(--sun); border-radius: 10px; margin-top: 31px; padding: 16px; }
.about-top { display: flex; align-items: center; gap: 12px; }
.avatar { background: var(--surface); color: var(--accent); border: 1px solid color-mix(in srgb,var(--accent) 20%,transparent); width: 37px; height: 37px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: italic 20px var(--serif); flex: none; }
.about-caption { color: var(--brand); font: 7px var(--mono); letter-spacing: 1px; }
.about-card h3 { font: normal 26px var(--serif); letter-spacing: -.8px; margin: 21px 0 13px; }
.about-card h3 span { color: var(--accent); }
.about-card p { color: var(--muted); font-size: 12px; line-height: 1.85; margin: 0 0 19px; }
.about-card .about-signoff { color: var(--ink); font-size: 11px; }
.handwritten { display: inline-block; color: var(--accent); font: italic 25px var(--serif); transform: rotate(-5deg); margin-top: 4px; }
.sidebar-foot { display: flex; align-items: start; gap: 10px; padding: 23px 4px; }
.sidebar-foot .tiny-dot { margin-top: 5px; width: 4px; height: 4px; }
.sidebar-foot p { font: 9px/1.8 var(--mono); color: var(--muted); margin: 0; }
.end-note { display: flex; justify-content: center; text-align: center; align-items: center; gap: 10px; font: 8px/1.7 var(--mono); color: var(--muted); margin: 27px 0 0; }
.empty-state { text-align: center; padding: 58px 16px; border-bottom: 1px solid var(--line); }
.empty-state > span { font-size: 35px; color: var(--accent); }
.empty-state h3 { font: normal 28px var(--serif); margin: 8px 0; }
.empty-state p { font-size: 13px; color: var(--muted); }
.empty-state button { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font-size: 12px; padding: 8px; }
.no-script { font-size: 12px; color: var(--muted); }
.closing-note { border-top: 1px solid var(--line); padding: 46px 0 54px; display: flex; align-items: center; gap: 27px; }
.closing-symbol { color: var(--warm); flex: none; }
.closing-symbol svg { display: block; width: 58px; height: 58px; }
.closing-note .eyebrow { margin-bottom: 12px; font-size: 8px; }
.closing-note h2 { font: normal 30px/1.3 var(--serif); letter-spacing: -.8px; margin: 0; }
.closing-note > p { margin: 0 0 0 auto; color: var(--muted); font: 10px/2.1 var(--mono); padding-right: 30px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: 1184px; padding: 30px 32px; margin: 0 auto; display: flex; align-items: center; gap: 27px; }
.footer-brand { font: bold 26px var(--serif); letter-spacing: -1.2px; }
.footer-inner > p { font-size: 10px; color: var(--muted); }
.footer-inner > div { margin-left: auto; display: flex; gap: 24px; align-items: center; font: 9px var(--mono); color: var(--muted); }
.footer-inner > div a { display: flex; gap: 7px; align-items: center; }
.footer-inner .icon { height: 13px; width: 13px; }
.footer-inner a:hover { color: var(--accent); }
.article-shell { padding-top: 40px; padding-bottom: 75px; }
.back-link { font-size: 12px; color: var(--muted); display: inline-block; margin: 0 0 44px; }
.back-link:hover { color: var(--accent); }
.reading-layout { display: grid; grid-template-columns: minmax(0,760px) 230px; gap: 75px; }
.article-header { padding-bottom: 31px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.article-header .article-meta { font-size: 11px; }
.starter-badge { font: 8px var(--mono); color: var(--muted); border: 1px solid var(--line); padding: 4px 7px; border-radius: 4px; margin-left: auto; }
.article-header h1 { font: normal 52px/1.14 var(--serif); letter-spacing: -1.9px; margin: 24px 0 21px; max-width: 710px; }
.article-deck { font-size: 17px; line-height: 1.75; color: var(--ink); background: var(--summary); border: 1px solid var(--card-line); border-left: 3px solid var(--card-accent); border-radius: 10px; padding: 16px; margin: 0 0 26px; }
.article-byline { display: flex; align-items: center; gap: 11px; }
.small-avatar { width: 32px; height: 32px; font-size: 17px; }
.article-byline > div { display: flex; flex-direction: column; gap: 2px; }
.article-byline strong { font-size: 10px; font-weight: 600; }
.article-byline > div > span { font: 8px var(--mono); color: var(--muted); }
.article-prose { font-size: 16px; line-height: 1.85; }
.article-prose section { background: var(--card); border: 1px solid var(--card-line); border-left: 3px solid var(--card-accent); border-radius: 10px; padding: 16px; margin-bottom: 12px; scroll-margin-top: 30px; }
.article-prose h2 { font: normal 28px/1.3 var(--serif); letter-spacing: -.6px; margin: 0 0 16px; }
.article-prose p { margin: 0 0 18px; }
.article-prose ol { padding-left: 22px; }
.article-prose li { padding-left: 5px; margin: 10px 0; }
.article-prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.article-prose code { background: var(--accent-soft); padding: 2px 5px; border-radius: 3px; font: 13px var(--mono); color: var(--accent); }
.article-prose table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 13px; line-height: 1.7; }
.article-prose th { background: var(--diagram); font-weight: 600; text-align: left; }
.article-prose td, .article-prose th { padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
.article-prose td:first-child { width: 33%; }
.article-prose .reference { font-size: 12px; color: var(--muted); line-height: 1.8; padding-top: 13px; }
.callout { padding: 16px; background: var(--summary); border: 1px solid var(--card-line); border-left: 3px solid var(--card-accent); margin: 16px 0; border-radius: 10px; }
.callout > strong { font-size: 11px; color: var(--green); }
.callout p { font-size: 14px; line-height: 1.8; margin: 8px 0 0; }
.code-block { margin: 24px 0 29px; background: var(--code); border: 1px solid var(--card-line); border-radius: 10px; color: var(--ink); overflow: hidden; }
.code-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 11px 18px; background: var(--card); border-bottom: 1px solid var(--card-line); font: 9px var(--mono); color: var(--muted); }
.code-toolbar button { font: 9px var(--mono); color: var(--heading); background: var(--surface); padding: 6px 9px; border: 1px solid var(--card-accent); border-radius: 4px; flex: none; }
.code-toolbar button:hover { background: var(--accent-soft); }
.code-block pre { padding: 23px 24px; margin: 0; overflow-x: auto; max-width: 100%; tab-size: 4; }
.code-block pre code { background: none; padding: 0; color: var(--ink); font: 12px/1.85 var(--mono); border-radius: 0; }
.article-end { border-top: 1px solid var(--line); padding-top: 22px; }
.article-end .row-tags span { font-size: 9px; }
.article-end p { font-size: 11px; color: var(--muted); margin-top: 20px; }
.next-note { display: grid; grid-template-columns: 1fr 30px; gap: 12px; padding: 27px; margin-top: 34px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.next-note > span { font: 8px var(--mono); color: var(--accent); letter-spacing: .7px; grid-column: 1 / -1; }
.next-note > strong { font: normal 24px/1.3 var(--serif); }
.next-note .icon { align-self: center; }
.next-note:hover { border-color: var(--accent); }
.reading-sidebar { position: sticky; top: 64px; }
.toc { padding-top: 4px; }
.toc .eyebrow { font-size: 9px; margin: 0 0 19px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.toc > a { display: flex; align-items: start; gap: 10px; font-size: 11px; color: var(--muted); margin: 0 0 19px; line-height: 1.7; }
.toc > a > span { font: 8px/2.3 var(--mono); color: var(--accent); flex: none; }
.toc > a:hover { color: var(--accent); }
.reading-aside-note { display: flex; gap: 9px; margin-top: 30px; padding-top: 23px; border-top: 1px solid var(--line); }
.reading-aside-note .tiny-dot { width: 4px; height: 4px; margin-top: 5px; }
.reading-aside-note p { font: 8px/1.9 var(--mono); color: var(--muted); margin: 0; }

/* Secondary colors add breathing room around the purple brand. */
.hero-topics span:first-child { color: var(--green); }
.hero-topics span:last-child { color: var(--blue); }
.article-row[data-topic="storage"] { border-left-color: color-mix(in srgb, var(--green) 55%, var(--surface)); }
.article-row[data-topic="development"] { border-left-color: color-mix(in srgb, var(--blue) 55%, var(--surface)); }
.topic-link[data-topic-link="storage"] .topic-number { color: var(--green); }
.topic-link[data-topic-link="development"] .topic-number { color: var(--blue); }
.filter-bar button[data-filter="storage"][aria-pressed="true"] { color: var(--green); background: var(--green-soft); border-color: var(--green); }
.filter-bar button[data-filter="development"][aria-pressed="true"] { color: var(--blue); background: var(--blue-soft); border-color: var(--blue); }
.article-prose section:nth-child(even) { background: var(--surface); border-left-color: color-mix(in srgb, var(--blue) 45%, var(--surface)); }
.callout { background: var(--blue-soft); border-left-color: var(--blue); }
.callout > strong { color: var(--blue); }
.about-sky { margin-left: auto; color: var(--warm); width: 34px; height: 34px; }
.about-sky svg { width: 100%; height: 100%; }
.weather-sun { fill: var(--sun); }
.weather-rays { stroke: var(--sun); stroke-width: 1.8; stroke-linecap: round; fill: none; }
.weather-cloud { fill: var(--cloud); stroke: var(--cloud-line); stroke-width: 1.2; }
.weather-wind { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linecap: round; opacity: .65; }
.weather-night { display: none; fill: var(--sun); }
[data-theme="dark"] .weather-day { display: none; }
[data-theme="dark"] .weather-night { display: inline; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1.2fr 1fr; gap: 15px; padding: 60px 0; }
  .hero h1 { font-size: 66px; letter-spacing: -3px; }
  .hero-description { font-size: 14px; }
  .feature-copy { padding: 31px; }
  .feature-copy h2 { font-size: 31px; }
  .content-layout { grid-template-columns: minmax(0,1fr) 250px; gap: 35px; }
  .article-row { grid-template-columns: 61px minmax(0,1fr) 22px; gap: 17px; }
  .row-art { height: 68px; }
  .row-art svg { width: 58px; height: 58px; }
  .row-body h3 { font-size: 20px; }
  .filter-bar { gap: 2px; }
  .filter-bar button { padding: 8px; font-size: 9px; }
  .reading-layout { grid-template-columns: minmax(0,1fr) 195px; gap: 40px; }
  .article-header h1 { font-size: 44px; }
}
@media (max-width: 780px) {
  .header-inner { height: 78px; gap: 22px; }
  .main-nav { gap: 22px; }
  .header-actions { margin-left: 0; gap: 10px; }
  .search-shortcut span, .search-shortcut kbd, .action-divider { display: none; }
  .hero h1 { font-size: 57px; letter-spacing: -2.7px; }
  .hero-description { font-size: 13px; }
  .desktop-break { display: none; }
  .hero-topics { margin-top: 29px; font-size: 8px; gap: 9px; }
  .hero .eyebrow { font-size: 8px; letter-spacing: .9px; }
  .art-label, .art-footer { font-size: 6px; letter-spacing: .8px; }
  .feature-card { grid-template-columns: 1.2fr 1fr; }
  .feature-copy { padding: 27px; }
  .feature-copy h2 { font-size: 28px; }
  .feature-copy p { font-size: 12px; }
  .feature-art { padding: 18px; }
  .feature-art-head { font-size: 6px; }
  .feature-art svg { min-height: 185px; }
  .content-layout { grid-template-columns: minmax(0,1fr); margin-top: 52px; gap: 45px; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-card { margin-top: 0; }
  .sidebar-foot { grid-column: 1 / -1; padding: 0; }
  .article-row { grid-template-columns: 76px minmax(0,1fr) 27px; gap: 21px; }
  .row-art { height: 81px; }
  .row-body h3 { font-size: 24px; }
  .row-body p { font-size: 13px; }
  .filter-bar { gap: 8px; }
  .filter-bar button { padding: 9px 12px; font-size: 10px; }
  .closing-note > p { padding-right: 0; font-size: 8px; }
  .closing-note h2 { font-size: 26px; }
  .footer-inner { flex-wrap: wrap; gap: 15px 20px; }
  .footer-inner > div { gap: 18px; }
  .reading-layout { display: flex; flex-direction: column; gap: 0; }
  .reading-sidebar { position: static; order: -1; margin-bottom: 30px; }
  .toc { display: flex; flex-wrap: wrap; gap: 8px 20px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .toc .eyebrow { flex-basis: 100%; padding-bottom: 0; border: 0; margin-bottom: 7px; }
  .toc > a { font-size: 10px; margin: 0; }
  .reading-aside-note { display: none; }
  .back-link { margin-bottom: 27px; }
  .article-header h1 { font-size: 46px; }
}
@media (max-width: 560px) {
  .page-shell, .header-inner, .footer-inner { padding-left: 22px; padding-right: 22px; }
  .page-shell { width: calc(100% - 24px); padding: 16px; margin: 16px auto 24px; }
  .header-inner { flex-wrap: wrap; height: auto; min-height: 93px; padding-top: 18px; padding-bottom: 12px; gap: 14px 10px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 8px; font-size: 24px; line-height: 32px; }
  .brand-mark span { font-size: 23px; }
  .brand-text strong { font-size: 22px; }
  .brand-text small { font-size: 6px; letter-spacing: 1.3px; }
  .brand { gap: 9px; }
  .header-actions { margin-left: auto; }
  .main-nav { order: 3; flex-basis: 100%; justify-content: center; gap: 33px; margin: 0; }
  .main-nav a { padding: 4px 0; font-size: 11px; }
  .main-nav a.active:after { bottom: -3px; }
  .hero { display: block; padding: 44px 0 40px; }
  .hero h1 { font-size: clamp(48px,12vw,64px); line-height: 1.09; letter-spacing: -2.6px; margin-bottom: 20px; }
  .hero .eyebrow { font-size: 8px; letter-spacing: 1px; margin-bottom: 20px; }
  .hero-description { font-size: 14px; max-width: 355px; margin-bottom: 23px; }
  .hero-link { font-size: 12px; }
  .hero-topics { font-size: 9px; margin-top: 25px; }
  .hero-art { margin: 36px auto 0; max-width: 360px; }
  .art-label { font-size: 7px; margin-bottom: 0; }
  .art-footer { margin-top: 4px; font-size: 6px; }
  .section-label { font-size: 7px; letter-spacing: .9px; }
  .feature-card { display: flex; flex-direction: column; }
  .feature-copy { padding: 27px 24px; }
  .feature-copy h2 { font-size: 30px; }
  .feature-copy p { font-size: 12px; }
  .feature-art { border-left: 0; border-top: 1px solid var(--line); padding: 15px 23px; }
  .feature-art svg { min-height: 0; height: 185px; }
  .feature-art-head { font-size: 7px; }
  .feature-art-foot { font-size: 7px; }
  .content-layout { margin-top: 42px; margin-bottom: 35px; }
  .index-heading h2 { font-size: 37px; }
  .index-heading .eyebrow { font-size: 8px; }
  .starter-caption { font-size: 10px; margin-bottom: 20px; }
  .filter-bar { gap: 3px; padding-bottom: 12px; }
  .filter-bar button { font-size: 9px; padding: 8px; }
  .filter-bar button span { margin-left: 3px; }
  .search-field { height: 44px; }
  .article-row { grid-template-columns: 53px minmax(0,1fr); gap: 15px; padding: 16px; }
  .row-art { height: 61px; border-radius: 5px; }
  .row-art svg { height: 48px; width: 48px; }
  .row-art span { font-size: 6px; bottom: 4px; left: 6px; }
  .row-arrow { display: none; }
  .row-body h3 { font-size: 22px; letter-spacing: -.55px; }
  .row-body p { font-size: 11px; margin-bottom: 12px; }
  .article-meta { font-size: 9px; gap: 7px; }
  .row-tags { gap: 5px; }
  .row-tags span { font-size: 7px; padding: 4px 5px; }
  .end-note { font-size: 7px; gap: 6px; }
  .end-note > span { display: none; }
  .sidebar { display: block; }
  .topic-directory .section-label { font-size: 9px; }
  .topic-link { padding: 19px 0; }
  .topic-link strong { font-size: 13px; }
  .topic-link p { font-size: 12px; }
  .about-card { margin-top: 27px; }
  .about-card h3 { font-size: 30px; }
  .about-card p { font-size: 13px; }
  .sidebar-foot { margin-top: 25px; }
  .closing-note { padding-top: 33px; padding-bottom: 37px; align-items: start; gap: 20px; flex-wrap: wrap; }
  .closing-symbol svg { width: 40px; height: 40px; }
  .closing-note h2 { font-size: 26px; }
  .closing-note > p { margin-left: 48px; font-size: 9px; }
  .footer-inner { padding-top: 23px; padding-bottom: 25px; gap: 9px 17px; }
  .footer-inner > p { font-size: 9px; }
  .footer-inner > div { flex-basis: 100%; margin-left: 0; justify-content: space-between; padding-top: 12px; font-size: 8px; }
  .article-shell { padding-top: 27px; padding-bottom: 50px; }
  .article-header h1 { font-size: 37px; letter-spacing: -1.3px; }
  .article-header .article-meta { font-size: 9px; gap: 8px; }
  .starter-badge { font-size: 7px; margin-left: 0; }
  .article-deck { font-size: 15px; }
  .article-prose { font-size: 15px; line-height: 1.85; }
  .article-prose h2 { font-size: 26px; }
  .article-prose table { font-size: 11px; }
  .article-prose td, .article-prose th { padding: 10px; overflow-wrap: anywhere; }
  .code-toolbar { padding: 10px 13px; font-size: 8px; }
  .code-toolbar > span { overflow-wrap: anywhere; }
  .code-block pre { padding: 18px; }
  .code-block pre code { font-size: 11px; }
  .callout { padding: 18px 20px; }
  .next-note { padding: 23px; }
  .next-note > strong { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
}

/* Recursion call-stack explainer; shares the site's light and dark tokens. */
.recursion-demo { margin: 22px 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.recursion-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.recursion-heading h3 { margin: 0; font-size: 17px; font-weight: 600; }
.recursion-phase { padding: 2px 9px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); font-size: 13px; }
.recursion-control { display: grid; gap: 4px; font-size: 14px; }
.recursion-control output { margin-left: 8px; font-variant-numeric: tabular-nums; color: var(--muted); }
.recursion-control input { display: block; width: 100%; min-width: 0; min-height: 44px; margin: 0; accent-color: var(--accent); }
.recursion-stack-label { margin: 8px 0; font-size: 12px; color: var(--muted); }
.recursion-frames { display: grid; gap: 6px; }
.recursion-frame { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; padding: 10px 12px; border-left: 3px solid var(--line); background: var(--code); font-size: 13px; }
.recursion-frame.is-current { background: var(--accent-soft); border-left-color: var(--accent); }
.recursion-frame span { color: var(--ink); }
.recursion-detail { margin-top: 14px; font-size: 14px; overflow-wrap: anywhere; }
.article-prose .recursion-summary { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
