:root {
  --bg: #0f0d17;
  --bg-glow: radial-gradient(60% 40% at 50% -5%, rgba(124,58,237,.24), transparent 70%);
  --surface: #171225; --surface-2: #1e1930;
  --border: rgba(255,255,255,.09); --border-strong: rgba(255,255,255,.16);
  --text: #e8e6f0; --muted: #9b96ad;
  --violet: #7c3aed; --violet-bright: #a78bfa; --pink: #f0abfc;
  --amber: #fbbf24; --mint: #34d399;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
body {
  background: var(--bg); background-image: var(--bg-glow); background-repeat: no-repeat;
  color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 34px 22px 90px; }
header { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--text); text-decoration: none;
        display: inline-flex; align-items: center; gap: 9px; }
.logo img { display: block; border-radius: 7px; }
.logo .dot { color: var(--violet-bright); }
header nav { margin-left: auto; display: flex; gap: 16px; font-size: 14px; }
header nav a { color: var(--muted); text-decoration: none; }
header nav a:hover { color: var(--text); }

h1 { font-size: 34px; font-weight: 800; letter-spacing: -.028em; line-height: 1.15; margin-bottom: 14px; }
.meta { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 30px; }
article h2 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; margin: 38px 0 12px; }
article h3 { font-size: 17px; font-weight: 700; margin: 26px 0 8px; }
article p, article li { color: #cfcbdd; font-size: 16.5px; line-height: 1.72; }
article p { margin-bottom: 17px; }
article ul, article ol { margin: 0 0 17px 22px; }
article li { margin-bottom: 8px; }
article strong { color: var(--text); }
article a { color: var(--violet-bright); }
article em { color: var(--text); font-style: italic; }
blockquote { border-left: 3px solid var(--violet); padding: 4px 0 4px 18px; margin: 22px 0; color: var(--muted); }
.lede { font-size: 18.5px; line-height: 1.65; color: var(--muted); margin-bottom: 26px; }
.note { background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
        padding: 18px 20px; margin: 26px 0; }
.note p:last-child { margin-bottom: 0; }
.note b { color: var(--amber); }
table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
td { color: #cfcbdd; }

.cta-box { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px;
           padding: 22px 24px; margin: 38px 0 0; }
.cta-box h3 { margin-top: 0; }
.cta-box a.btn { display: inline-block; margin-top: 12px; background: var(--violet); color: #fff;
                 text-decoration: none; padding: 11px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.cta-box a.btn:hover { background: var(--violet-bright); }

.posts { display: grid; gap: 16px; }
.post { background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
        padding: 20px 22px; text-decoration: none; color: inherit; display: block; }
.post:hover { border-color: var(--violet-bright); }
.post h2 { font-size: 18.5px; margin: 0 0 7px; letter-spacing: -.01em; }
.post p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }
.post .m { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 10px; }

footer { margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--border);
         color: var(--muted); font-family: var(--mono); font-size: 11.5px;
         display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }
@media (max-width: 560px) { h1 { font-size: 27px; } .wrap { padding: 26px 16px 70px; } article p, article li { font-size: 16px; } }

/* ---- imagery ----
   Width/height are set on every image so the browser reserves the space before the
   bytes arrive; without them the text reflows as each one loads, which is both ugly
   and a Core Web Vitals penalty (CLS). */
figure { margin: 26px 0; }
figure img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--border); }
figcaption { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-top: 9px; }
.hero { margin: 0 0 30px; }
.post .thumb { width: 100%; height: auto; aspect-ratio: 16/7; object-fit: cover;
               border-radius: 10px; margin-bottom: 13px; display: block; background: #0b0912; }
