* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --background: #090b10;
    --surface: #11151d;
    --surface-hover: #151a24;
    --border: #232936;
    --text: #e7eaf0;
    --muted: #8d96a8;
    --accent: #7c8cff;
    --accent-soft: rgba(124, 140, 255, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% -20%,
            #19213a 0%,
            transparent 45%
        ),
        var(--background);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1100px, calc(100% - 40px));
    margin: auto;
}


/* =========================================================
   Header
   ========================================================= */

header {
    height: 72px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: monospace;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 26px;
    color: var(--muted);
    font-size: 14px;
}

.nav-links a:hover {
    color: var(--text);
}


/* =========================================================
   Hero
   ========================================================= */

.hero {
    padding: 120px 0 110px;
    max-width: 820px;
}

.eyebrow {
    display: inline-block;
    padding: 6px 11px;
    margin-bottom: 22px;

    border: 1px solid var(--border);
    border-radius: 100px;

    background: var(--accent-soft);

    color: #aab3ff;
    font-family: monospace;
    font-size: 12px;
}

h1 {
    font-size: clamp(48px, 8vw, 86px);
    line-height: 0.98;
    letter-spacing: -4px;
    margin-bottom: 30px;
}

.hero p {
    max-width: 650px;
    color: var(--muted);
    font-size: 19px;
}

.topics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.topic {
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--muted);
    font-family: monospace;
    font-size: 12px;
}


/* =========================================================
   Sections
   ========================================================= */

section {
    padding: 70px 0;
    border-top: 1px solid var(--border);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 30px;
}

h2 {
    font-size: 26px;
    letter-spacing: -1px;
}

.section-header span {
    color: var(--muted);
    font-family: monospace;
    font-size: 12px;
}


/* =========================================================
   Posts
   ========================================================= */

.posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.post {
    min-height: 220px;
    padding: 25px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);

    transition:
        transform 0.2s,
        border-color 0.2s,
        background 0.2s;
}

.post:hover {
    transform: translateY(-3px);
    border-color: #3b4355;
    background: var(--surface-hover);
}

.post-type {
    color: var(--accent);
    font-family: monospace;
    font-size: 11px;
    text-transform: uppercase;
}

.post h3 {
    margin-top: 12px;
    font-size: 19px;
    line-height: 1.35;
}

.post p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
}

.post footer {
    margin-top: 30px;
    color: #646d7e;
    font-family: monospace;
    font-size: 11px;
}


/* =========================================================
   About
   ========================================================= */

.about {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
}

.about p {
    color: var(--muted);
    max-width: 680px;
}


/* =========================================================
   Blog
   ========================================================= */

.blog-header {
    padding: 90px 0 60px;
}

.blog-header h1 {
    font-size: clamp(44px, 7vw, 70px);
}

.blog-header p {
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
}

.blog-list {
    display: grid;
    gap: 16px;
    padding-bottom: 80px;
}

.blog-item {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.blog-item:hover {
    border-color: #3b4355;
}

.blog-item h2 {
    margin: 8px 0;
}

.blog-item p {
    color: var(--muted);
}

.blog-meta {
    color: #646d7e;
    font-family: monospace;
    font-size: 12px;
}


/* =========================================================
   Article
   ========================================================= */

.article {
    max-width: 760px;
    padding: 90px 0 100px;
}

.article h1 {
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.05;
}

.article-meta {
    margin: -10px 0 45px;
    color: var(--muted);
    font-family: monospace;
    font-size: 13px;
}

.article-content {
    font-size: 17px;
    line-height: 1.8;
}

.article-content p {
    margin: 22px 0;
    color: #c2c8d3;
}

.article-content h2 {
    margin: 50px 0 15px;
    font-size: 30px;
}

.article-content h3 {
    margin: 35px 0 12px;
}

.article-content code {
    font-family: monospace;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 5px;
}

.article-content pre {
    overflow-x: auto;
    margin: 25px 0;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #07090d;
}

.article-content pre code {
    border: 0;
    padding: 0;
    background: transparent;
}

.article-content a {
    color: #aab3ff;
}

.article-content ul,
.article-content ol {
    margin: 20px 0 20px 25px;
    color: #c2c8d3;
}


/* =========================================================
   Footer
   ========================================================= */

body > footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    color: #626b7c;
    font-family: monospace;
    font-size: 12px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 800px) {

    .hero {
        padding: 80px 0;
    }

    h1 {
        letter-spacing: -2px;
    }

    .posts {
        grid-template-columns: 1fr;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nav-links {
        gap: 15px;
    }

    .footer-content {
        gap: 20px;
        flex-direction: column;
    }
}

