/* Kryllex blog — static, SEO-first article styling.
   Matches the app's "Onchain Terminal" look: warm-black, teal-lime accent,
   Space Grotesk display + monospace numerics, hairline grid. Self-contained
   so each article page is a fast, JS-free, crawlable document. */

:root {
    --bg: #0c0d0b;
    --panel: #101210;
    --panel-strong: #14170f;
    --border: #23261f;
    --text: #e7ece4;
    --muted: #8a9488;
    --accent: #6ee7a8;
    --accent-2: #34c98a;
    --warn: #f2a93b;
    --display: 'Space Grotesk', system-ui, sans-serif;
    --body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --mono: ui-monospace, 'Geist Mono', 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,0.018) 39px, rgba(255,255,255,0.018) 40px),
        repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,0.018) 39px, rgba(255,255,255,0.018) 40px);
    color: var(--text);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(12,13,11,0.85);
    backdrop-filter: blur(8px);
    position: sticky; top: 0; z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 60px; max-width: 1080px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--text); }
.brand svg { display: block; }
.nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .cta {
    color: var(--bg); background: linear-gradient(135deg, var(--accent), var(--accent-2));
    padding: 8px 16px; border-radius: 7px; font-weight: 700;
}
.nav .cta:hover { text-decoration: none; opacity: 0.92; }

/* article */
main { padding: 40px 0 30px; }
.eyebrow {
    font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 14px;
}
h1 {
    font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 1.12;
    letter-spacing: -0.01em; margin: 0 0 16px;
}
.meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; font-family: var(--mono); }
.lede { font-size: 20px; line-height: 1.6; color: #cfd6cc; margin: 0 0 28px; }

article h2 {
    font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.25;
    margin: 40px 0 12px; letter-spacing: -0.01em;
}
article h3 { font-family: var(--display); font-weight: 600; font-size: 19.5px; margin: 28px 0 8px; }
article p { margin: 0 0 18px; }
article ul, article ol { margin: 0 0 18px; padding-left: 22px; }
article li { margin: 0 0 9px; }
article strong { color: #fff; font-weight: 650; }
article code {
    font-family: var(--mono); font-size: 14px; background: var(--panel-strong);
    border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; color: var(--accent);
}
blockquote {
    margin: 24px 0; padding: 14px 20px; border-left: 3px solid var(--accent);
    background: var(--panel); border-radius: 0 8px 8px 0; color: #cfd6cc;
}

/* step list for how-to posts */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 22px 0; }
.steps li {
    counter-increment: step; position: relative; padding: 14px 16px 14px 56px;
    border: 1px solid var(--border); border-radius: 10px; background: var(--panel); margin-bottom: 12px;
}
.steps li::before {
    content: counter(step); position: absolute; left: 14px; top: 13px;
    width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--bg);
    font-family: var(--mono); font-weight: 700; font-size: 14px;
}

/* callout / CTA */
.cta-box {
    margin: 36px 0; padding: 24px; border: 1px solid var(--border); border-radius: 14px;
    background: linear-gradient(180deg, rgba(110,231,168,0.06), rgba(110,231,168,0.01));
    text-align: center;
}
.cta-box h3 { margin: 0 0 8px; font-family: var(--display); font-size: 21px; }
.cta-box p { color: var(--muted); margin: 0 0 16px; font-size: 15.5px; }
.btn {
    display: inline-block; background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--bg); font-weight: 700; padding: 12px 26px; border-radius: 9px; font-size: 15.5px;
}
.btn:hover { text-decoration: none; opacity: 0.92; }

.tag {
    display: inline-block; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--muted); border: 1px solid var(--border);
    border-radius: 6px; padding: 3px 9px;
}

/* blog index cards */
.index-hero { padding: 48px 0 8px; }
.index-hero h1 { font-size: 44px; }
.index-hero p { color: var(--muted); font-size: 18px; max-width: 620px; }
.posts { display: grid; gap: 16px; padding: 24px 0 20px; }
.post-card {
    display: block; padding: 22px 24px; border: 1px solid var(--border); border-radius: 14px;
    background: var(--panel); transition: border-color 0.15s, transform 0.15s;
}
.post-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.post-card .tag { margin-bottom: 12px; }
.post-card h2 { font-family: var(--display); font-size: 22px; margin: 0 0 8px; color: var(--text); }
.post-card p { color: var(--muted); margin: 0; font-size: 15px; }

/* footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 50px; padding: 30px 0; }
.site-footer .wrap { max-width: 1080px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--muted); font-size: 14px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .sep { opacity: 0.4; }
.foot-links { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 640px) {
    h1 { font-size: 31px; }
    .index-hero h1 { font-size: 34px; }
    article h2 { font-size: 22px; }
    body { font-size: 16px; }
    .nav a:not(.cta) { display: none; }
}
