/* Velxen blog: the home page's look (ink, amber, Instrument Sans) for the post list and article pages. */
:root {
  --ink: #0a0b0e; --ink2: #0f1116; --panel: #13161d; --line: #232835; --line2: #2d3443;
  --text: #f2f4f8; --muted: #9aa3b2; --dim: #6b7383; --amber: #f7a600; --amber2: #ffc247;
  --display: 'Instrument Sans', 'Inter', -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--text); font: 16px/1.65 'Inter', -apple-system, 'Segoe UI', sans-serif; }
a { color: var(--amber); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 32px) 72px; }
.kicker { font: 500 12px/1 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; text-wrap: balance; }

/* list */
.blog-head h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; font-weight: 600; margin: 14px 0 10px; }
.blog-head .lead { color: var(--muted); max-width: 56ch; margin: 0 0 34px; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, var(--panel), var(--ink2));
        text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(247,166,0,.5); transform: translateY(-3px); }
.card .cover { aspect-ratio: 16 / 9; background: radial-gradient(circle at 70% 30%, rgba(247,166,0,.25), transparent 60%), var(--ink2); display: grid; place-items: center; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .cover svg { width: 64px; height: 64px; opacity: .9; }
.card .txt { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .cat { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.card h2 { font-size: 20px; line-height: 1.25; margin: 0; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .meta { margin-top: auto; padding-top: 8px; color: var(--dim); font-size: 13px; }
.empty { color: var(--muted); }

/* article */
.post { max-width: 740px; margin: 0 auto; }
.post .back { font-size: 14px; text-decoration: none; color: var(--muted); }
.post .back:hover { color: var(--amber); }
.post h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.1; font-weight: 600; margin: 18px 0 10px; }
.post .meta { color: var(--dim); font-size: 14px; margin: 0 0 26px; }
.post .hero-img { border-radius: 18px; border: 1px solid var(--line); margin: 0 0 28px; width: 100%; height: auto; aspect-ratio: 1200 / 630; }
.post-body { font-size: 17px; color: #d9dde5; }
.post-body h2 { font-size: 26px; margin: 34px 0 10px; color: var(--text); font-weight: 600; }
.post-body h3 { font-size: 20px; margin: 26px 0 8px; color: var(--text); font-weight: 600; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 22px; }
.post-body li { margin: 6px 0; }
.post-body strong { color: var(--text); }
.post-body blockquote { margin: 0 0 18px; padding: 12px 18px; border-left: 3px solid var(--amber); background: var(--panel); border-radius: 0 12px 12px 0; color: var(--muted); }
.post-body code { font: 500 14px 'JetBrains Mono', monospace; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.post-body img { border-radius: 14px; border: 1px solid var(--line); margin: 6px 0 18px; }
.post-cta { margin: 36px 0 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(circle at 90% 50%, rgba(247,166,0,.14), transparent 60%), var(--panel);
            display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.post-cta b { display: block; font: 600 18px var(--display); }
.post-cta span { color: var(--muted); font-size: 14.5px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 12px 22px; font: 600 15px var(--display);
       background: var(--amber); color: #111; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--amber2); }
.more { max-width: 740px; margin: 56px auto 0; }
.more h2 { font-size: 22px; margin: 0 0 14px; }

/* footer */
footer.bf { border-top: 1px solid var(--line); background: #08090b; }
footer.bf .in { max-width: 1040px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 32px) 28px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer.bf .brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 700 22px var(--display); color: var(--amber); letter-spacing: -.03em; }
footer.bf .brand img { width: 30px; height: 30px; }
footer.bf nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer.bf nav a { color: var(--dim); text-decoration: none; font-size: 14px; }
footer.bf nav a:hover { color: var(--amber); }
footer.bf .socials { display: flex; gap: 8px; }
footer.bf .socials a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line2); color: var(--muted); }
footer.bf .socials a:hover { color: #111; background: var(--amber); border-color: var(--amber); }
footer.bf .socials svg { width: 15px; height: 15px; fill: currentColor; }
footer.bf .legal { width: 100%; color: var(--dim); font-size: 12.5px; margin: 6px 0 0; }
footer.bf .legal a { color: inherit; }
