/* Tokens. Radius system: buttons pill, cards 20px, inputs 12px. One accent (cobalt). */
@font-face { font-family: "Geist"; src: url(fonts/Geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/GeistMono.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0b0d10;
  --surface: #12151a;
  --surface-2: #171b21;
  --line: rgb(255 255 255 / .09);
  --text: #eceef2;
  --muted: #a0a8b4;
  --accent: #7d9bff;
  --accent-solid: #3d63e8;
  --on-accent: #ffffff;
  --glow: rgb(61 99 232 / .22);
  --shadow: 0 24px 60px rgb(4 8 20 / .5);
  --r-card: 20px;
  --r-input: 12px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --line: rgb(12 18 32 / .1);
  --text: #12151b;
  --muted: #566070;
  --accent: #2450d6;
  --accent-solid: #2450d6;
  --glow: rgb(36 80 214 / .16);
  --shadow: 0 24px 50px rgb(20 30 60 / .12);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(1200px, 100% - 64px); } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent-solid); color: var(--on-accent); padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* icons (Phosphor, masked so they follow currentColor) */
.ico { display: inline-block; width: 1.15em; height: 1.15em; background: currentColor; flex: none;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico--arrow { --i: url(assets/icons/arrow-up-right.svg); }
.ico--dl { --i: url(assets/icons/download-simple.svg); }
.ico--sun { --i: url(assets/icons/sun.svg); }
.ico--moon { --i: url(assets/icons/moon.svg); }
.ico--gh { --i: url(assets/icons/github-logo.svg); }
.ico--in { --i: url(assets/icons/linkedin-logo.svg); }
.ico--mail { --i: url(assets/icons/envelope-simple.svg); }
.ico--cube { --i: url(assets/icons/cube.svg); }
.ico--stack { --i: url(assets/icons/stack.svg); }
.ico--branch { --i: url(assets/icons/git-branch.svg); }
.ico--shield { --i: url(assets/icons/shield-check.svg); }
.ico--back { --i: url(assets/icons/arrow-left.svg); }
.ico--seal { --i: url(assets/icons/seal-check.svg); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; height: 64px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent; transition: border-color 200ms ease; }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: .9rem; white-space: nowrap; transition: color 150ms ease, background-color 150ms ease; }
.nav__links a.is-active { color: var(--text); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--text); background: var(--surface-2); } }
@media (max-width: 719px) { .nav__links { display: none; } .brand { margin-right: auto; } }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: transform 160ms var(--ease-out), background-color 150ms ease; }
.icon-btn:active { transform: scale(.94); }
.icon-btn .ico { grid-area: 1 / 1; transition: opacity 200ms ease, transform 250ms var(--ease-out), filter 200ms ease; }
:root[data-theme="dark"] .ico--sun { opacity: 0; transform: scale(.7) rotate(-40deg); filter: blur(2px); }
:root[data-theme="light"] .ico--moon { opacity: 0; transform: scale(.7) rotate(40deg); filter: blur(2px); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font: 500 .95rem/1 var(--font); white-space: nowrap; cursor: pointer; border: 1px solid transparent; transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, box-shadow 200ms ease; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent-solid); color: var(--on-accent); box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 8px 24px var(--glow); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: color-mix(in srgb, var(--accent-solid) 88%, #fff); }
  .btn--ghost:hover { background: var(--surface-2); }
  .btn .ico { transition: transform 200ms var(--ease-out); }
  .btn:hover .ico { transform: translate(2px, -2px); }
  .btn:hover .ico--dl { transform: translateY(2px); }
}

/* hero */
.hero { display: grid; gap: 40px; align-items: center; min-height: calc(100dvh - 64px); padding-block: 32px 40px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.25fr .75fr; gap: 64px; padding-top: 0; } }
.hero__title { font-size: clamp(2.1rem, 7.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.045em; }
.hero__title em { font-style: normal; color: var(--accent); }
.line { display: block; white-space: nowrap; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.line > span { display: block; }
.hero__sub { margin-top: 24px; max-width: 46ch; font-size: 1.15rem; color: var(--muted); }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { justify-self: start; width: min(100%, 300px); }
@media (min-width: 720px) { .hero__media { justify-self: center; width: min(100%, 380px); } }
@media (min-width: 900px) { .hero__media { justify-self: end; } }
.portrait { position: relative; border-radius: var(--r-card); isolation: isolate; }
.portrait::before { content: ""; position: absolute; inset: -12% -8% -10% -8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(10px); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--r-card); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* logo wall */
.stack { padding-block: 24px 96px; }
.stack__title { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 16px; align-items: center; }
@media (min-width: 720px) { .logos { grid-template-columns: repeat(8, 1fr); } }
@media (min-width: 1000px) { .logos { grid-template-columns: repeat(16, 1fr); gap: 16px; } }
.logo { display: block; width: 100%; height: 28px; background: var(--muted); opacity: .75; transition: opacity 200ms ease, background-color 200ms ease;
  -webkit-mask: var(--l) center / contain no-repeat; mask: var(--l) center / contain no-repeat; }
@media (hover: hover) and (pointer: fine) { .logo:hover { background: var(--text); opacity: 1; } }

/* shared section rhythm */
section:not(.hero):not(.stack) { padding-block: clamp(64px, 10vw, 128px); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; }

/* about */
.about { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: .7fr 1.3fr; gap: 80px; } }
.about__photo { max-width: 340px; }
.about__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-card); border: 1px solid var(--line); }
.about__body { max-width: 62ch; }
.about__body p { margin-top: 20px; color: var(--muted); font-size: 1.05rem; }
.about__body h2 + p { margin-top: 24px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .85rem; order: 2; }
.facts dd { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -.04em; order: 1; }
.facts div { display: flex; flex-direction: column; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* bento: 4 items, 4 cells */
.cap h2 { margin-bottom: 40px; }
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .cell--k8s { grid-column: span 4; }
  .cell--iac { grid-column: span 2; }
  .cell--cd { grid-column: span 2; }
  .cell--sec { grid-column: span 4; }
}
.cell { position: relative; overflow: hidden; padding: 32px; min-height: 240px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.cell .ico { position: absolute; top: 28px; left: 32px; width: 32px; height: 32px; color: var(--accent); }
.cell h3 { font-size: 1.4rem; margin-bottom: 8px; }
.cell p { color: var(--muted); max-width: 46ch; }
.cell--k8s { background: radial-gradient(120% 140% at 100% 0%, var(--glow), transparent 60%), var(--surface); }
.cell--sec { background: repeating-linear-gradient(135deg, transparent 0 14px, var(--line) 14px 15px), var(--surface); }
.cell--sec::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--surface) 30%, transparent 100%); }
.cell--iac { background: var(--surface-2); }
.cell--cd { background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
/* pointer spotlight (hover-capable only; JS sets --mx/--my) */
@media (hover: hover) and (pointer: fine) {
  .cell::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 250ms ease;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 70%); }
  .cell:hover::before { opacity: 1; }
}

/* experience */
.exp h2 { margin-bottom: 40px; }
.now { display: grid; gap: 16px; }
@media (min-width: 900px) { .now { grid-template-columns: 1fr 1fr; } }
.now__item { padding: 32px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
.now__meta, .past__top span { font: 400 .8rem/1 var(--mono); color: var(--accent); letter-spacing: 0; }
.now__item h3 { font-size: 1.5rem; margin: 16px 0 4px; }
.org { color: var(--text); font-weight: 500; }
.org .meta { color: var(--muted); font-weight: 400; font-size: .85rem; margin-left: 8px; }
.now__item p:not(.org) { margin-top: 16px; color: var(--muted); }
.exp__sub { font-size: 1.1rem; color: var(--muted); font-weight: 500; letter-spacing: -.01em; margin: 56px 0 8px; }
.past { display: grid; gap: 0 48px; }
@media (min-width: 900px) { .past { grid-template-columns: 1fr 1fr; } }
.past__item { padding: 24px 0; border-top: 1px solid var(--line); }
.past__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.past__top h4 { font-size: 1.05rem; }
.past__item .org { margin-top: 2px; color: var(--accent); font-size: .95rem; }
.past__item p:not(.org) { margin-top: 10px; color: var(--muted); font-size: .95rem; }

/* blog */
.blog h2 { margin-bottom: 40px; }
.blog__grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .blog__grid { grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; } .post-card--lead { grid-row: span 2; } }
.post-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); transition: transform 220ms var(--ease-out), border-color 200ms ease; }
.post-card--lead { justify-content: flex-end; min-height: 320px; background: radial-gradient(110% 100% at 100% 0%, var(--glow), transparent 60%), var(--surface); }
.post-card__tags { font: 400 .8rem/1 var(--mono); color: var(--accent); }
.post-card h3 { font-size: 1.35rem; line-height: 1.2; }
.post-card--lead h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.post-card p { color: var(--muted); max-width: 52ch; }
.post-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 500; }
.post-card:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .post-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-2px); } .post-card:hover .ico { transform: translate(2px, -2px); } .post-card .ico { transition: transform 200ms var(--ease-out); } }

/* blog series */
.series { display: grid; gap: 32px; padding: 32px; border-radius: var(--r-card); border: 1px solid var(--line); background: radial-gradient(90% 120% at 0% 0%, var(--glow), transparent 60%), var(--surface); }
@media (min-width: 900px) { .series { grid-template-columns: .9fr 1.4fr; gap: 56px; padding: 40px; align-items: start; } }
.series__lead h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; margin: 14px 0 12px; }
.series__lead p { color: var(--muted); max-width: 44ch; }
.series__list li + li { border-top: 1px solid var(--line); }
.series__list a { display: grid; grid-template-columns: 64px 1fr auto 20px; column-gap: 16px; align-items: start; padding: 18px 0; transition: color 150ms ease; }
.series__no { font: 500 .8rem/1 var(--mono); color: var(--accent); padding-top: 5px; }
.series__date { padding-top: 5px; }
.series__list .ico { margin-top: 2px; }
.series__txt { display: grid; gap: 2px; }
.series__txt strong { font-weight: 600; letter-spacing: -.01em; }
.series__txt span { color: var(--muted); font-size: .92rem; }
.series__date { font: 400 .78rem/1 var(--mono); color: var(--muted); white-space: nowrap; }
.series__list .ico { color: var(--muted); transition: transform 200ms var(--ease-out), color 150ms ease; }
@media (max-width: 719px) { .series__list a { grid-template-columns: 1fr 20px; row-gap: 6px; } .series__no { grid-column: 1; } .series__list .ico { grid-column: 2; grid-row: 1; } .series__txt { grid-column: 1 / -1; } .series__date { display: none; } }
@media (hover: hover) and (pointer: fine) { .series__list a:hover strong, .series__list a:hover .ico { color: var(--accent); } .series__list a:hover .ico { transform: translate(2px, -2px); } }
.blog__sub { font-size: 1.1rem; color: var(--muted); font-weight: 500; letter-spacing: -.01em; margin: 56px 0 16px; }

/* certifications */
.certs h2 { margin-bottom: 40px; }
.certs__top { display: grid; gap: 16px; }
@media (min-width: 900px) { .certs__top { grid-template-columns: 1fr 1.7fr; } }
.certs__feature { display: flex; flex-direction: column; gap: 8px; padding: 32px; border-radius: var(--r-card); border: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 0%, var(--glow), transparent 65%), var(--surface); transition: transform 220ms var(--ease-out), border-color 200ms ease; }
.certs__feature img { width: min(200px, 60%); height: auto; margin: 0 auto 16px; filter: drop-shadow(0 18px 30px rgb(0 0 0 / .35)); }
.certs__feature h3 { font-size: 1.8rem; }
.certs__feature p { color: var(--muted); }
.badge__verify { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 500; font-size: .95rem; color: var(--accent); }
.certs__sub { font-size: 1.1rem; color: var(--muted); font-weight: 500; letter-spacing: -.01em; margin: 48px 0 16px; }
.badges { display: grid; gap: 16px; }
.badges--k8s { grid-template-columns: 1fr; }
.badges > *, .certs__top > * { min-width: 0; }
.badges--cloud { grid-template-columns: 1fr; }
@media (min-width: 720px) { .badges--cloud { grid-template-columns: repeat(6, 1fr); } .badges--cloud .badge { grid-column: span 2; } .badges--cloud .badge:nth-child(n+4) { grid-column: span 3; } .badges--k8s { grid-template-columns: repeat(6, 1fr); } .badges--k8s .badge { grid-column: span 2; } .badges--k8s .badge:nth-child(n+4) { grid-column: span 3; } }
.badge { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface-2); transition: transform 220ms var(--ease-out), border-color 200ms ease; }
.badge img { width: 72px; height: 72px; flex: none; object-fit: contain; border-radius: 12px; }
.badge__txt { display: grid; gap: 2px; min-width: 0; }
.badge__txt strong { font-weight: 600; letter-spacing: -.01em; }
.badge__txt span { color: var(--muted); font-size: .88rem; }
.badge__txt em { font: 400 .75rem/1.4 var(--mono); color: var(--accent); font-style: normal; margin-top: 4px; }
@media (min-width: 720px) { .badges--k8s .badge:nth-child(-n+3) { flex-direction: column; align-items: flex-start; } .badges--k8s .badge:nth-child(-n+3) img { width: 88px; height: 88px; } }
.badge:active, .certs__feature:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .badge:hover, .certs__feature:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-2px); } .certs__feature .ico { transition: transform 200ms var(--ease-out); } .certs__feature:hover .ico { transform: translate(2px, -2px); } }
.certs__more { margin-top: 32px; color: var(--muted); font-size: .95rem; max-width: 80ch; }
.certs__more b { color: var(--text); font-weight: 500; margin-right: 8px; }

/* contact */
.contact { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
.contact__lead p { margin-top: 20px; color: var(--muted); max-width: 44ch; font-size: 1.05rem; }
.links { margin-top: 32px; display: grid; gap: 4px; justify-items: start; }
.links a { display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--text); transition: color 150ms ease; }
.links .ico { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .links a:hover { color: var(--accent); } }
.form { padding: 32px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .9rem; font-weight: 500; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: var(--r-input); border: 1px solid color-mix(in srgb, var(--muted) 45%, transparent); background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; resize: vertical; transition: border-color 150ms ease, box-shadow 150ms ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.field [aria-invalid="true"] { border-color: #e5484d; }
.err { color: #ff7b80; font-size: .85rem; min-height: 0; }
:root[data-theme="light"] .err { color: #c4262b; }
.form .btn { justify-self: start; }
.status { font-size: .95rem; color: var(--muted); min-height: 1.4em; }
.status a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.status.err-msg { color: #ff7b80; }
:root[data-theme="light"] .status.err-msg { color: #c4262b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.status.ok { color: var(--accent); }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 32px; color: var(--muted); font-size: .9rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* motion: hero on load, sections on scroll. Transform/opacity only. */
@media (prefers-reduced-motion: no-preference) {
  .line > span { transform: translateY(105%); animation: rise 800ms var(--ease-out) forwards; }
  .line:nth-child(2) > span { animation-delay: 80ms; }
  .hero__sub, .hero__cta, .hero__media { opacity: 0; transform: translateY(14px); animation: fade 700ms var(--ease-out) forwards; }
  .hero__sub { animation-delay: 220ms; }
  .hero__cta { animation-delay: 300ms; }
  .hero__media { animation-delay: 160ms; }
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; transform: none; } }

/* guides */
.guides { display: grid; gap: 16px; }
@media (min-width: 900px) { .guides { grid-template-columns: 1fr 1fr; } }
.guide { padding-block: 40px 96px; display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.guide .prose, .toc { min-width: 0; }
.guide__head h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; }
.toc summary { cursor: pointer; font-weight: 600; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc > details > ul { margin-top: 8px; }
.toc li ul { margin: 2px 0 8px 12px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 12px; color: var(--muted); font-size: .88rem; line-height: 1.4; border-radius: 8px; transition: color 150ms ease; }
.toc > details > ul > li > a { color: var(--text); font-weight: 500; }
.toc a.is-active { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--accent); } }
@media (min-width: 1000px) {
  .guide { grid-template-columns: 280px minmax(0, 1fr); column-gap: 64px; max-width: 1200px; align-items: start; }
  .guide__head { grid-column: 1 / -1; }
  .toc { position: sticky; top: 88px; max-height: calc(100dvh - 112px); overflow-y: auto; overscroll-behavior: contain; }
  .toc summary { pointer-events: none; background: none; border: 0; padding: 0 12px 8px; }
  .toc details:not([open]) > ul { display: block; }
  .guide .prose { margin-top: 0; max-width: 780px; }
}
.prose h2[id], .prose h3[id] { scroll-margin-top: 88px; }

/* blog post pages */
.post { padding-block: 40px 96px; max-width: 760px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; margin-bottom: 32px; transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .back:hover { color: var(--text); } }
.post__head h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; }
.post__meta { margin-top: 16px; color: var(--muted); font: 400 .85rem/1.4 var(--mono); }
.prose { margin-top: 48px; font-size: 1.05rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.7rem; margin-top: 2.2em; line-height: 1.15; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose li + li { margin-top: .35em; }
.prose code { font: 400 .88em var(--mono); background: var(--surface-2); padding: .15em .4em; border-radius: 6px; }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; line-height: 1.6; }
.prose pre code { background: none; padding: 0; font-size: .85rem; white-space: pre; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 16px; color: var(--muted); }
.prose img { border-radius: 14px; }

.prose pre code { font-family: var(--mono), ui-monospace, Menlo, monospace; }
