/* =========================================================
   Karthik Sukumaran — Architecture Notes (blog)
   Architecture-centre look: lavender gradient bands, a floating
   sub-navigation bar, large soft-grey rounded cards, mono tags,
   dark footer. Light and dark themes.
   ========================================================= */

:root {
	--bg: #ffffff;
	--card: #f3f3f7;
	--card-hover: #ebebf2;
	--text: #161d26;
	--text-2: #4b5563;
	--text-3: #6b7280;
	--line: #e2e2ea;
	--accent: #7c5cf0;
	--accent-ink: #5b3fd6;
	--link: #2e5bff;
	--btn-bg: #2d1773;
	--btn-bg-hover: #3d2299;
	--btn-text: #ffffff;
	--btn-shadow: 0 6px 16px -6px rgba(45, 23, 115, .5);
	--tag-bg: rgba(255, 255, 255, 0.75);
	--band: linear-gradient(180deg, rgba(186, 171, 255, .42) 0%, rgba(226, 218, 255, .25) 45%, rgba(255, 255, 255, 0) 100%),
		radial-gradient(900px 340px at 75% -10%, rgba(140, 110, 255, .38), transparent 70%);
	--subnav-bg: #ffffff;
	--subnav-shadow: 0 1px 2px rgba(22, 29, 38, .06), 0 6px 18px -8px rgba(22, 29, 38, .18);
	--footer-bg: #161d26;
	--footer-text: #e6e9ee;
	--footer-muted: #9aa5b1;
	--code-bg: #161d26;
	--code-text: #e6e9ee;
	--inline-code-bg: #f1edfd;
	--inline-code-text: #4a2fc7;
	--font: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
	--gutter: clamp(20px, 4vw, 56px);
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0f141a; --card: #1b232d; --card-hover: #222c38;
		--text: #e6e9ee; --text-2: #b4bcc6; --text-3: #8b96a3; --line: #2b3542;
		--accent: #a78bfa; --accent-ink: #c4b5fd; --link: #8ab4ff;
		--btn-bg: #a78bfa; --btn-bg-hover: #c4b5fd; --btn-text: #140c2e; --btn-shadow: 0 6px 18px -8px rgba(167, 139, 250, .6); --tag-bg: rgba(255, 255, 255, 0.08);
		--band: linear-gradient(180deg, rgba(124, 92, 240, .32) 0%, rgba(124, 92, 240, .1) 50%, rgba(15, 20, 26, 0) 100%),
			radial-gradient(900px 340px at 75% -10%, rgba(167, 139, 250, .3), transparent 70%);
		--subnav-bg: #161d26; --subnav-shadow: 0 0 0 1px #2b3542, 0 8px 24px -10px rgba(0,0,0,.6);
		--footer-bg: #0a0e13;
		--code-bg: #0a0e13; --inline-code-bg: rgba(167, 139, 250, .14); --inline-code-text: #d4c7ff;
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #0f141a; --card: #1b232d; --card-hover: #222c38;
	--text: #e6e9ee; --text-2: #b4bcc6; --text-3: #8b96a3; --line: #2b3542;
	--accent: #a78bfa; --accent-ink: #c4b5fd; --link: #8ab4ff;
	--btn-bg: #a78bfa; --btn-bg-hover: #c4b5fd; --btn-text: #140c2e; --btn-shadow: 0 6px 18px -8px rgba(167, 139, 250, .6); --tag-bg: rgba(255, 255, 255, 0.08);
	--band: linear-gradient(180deg, rgba(124, 92, 240, .32) 0%, rgba(124, 92, 240, .1) 50%, rgba(15, 20, 26, 0) 100%),
		radial-gradient(900px 340px at 75% -10%, rgba(167, 139, 250, .3), transparent 70%);
	--subnav-bg: #161d26; --subnav-shadow: 0 0 0 1px #2b3542, 0 8px 24px -10px rgba(0,0,0,.6);
	--footer-bg: #0a0e13;
	--code-bg: #0a0e13; --inline-code-bg: rgba(167, 139, 250, .14); --inline-code-text: #d4c7ff;
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; color: var(--text); }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--btn-bg); color: var(--btn-text); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.icon { flex-shrink: 0; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.text-link:hover { color: var(--accent-ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px; font: 600 15px/1 var(--font); white-space: nowrap; cursor: pointer; border: 0; transition: background .15s, opacity .15s, box-shadow .15s; }
.btn-dark, .btn-pill { background: var(--btn-bg); color: var(--btn-text); box-shadow: var(--btn-shadow); }
.btn-pill { height: 46px; padding: 0 26px; font-size: 16px; }
.btn-dark:hover, .btn-pill:hover { background: var(--btn-bg-hover); }
.btn-light { background: #ffffff; color: #161d26; }
.btn-outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.btn-outline:hover { background: var(--card); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 45; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { height: 74px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.brand:hover span { color: var(--accent-ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.header-link { padding: 8px 12px; font-size: 15px; color: var(--text); border-radius: 8px; }
.header-link:hover { background: var(--card); }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--card); color: var(--text); }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: none; } :root:not([data-theme="light"]) .i-moon { display: block; } }

/* Floating sub-navigation */
.subnav-wrap { position: sticky; top: 12px; z-index: 40; margin-top: 16px; }
.subnav { display: flex; align-items: center; gap: 6px; height: 60px; background: var(--subnav-bg); border-radius: 14px; box-shadow: var(--subnav-shadow); padding: 0 24px; max-width: calc(1360px - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); }
.subnav-title { font-weight: 600; font-size: 16px; margin-right: 24px; white-space: nowrap; }
.subnav-link, .subnav-menu summary { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; color: var(--text); white-space: nowrap; cursor: pointer; }
.subnav-link:hover, .subnav-menu summary:hover { background: var(--card); }
.subnav-menu { position: relative; }
.subnav-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.subnav-menu summary::-webkit-details-marker { display: none; }
.subnav-menu[open] summary .icon { transform: rotate(180deg); }
.menu-panel { position: absolute; top: calc(100% + 12px); left: 0; min-width: 320px; padding: 8px; background: var(--subnav-bg); border-radius: 14px; box-shadow: var(--subnav-shadow); display: grid; gap: 2px; }
.menu-panel a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; }
.menu-panel a:hover { background: var(--card); }
.menu-panel strong { display: block; font-weight: 600; font-size: 14.5px; }
.menu-panel em { font-style: normal; font-size: 13px; color: var(--text-3); }
.menu-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--cat); background: color-mix(in srgb, var(--cat) 12%, transparent); }

/* ---------- Gradient hero band ---------- */
.hero-band { margin-top: -88px; padding: 136px 0 64px; background: var(--band); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text-2); margin-bottom: 22px; }
.crumbs a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--accent-ink); }
.hero-band h1 { display: flex; align-items: center; gap: 14px; font-size: clamp(32px, 4.2vw, 48px); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 14px; }
.hero-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--cat, var(--accent)) 16%, var(--bg)); color: var(--cat, var(--accent)); }
.hero-sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); max-width: 720px; margin-bottom: 28px; line-height: 1.5; }

/* ---------- Overview ---------- */
.overview { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding-top: 64px; padding-bottom: 32px; }
.overview h2, .block h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 20px; }
.overview-copy p { font-size: 17px; color: var(--text-2); max-width: 640px; }
.overview-copy p strong { color: var(--text); font-weight: 600; }
.overview-copy p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.overview-copy .text-link { margin-top: 8px; }
.overview-art { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -30px rgba(124, 92, 240, .55); }
.overview-art svg { width: 100%; height: 100%; display: block; }

/* ---------- Blocks ---------- */
.block { padding-top: 64px; padding-bottom: 32px; scroll-margin-top: 96px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 12px; }
.block-head h2 { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.block-head p { margin: 0; color: var(--text-2); max-width: 720px; }
.block-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--cat); background: color-mix(in srgb, var(--cat) 14%, transparent); }
.displaying { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); margin: 20px 0 16px; }
.cat-block + .cat-block { border-top: 1px solid var(--line); }
.empty { color: var(--text-2); }

/* Pillar cards (categories) */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar-card { display: flex; flex-direction: column; min-height: 270px; padding: 28px 28px 22px; border-radius: 24px; background: var(--card); transition: background .2s, transform .2s; }
.pillar-card:hover { background: var(--card-hover); transform: translateY(-2px); }
.pillar-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: var(--cat); background: color-mix(in srgb, var(--cat) 14%, var(--bg)); }
.pillar-title { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 8px; }
.pillar-desc { font-size: 14.5px; color: var(--text-2); line-height: 1.55; flex: 1; }
.pillar-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); }
.pillar-foot .icon { color: var(--text); transition: transform .2s; }
.pillar-card:hover .pillar-foot .icon { transform: translateX(4px); }

/* Resource cards (posts) */
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.res-card { position: relative; display: flex; flex-direction: column; min-height: 248px; padding: 20px 20px 18px; border-radius: 20px; background: var(--card); transition: background .2s, transform .2s; }
.res-card:hover { background: var(--card-hover); transform: translateY(-2px); }
.res-card.is-extra { display: none; }
.res-grid.show-all .res-card.is-extra { display: flex; }
.res-tag { align-self: flex-start; font-family: var(--font-mono); font-size: 10.5px; padding: 3px 7px; border-radius: 4px; background: var(--tag-bg); color: var(--text); margin-bottom: 14px; box-shadow: 0 0 0 1px rgba(22, 29, 38, .04); }
.res-date { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--text-2); margin-bottom: 12px; }
.res-sep { color: var(--text-3); }
.res-title { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; margin-bottom: 8px; }
.res-desc { font-size: 14px; color: var(--text-2); line-height: 1.5; flex: 1; }
.res-arrow { margin-top: 16px; color: var(--text); }
.res-arrow .icon { transition: transform .2s; }
.res-card:hover .res-arrow .icon { transform: translateX(4px); }
.more-row { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- Post ---------- */
.hero-post h1 { display: block; max-width: 980px; font-size: clamp(30px, 3.8vw, 46px); }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.hero-post .res-tag { margin: 0; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.byline { display: flex; align-items: center; gap: 10px; }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.byline span { display: flex; flex-direction: column; line-height: 1.3; }
.byline strong { font-size: 15px; font-weight: 600; }
.byline em { font-style: normal; font-size: 13px; color: var(--text-2); }
.byline:hover strong { color: var(--accent-ink); }
.meta-item { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }

.post-grid { display: grid; grid-template-columns: 240px minmax(0, 820px); gap: clamp(32px, 4vw, 72px); padding-top: 40px; padding-bottom: 32px; justify-content: center; }
.toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; padding: 18px 16px; border-radius: 20px; background: var(--card); }
.toc-title { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a { display: block; padding: 6px 10px; font-size: 13.5px; color: var(--text-2); line-height: 1.4; border-radius: 8px; }
.toc li a:hover { background: var(--bg); color: var(--text); }
.toc li a.active { background: var(--bg); color: var(--text); font-weight: 600; }
.toc li.sub a { padding-left: 22px; font-size: 13px; }
.post-body { min-width: 0; }

.glance { border-radius: 20px; background: var(--card); padding: 6px 22px; margin-bottom: 32px; }
.glance-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; font-size: 15px; }
.glance-row + .glance-row { border-top: 1px solid var(--line); }
.glance-label { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); padding-top: 3px; }
.glance-uses { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.glance-uses li { position: relative; padding-left: 26px; line-height: 1.45; }
.glance-uses li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--cat, var(--accent)) 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c5cf0' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat; }

/* Prose */
.prose { font-size: 17px; line-height: 1.75; color: var(--text); }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; font-weight: 500; letter-spacing: -0.015em; margin-top: 1.9em; margin-bottom: .1em; }
.prose h3 { font-size: 20px; font-weight: 600; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--text-3); }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-radius: 16px; background: var(--card); border-left: 4px solid var(--accent); }
.prose blockquote p { margin: 0; }
.prose blockquote p + p { margin-top: .6em; }
.prose .callout-tip { border-left-color: #10b981; }
.prose .callout-warn { border-left-color: #f59e0b; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose :not(pre) > code { font-family: var(--font-mono); font-size: .84em; padding: .15em .4em; border-radius: 4px; background: var(--inline-code-bg); color: var(--inline-code-text); }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.55; border-radius: 16px; overflow: hidden; background: var(--card); }
.prose th, .prose td { text-align: left; padding: 12px 16px; vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); border-bottom: 1px solid var(--line); }
.prose tr + tr td { border-top: 1px solid var(--line); }

/* Code */
.prose div.highlighter-rouge { position: relative; margin: 1.6em 0; }
.prose pre { margin: 0; padding: 22px 24px; overflow-x: auto; border-radius: 16px; background: var(--code-bg); color: var(--code-text); font-family: var(--font-mono); font-size: 14px; line-height: 1.65; }
.prose pre code { font-family: inherit; background: none; padding: 0; color: inherit; }
.code-lang { position: absolute; top: 10px; right: 66px; font-family: var(--font-mono); font-size: 11px; text-transform: lowercase; color: #9aa5b1; }
.copy-btn { position: absolute; top: 7px; right: 8px; font: 500 12px var(--font-mono); padding: 4px 10px; border-radius: 6px; cursor: pointer; color: #e6e9ee; background: rgba(255,255,255,.08); border: 0; opacity: 0; transition: opacity .2s; }
.highlighter-rouge:hover .copy-btn, .copy-btn:focus { opacity: 1; }
@media (hover: none) { .copy-btn { opacity: 1; } }

/* Rouge tokens */
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs, .highlight .cd { color: #7d8794; font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv { color: #c4a7ff; }
.highlight .kt, .highlight .nc, .highlight .nn { color: #ffcb6b; }
.highlight .kc, .highlight .mi, .highlight .mf, .highlight .m, .highlight .mh, .highlight .il { color: #f78c6c; }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sd, .highlight .se, .highlight .sh, .highlight .si, .highlight .sx, .highlight .dl, .highlight .sr { color: #c3e88d; }
.highlight .nf, .highlight .fm, .highlight .na { color: #82aaff; }
.highlight .nd, .highlight .nl { color: #f07178; }
.highlight .o, .highlight .ow, .highlight .p { color: #b8c1cc; }
.highlight .nb, .highlight .bp { color: #89ddff; }
.highlight .nt { color: #f07178; }
.highlight .nv, .highlight .vi { color: #ffcb6b; }
.highlight .gd { color: #ff8b8b; }
.highlight .gi { color: #c3e88d; }
.highlight .err { color: inherit; background: none; }

/* Diagrams */
.prose figure.diagram { margin: 1.8em 0; padding: 24px; border-radius: 20px; background: var(--card); overflow-x: auto; text-align: center; }
.prose .mermaid { display: inline-block; min-width: 100%; }
.prose .mermaid svg { max-width: none !important; height: auto; margin: 0 auto; }
.prose pre:has(> code.language-mermaid) { background: var(--card); color: var(--text-3); }

/* After the article */
.series-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 56px 0 24px; }
.sn { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: 20px; background: var(--card); transition: background .2s; }
.sn:hover { background: var(--card-hover); }
.sn span { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }
.sn strong { font-size: 17px; font-weight: 600; }
.sn.next { text-align: right; grid-column: 2; }
.author-card { display: flex; gap: 20px; padding: 26px; border-radius: 24px; background: var(--card); }
.author-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex-shrink: 0; }
.author-card h2 { font-size: 20px; margin-bottom: 6px; }
.author-card p:not(.eyebrow) { font-size: 15px; color: var(--text-2); margin-bottom: 12px; }
.related { border-top: 1px solid var(--line); margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 72px; background: var(--footer-bg); color: var(--footer-text); }
.footer-top { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 48px; padding-top: 56px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-title { font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.footer-cta p:not(.footer-title) { color: var(--footer-muted); max-width: 420px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols a { display: block; padding: 4px 0; color: var(--footer-text); font-size: 14.5px; }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-head { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 32px; font-size: 13.5px; color: var(--footer-muted); }
.footer-base a:hover { color: var(--footer-text); }

/* ---------- 404 ---------- */
.notfound { padding-top: 120px; padding-bottom: 80px; text-align: center; }
.notfound h1 { font-size: 72px; font-weight: 500; margin-bottom: 8px; }
.notfound p { color: var(--text-2); margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (min-width: 1700px) {
	.res-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1180px) {
	.res-grid { grid-template-columns: repeat(3, 1fr); }
	.post-grid { grid-template-columns: minmax(0, 820px); }
	.toc { display: none; }
}
@media (max-width: 900px) {
	.overview { grid-template-columns: 1fr; }
	.pillar-grid, .res-grid { grid-template-columns: repeat(2, 1fr); }
	.subnav-link { display: none; }
	.footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.header-rss { display: none; }
	.brand span { font-size: 15px; }
	.subnav { padding: 0 12px; height: 54px; }
	.subnav-title { margin-right: 4px; font-size: 15px; }
	.menu-panel { left: auto; right: 0; min-width: min(320px, 80vw); }
	.hero-band { padding-top: 120px; padding-bottom: 44px; }
	.pillar-grid, .res-grid { grid-template-columns: 1fr; }
	.pillar-card, .res-card { min-height: 0; }
	.block-head { flex-direction: column; align-items: flex-start; }
	.prose { font-size: 16px; }
	.prose h2 { font-size: 24px; }
	.prose pre { font-size: 12.5px; padding: 16px; }
	.prose table { display: block; overflow-x: auto; }
	.glance-row { grid-template-columns: 1fr; gap: 4px; }
	.series-nav { grid-template-columns: 1fr; }
	.sn.next { grid-column: auto; }
	.author-card { flex-direction: column; }
	.footer-cols { grid-template-columns: 1fr 1fr; }
	.footer-base { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
