@charset "UTF-8";
:root {
  --paper: #F7F4FC;
  --surface: #FFFFFF;
  --card: #FFFFFF;
  --summary: #F3EEFB;
  --ink: #30343D;
  --heading: #55338B;
  --muted: #626773;
  --brand: #7B5AA8;
  --line: #E5E3EB;
  --card-line: #E5E3EB;
  --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;
  --word-danger: #A13D50;
  --word-danger-soft: #FFF0F3;
  --sun: #E5AF51;
  --cloud: #FFFFFF;
  --cloud-line: #B6D0E1;
  --sky: #EAF3FC;
  --diagram: #EAF6F1;
  --code: #F5F6FA;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --serif: var(--sans);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

/* Accounts and the owner-only monitor use the blog's existing semantic colors. */
.site-account, .account-signed { display: flex; align-items: center; gap: 10px; }
.site-account { font-size: 12px; }
.account-signin, .account-monitor { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 38px; padding: 7px 12px; border: 1px solid var(--card-accent); border-radius: 7px; color: var(--accent); background: var(--accent-soft); font-weight: 700; white-space: nowrap; }
.account-monitor { color: var(--blue); border-color: var(--line); background: var(--blue-soft); }
.account-name { display: block; max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.account-signout { padding: 10px 0; color: var(--muted); }
.visit-notice { max-width: 1120px; margin: 16px auto 0; padding: 0 24px 18px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.visit-notice summary { cursor: pointer; }
.visit-notice p { max-width: 760px; margin: 7px 0 0; }
.checkin-mode { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 20px; background: var(--green-soft); color: var(--green); }
.checkin-account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; font-size: 13px; }
.checkin-signin, .checkin-import { display: inline-block; padding: 9px 12px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--line); border-radius: 7px; font-weight: 650; }
.checkin-import:disabled { opacity: .6; cursor: wait; }
.monitor-shell { padding-top: 36px; padding-bottom: 64px; }
.monitor-heading { margin-bottom: 28px; }
.monitor-heading h1 { font-size: clamp(30px,4vw,44px); letter-spacing: -.035em; margin: 12px 0; line-height: 1.25; }
.monitor-heading h1 span { color: var(--brand); }
.monitor-heading > p:last-child { color: var(--muted); margin: 0; font-size: 14px; }
.monitor-owner-badge { display: inline-block; padding: 5px 10px; border-radius: 20px; background: var(--green-soft); color: var(--green); font-size: 11px; letter-spacing: 0; margin-right: 10px; }
.monitor-filters { display: grid; grid-template-columns: 1fr 1fr 2fr auto; gap: 12px; align-items: end; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.monitor-filters label { display: grid; gap: 7px; min-width: 0; font-size: 12px; font-weight: 650; color: var(--muted); }
.monitor-filters select { min-width: 0; width: 100%; min-height: 42px; font: inherit; font-size: 13px; padding: 8px 10px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.monitor-refresh { min-height: 42px; padding: 10px 16px; border-radius: 7px; background: var(--accent); color: var(--surface); font-size: 13px; font-weight: 700; }
.monitor-status { min-height: 22px; margin: 12px 0 20px; color: var(--muted); font-size: 12px; }
.monitor-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.monitor-stat { border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 10px; padding: 20px; background: var(--accent-soft); min-width: 0; }
.monitor-stat h2 { font-size: 13px; margin: 0 0 14px; }
.monitor-stat > strong { display: block; color: var(--heading); font-size: 34px; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.monitor-stat p { font-size: 11px; color: var(--muted); margin: 10px 0 0; }
.stat-blue { background: var(--blue-soft); border-top-color: var(--blue); }
.stat-blue h2, .stat-blue > strong { color: var(--blue); }
.stat-green { background: var(--green-soft); border-top-color: var(--green); }
.stat-green h2, .stat-green > strong { color: var(--green); }
.stat-warm { background: var(--warm-soft); border-top-color: var(--warm); }
.stat-warm h2, .stat-warm > strong { color: var(--warm); }
.stat-warm > strong { font-size: 17px; line-height: 1.7; }
.monitor-distribution { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; margin-bottom: 22px; }
.monitor-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.monitor-card h2 { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; font-size: 17px; margin: 0 0 20px; }
.monitor-card h2 small { font-size: 11px; color: var(--muted); font-weight: 400; }
.monitor-bars, .monitor-top-pages { padding: 0; margin: 0; list-style: none; font-size: 13px; }
.monitor-bars li { margin: 0 0 16px; }
.monitor-bars li > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.monitor-bars strong { color: var(--blue); font-variant-numeric: tabular-nums; }
.monitor-bar-track { background: var(--blue-soft); height: 6px; border-radius: 5px; overflow: hidden; }
.monitor-bar-track span { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.monitor-top-pages li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.monitor-top-pages li:first-child { padding-top: 0; }
.monitor-top-pages li:last-child { border-bottom: 0; }
.monitor-top-pages a { overflow-wrap: anywhere; }
.monitor-top-pages strong { white-space: nowrap; color: var(--green); font-variant-numeric: tabular-nums; }
.monitor-table-wrap { overflow: auto; max-height: 540px; }
.monitor-history table { width: 100%; min-width: 700px; border-collapse: collapse; text-align: left; font-size: 12px; }
.monitor-history th { padding: 12px; background: var(--summary); color: var(--heading); font-size: 11px; position: sticky; top: 0; }
.monitor-history td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.monitor-history time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.monitor-history small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; overflow-wrap: anywhere; }
.monitor-history td a { font-weight: 650; }
.monitor-history details summary { cursor: pointer; color: var(--accent); }
.monitor-history code { display: block; margin-top: 8px; font-size: 11px; overflow-wrap: anywhere; }
.monitor-explanation { margin-top: 22px; padding: 18px 22px; background: var(--warm-soft); border-left: 3px solid var(--warm); border-radius: 7px; font-size: 12px; line-height: 1.9; color: var(--muted); }
.monitor-explanation strong { color: var(--warm); }
.monitor-explanation p { margin: 6px 0 0; }
@media (max-width: 1000px) { .account-name { display: none; } .site-account { gap: 7px; } .monitor-filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .account-signin, .account-monitor { padding: 7px 9px; min-height: 36px; } .monitor-shell { padding-top: 24px; } .monitor-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .monitor-stat { padding: 16px; } .monitor-distribution { grid-template-columns: 1fr; } .monitor-filters, .monitor-card { padding: 16px; } .monitor-filters { grid-template-columns: 1fr; } .monitor-refresh { width: 100%; } .monitor-history table { min-width: 650px; } }
:root[data-theme="dark"] {
  --paper: #19191D;
  --surface: #222227;
  --card: #222227;
  --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;
  --word-danger: #F4ADB9;
  --word-danger-soft: #3D2830;
  --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% - 48px); max-width: 1184px; padding: 32px; margin: 24px auto 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1184px; height: 76px; padding: 0 32px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { height: 38px; width: 38px; border-radius: 9px; background: var(--summary); color: var(--heading); border: 1px solid var(--line); font-family: var(--sans); font-size: 26px; font-weight: 700; line-height: 36px; text-align: center; letter-spacing: -1px; }
.brand-mark span { font-size: 28px; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-text strong { font-family: var(--sans); font-size: 24px; line-height: 1; letter-spacing: -.7px; color: var(--heading); }
.brand-period, .footer-brand span { color: var(--accent); }
.brand-text small { font: 9px var(--mono); letter-spacing: 1.1px; color: var(--brand); }
.main-nav { display: flex; align-items: center; gap: 28px; 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: 16px; align-items: center; margin-left: 12px; }
.search-shortcut { display: flex; align-items: center; gap: 9px; color: var(--muted); padding: 9px 0; min-height: 40px; 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: 44px; width: 40px; 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: minmax(0,1fr) 240px; align-items: center; gap: 48px; padding: 20px 0 40px; }
.hero-copy { min-width: 0; }
.eyebrow { font: 10px var(--mono); letter-spacing: 1.1px; color: var(--muted); margin: 0 0 16px; 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(38px, 4vw, 54px); font-weight: 650; line-height: 1.14; letter-spacing: -.035em; margin: 0 0 18px; overflow-wrap: anywhere; }
.hero h1 em { color: var(--accent); font-weight: inherit; font-style: normal; }
.hero-description { color: var(--muted); font-size: 15px; line-height: 1.75; margin: 0 0 18px; }
.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; flex-wrap: wrap; gap: 10px; color: var(--muted); margin-top: 22px; font: 10px var(--mono); letter-spacing: .25px; }
.meta-dot { color: var(--muted); }
.hero-art { position: relative; margin: 0; width: 100%; padding: 12px 0; background: var(--surface); }
.art-label { display: block; font: 8px var(--mono); color: var(--muted); letter-spacing: .5px; margin: 0 0 6px; text-align: center; }
.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, .diagram-node.development rect { fill: var(--surface); }
.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: 6px; font: 7px var(--mono); letter-spacing: .25px; color: var(--muted); margin-top: 8px; }
.art-footer .tiny-dot { width: 4px; height: 4px; }
.section-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font: 10px var(--mono); letter-spacing: .8px; color: var(--muted); margin-bottom: 14px; }
.feature-card { display: grid; grid-template-columns: minmax(0,1fr) 240px; align-items: center; background: var(--card); border: 1px solid var(--card-line); border-radius: 9px; overflow: hidden; transition: border-color .2s; }
.feature-card:hover { border-color: var(--accent); }
.feature-copy { padding: 24px 28px; min-width: 0; }
.article-meta { font-size: 11px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; 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); }
.topic-label.english { color: var(--warm); }
.feature-copy h2 { font-family: var(--serif); font-size: 28px; line-height: 1.3; letter-spacing: -.025em; font-weight: 600; margin: 12px 0; overflow-wrap: anywhere; }
.feature-copy p { font-size: 14px; color: var(--muted); max-width: 560px; line-height: 1.75; margin: 0 0 18px; }
.feature-art { background: var(--surface); color: var(--green); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.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: 160px; margin: 8px 0; }
.feature-endpoint rect { fill: var(--surface); 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) 244px; gap: 48px; margin: 44px 0 48px; align-items: start; }
.article-index, .row-body, .sidebar, .reading-article { min-width: 0; }
.index-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.index-heading .eyebrow { margin-bottom: 11px; }
.index-heading h2 { font: 650 32px/1.3 var(--serif); letter-spacing: -.025em; margin: 0; }
.index-heading h2 span { color: var(--accent); }
.article-count { color: var(--muted); font: 11px var(--mono); padding-bottom: 5px; white-space: nowrap; }
.starter-caption { color: var(--muted); font-size: 13px; margin: 10px 0 20px; }
.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: 12px; padding: 9px 11px; min-height: 40px; border-radius: 5px; color: var(--muted); white-space: nowrap; border: 1px solid transparent; }
.filter-bar button span { font: 10px 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: 18px 0 6px; height: 46px; 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: 14px; }
.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: 48px minmax(0,1fr) 24px; gap: 18px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 24px 0; margin: 0; }
.row-art { height: 48px; border-radius: 6px; position: relative; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; margin-top: 3px; }
.row-art:hover { border-color: currentColor; }
.row-art.storage { background: var(--surface); color: var(--green); }
.row-art.ai { background: var(--surface); color: var(--accent); }
.row-art.development { background: var(--surface); color: var(--blue); }
.row-art.english { background: var(--warm-soft); color: var(--warm); }
.row-art svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; width: 40px; height: 40px; }
.row-art span { display: none; }
.row-body h3 { margin: 8px 0 10px; font: 600 23px/1.4 var(--serif); letter-spacing: -.015em; overflow-wrap: anywhere; }
.row-body h3 a:hover { color: var(--accent); }
.row-body p { margin: 0 0 13px; font-size: 14px; color: var(--muted); line-height: 1.8; overflow-wrap: anywhere; }
.row-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.row-tags span { font: 10px/1.5 var(--mono); color: var(--muted); background: var(--surface); padding: 2px 0; overflow-wrap: anywhere; }
.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); }
.notifications-inner { max-width: 1184px; height: 32px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: minmax(0,1fr) 1px 300px; align-items: center; gap: 16px; white-space: nowrap; }
.notifications-bar:focus-visible, .notifications-bar a:focus-visible { outline-offset: -2px; }
.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: grid; grid-template-columns: minmax(0,1fr) max-content; align-items: center; gap: 10px; min-width: 0; width: 100%; }
.weather-ticker-slides { display: block; min-width: 0; width: 100%; }
.weather-slide { min-width: 0; width: 100%; 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 { flex: 0 1 auto; min-width: 0; max-width: 7em; overflow: hidden; text-overflow: ellipsis; }
.weather-description { flex: 1 1 auto; }
.weather-status { flex: none; }
.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: 10px 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; grid-template-columns: minmax(0,1fr) 1px 270px; }
}
@media (max-width: 560px) {
  .notifications-inner { padding: 0 12px; gap: 8px; grid-template-columns: minmax(0,1fr) 1px 184px; }
  .notification-context { gap: 6px; }
  .notification-context-label { display: none; }
  .notification-page-title { font-size: 10px; }
  .notification-weather { gap: 7px; }
  .weather-source { font-size: 9px; }
  .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: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.topic-number { font: 9px var(--mono); color: var(--accent); padding-top: 4px; }
.topic-link strong { font-size: 13px; font-weight: 600; color: var(--heading); }
.topic-link p { font-size: 12px; 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(--surface); border-top: 1px solid var(--line); margin-top: 28px; padding: 22px 0 0; }
.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: 9px var(--mono); letter-spacing: .5px; }
.about-card h3 { font: 600 24px var(--serif); letter-spacing: -.025em; margin: 18px 0 12px; }
.about-card h3 span { color: var(--accent); }
.about-card p { color: var(--muted); font-size: 13px; line-height: 1.85; margin: 0 0 18px; }
.about-card .about-signoff { color: var(--ink); font-size: 12px; }
.handwritten { display: inline-block; color: var(--accent); font: 500 17px var(--serif); 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: 10px/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: 10px/1.7 var(--mono); color: var(--muted); margin: 24px 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: 32px 0 8px; display: flex; align-items: center; gap: 22px; }
.closing-symbol { color: var(--warm); flex: none; }
.closing-symbol svg { display: block; width: 40px; height: 40px; }
.closing-note .eyebrow { margin-bottom: 12px; font-size: 8px; }
.closing-note h2 { font: 600 25px/1.4 var(--serif); letter-spacing: -.02em; 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: 11px; color: var(--muted); }
.footer-inner > div { margin-left: auto; display: flex; gap: 24px; align-items: center; font: 10px 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: 28px; padding-bottom: 48px; }
.back-link { font-size: 13px; color: var(--muted); display: inline-block; margin: 0 0 32px; }
.back-link:hover { color: var(--accent); }
.reading-layout { display: grid; grid-template-columns: minmax(0,760px) 220px; justify-content: center; align-items: start; gap: 56px; }
.reading-article { max-width: 760px; width: 100%; }
.article-header { padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.article-header .article-meta { font-size: 12px; }
.starter-badge { font: 10px var(--mono); color: var(--muted); border: 1px solid var(--line); padding: 4px 7px; border-radius: 4px; margin-left: auto; }
.article-header h1 { font: 650 clamp(30px,3.2vw,42px)/1.3 var(--serif); letter-spacing: -.025em; margin: 18px 0; overflow-wrap: anywhere; }
.article-deck { font-size: 17px; line-height: 1.85; color: var(--muted); margin: 0 0 24px; }
.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: 11px; font-weight: 600; }
.article-byline > div > span { font: 10px var(--mono); color: var(--muted); }
.article-prose { font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.article-prose section { margin-bottom: 40px; }
.article-prose h2 { font: 600 27px/1.4 var(--serif); letter-spacing: -.015em; margin: 0 0 18px; }
.article-prose h3 { font-size: 21px; line-height: 1.5; margin: 26px 0 12px; }
.article-prose p { margin: 0 0 20px; }
.article-prose ol, .article-prose ul { padding-left: 1.5em; margin: 18px 0 24px; }
.article-prose li { padding-left: 4px; 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(--code); padding: 2px 5px; border-radius: 3px; font: 14px/1.7 var(--mono); color: var(--ink); }
.table-scroll { overflow-x: auto; max-width: 100%; margin: 24px 0; border: 1px solid var(--line); border-radius: 6px; }
.article-prose table { width: 100%; min-width: 560px; border-collapse: collapse; margin: 0; font-size: 14px; line-height: 1.75; }
.article-prose th { background: var(--code); 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: 13px; color: var(--muted); line-height: 1.8; padding-top: 12px; }
.callout { padding: 18px 20px; background: var(--code); border-left: 3px solid var(--blue); margin: 24px 0; border-radius: 0 6px 6px 0; }
.callout > strong { font-size: 13px; color: var(--blue); }
.callout p { font-size: 16px; line-height: 1.85; margin: 8px 0 0; }
.article-prose .word-overview { padding: 24px; background: linear-gradient(125deg,var(--summary),var(--blue-soft)); border: 1px solid var(--card-line); border-left: 4px solid var(--card-accent); border-radius: 12px; margin-bottom: 24px; }
.article-prose .word-overview .word-name { display: block; font-size: 42px; font-weight: 750; line-height: 1.3; color: var(--heading); margin-bottom: 10px; }
.article-prose .word-overview p:last-child { margin-bottom: 0; }
.article-prose .word-example { margin: 24px 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 10px; }
.article-prose .word-example--noun { border-top-color: var(--blue); }
.article-prose .word-example--ielts { border-top-color: var(--accent); }
.article-prose .word-example > p:first-child { color: var(--ink); font-weight: 450; font-size: 18px; line-height: 1.9; }
.article-prose .word-example p { margin-bottom: 12px; }
.article-prose .word-example p:last-child { margin-bottom: 0; }
.article-prose .word-example small { display: block; width: fit-content; margin-top: 12px; padding: 3px 9px; color: var(--green); background: var(--green-soft); border-radius: 4px; font-size: 12px; font-weight: 600; }
.article-prose .word-example--noun small { color: var(--blue); background: var(--blue-soft); }
.article-prose .word-example--ielts small { color: var(--accent); background: var(--accent-soft); }
.article-prose .word-answer { padding: 16px 20px; background: var(--green-soft); border: 1px solid var(--line); border-radius: 6px; margin: 20px 0; }
.article-prose .word-answer summary { cursor: pointer; color: var(--green); font-weight: 600; }
.article-prose .word-answer[open] summary { margin-bottom: 14px; }
.article-prose .word-answer p:last-child { margin-bottom: 0; }
.article-prose blockquote { margin: 24px 0; padding: 16px 20px; border-left: 3px solid var(--warm); background: var(--warm-soft); }
.article-prose blockquote p:last-child { margin-bottom: 0; }
.article-prose .word-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.article-prose .word-chip { padding: 4px 10px; border: 1px solid var(--card-line); background: var(--surface); border-radius: 20px; color: var(--heading); font-size: 12px; font-weight: 650; }
.article-prose .word-memory-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 24px 0; }
.article-prose .word-memory-card { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--blue-soft); }
.article-prose .word-memory-card--verb { background: var(--green-soft); }
.article-prose .word-memory-card--memory { background: var(--warm-soft); }
.article-prose .word-memory-card h3 { margin: 0 0 10px; font-size: 14px; color: var(--blue); }
.article-prose .word-memory-card--verb h3 { color: var(--green); }
.article-prose .word-memory-card--memory h3 { color: var(--warm); }
.article-prose .word-memory-card p { font-size: 14px; margin: 0 0 10px; line-height: 1.8; }
.article-prose .word-memory-card p:last-child { margin: 0; }
.article-prose .word-memory-card code { font-size: 13px; background: transparent; padding: 0; }
.article-prose .word-quick-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.article-prose .word-quick-nav a { border: 1px solid var(--line); border-radius: 6px; padding: 7px 11px; font-size: 13px; font-weight: 650; text-decoration: none; background: var(--surface); }
.article-prose .word-quick-nav a:hover { background: var(--accent-soft); border-color: var(--card-accent); }
.article-prose .word-section-tag { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; margin-bottom: 14px; background: var(--accent-soft); border-radius: 5px; color: var(--accent); font-size: 12px; font-weight: 650; }
.article-prose .word-section-tag--blue { color: var(--blue); background: var(--blue-soft); }
.article-prose .word-section-tag--green { color: var(--green); background: var(--green-soft); }
.article-prose .word-section-tag--warm { color: var(--warm); background: var(--warm-soft); }
.article-prose .word-section-tag--danger { color: var(--word-danger); background: var(--word-danger-soft); }
.article-prose .word-key { font-weight: 750; }
.article-prose .word-key--noun { color: var(--blue); }
.article-prose .word-key--verb { color: var(--green); }
.article-prose .word-key--warning { color: var(--word-danger); }
.article-prose mark.word-highlight { box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 1px 4px; border-radius: 4px; font-weight: 750; color: var(--blue); background: var(--blue-soft); }
.article-prose mark.word-highlight--verb { color: var(--green); background: var(--green-soft); }
.article-prose mark.word-highlight--memory { color: var(--warm); background: var(--warm-soft); }
.article-prose mark.word-highlight--purple { color: var(--accent); background: var(--accent-soft); }
.article-prose .word-note { padding: 18px 20px; margin: 24px 0; background: var(--warm-soft); border: 1px solid var(--line); border-left: 4px solid var(--warm); border-radius: 8px; }
.article-prose .word-note > strong { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 15px; color: var(--warm); font-weight: 750; }
.article-prose .word-note p { font-size: 15px; line-height: 1.85; margin-bottom: 12px; }
.article-prose .word-note p:last-child { margin-bottom: 0; }
.article-prose .word-note--danger { color: var(--ink); background: var(--word-danger-soft); border-left-color: var(--word-danger); }
.article-prose .word-note--danger > strong { color: var(--word-danger); }
.article-prose .word-note--recall { background: var(--green-soft); border-left-color: var(--green); }
.article-prose .word-note--recall > strong { color: var(--green); }
.article-prose .word-correction { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 18px 0 24px; }
.article-prose .word-correction > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--word-danger-soft); }
.article-prose .word-correction > div:last-child { background: var(--green-soft); }
.article-prose .word-correction strong { display: block; font-size: 13px; margin-bottom: 7px; color: var(--word-danger); }
.article-prose .word-correction > div:last-child strong { color: var(--green); }
.article-prose .word-correction code { background: transparent; font-weight: 650; padding: 0; }
.article-prose .word-recap { padding: 22px; border: 1px solid var(--card-accent); border-top: 4px solid var(--accent); border-radius: 12px; margin: 28px 0; background: linear-gradient(125deg,var(--summary),var(--green-soft)); }
.article-prose .word-recap h3 { margin: 0 0 14px; color: var(--heading); font-size: 20px; }
.article-prose .word-recap ul { margin-bottom: 16px; }
.article-prose .word-recap p:last-child { margin-bottom: 0; }
.word-checkin { padding: 22px; margin: 0 0 36px; border: 1px solid var(--card-accent); border-top: 4px solid var(--accent); border-radius: 12px; background: var(--surface); }
.word-checkin-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.word-checkin-caption { display: block; font-size: 11px; font-weight: 650; color: var(--brand); margin-bottom: 5px; }
.word-checkin h2 { margin: 0; font-size: 20px; line-height: 1.4; }
.word-checkin-button { padding: 11px 16px; min-height: 44px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: var(--surface); font-size: 14px; font-weight: 700; }
.word-checkin-button:hover:not(:disabled) { background: var(--heading); }
.word-checkin-button:disabled { cursor: default; color: var(--green); background: var(--green-soft); border-color: var(--line); }
.word-checkin-status { margin: 14px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.word-checkin-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0 0 12px; }
.word-checkin-metrics > div { padding: 12px 14px; background: var(--summary); border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.word-checkin-metrics dt { margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.word-checkin-metrics dd { margin: 0; font-size: 14px; font-weight: 700; color: var(--heading); line-height: 1.8; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.word-checkin-count { font-size: 13px; color: var(--muted); margin: 12px 0; line-height: 1.8; }
.word-checkin-count strong { color: var(--green); }
.word-checkin-history { margin: 14px 0; border-top: 1px solid var(--line); padding-top: 12px; }
.word-checkin-history summary { cursor: pointer; font-size: 14px; font-weight: 650; color: var(--accent); }
.word-checkin-history ol { max-height: 240px; overflow-y: auto; margin: 12px 0 0; padding-left: 24px; font-size: 14px; line-height: 1.9; font-variant-numeric: tabular-nums; }
.word-checkin-history li { padding-left: 3px; margin: 4px 0; }
.word-checkin-note { font-size: 12px; line-height: 1.9; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 680px) {
  .article-prose .word-memory-grid, .article-prose .word-correction { grid-template-columns: minmax(0,1fr); }
  .article-prose .word-overview, .article-prose .word-recap { padding: 18px; }
  .article-prose .word-example { padding: 16px; }
  .word-checkin { padding: 16px; }
  .word-checkin-metrics { gap: 8px; }
  .word-checkin-metrics > div { padding: 10px; }
}
.code-block { margin: 24px 0 30px; min-width: 0; max-width: 100%; background: var(--code); border: 1px solid var(--card-line); border-radius: 7px; color: var(--ink); overflow: hidden; }
.code-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--card-line); font: 11px var(--mono); color: var(--muted); }
.code-toolbar > span { min-width: 0; overflow-wrap: anywhere; }
.code-toolbar button { font: 11px var(--mono); color: var(--heading); background: var(--surface); padding: 8px 10px; min-height: 36px; border: 1px solid var(--line); border-radius: 4px; flex: none; }
.code-toolbar button:hover { background: var(--accent-soft); }
.code-block pre { padding: 20px; margin: 0; overflow-x: auto; max-width: 100%; tab-size: 4; }
.code-block pre:focus-visible { outline-offset: -3px; }
.code-block pre code { background: none; padding: 0; color: var(--ink); font: 13px/1.85 var(--mono); border-radius: 0; white-space: pre; overflow-wrap: normal; }
.article-end { border-top: 1px solid var(--line); padding-top: 22px; }
.article-end .row-tags span { font-size: 9px; }
.article-end p { font-size: 13px; color: var(--muted); margin-top: 20px; }
.next-note { display: grid; grid-template-columns: minmax(0,1fr) 24px; gap: 12px; padding: 22px; margin-top: 30px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.next-note > span { font: 10px var(--mono); color: var(--accent); letter-spacing: .5px; grid-column: 1 / -1; }
.next-note > strong { font: 600 22px/1.4 var(--serif); overflow-wrap: anywhere; }
.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: 12px; color: var(--muted); margin: 0 0 18px; line-height: 1.8; overflow-wrap: anywhere; }
.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); }
.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); }
.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) {
  .header-inner { gap: 20px; }
  .main-nav { gap: 20px; }
  .header-actions { gap: 12px; margin-left: 0; }
  .hero { grid-template-columns: minmax(0,1fr) 190px; gap: 32px; }
  .hero h1 { font-size: 46px; }
  .feature-card { grid-template-columns: minmax(0,1fr) 190px; }
  .feature-copy { padding: 24px; }
  .feature-art { padding: 16px; }
  .content-layout { grid-template-columns: minmax(0,1fr) 220px; gap: 32px; }
  .reading-layout { display: flex; flex-direction: column; gap: 0; }
  .reading-article { margin: 0 auto; }
  .reading-sidebar { position: static; order: -1; width: 100%; max-width: 760px; margin: 0 auto 32px; }
  .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 { margin: 0; }
  .reading-aside-note { display: none; }
}
@media (max-width: 780px) {
  .page-shell { padding: 24px; }
  .header-inner { padding: 0 24px; gap: 16px; }
  .main-nav { gap: 20px; }
  .header-actions { gap: 8px; }
  .search-shortcut span, .search-shortcut kbd, .action-divider { display: none; }
  .search-shortcut { width: 40px; height: 44px; justify-content: center; }
  .hero { grid-template-columns: minmax(0,1fr); padding: 12px 0 32px; }
  .hero h1 { font-size: 46px; }
  .hero-art, .feature-art { display: none; }
  .desktop-break { display: none; }
  .hero-description { max-width: 560px; }
  .feature-card { grid-template-columns: minmax(0,1fr); }
  .content-layout { grid-template-columns: minmax(0,1fr); margin-top: 36px; gap: 40px; }
  .sidebar { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; }
  .learning-map-home-link { grid-column: 1 / -1; }
  .about-card { margin-top: 0; }
  .sidebar-foot { grid-column: 1 / -1; padding: 0; }
  .closing-note { gap: 18px; }
  .closing-note > p { padding-right: 0; }
  .footer-inner { flex-wrap: wrap; gap: 15px 20px; }
  .footer-inner > div { gap: 18px; }
  .article-header h1 { font-size: 36px; }
}
@media (max-width: 560px) {
  .page-shell { width: calc(100% - 24px); padding: 12px; margin: 12px auto 24px; border-radius: 8px; }
  .header-inner { flex-wrap: wrap; height: auto; min-height: 96px; padding: 12px; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 7px; font-size: 23px; line-height: 30px; }
  .brand-mark span { font-size: 23px; }
  .brand-text strong { font-size: 21px; }
  .brand-text small { font-size: 7px; letter-spacing: .6px; }
  .brand { gap: 8px; }
  .header-actions { margin-left: auto; }
  .main-nav { order: 3; flex-basis: 100%; justify-content: center; gap: 32px; margin: 0; }
  .main-nav a { padding: 8px 0; font-size: 12px; }
  .hero { padding: 12px 0 28px; }
  .hero h1 { font-size: clamp(36px,9.5vw,44px); }
  .hero .eyebrow { font-size: 9px; letter-spacing: .5px; margin-bottom: 14px; }
  .hero-description { font-size: 14px; margin-bottom: 16px; }
  .hero-link { font-size: 12px; }
  .hero-topics { margin-top: 18px; }
  .section-label { font-size: 9px; letter-spacing: .4px; }
  .feature-copy { padding: 18px 16px; }
  .feature-copy h2 { font-size: 25px; }
  .content-layout { margin-top: 32px; margin-bottom: 32px; gap: 32px; }
  .index-heading h2 { font-size: 29px; }
  .filter-bar { gap: 3px; padding-bottom: 12px; }
  .filter-bar button { font-size: 12px; padding: 9px 8px; }
  .filter-bar button span { margin-left: 3px; }
  .article-row { grid-template-columns: minmax(0,1fr); gap: 0; padding: 20px 0; }
  .row-art, .row-arrow { display: none; }
  .row-body h3 { font-size: 22px; }
  .end-note { gap: 6px; }
  .end-note > span { display: none; }
  .sidebar { display: block; }
  .about-card { margin-top: 24px; }
  .sidebar-foot { margin-top: 24px; }
  .closing-note { align-items: start; gap: 14px; flex-wrap: wrap; padding: 24px 0 8px; }
  .closing-note h2 { font-size: 23px; }
  .closing-note > div { min-width: 0; flex: 1; }
  .closing-note > p { flex-basis: 100%; margin: 0 0 0 54px; }
  .footer-inner { padding: 24px 12px; gap: 10px 16px; }
  .footer-inner > div { flex-basis: 100%; flex-wrap: wrap; margin-left: 0; justify-content: space-between; padding-top: 8px; }
  .article-shell { padding-top: 20px; padding-bottom: 32px; }
  .back-link { margin-bottom: 24px; }
  .article-header h1 { font-size: 30px; }
  .starter-badge { margin-left: 0; }
  .article-prose h2 { font-size: 25px; }
  .article-prose td, .article-prose th { padding: 10px 12px; }
  .code-toolbar { padding: 10px 12px; }
  .code-block pre { padding: 16px; }
  .callout { padding: 16px; }
  .next-note { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
}

.learning-map-home-link { display: grid; gap: 8px; padding: 0 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.learning-map-home-link strong { font-size: 18px; color: var(--heading); }
.learning-map-home-link span { font-size: 12px; line-height: 1.7; color: var(--muted); }

/* Recursion call-stack explainer; shares the site's light and dark tokens. */
.recursion-demo { min-width: 0; max-width: 100%; margin: 22px 0; padding: 18px; border: 1px solid var(--line); border-radius: 7px; 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); }
