:root {
    --bg: #050b13;
    --bg-soft: #091421;
    --panel: #0d1b2b;
    --panel-strong: #10243a;
    --line: rgba(132, 180, 206, 0.2);
    --text: #eef7fb;
    --muted: #a9bfcc;
    --accent: #18c7e8;
    --accent-strong: #6ee7ff;
    --green: #57d68d;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    --radius: 8px;
    --max: 1180px;
    --font-body: var(--gh-font-body, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    --font-heading: var(--gh-font-heading, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

body {
    margin: 0;
    background:
        linear-gradient(90deg, rgba(24, 199, 232, 0.08), transparent 45%),
        linear-gradient(180deg, #07111d 0%, var(--bg) 42rem);
}

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

img {
    display: block;
    max-width: 100%;
}

.site-shell {
    min-height: 100vh;
}

.site-header,
.site-footer,
.hero,
.section,
.archive-header,
.author-header,
.post-wrap,
.page-wrap,
.cta-panel {
    width: min(var(--max), calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    backdrop-filter: blur(18px);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0;
}

.site-logo {
    max-height: 34px;
    width: auto;
}

.site-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(24, 199, 232, 0.24), rgba(87, 214, 141, 0.1));
    color: var(--accent-strong);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a,
.nav-main-site {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 650;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.nav-current a {
    background: rgba(24, 199, 232, 0.1);
    color: var(--text);
}

.nav-main-site {
    border: 1px solid var(--line);
    color: var(--accent-strong);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 36px;
    align-items: center;
    padding: 72px 0 52px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--text);
    font-family: var(--font-heading);
    line-height: 1.08;
}

h1 {
    max-width: 920px;
    font-size: 4.6rem;
    letter-spacing: 0;
}

h2 {
    font-size: 2.6rem;
    letter-spacing: 0;
}

h3 {
    font-size: 1.2rem;
}

.hero-text,
.archive-header p,
.page-hero p,
.post-hero p,
.section-heading p,
.cta-panel p {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-weight: 800;
}

.button-primary {
    background: var(--accent);
    color: #00131a;
}

.button-secondary {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.hero-panel,
.pillar-card,
.post-card,
.featured-card,
.cta-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(16, 36, 58, 0.92), rgba(9, 20, 33, 0.92));
    box-shadow: var(--shadow);
}

.hero-panel {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.metric {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
}

.metric span,
.pillar-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.metric strong {
    display: block;
    line-height: 1.25;
}

.section {
    padding: 42px 0;
}

.section-heading {
    margin-bottom: 20px;
}

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

.pillar-grid,
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.pillar-card {
    min-height: 260px;
    padding: 24px;
}

.pillar-card p,
.post-card p,
.featured-copy p {
    color: var(--muted);
}

.featured-card {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.featured-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
}

.tag-pill {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 6px 10px;
    border: 1px solid rgba(24, 199, 232, 0.3);
    border-radius: 999px;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
}

.text-link {
    color: var(--accent-strong);
    font-weight: 800;
}

.post-card {
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.post-card-content {
    padding: 18px;
}

.post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.post-card-meta a {
    color: var(--accent-strong);
}

.archive-header,
.author-header,
.post-hero,
.page-hero {
    padding: 66px 0 30px;
}

.archive-header p,
.author-header p {
    margin-bottom: 0;
}

.author-header {
    display: flex;
    gap: 22px;
    align-items: center;
}

.author-header img {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
}

.post-wrap,
.page-wrap {
    max-width: 920px;
}

.page-wrap {
    padding-bottom: 20px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    color: var(--muted);
    font-weight: 700;
}

.post-feature-image {
    margin: 18px 0 34px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.post-feature-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.post-feature-image figcaption {
    padding: 10px 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.gh-content {
    color: #dce9ef;
    font-size: 1.08rem;
}

.gh-content > * + * {
    margin-top: 1.25em;
}

.gh-content h2,
.gh-content h3 {
    margin-top: 1.8em;
}

.page-wrap .gh-content h2 {
    margin-top: 2.2em;
    padding-top: 1.4em;
    border-top: 1px solid var(--line);
}

.page-wrap .gh-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.page-wrap .gh-content ul {
    display: grid;
    gap: 12px;
    padding-left: 0;
    list-style: none;
}

.page-wrap .gh-content li {
    position: relative;
    padding: 14px 16px 14px 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
}

.page-wrap .gh-content li::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 18px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 18px rgba(24, 199, 232, 0.55);
}

.page-wrap .gh-content li a:first-child {
    font-weight: 800;
}

.page-wrap .gh-content > p:has(a:only-child) {
    margin-top: 1.6em;
}

.page-wrap .gh-content > p:has(a:only-child) a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid rgba(24, 199, 232, 0.34);
    border-radius: var(--radius);
    background: rgba(24, 199, 232, 0.08);
    text-decoration: none;
    font-weight: 800;
}

.gh-content a {
    color: var(--accent-strong);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.gh-content blockquote {
    margin-inline: 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--accent);
    color: var(--text);
    font-size: 1.18rem;
}

.gh-content code {
    padding: 0.15em 0.3em;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
}

.gh-content pre {
    overflow-x: auto;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #03101b;
}

.gh-content .kg-width-wide {
    position: relative;
    left: 50%;
    width: min(1100px, calc(100vw - 32px));
    max-width: none;
    transform: translateX(-50%);
}

.gh-content .kg-width-full {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    transform: translateX(-50%);
}

.gh-content .kg-width-full img,
.gh-content .kg-width-wide img {
    width: 100%;
}

.post-footer {
    display: grid;
    gap: 24px;
    margin: 46px 0 10px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tags a {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author span {
    display: block;
    color: var(--muted);
    font-size: 0.86rem;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 42px;
    margin-bottom: 42px;
    padding: 28px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 34px;
    color: var(--muted);
    font-weight: 700;
}

.pagination a {
    color: var(--accent-strong);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 50px;
    padding: 36px 0 44px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-brand {
    color: var(--text);
    font-weight: 800;
}

.site-footer p {
    max-width: 520px;
    margin: 8px 0 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.footer-nav a {
    color: var(--muted);
    font-weight: 700;
}

@media (max-width: 860px) {
    h1 {
        font-size: 2.6rem;
    }

    h2 {
        font-size: 2rem;
    }

    .site-header {
        align-items: flex-start;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 66px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(5, 11, 19, 0.96);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav a,
    .nav-main-site {
        width: 100%;
    }

    .hero,
    .featured-card {
        grid-template-columns: 1fr;
    }

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

    .section-heading-row,
    .cta-panel,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-nav {
        justify-content: flex-start;
    }
}
