:root {
    color-scheme: light;
    --bg: #f5f7fb;
    --surface: #ffffff;
    --text: #182033;
    --muted: #6b7280;
    --line: #dfe4ee;
    --accent: #3157d5;
    --accent-soft: #e9edff;
    --shadow: 0 20px 50px rgba(24, 32, 51, 0.08);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 5% 0%, rgba(49, 87, 213, 0.12), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--text);
    color: white;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header,
main,
.site-footer {
    width: min(1080px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 750;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    background: var(--text);
    color: white;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.site-nav {
    display: flex;
    gap: 28px;
}

.site-nav a {
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--accent);
}

.hero {
    padding: 112px 0 132px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.hero h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(48px, 8vw, 88px);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

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

.hero-copy {
    max-width: 620px;
    margin: 30px 0 34px;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 20px);
}

.primary-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-radius: 12px;
    background: var(--text);
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease;
}

.primary-link:hover,
.primary-link:focus-visible {
    background: var(--accent);
    transform: translateY(-2px);
}

.notes-section {
    scroll-margin-top: 30px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-heading h2,
.about h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.section-heading > p {
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 14px;
}

.post-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.post {
    display: flex;
    min-height: 320px;
    flex-direction: column;
    padding: 32px;
    border: 1px solid rgba(223, 228, 238, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 8px 30px rgba(24, 32, 51, 0.04);
    backdrop-filter: blur(10px);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.post:hover {
    border-color: #c8d0e3;
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.post.featured {
    grid-column: 1 / -1;
    min-height: 360px;
    background: var(--text);
    color: white;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.featured .post-meta {
    color: #aeb8d2;
}

.post h3 {
    max-width: 760px;
    margin: 38px 0 14px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.post:not(.featured) h3 {
    font-size: clamp(23px, 3vw, 30px);
}

.post > p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}

.featured > p {
    color: #c8cfdf;
}

.post h3 a {
    color: inherit;
    text-decoration: none;
}

.post h3 a:hover,
.post h3 a:focus-visible {
    color: var(--accent);
}

.featured h3 a:hover,
.featured h3 a:focus-visible {
    color: #9fb2ff;
}

.read-more {
    display: inline-flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 30px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.featured .read-more {
    color: #9fb2ff;
}

.update-status {
    display: flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    color: var(--muted);
    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22a06b;
    box-shadow: 0 0 0 5px rgba(34, 160, 107, 0.1);
}

.source-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.source-list a {
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.source-list a:hover,
.source-list a:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 50px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
}

.about {
    max-width: 780px;
    margin: 140px 0;
    scroll-margin-top: 50px;
}

.about > p:last-child {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(18px, 2.5vw, 23px);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 0 46px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.site-footer p {
    margin: 0;
}

:focus-visible {
    outline: 3px solid rgba(49, 87, 213, 0.35);
    outline-offset: 4px;
}

@media (max-width: 700px) {
    .site-header,
    main,
    .site-footer {
        width: min(100% - 28px, 1080px);
    }

    .site-header {
        min-height: 72px;
    }

    .site-nav {
        gap: 16px;
    }

    .site-nav a:first-child {
        display: none;
    }

    .hero {
        padding: 76px 0 96px;
    }

    .hero h1 {
        font-size: clamp(43px, 13vw, 62px);
    }

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

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

    .post.featured {
        grid-column: auto;
    }

    .post,
    .post.featured {
        min-height: 330px;
        padding: 25px;
    }

    .about {
        margin: 100px 0;
    }

    .site-footer {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
