/* Doom Count: blog, privacy, terms and 404. The landing page has its own home.css; the two share tokens and type. */
@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/geist-mono.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url(/fonts/space-grotesk-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #0D0E13; --bg2: #191A21; --black: #050608;
  --lime: #C8FF3A; --glow: #8BE61A;
  --text: #F1F3F7; --soft: #C6CAD3; --muted: #9AA0AE; --line: rgba(241, 243, 247, .12);
  --sans: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --display: "Space Grotesk", var(--sans);
  --gut: clamp(20px, 5vw, 72px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--black); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(90% 520px at 50% -120px, rgba(139, 230, 26, .1), transparent 70%), var(--black); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
main { flex: 1; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
canvas, img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--bg); }
.wrap { width: min(100% - var(--gut) * 2, 1120px); margin-inline: auto; }
.wrap.narrow { width: min(100% - var(--gut) * 2, 720px); }
h1, h2, h3, .brand span { font-family: var(--display); font-weight: 700; letter-spacing: -.045em; }
h1 em, h2 em { font-style: normal; color: var(--lime); }

/* ---------- Bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(5, 6, 8, .78); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; white-space: nowrap; }
.brand canvas { width: 36px; height: 36px; border-radius: 22.5%; box-shadow: 0 0 22px rgba(139, 230, 26, .35); }
.brand span { font-size: 22px; line-height: 1; }
.bar nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
.bar nav a { color: var(--muted); text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--text); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: 999px; background: var(--lime); color: #0D0E13; font-weight: 650; font-size: 16px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; box-shadow: 0 0 0 1px rgba(200, 255, 58, .4), 0 8px 40px rgba(139, 230, 26, .25); transition: transform .2s ease, box-shadow .2s ease; }
.btn[href]:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(200, 255, 58, .6), 0 12px 50px rgba(139, 230, 26, .4); }
.btn.is-soon { cursor: default; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; box-shadow: 0 0 0 1px rgba(200, 255, 58, .4); }
.btn-ghost { background: rgba(241, 243, 247, .06); color: var(--text); box-shadow: inset 0 0 0 1px rgba(241, 243, 247, .22); }
.btn-ghost[href]:hover { background: rgba(241, 243, 247, .12); box-shadow: inset 0 0 0 1px rgba(241, 243, 247, .4); }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Page head ---------- */
.page { padding: clamp(56px, 9vw, 110px) 0 clamp(70px, 10vw, 130px); }
.page-head { max-width: 820px; }
.page-head h1 { margin-top: 18px; font-size: clamp(40px, 5.6vw, 72px); line-height: .98; text-wrap: balance; }
.page-head .lede { margin-top: 22px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--soft); text-wrap: pretty; }
.eyebrow, .meta { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); }
.meta a { color: var(--lime); text-decoration: none; }
.meta > * + *::before { content: "·"; margin-right: 18px; color: rgba(154, 160, 174, .5); }

/* ---------- Prose ---------- */
.prose { margin-top: clamp(40px, 5vw, 60px); max-width: 720px; color: var(--soft); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(28px, 3vw, 36px); line-height: 1.08; color: var(--text); scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.8em; font-size: 22px; line-height: 1.2; letter-spacing: -.03em; color: var(--text); }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose strong, .prose b { color: var(--text); font-weight: 600; }
.prose a { color: var(--lime); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--muted); }
.prose code { font: 500 .9em var(--mono); background: var(--bg2); padding: 2px 6px; border-radius: 6px; color: var(--text); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--lime); color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--line); }
.prose th { font: 500 11.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.prose td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }

.panel { border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, rgba(25, 26, 33, .9), rgba(13, 14, 19, .9)); padding: 24px 26px; }
.summary h2 { margin: 0; font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.summary ul { margin-top: 14px; padding: 0; list-style: none; }
.summary li { position: relative; padding-left: 22px; color: var(--text); }
.summary li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--glow); }

.post-widget { margin: 2em 0 !important; display: flex; justify-content: center; }
.post-widget canvas { width: 100%; max-width: 364px; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .55)); }
.post-widget canvas[data-size=small] { max-width: 190px; }

.faq { margin-top: 18px !important; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 22px/1 var(--mono); color: var(--lime); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 20px 0; }

.post-cta { margin-top: clamp(56px, 7vw, 80px); max-width: 720px; display: flex; align-items: center; gap: 20px; }
.post-cta canvas { flex: none; width: 64px; height: 64px; border-radius: 22.5%; box-shadow: 0 0 30px rgba(139, 230, 26, .35); }
.post-cta h3 { font-size: 21px; letter-spacing: -.035em; }
.post-cta p { margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.post-cta .btn { margin-left: auto; }

/* ---------- Blog index ---------- */
.posts { margin-top: clamp(44px, 6vw, 70px); border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: 200px 1fr; gap: 10px 40px; padding: 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s; }
.post-row .meta { padding-top: 8px; }
.post-row h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.08; letter-spacing: -.04em; transition: color .2s; }
.post-row p:not(.meta) { margin-top: 10px; color: var(--muted); max-width: 46em; }
.post-row:hover h2 { color: var(--lime); }

/* ---------- 404 ---------- */
.lost { padding: clamp(80px, 14vh, 160px) 0; text-align: center; }
.lost canvas { width: min(100%, 420px); margin: 0 auto; filter: drop-shadow(0 0 40px rgba(139, 230, 26, .35)); }
.lost h1 { margin-top: 40px; font-size: clamp(36px, 5vw, 60px); line-height: 1; text-wrap: balance; }
.lost .lede { margin: 18px auto 0; max-width: 32em; color: var(--soft); font-size: 18px; }

/* ---------- Footer (same as the landing page) ---------- */
.foot { padding: 50px 0 90px; background: var(--black); border-top: 1px solid var(--line); }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: baseline; }
.spite { font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot small { grid-column: 1 / -1; color: #6B7080; font-size: 13px; line-height: 1.6; }

@media (max-width: 720px) {
  .bar .wrap { height: 60px; gap: 14px; }
  .brand span { font-size: 19px; }
  .brand canvas { width: 32px; height: 32px; }
  .bar nav { gap: 16px; }
  .bar nav a:not([href="/blog/"]) { display: none; }
  .post-row { grid-template-columns: 1fr; padding: 24px 0; }
  .post-row .meta { padding-top: 0; }
  .post-cta { flex-direction: column; align-items: flex-start; }
  .post-cta .btn { margin-left: 0; }
  .foot .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .bar .btn-sm { display: none; } }
@media (prefers-reduced-motion: reduce) { .btn, .post-row h2 { transition: none; } }
