:root {
    --ink: #151719;
    --muted: #5f6b7a;
    --paper: #ffffff;
    --wash: #f6f8fb;
    --panel: #eef4fb;
    --line: #d7e0eb;
    --blue: #2572b9;
    --blue-dark: #1f5e98;
    --amber: #f2a900;
    --radius: 8px;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--wash);
    font-family: var(--gh-font-body, Inter), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.62;
    letter-spacing: 0;
}

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

a {
    color: inherit;
    text-decoration-color: color-mix(in srgb, currentColor 24%, transparent);
    text-underline-offset: 0.22em;
}

a:hover {
    color: var(--blue);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--gh-font-heading, Inter), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    width: 100%;
    padding: 10px max(24px, calc((100vw - var(--max)) / 2));
    background: color-mix(in srgb, var(--paper) 95%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-name {
    margin-left: 10px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
}

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

.site-nav a,
.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 8px;
    color: var(--muted);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.site-nav a:hover,
.footer-links a:hover {
    color: var(--ink);
    background: var(--panel);
}

.task-hero,
.latest-news,
.content-section,
.archive-header,
.article,
.site-footer {
    max-width: var(--max);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.task-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
    gap: 34px;
    align-items: center;
    padding-top: 30px;
    padding-bottom: 32px;
}

.hero-copy {
    padding-top: 22px;
}

.eyebrow {
    margin: 0;
    color: var(--blue);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 620px;
    margin: 10px 0 14px;
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.hero-copy p:not(.eyebrow) {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
}

.hero-banner {
    align-self: stretch;
    display: flex;
    min-height: 260px;
    margin: 0;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgb(37 114 185 / 10%);
}

.hero-banner img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.latest-news {
    padding-top: 28px;
    padding-bottom: 58px;
    border-top: 1px solid var(--line);
}

.latest-news header {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 30px;
    align-items: end;
    margin-bottom: 14px;
}

.latest-news h2 {
    max-width: 660px;
    margin: 0;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 600;
    line-height: 1.25;
}

.latest-list,
.news-list,
.post-grid {
    display: grid;
    border-top: 1px solid var(--line);
}

.post-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.post-card-media {
    display: block;
    overflow: hidden;
    align-self: start;
    color: var(--paper);
    background: var(--blue-dark);
    border-radius: var(--radius);
    text-decoration: none;
}

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

.post-card-placeholder {
    display: grid;
    aspect-ratio: 16 / 10;
    place-items: center;
    font-weight: 700;
}

.post-card-body {
    padding: 0;
}

.post-card-meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.post-card h2 {
    margin: 8px 0 8px;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.22;
}

.post-card h2 a {
    text-decoration: none;
}

.post-card p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.archive-header {
    padding-top: 46px;
    padding-bottom: 26px;
}

.archive-header h1 {
    margin: 6px 0 0;
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.archive-section {
    padding-bottom: 64px;
}

.article {
    padding-top: 48px;
    padding-bottom: 78px;
}

.article-header {
    max-width: 900px;
    margin: 0 auto 26px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.article-header h1 {
    margin: 10px 0 14px;
    font-size: clamp(30px, 3.8vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.article-excerpt {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.article-feature {
    max-width: 980px;
    margin: 0 auto 38px;
}

.article-feature img {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.article-feature figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.article-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 760px);
    gap: 46px;
    justify-content: center;
}

.toc-panel {
    position: sticky;
    top: 86px;
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.toc-panel strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
}

.toc {
    display: grid;
    gap: 8px;
}

.toc a {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
}

.gh-content > *:first-child {
    margin-top: 0;
}

.gh-content h2 {
    margin: 40px 0 12px;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
}

.gh-content h3 {
    margin: 26px 0 8px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}

.gh-content p,
.gh-content li {
    color: color-mix(in srgb, var(--ink) 88%, var(--muted));
}

.gh-content a {
    color: var(--blue);
    font-weight: 500;
    text-decoration-color: color-mix(in srgb, var(--blue) 35%, transparent);
}

.gh-content blockquote {
    margin: 26px 0;
    padding: 16px 18px;
    background: var(--panel);
    border-left: 4px solid var(--blue);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.gh-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 15px;
}

.gh-content th,
.gh-content td {
    padding: 11px;
    border: 1px solid var(--line);
    text-align: left;
}

.gh-content th {
    background: var(--panel);
}

.gh-content img {
    border-radius: var(--radius);
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 980px;
    margin: 52px auto 0;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.author-box {
    display: flex;
    gap: 14px;
    align-items: center;
}

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

.author-box span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.author-box p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.share-box {
    display: flex;
    gap: 8px;
}

.share-box a {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--blue-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.4fr);
    gap: 42px;
    align-items: start;
    padding-top: 34px;
    padding-bottom: 50px;
    border-top: 1px solid var(--line);
}

.site-footer p {
    max-width: 540px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.footer-links {
    justify-self: end;
}

.footer-links ul {
    justify-content: flex-end;
}

.kg-card,
.kg-image-card {
    margin: 28px 0;
}

.kg-width-wide {
    width: min(980px, calc(100vw - 48px));
    margin-left: 50%;
    transform: translateX(-50%);
}

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

.kg-width-full img {
    width: 100%;
    border-radius: 0;
}

.kg-bookmark-card {
    border-radius: var(--radius);
}

@media (max-width: 900px) {
    .site-header {
        position: relative;
        align-items: flex-start;
        flex-direction: column;
    }

    .task-hero,
    .article-layout,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .task-hero {
        gap: 20px;
    }

    .latest-news header {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .article-sidebar {
        display: none;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .site-header,
    .task-hero,
    .latest-news,
    .content-section,
    .archive-header,
    .article,
    .site-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-name {
        font-size: 17px;
    }

    .site-nav a,
    .footer-links a {
        min-height: 30px;
        padding: 4px 6px;
        font-size: 12px;
    }

    .task-hero {
        padding-top: 24px;
    }

    .hero-copy {
        padding-top: 0;
    }

    .hero-copy h1,
    .article-header h1 {
        font-size: 28px;
        line-height: 1.15;
    }

    .hero-copy p:not(.eyebrow),
    .article-excerpt {
        font-size: 16px;
    }

    .hero-banner,
    .hero-banner img {
        min-height: 210px;
        aspect-ratio: 16 / 10;
    }

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

    .article-footer,
    .footer-links ul {
        align-items: flex-start;
        flex-direction: column;
    }
}
