@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
    --bg-start: #070b12;
    --bg-mid: #0a121d;
    --bg-end: #050a11;
    --surface: rgba(8, 18, 29, 0.72);
    --surface-strong: rgba(9, 16, 25, 0.9);
    --card: rgba(7, 14, 24, 0.86);
    --ink: #ecf3fb;
    --muted: #9ba9ba;
    --line: rgba(96, 194, 245, 0.2);
    --accent: #39d881;
    --accent-cool: #46bfff;
    --accent-warm: #f87171;
    --accent-soft: #fecdd3;
    --accent-text: #061018;
    --shadow: 0 24px 90px rgba(70, 191, 255, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    color: var(--ink);
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 10% 12%, rgba(57, 216, 129, 0.12), transparent 34%),
        radial-gradient(circle at 86% 9%, rgba(70, 191, 255, 0.11), transparent 32%),
        repeating-linear-gradient(90deg, rgba(236, 243, 251, 0.018) 0 1px, transparent 1px 52px),
        linear-gradient(165deg, var(--bg-start) 0%, var(--bg-mid) 45%, var(--bg-end) 100%);
}

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

img {
    max-width: 100%;
}

.site-shell {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.site-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.12;
    background-image:
        linear-gradient(to right, rgba(148, 163, 184, 0.14) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.1) 1px, transparent 1px),
        linear-gradient(124deg, rgba(96, 194, 245, 0.1) 0%, transparent 34%);
    background-size:
        72px 72px,
        72px 72px,
        100% 100%;
    mask-image: radial-gradient(circle at 50% 42%, black 0%, transparent 75%);
}

.site-header,
.site-footer,
.hero,
.post-feed,
.article,
.pagination {
    width: min(1120px, calc(100vw - 32px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0 10px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(180deg, rgba(5, 10, 17, 0.92), rgba(5, 10, 17, 0.62), transparent);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--ink);
}

.brand-chip {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(248, 113, 113, 0.25);
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.12), transparent 65%);
    box-shadow: 0 8px 22px rgba(248, 113, 113, 0.15);
    backdrop-filter: blur(12px);
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-primary {
    color: #ffffff;
}

.site-nav,
.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.site-nav a,
.footer-links a {
    border: 1px solid rgba(96, 194, 245, 0.18);
    border-radius: 999px;
    background: rgba(8, 18, 29, 0.55);
    color: var(--muted);
    padding: 10px 14px;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.footer-links a:hover {
    border-color: rgba(96, 194, 245, 0.5);
    background: rgba(8, 18, 29, 0.82);
    color: var(--ink);
    transform: translateY(-1px);
}

.hero {
    display: block;
    padding: 34px 0 40px;
}

.hero-grid {
    display: block;
}

.hero-splash,
.post-card,
.article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-splash,
.article {
    padding: 32px;
}

.eyebrow,
.post-meta,
.article-meta {
    color: var(--muted);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-title {
    margin: 10px 0 14px;
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.article-excerpt {
    max-width: 42rem;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.65;
}

.hero-splash {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    padding: 0;
    background:
        radial-gradient(circle at top left, rgba(70, 191, 255, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(8, 18, 29, 0.86), rgba(7, 14, 24, 0.96));
}

.section-heading h2 {
    margin: 10px 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-splash-image {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
    border: 0;
    background: rgba(3, 8, 20, 0.6);
}

.hero-overlay-actions {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    z-index: 1;
}

.hero-overlay-actions::before {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(7, 14, 24, 0.08), rgba(7, 14, 24, 0.74));
    backdrop-filter: blur(8px);
    z-index: -1;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
}

.section-link {
    flex-shrink: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(96, 194, 245, 0.18);
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.button-primary {
    background: linear-gradient(90deg, var(--accent-cool), var(--accent));
    color: var(--accent-text);
    box-shadow: 0 10px 40px rgba(70, 191, 255, 0.22);
}

.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 42px rgba(57, 216, 129, 0.22);
}

.button-secondary {
    background: rgba(8, 18, 29, 0.55);
    color: var(--ink);
}

.button-secondary:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 194, 245, 0.5);
    background: rgba(8, 18, 29, 0.82);
}

.post-feed {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding-bottom: 56px;
}

.post-card {
    overflow: hidden;
    background: linear-gradient(180deg, rgba(8, 18, 29, 0.74), rgba(7, 14, 24, 0.88));
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(96, 194, 245, 0.34);
    box-shadow: 0 28px 72px rgba(70, 191, 255, 0.14);
}

.post-card-link {
    display: block;
    height: 100%;
}

.post-card-image,
.article-image {
    width: 100%;
    display: block;
    object-fit: cover;
}

.post-card-image {
    aspect-ratio: 16 / 10;
}

.post-card-body,
.article-content {
    padding: 22px;
}

.post-card-body h2 {
    margin: 10px 0;
    font-size: 1.4rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.post-card-body p {
    color: var(--muted);
    line-height: 1.7;
}

.post-card-body p:last-child,
.article-content > *:last-child {
    margin-bottom: 0;
}

.article {
    margin-top: 20px;
    margin-bottom: 56px;
    background: linear-gradient(180deg, rgba(8, 18, 29, 0.72), rgba(7, 14, 24, 0.9));
}

.article-content {
    padding: 0;
    font-size: 1.08rem;
    line-height: 1.8;
}

.article-content a {
    color: var(--accent-cool);
    text-decoration: underline;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--accent);
    border-radius: 0 18px 18px 0;
    background: rgba(8, 18, 29, 0.68);
    color: rgba(236, 243, 251, 0.88);
}

.article-content code,
.article-content pre,
.site-footer code {
    font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

.article-content pre {
    overflow-x: auto;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(3, 8, 20, 0.75);
    border: 1px solid rgba(96, 194, 245, 0.12);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 0 40px;
    border-top: 1px solid rgba(96, 194, 245, 0.14);
    color: var(--muted);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand p {
    margin: 0;
    max-width: 32rem;
}

.pagination {
    margin-bottom: 56px;
    display: flex;
    justify-content: center;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(8, 18, 29, 0.62);
    border: 1px solid rgba(96, 194, 245, 0.18);
    color: var(--ink);
}

@media (max-width: 900px) {
    .post-feed {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer,
    .footer-brand {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .site-header,
    .site-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-splash,
    .article {
        padding: 24px;
    }

    .hero-splash {
        padding: 0;
        min-height: 280px;
    }

    .hero-splash-image {
        min-height: 280px;
    }

    .hero-overlay-actions {
        left: 16px;
        right: 16px;
        bottom: 16px;
        gap: 10px;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-feed {
        grid-template-columns: 1fr;
    }

    .site-header {
        position: static;
        background: none;
        backdrop-filter: none;
    }
}
