:root {
  --ink: #0A0F1F; --ink-2: #121A33; --ink-3: #1A2547; --accent: #2F5BFF; --sky: #AFC3FF; --cloud: #F3F5FB;
  --text: rgba(243, 245, 251, .74); --faint: rgba(243, 245, 251, .46); --line: rgba(243, 245, 251, .12);
  --display: "Lexend", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(20px, 5vw, 64px);
  color-scheme: dark;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0; background: var(--ink); color: var(--cloud); font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased }
h1, h2, h3, p, ul, ol, figure { margin: 0 }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance }
a { color: inherit; text-decoration: none }
img, svg { display: block; max-width: 100% }
.inner { max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter) }
.narrow { max-width: 760px; margin: 0 auto; padding-inline: var(--gutter) }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sky) }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px }

.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 15px var(--body); padding: 14px 24px; border-radius: 999px; background: var(--accent); color: #fff; transition: transform .2s, box-shadow .2s }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(47, 91, 255, .22) }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(10, 15, 31, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line) }
.nav .inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px }
.nav .logo img { height: 30px; width: auto; margin-left: -14px }
.nav .right { display: flex; align-items: center; gap: 28px; font-size: 14.5px }
.nav .right a:not(.btn) { opacity: .74; transition: opacity .2s }
.nav .right a:not(.btn):hover, .nav .right a[aria-current] { opacity: 1 }
.nav .btn { padding: 10px 18px; font-size: 14px }

/* blog index */
.blog-head { padding: clamp(64px, 9vw, 120px) 0 clamp(36px, 4vw, 52px) }
.blog-head h1 { font-size: clamp(36px, 5.4vw, 68px); max-width: 15ch; margin-top: 22px }
.blog-head p { color: var(--text); max-width: 56ch; margin-top: 22px; font-size: 18px }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px }
.filters button { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: border-color .2s, color .2s, background .2s }
.filters button:hover { border-color: var(--cloud); color: var(--cloud) }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500 }
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-bottom: clamp(80px, 10vw, 140px) }
.post { display: flex; flex-direction: column; gap: 14px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 3vw, 36px); min-width: 0; transition: transform .25s, border-color .25s, background .25s }
.post:hover { transform: translateY(-4px); border-color: rgba(175, 195, 255, .45); background: var(--ink-3) }
.post h2 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -.01em; line-height: 1.22 }
.post p { color: var(--text); font-size: 16px }
.post .meta { margin-top: auto; padding-top: 10px; font-size: 13.5px; color: var(--faint); display: flex; justify-content: space-between; align-items: center }
.post .meta .arr { color: var(--sky); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s }
.post:hover .meta .arr { opacity: 1; transform: none }
.empty { color: var(--faint); padding: 20px 0 }

/* article */
.article-head { padding: clamp(48px, 7vw, 90px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line) }
.back { display: inline-flex; gap: 8px; font-size: 14.5px; color: var(--text); margin-bottom: 26px; transition: color .2s }
.back:hover { color: var(--cloud) }
.article-head h1 { font-size: clamp(32px, 4.6vw, 54px); margin-top: 18px }
.article-head .meta { margin-top: 22px; font-size: 14px; color: var(--faint) }
.prose { padding: clamp(36px, 5vw, 60px) 0 clamp(60px, 8vw, 100px); display: flex; flex-direction: column; gap: 24px; color: var(--text); font-size: 18px }
.prose h2 { color: var(--cloud); font-size: clamp(24px, 2.6vw, 30px); margin-top: 28px }
.prose strong { color: var(--cloud); font-weight: 600 }
.prose a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px }
.note { background: var(--ink-2); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; padding: 20px 24px; color: var(--cloud); font-size: 16.5px }
.checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px }
.checks li { position: relative; padding-left: 34px }
.checks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--sky); border-bottom: 2px solid var(--sky); transform: rotate(-45deg) }
.figure { background: var(--ink-2); border: 1px dashed var(--line); border-radius: 16px; aspect-ratio: 16 / 9; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint) }
figcaption { font-size: 14px; color: var(--faint); margin-top: 10px }
.cta-box { background: var(--ink-2); border: 1px solid var(--line); border-radius: 22px; padding: clamp(32px, 5vw, 56px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: clamp(70px, 9vw, 120px) }
.cta-box h2 { font-size: clamp(24px, 3vw, 34px) }
.cta-box p { color: var(--text); max-width: 46ch }
.cta-box .btn { margin-top: 10px }

/* footer */
footer { border-top: 1px solid var(--line); color: var(--faint); padding: 56px 0 40px; font-size: 13.5px }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start }
footer img { height: 44px; width: auto }
footer p { max-width: 62ch }

@media (max-width: 820px) { .posts { grid-template-columns: minmax(0, 1fr) } }
@media (max-width: 520px) { body { font-size: 16px } .prose { font-size: 17px } .nav .right { gap: 16px } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } .post, .btn, .post .meta .arr { transition: none } }
