/*!
 * LimeNetwork Blog 1.0 - same design system as www.limenetwork.it (2026 redesign):
 * lime #8FCB2E accent, LimePanel neutrals, Cabinet Grotesk + Satoshi + JetBrains Mono (self-hosted),
 * dark/light via [data-theme] on <html>, set before first paint (cookie ln-theme on .limenetwork.it).
 * (c) 2014-2026 Digital Dept S.r.l.s.
 */

/* ---------- Fonts ---------- */
@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/satoshi-400.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/satoshi-500.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 600 900; font-display: swap; src: url("../fonts/satoshi-700.woff2") format("woff2"); }
@font-face { font-family: "Cabinet Grotesk"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("../fonts/cabinet-grotesk-700.woff2") format("woff2"); }
@font-face { font-family: "Cabinet Grotesk"; font-style: normal; font-weight: 800 900; font-display: swap; src: url("../fonts/cabinet-grotesk-800.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/jbmono-500-latin.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
	--lime: #8FCB2E; --lime-2: #B5E66A; --lime-3: #7DB824;
	--font-body: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Cabinet Grotesk", "Satoshi", ui-sans-serif, system-ui, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--r-xs: 8px; --r-sm: 12px; --r: 18px; --r-lg: 26px; --r-xl: 34px; --r-pill: 999px;
	--ease: cubic-bezier(.16, 1, .3, 1);
	--wrap: 1240px; --wrap-wide: 1180px; --wrap-mid: 900px; --measure: 70ch;
	--gutter: clamp(16px, 4vw, 40px);
	--hdr-h: 68px;
	--z-raised: 5; --z-hdr: 50; --z-progress: 55; --z-dlg: 80;
}
:root, :root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #050807; --bg-2: #080D0B; --bg-3: #0E1512;
	--surface: rgba(238, 244, 240, .035); --surface-2: rgba(238, 244, 240, .065); --surface-solid: #0C1210;
	--line: rgba(238, 244, 240, .08); --line-2: rgba(238, 244, 240, .15);
	--ink: #EEF4F0; --ink-2: #A9B6B0; --ink-3: #87958E;
	--accent-ink: #A9DF55; --accent-soft: rgba(143, 203, 46, .11);
	--btn-ink: #07100A; --btn-hover: #B5E66A;
	--hdr-bg: rgba(5, 8, 7, .72);
	--shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -20px rgba(0,0,0,.65);
	--shadow-lg: 0 1px 0 rgba(255,255,255,.05) inset, 0 40px 90px -30px rgba(0,0,0,.8);
	--glow: rgba(143, 203, 46, .30);
	--grain: .05;
	--code-bg: #0A110E;
	--logo-dk: block; --logo-lt: none;
}
:root[data-theme="light"] {
	color-scheme: light;
	--bg: #F3F6F4; --bg-2: #EAF0EC; --bg-3: #DFE7E2;
	--surface: #FFFFFF; --surface-2: #F1F5F2; --surface-solid: #FFFFFF;
	--line: rgba(7, 16, 12, .09); --line-2: rgba(7, 16, 12, .17);
	--ink: #07100C; --ink-2: #3A4741; --ink-3: #56635D;
	--accent-ink: #3B7413; --accent-soft: rgba(143, 203, 46, .16);
	--btn-ink: #07100A; --btn-hover: #7DB824;
	--hdr-bg: rgba(243, 246, 244, .9);
	--shadow: 0 1px 2px rgba(7,24,14,.05), 0 18px 40px -22px rgba(7,24,14,.22);
	--shadow-lg: 0 2px 4px rgba(7,24,14,.05), 0 40px 80px -34px rgba(7,24,14,.32);
	--glow: rgba(143, 203, 46, .38);
	--grain: .03;
	--code-bg: #0C1210;
	--logo-dk: none; --logo-lt: block;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font: 400 17px/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
	overflow-x: clip; min-height: 100dvh; display: flex; flex-direction: column;
}
body::before { /* grain */
	content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: var(--grain);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main { flex: 1; min-width: 0; position: relative; z-index: 1; outline: none; }
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--lime); color: #07100A; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.02em; margin: 0; font-weight: 800; text-wrap: balance; }
p { text-wrap: pretty; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--lime); color: #07100A; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); position: relative; }
.wrap-wide { max-width: calc(var(--wrap-wide) + 2 * var(--gutter)); }
.wrap-mid { max-width: calc(var(--wrap-mid) + 2 * var(--gutter)); }
.ic { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Atoms ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	height: 46px; padding: 0 20px; border-radius: var(--r-pill); border: 1px solid transparent;
	font-weight: 700; font-size: .95rem; letter-spacing: -.005em; cursor: pointer; white-space: nowrap;
	transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-sm { height: 38px; padding: 0 15px; font-size: .88rem; }
.btn-primary { background: var(--lime); color: var(--btn-ink); box-shadow: 0 10px 30px -12px var(--glow); }
.btn-primary:hover { background: var(--btn-hover); box-shadow: 0 14px 36px -12px var(--glow); }
.btn-ghost { border-color: var(--line-2); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(2px); }
.icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
	border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink-2);
	transition: color .2s, border-color .2s, background .2s; position: relative;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.kbd { display: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .78rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow-lime { color: var(--accent-ink); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 var(--glow); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(143,203,46,.55); } 70% { box-shadow: 0 0 0 10px rgba(143,203,46,0); } 100% { box-shadow: 0 0 0 0 rgba(143,203,46,0); } }
.pill {
	display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: var(--r-pill);
	font: 600 .74rem/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase;
	background: var(--accent-soft); color: var(--accent-ink); position: relative; z-index: 2; transition: background .2s;
}
.pill:hover { background: rgba(143,203,46,.22); }
.pill-lg { height: 30px; padding: 0 14px; font-size: .78rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-pill);
	border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: .9rem; font-weight: 500; white-space: nowrap;
	transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--ink); border-color: var(--line-2); }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-n { font: 500 .72rem/1 var(--font-mono); color: var(--ink-3); }
.chip.is-on .chip-n { color: inherit; opacity: .6; }
.chip-sm { height: 30px; padding: 0 11px; font-size: .82rem; }
.chip .ic { width: .9em; height: .9em; opacity: .6; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-3); font-size: .84rem; }
.meta-i { display: inline-flex; align-items: center; gap: 6px; }
.meta-i .ic { width: 15px; height: 15px; opacity: .8; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-ink); }
.link-arrow .ic { transition: transform .3s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- Header ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: var(--z-progress); pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--lime), var(--lime-2)); transform-origin: 0 50%; transform: scaleX(0); }
body:not(.single-post) .progress { display: none; }
.hdr { position: sticky; top: 0; z-index: var(--z-hdr); height: var(--hdr-h); background: var(--hdr-bg); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
@supports (backdrop-filter: blur(1px)) { .hdr { backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); } }
.hdr.solid { border-bottom-color: var(--line); }
.hdr-in { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; height: 100%; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo { height: 27px; width: auto; }
.logo-dk { display: var(--logo-dk); } .logo-lt { display: var(--logo-lt); }
.brand-tag { font: 600 .72rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-ink); }
.nav { flex: 1; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav ul a { display: inline-flex; align-items: center; height: 38px; padding: 0 13px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .94rem; transition: color .2s, background .2s; }
.nav ul a:hover { color: var(--ink); background: var(--surface-2); }
.nav-m-extra { display: none; }
.hdr-cta { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-toggle { display: none; }
.nav-toggle .i-close { display: none; }
.theme-wrap { position: relative; }
.theme-btn .ic { display: none; }
:root[data-theme-mode="auto"] .theme-btn .i-auto, :root[data-theme-mode="light"] .theme-btn .i-sun, :root[data-theme-mode="dark"] .theme-btn .i-moon { display: block; }
:root:not([data-theme-mode]) .theme-btn .i-auto { display: block; }
.theme-menu {
	position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 6px; border-radius: 16px;
	background: var(--surface-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
	transform-origin: top right; animation: pop .22s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.97); } }
.theme-menu button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 11px; background: none; cursor: pointer; text-align: left; color: var(--ink-2); }
.theme-menu button:hover, .theme-menu button:focus-visible { background: var(--surface-2); color: var(--ink); outline: none; }
.theme-menu button > span { flex: 1; display: grid; }
.theme-menu .t { font-weight: 600; color: var(--ink); }
.theme-menu .d { font-size: .78rem; color: var(--ink-3); }
.theme-menu .ck { opacity: 0; color: var(--accent-ink); }
.theme-menu [aria-checked="true"] .ck { opacity: 1; }

/* ---------- Search dialog ---------- */
.search-dlg { position: fixed; inset: 0; z-index: var(--z-dlg); display: grid; place-items: start center; padding: 12vh var(--gutter) 24px; }
.search-dlg[hidden] { display: none; }
.search-dlg-bg { position: absolute; inset: 0; background: rgba(3, 6, 5, .62); backdrop-filter: blur(6px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.search-dlg-box { position: relative; width: min(680px, 100%); padding: 22px; border-radius: var(--r-lg); background: var(--surface-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); animation: pop .25s var(--ease); }
.search-dlg-topics { margin-top: 18px; display: grid; gap: 12px; }
.search-dlg-x { position: absolute; top: -52px; right: 0; }
.sform { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 48px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
.sform:focus-within { border-color: var(--lime); box-shadow: 0 0 0 4px var(--accent-soft); }
.sform-ic { position: absolute; left: 18px; width: 20px; height: 20px; color: var(--ink-3); }
.sform input { flex: 1; min-width: 0; height: 42px; border: 0; background: none; color: var(--ink); font: 500 1rem var(--font-body); outline: none; }
.sform input::placeholder { color: var(--ink-3); }
.sform input::-webkit-search-cancel-button { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); isolation: isolate; }
.hero-bg, .post-head-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.orb-1 { width: 620px; height: 620px; right: -160px; top: -260px; background: radial-gradient(circle, rgba(143,203,46,.5), transparent 65%); }
.orb-2 { width: 520px; height: 520px; left: -220px; bottom: -300px; background: radial-gradient(circle, rgba(148,163,184,.28), transparent 65%); }
:root[data-theme="light"] .orb { opacity: .45; }
.js-motion .orb-1 { animation: drift 18s ease-in-out infinite alternate; }
.js-motion .orb-2 { animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate3d(-60px, 40px, 0) scale(1.08); } }
.hero-gridlines { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 10%, transparent 70%); }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s; }
.hero-net.on { opacity: 1; }
.hero-in { display: grid; gap: 22px; justify-items: start; }
.hero-title { font-size: clamp(2.6rem, 7.4vw, 6rem); line-height: .98; letter-spacing: -.035em; max-width: 13ch; }
.grad { background: linear-gradient(100deg, var(--accent-ink) 10%, var(--lime-2) 60%, var(--accent-ink)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .grad { background-image: linear-gradient(100deg, #3B7413 10%, #5E9B1F 60%, #3B7413); }
.js-motion .grad { animation: shine 8s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 56ch; margin: 0; }
.hero-search { width: min(600px, 100%); margin-top: 6px; }

/* ---------- Category bar ---------- */
.catbar { margin: 8px 0 28px; position: relative; }
.catbar ul { list-style: none; margin: 0; padding: 4px 0 8px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.catbar ul::-webkit-scrollbar { display: none; }
.catbar li { scroll-snap-align: start; }
.catbar::after { content: ""; position: absolute; right: 0; top: 0; bottom: 8px; width: 48px; background: linear-gradient(90deg, transparent, var(--bg)); pointer-events: none; }

/* ---------- Feature ---------- */
.posts { padding-bottom: 24px; }
.feature {
	position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; border-radius: var(--r-xl); overflow: hidden;
	background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: clamp(48px, 7vw, 88px);
}
.feature-media { position: relative; display: block; align-self: center; margin: 14px 0 14px 14px; aspect-ratio: 1200 / 630; overflow: hidden; border-radius: calc(var(--r-xl) - 12px); background: var(--bg-3); border: 1px solid var(--line); }
.feature-media img, .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.035); }
.feature-badge { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-pill); background: rgba(5,8,7,.7); color: #EEF4F0; backdrop-filter: blur(8px); font: 600 .74rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.feature-badge .ic { color: var(--lime); }
.feature-body { padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }
.feature-title { font-size: clamp(1.7rem, 2.9vw, 2.6rem); line-height: 1.05; }
.feature-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease); }
.feature-title a:hover { background-size: 100% 2px; }
.feature-ex { color: var(--ink-2); margin: 0; font-size: 1.04rem; }

/* ---------- Section head ---------- */
.sec-head { display: grid; gap: 10px; margin-bottom: 28px; }
.sec-title { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.card {
	position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden;
	background: var(--surface); border: 1px solid var(--line);
	transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease);
}
.card::after { /* spotlight */
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(143,203,46,.12), transparent 45%);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.card:hover::after { opacity: 1; }
.card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 22px 22px; flex: 1; }
.card-title { font-size: 1.28rem; line-height: 1.18; letter-spacing: -.015em; }
.card-title a::before { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.card-title, .card-ex, .feature-title, .page-title, .post-title { overflow-wrap: anywhere; }
.card-ex { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.card .meta { margin-top: auto; padding-top: 6px; }
.thumb-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: var(--accent-ink); background: radial-gradient(circle at 30% 20%, var(--accent-soft), transparent 60%), var(--bg-3); }
.thumb-fallback .ic { width: 40px; height: 40px; }

/* ---------- Pagination ---------- */
.pager { margin: 48px 0 8px; }
.pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: 500 .92rem var(--font-mono); color: var(--ink-2); transition: all .2s; }
.pager a.page-numbers:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.pager .current { background: var(--lime); color: #07100A; border-color: var(--lime); font-weight: 600; }
.pager .dots { border: 0; background: none; }

/* ---------- Topics ---------- */
.topics { padding-top: clamp(56px, 8vw, 104px); }
.topic-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.topic { position: relative; display: grid; gap: 4px; padding: 22px; min-height: 148px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, transform .4s var(--ease); }
.topic::before { content: ""; position: absolute; inset: auto -40% -60% auto; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); opacity: 0; transition: opacity .4s; }
.topic:hover { border-color: var(--accent-ink); transform: translateY(-3px); }
.topic:hover::before { opacity: 1; }
.topic-n { font: 500 .8rem var(--font-mono); color: var(--accent-ink); }
.topic-name { font: 800 1.35rem/1.1 var(--font-display); letter-spacing: -.015em; margin-top: auto; }
.topic-sub { font-size: .85rem; color: var(--ink-3); }
.topic-arrow { position: absolute; right: 20px; top: 20px; color: var(--ink-3); transition: transform .35s var(--ease), color .3s; }
.topic:hover .topic-arrow { transform: translate(3px, -3px) rotate(-45deg); color: var(--accent-ink); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; margin: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 80px); padding: clamp(28px, 4.5vw, 56px); border-radius: var(--r-xl); background: #07100C; color: #EEF4F0; border: 1px solid rgba(143,203,46,.22); }
.cta-glow { position: absolute; z-index: -1; width: 560px; height: 560px; right: -160px; top: -280px; border-radius: 50%; background: radial-gradient(circle, rgba(143,203,46,.45), transparent 65%); filter: blur(40px); }
.cta-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(238,244,240,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(238,244,240,.06) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(110deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(110deg, transparent 30%, #000); }
.cta-in { display: grid; gap: 14px; max-width: 640px; }
.cta .eyebrow-lime { color: #A9DF55; }
.cta-title { margin: 0; font: 800 clamp(1.7rem, 3.4vw, 2.6rem)/1.05 var(--font-display); letter-spacing: -.025em; text-wrap: balance; }
.cta-text { margin: 0; color: #A9B6B0; font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.cta .btn-ghost { background: rgba(238,244,240,.06); color: #EEF4F0; border-color: rgba(238,244,240,.18); }
.cta .btn-ghost:hover { color: #A9DF55; border-color: #A9DF55; }

/* ---------- Page head (archives, search) ---------- */
.page-head { padding-top: clamp(36px, 6vw, 72px); padding-bottom: 20px; display: grid; gap: 14px; justify-items: start; }
.page-head-bg { position: absolute; inset: -80px 0 0; z-index: -1; pointer-events: none; background: radial-gradient(600px 300px at 85% 0%, var(--accent-soft), transparent 70%); }
.page-title { font-size: clamp(2.2rem, 5.6vw, 4.4rem); letter-spacing: -.03em; line-height: 1; }
.page-sub { color: var(--ink-2); font-size: 1.08rem; max-width: 62ch; margin: 0; }
.page-sub p { margin: 0; }
.page-count { margin: 0; font: 500 .85rem var(--font-mono); color: var(--ink-3); }
.page-search { width: min(560px, 100%); margin-top: 6px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs [aria-current] { color: var(--ink-2); }
.empty, .empty-state { padding: 40px 0; color: var(--ink-2); }
.empty-state { display: grid; gap: 12px; justify-items: start; }
.empty-title { font: 800 1.6rem var(--font-display); color: var(--ink); margin: 0; }

/* ---------- Single ---------- */
.post-head { position: relative; isolation: isolate; overflow: hidden; padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 44px); }
.post-head .wrap { display: grid; gap: 18px; justify-items: start; }
.post-head .orb-1 { width: 540px; height: 540px; right: -200px; top: -300px; opacity: .45; }
.post-head .hero-gridlines { mask-image: radial-gradient(ellipse 60% 80% at 90% 0%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 80% at 90% 0%, #000 10%, transparent 70%); }
.post-title { font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: 1.02; letter-spacing: -.03em; }
.post-deck { font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: var(--ink-2); margin: 0; max-width: 62ch; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; color: var(--ink-3); font-size: .9rem; padding-top: 6px; }
.post-meta .meta-i .ic { width: 16px; height: 16px; }
.byline { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.byline a { color: var(--ink); font-weight: 700; }
.byline a:hover { color: var(--accent-ink); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); }
.post-cover { margin: 0 auto clamp(28px, 4vw, 56px); }
.post-cover img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--r-xl); border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--bg-3); }
.post-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.post-layout:not(.has-toc) { grid-template-columns: 64px minmax(0, 1fr); }
.post-layout:not(.has-toc) .share-h { display: none; }
.post-side { position: sticky; top: calc(var(--hdr-h) + 28px); display: grid; gap: 32px; max-height: calc(100dvh - var(--hdr-h) - 56px); overflow: auto; scrollbar-width: thin; padding-bottom: 8px; }
.post-main { min-width: 0; max-width: calc(var(--measure) + 4rem); }
.toc-h, .share-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 600 .74rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.toc-list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc-list a { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: .87rem; line-height: 1.35; color: var(--ink-3); transition: color .2s, border-color .2s; }
.toc-list .toc-l3 a { padding-left: 28px; font-size: .83rem; }
.toc-list a:hover { color: var(--ink); }
.toc-list a.is-active { color: var(--ink); border-left-color: var(--lime); }
.toc-n { font: 500 .72rem/1.6 var(--font-mono); color: var(--ink-3); opacity: .7; }
.toc-l3 .toc-n { display: none; }
.toc-list a.is-active .toc-n { color: var(--accent-ink); opacity: 1; }
.toc-m { display: none; margin-bottom: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.toc-m summary { display: flex; align-items: center; gap: 10px; padding: 15px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); transition: transform .25s; }
.toc-m[open] summary::after { transform: rotate(-135deg); }
.toc-m-n { font: 500 .75rem var(--font-mono); padding: 3px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); }
.toc-m .toc-list { margin: 0 18px 16px; }
.share ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.share-b { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: color .2s, border-color .2s, transform .25s var(--ease); }
.share-b:hover { color: var(--accent-ink); border-color: var(--accent-ink); transform: translateY(-2px); }
.share-ok { display: block; min-height: 1em; font-size: .78rem; color: var(--accent-ink); margin-top: 6px; }
.share-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.share-inline ul { flex-direction: row; }
.share-inline .share-h { margin: 0; }
.post-share-m { display: none; margin: 28px 0 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.pn { display: grid; gap: 6px; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); transition: border-color .25s, transform .3s var(--ease); }
.pn:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pn-next { text-align: right; grid-column: 2; }
.pn-l { display: inline-flex; align-items: center; gap: 6px; font: 600 .72rem/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.pn-next .pn-l { justify-content: flex-end; }
.pn-t { font: 700 1.02rem/1.3 var(--font-display); }
.related { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(48px, 7vw, 96px); }
.post .cta { margin: 48px 0 40px; }

/* ---------- Prose ---------- */
.prose { font-size: clamp(1.04rem, 1.2vw, 1.13rem); line-height: 1.78; color: var(--ink); overflow-wrap: break-word; }
.prose > * { margin-top: 0; margin-bottom: 1.15em; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 88%, var(--ink-2)); }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); margin: 2em 0 .7em; letter-spacing: -.022em; line-height: 1.15; }
.prose h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 1.7em 0 .6em; line-height: 1.2; }
.prose h4 { font-size: 1.12rem; margin: 1.5em 0 .5em; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.prose h2 span, .prose h3 span, .prose p span, .prose li span { font-weight: inherit !important; } /* legacy inline font-weight:400 spans */
.prose b, .prose strong { font-weight: 700; color: var(--ink); }
.prose :is(h1, h2, h3) :is(b, strong) { font-weight: inherit; }
.prose a:not(.shortc-button):not(.wp-block-button__link) { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent-ink) 45%, transparent); transition: text-decoration-color .2s; }
.prose a:not(.shortc-button):hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin: .4em 0; padding-left: .2em; }
.prose ul li::marker { color: var(--lime); }
.prose ol li::marker { color: var(--accent-ink); font: 600 .9em var(--font-mono); }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--lime); font: 700 1.25em/1.45 var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.prose blockquote p { color: inherit; }
.prose blockquote cite { display: block; margin-top: 8px; font: 500 .8rem var(--font-body); color: var(--ink-3); }
.prose img { border-radius: var(--r); height: auto; }
.prose figure { margin: 2em 0; max-width: 100%; }
.prose figure.alignwide, .prose .alignwide { margin-inline: clamp(-80px, -6vw, 0px); max-width: none; }
.prose .wp-caption { max-width: 100% !important; }
.prose figcaption, .prose .wp-caption-text { margin-top: 10px; font-size: .86rem; color: var(--ink-3); text-align: center; }
.prose .aligncenter { display: block; margin-inline: auto; }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.prose hr { border: 0; height: 1px; background: var(--line-2); margin: 2.6em 0; }
.prose code { font: 500 .86em var(--font-mono); padding: .14em .42em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.prose pre { position: relative; margin: 1.8em 0; padding: 20px 22px; border-radius: var(--r); background: var(--code-bg); color: #DDE7E1; border: 1px solid rgba(238,244,240,.1); overflow-x: auto; font: 500 .88rem/1.65 var(--font-mono); tab-size: 4; }
.prose pre code { padding: 0; border: 0; background: none; font-size: inherit; color: inherit; }
.code-copy { position: absolute; top: 10px; right: 10px; height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid rgba(238,244,240,.16); background: rgba(238,244,240,.06); color: #A9B6B0; font: 600 .72rem var(--font-mono); cursor: pointer; opacity: 0; transition: opacity .2s, color .2s; }
.prose pre:hover .code-copy, .code-copy:focus-visible { opacity: 1; }
.code-copy.ok { color: #A9DF55; opacity: 1; }
.table-wrap { overflow-x: auto; margin: 1.8em 0; border: 1px solid var(--line); border-radius: var(--r); }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 520px; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; background: var(--surface-2); color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }
.prose iframe, .prose video { max-width: 100%; border-radius: var(--r); }
.prose .wp-block-embed__wrapper iframe, .prose iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.prose::after { content: ""; display: table; clear: both; }

/* Legacy Jannah shortcodes (rendered by the jannah-extensions plugin, styled here) */
.prose .tie-center-button { text-align: center; margin: 1.6em 0; }
.prose .shortc-button { display: inline-flex; align-items: center; gap: .5em; height: 48px; padding: 0 24px; border-radius: var(--r-pill); background: var(--lime); color: #07100A !important; font-weight: 700; text-decoration: none !important; box-shadow: 0 10px 30px -12px var(--glow); transition: background .25s, transform .25s var(--ease); }
.prose .shortc-button:hover { background: var(--btn-hover); transform: translateY(-1px); }
.prose .shortc-button.small { height: 40px; padding: 0 18px; font-size: .92rem; }
.prose .shortc-button.big { height: 56px; padding: 0 30px; font-size: 1.08rem; }
.prose .shortc-button .fa { display: none; }
.prose .box { margin: 1.8em 0; padding: 20px 22px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--lime); }
.prose .box .tie-shortcode-boxicon { display: none; }
.prose .box.alignleft, .prose .box.alignright { max-width: 45%; }
.prose .tabs-shortcode { margin: 1.8em 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.prose .tabs-shortcode .tabs { list-style: none; margin: 0; padding: 6px; display: flex; gap: 4px; border-bottom: 1px solid var(--line); background: var(--surface-2); overflow-x: auto; }
.prose .tabs-shortcode .tabs li { margin: 0; padding: 0; }
.prose .tabs-shortcode .tabs a { display: block; padding: 9px 16px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 700; white-space: nowrap; }
.prose .tabs-shortcode .tabs a[aria-selected="true"] { background: var(--surface-solid); color: var(--ink); box-shadow: var(--shadow); }
.prose .tabs-shortcode .tab-content { padding: 18px 22px 4px; }
.prose .tabs-shortcode .tab-content[hidden] { display: none; }
.prose .tabs-shortcode .clearfix { display: none; }
.prose .tabs-vertical { display: grid; grid-template-columns: 200px 1fr; }
.prose .tabs-vertical .tabs { flex-direction: column; border-bottom: 0; border-right: 1px solid var(--line); }

/* ---------- Comments ---------- */
.comments { margin-top: 48px; }
.comments-h { font-size: 1.5rem; margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.comment-body { padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; }

/* ---------- 404 ---------- */
.nf { position: relative; padding-top: clamp(48px, 9vw, 120px); padding-bottom: clamp(32px, 5vw, 64px); overflow: hidden; isolation: isolate; }
.nf-bg { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center end; pointer-events: none; }
.nf-bg span { font: 900 clamp(10rem, 34vw, 26rem)/.8 var(--font-display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--line); transform: translateX(10%); }
.nf-in { display: grid; gap: 18px; justify-items: start; max-width: 680px; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Footer ---------- */
.ftr { position: relative; z-index: 1; margin-top: auto; padding: clamp(48px, 7vw, 88px) 0 28px; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2); font-size: .94rem; overflow: hidden; }
.ftr-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.ftr-brand p { margin: 16px 0 0; max-width: 380px; }
.ftr-contact { font-size: .86rem; color: var(--ink-3); }
.ftr-h { font: 600 .76rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; }
.ftr-h2 { margin-top: 28px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr a { transition: color .2s; }
.ftr a:hover { color: var(--accent-ink); }
.ftr-word { margin: clamp(40px, 6vw, 72px) 0 0; font: 900 clamp(4rem, 15.5vw, 13.5rem)/.8 var(--font-display); letter-spacing: -.055em; text-align: center; color: transparent; -webkit-text-stroke: 1px var(--line-2); user-select: none; white-space: nowrap; }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--ink-3); }
.ftr-brands { display: flex; gap: 18px; }

/* ---------- Reveal ---------- */
.js-motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 1101px) { .kbd { display: inline-grid; place-items: center; position: absolute; right: -6px; bottom: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 5px; background: var(--bg-3); border: 1px solid var(--line-2); font: 600 .62rem/1 var(--font-mono); color: var(--ink-3); } }
@media (max-width: 1100px) {
	.nav ul a { padding: 0 9px; font-size: .9rem; }
	.post-layout.has-toc { grid-template-columns: minmax(0, 1fr); }
	.post-layout { grid-template-columns: minmax(0, 1fr) !important; }
	.post-side { display: none; }
	.toc-m { display: block; }
	.post-share-m { display: block; }
	.post-main { width: 100%; margin-inline: auto; } /* width:100% keeps stretch sizing: with auto margins alone a wide table would size the column past the viewport */
	.topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.hdr-in { gap: 12px; }
	.nav-toggle { display: inline-grid; }
	.nav {
		position: fixed; left: 0; right: 0; top: var(--hdr-h); height: calc(100dvh - var(--hdr-h)); z-index: var(--z-hdr);
		background: var(--bg); padding: 20px var(--gutter) 32px; overflow-y: auto; display: none; flex-direction: column; gap: 24px;
	}
	.nav-open .nav { display: flex; animation: fade .2s; }
	.nav-open .hdr { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
	.nav-open .nav-toggle .i-open { display: none; }
	.nav-open .nav-toggle .i-close { display: block; }
	html.menu-lock, html.menu-lock body { overflow: hidden; }
	.nav ul { flex-direction: column; gap: 0; }
	.nav ul a { height: 56px; padding: 0; font: 800 1.6rem var(--font-display); letter-spacing: -.02em; color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; width: 100%; }
	.nav-m-extra { display: grid; gap: 10px; }
	.hdr-login { display: none; }
	.feature { grid-template-columns: 1fr; }
	.feature-media { margin: 10px 10px 0; }
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ftr-grid { grid-template-columns: 1fr 1fr; }
	.ftr-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	:root { --hdr-h: 60px; }
	.logo { height: 23px; }
	.brand { gap: 8px; }
	.grid { grid-template-columns: minmax(0, 1fr); }
	.topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.topic { min-height: 124px; padding: 18px; }
	.topic-name { font-size: 1.15rem; }
	.sform { padding-left: 42px; }
	.sform-ic { left: 15px; }
	.sform .btn { padding: 0 13px; }
	.hero-title { font-size: clamp(2.5rem, 12vw, 3.4rem); }
	.post-nav { grid-template-columns: 1fr; }
	.pn-next { grid-column: auto; }
	.prose .alignleft, .prose .alignright, .prose .box.alignleft, .prose .box.alignright { float: none; margin: 1.4em auto; max-width: 100%; }
	.prose .tabs-vertical { grid-template-columns: 1fr; }
	.theme-menu { position: fixed; right: var(--gutter); top: calc(var(--hdr-h) + 6px); }
	.ftr-grid { gap: 28px; }
	.card-body { padding: 18px; }
	.feature-badge { left: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
	.hdr, .ftr, .post-side, .cta, .related, .post-share-m, .toc-m, .catbar, .progress, .search-dlg { display: none !important; }
	body { background: #fff; color: #000; }
	body::before { display: none; }
}
