:root {
    --ink: #172231;
    --muted: #667383;
    --paper: #f7f8f5;
    --white: #ffffff;
    --line: #dce2e4;
    --mint: #b8e8d0;
    --mint-deep: #17624e;
    --coral: #f06f56;
    --night: #182a3b;
    --yellow: #f4d06f;
    --shadow: 0 18px 44px rgba(23, 34, 49, .09);
    --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--mint-deep); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link {
    position: absolute; left: 16px; top: -80px; z-index: 20;
    padding: 8px 14px; color: var(--white); background: var(--night);
}
.skip-link:focus { top: 12px; }

.site-header { border-bottom: 1px solid var(--line); background: rgba(247, 248, 245, .95); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; letter-spacing: 0; text-decoration: none; }
.brand em { color: var(--muted); font-style: normal; font-weight: 500; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--night); background: var(--mint); font-weight: 850; letter-spacing: 0; }
nav { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: .93rem; }
nav a { padding: 24px 0 20px; text-decoration: none; border-bottom: 2px solid transparent; }
nav a:hover, nav a.is-active { color: var(--ink); border-bottom-color: var(--coral); }

.eyebrow { display: inline-block; color: var(--mint-deep); font-size: .72rem; font-weight: 800; letter-spacing: 0; line-height: 1.4; }
.home-hero { border-bottom: 1px solid var(--line); background: var(--white); }
.hero-grid { min-height: 560px; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 72px; padding-block: 76px 92px; }
.hero-copy h1 { max-width: 650px; margin: 18px 0 22px; font-size: clamp(2.9rem, 6vw, 5.5rem); line-height: 1.04; letter-spacing: 0; }
.hero-copy h1 em { color: var(--coral); font-style: normal; }
.hero-copy > p { max-width: 530px; margin: 0; color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; gap: 18px; min-height: 48px; padding: 11px 18px; color: var(--white); background: var(--night); border: 1px solid var(--night); border-radius: 5px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 16px rgba(24, 42, 59, .14); }
.button:hover { color: var(--night); background: var(--mint); border-color: var(--mint); }
.button span { font-size: 1.2rem; line-height: 1; }
.quiet-link, .text-link { color: var(--ink); font-weight: 700; text-decoration: none; }
.quiet-link::after { content: ""; display: block; width: 100%; height: 1px; margin-top: 2px; background: var(--coral); }
.quiet-link:hover, .text-link:hover { color: var(--coral); }

.hero-art { position: relative; min-height: 390px; border: 1px solid #304659; background: var(--night); overflow: hidden; box-shadow: var(--shadow); }
.hero-art::before, .hero-art::after { content: ""; position: absolute; pointer-events: none; }
.hero-art::before { inset: 28px; border: 1px solid rgba(184, 232, 208, .28); }
.hero-art::after { left: 14%; right: 14%; top: 50%; height: 1px; background: rgba(184, 232, 208, .28); box-shadow: 0 -102px 0 rgba(184, 232, 208, .14), 0 102px 0 rgba(184, 232, 208, .14); }
.art-grid { position: absolute; inset: 28px; border: 1px solid rgba(184, 232, 208, .12); }
.art-orbit { position: absolute; border: 1px solid rgba(244, 208, 111, .72); border-radius: 50%; transform: rotate(-20deg); }
.orbit-a { width: 300px; height: 164px; left: 10%; top: 30%; }
.orbit-b { width: 250px; height: 290px; left: 24%; top: 15%; border-color: rgba(240, 111, 86, .72); transform: rotate(54deg); }
.art-core { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 106px; height: 106px; transform: translate(-50%, -50%); border-radius: 50%; color: var(--night); background: var(--mint); box-shadow: 0 0 0 10px rgba(184, 232, 208, .12), 0 0 0 1px rgba(184, 232, 208, .8); }
.art-core span { margin-top: 10px; font-size: 1.9rem; font-weight: 850; line-height: 1; letter-spacing: 0; }
.art-core small { margin-top: -12px; font-size: .7rem; letter-spacing: 0; }
.art-label { position: absolute; padding: 5px 8px; color: var(--night); background: var(--yellow); font-size: .67rem; font-weight: 800; letter-spacing: 0; }
.label-one { right: 38px; top: 48px; }
.label-two { left: 40px; bottom: 44px; color: var(--white); background: var(--coral); }

.latest-section { padding-block: 86px 96px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { margin: 8px 0 0; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; letter-spacing: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { display: flex; min-height: 300px; flex-direction: column; padding: 25px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--mint); border-radius: var(--radius); }
.post-card:nth-child(2) { border-top-color: var(--coral); }
.post-card:nth-child(3) { border-top-color: var(--yellow); }
.post-card-top { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .74rem; font-weight: 750; letter-spacing: 0; text-transform: uppercase; }
.post-card h2 { margin: 28px 0 12px; font-size: 1.35rem; line-height: 1.3; letter-spacing: 0; }
.post-card h2 a { text-decoration: none; }
.post-card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.7; }
.post-card .text-link { margin-top: auto; padding-top: 26px; font-size: .91rem; }
.text-link span { margin-left: 4px; color: var(--coral); }

.principles { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--mint); }
.principle-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; padding-block: 68px; }
.principle-grid h2 { max-width: 620px; margin: 14px 0 0; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.12; letter-spacing: 0; }
.principle-copy { align-self: end; max-width: 420px; }
.principle-copy p { margin: 0 0 22px; color: #28584c; }
.principle-copy .text-link { color: var(--mint-deep); }

.archive-hero { padding-block: 82px 72px; background: var(--night); color: var(--white); }
.archive-hero .eyebrow { color: var(--mint); }
.archive-hero h1 { max-width: 750px; margin: 16px 0 14px; font-size: clamp(2.3rem, 5vw, 4.7rem); line-height: 1.08; letter-spacing: 0; }
.archive-hero p { max-width: 600px; margin: 0; color: #bdcbd2; font-size: 1.05rem; }
.archive-list { padding-block: 48px 100px; }
.archive-item { display: grid; grid-template-columns: 180px 1fr; gap: 48px; padding-block: 34px; border-bottom: 1px solid var(--line); }
.archive-item:first-child { border-top: 1px solid var(--line); }
.archive-date { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: .84rem; }
.archive-date time { color: var(--ink); font-weight: 800; }
.archive-item h2 { margin: 0 0 10px; font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.2; letter-spacing: 0; }
.archive-item h2 a { text-decoration: none; }
.archive-item p { max-width: 700px; margin: 0 0 16px; color: var(--muted); }
.archive-item .text-link { font-size: .9rem; }

.article-page { padding-block: 74px 100px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 730px) 250px; justify-content: space-between; gap: 70px; }
.article-kicker { display: flex; flex-wrap: wrap; gap: 14px; color: var(--mint-deep); font-size: .75rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.article-kicker span + span { padding-left: 14px; border-left: 1px solid var(--line); color: var(--muted); }
.article-main > h1 { margin: 20px 0 15px; font-size: clamp(2.3rem, 5vw, 4.3rem); line-height: 1.08; letter-spacing: 0; }
.article-dek { max-width: 690px; margin: 0; color: var(--muted); font-size: 1.18rem; line-height: 1.65; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; color: var(--muted); font-size: .82rem; }
.article-meta span { padding-left: 16px; border-left: 1px solid var(--line); }
.article-body { margin-top: 58px; }
.article-section { margin-top: 44px; }
.article-section:first-child { margin-top: 0; }
.article-section h2 { margin: 0 0 13px; font-size: 1.6rem; line-height: 1.25; letter-spacing: 0; }
.article-section p { margin: 0 0 16px; color: #3c4b5b; }
.article-section ul { margin: 12px 0 20px; padding: 0 0 0 21px; color: #3c4b5b; }
.article-section li { margin: 9px 0; padding-left: 4px; }
.article-section li::marker { color: var(--coral); }
.article-section pre { max-width: 100%; margin: 22px 0; padding: 20px; overflow-x: auto; color: #e5f4ec; background: var(--night); border-left: 4px solid var(--coral); border-radius: 4px; font: .82rem/1.7 "SFMono-Regular", Consolas, "Liberation Mono", monospace; tab-size: 4; }
.article-section code { font: inherit; }
.article-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-top: 60px; padding-top: 22px; color: var(--muted); border-top: 1px solid var(--line); font-size: .86rem; }
.article-end a { color: var(--mint-deep); font-weight: 750; text-decoration: none; }
.article-aside { padding-top: 64px; }
.toc-card { position: sticky; top: 28px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.toc-card p { margin: 8px 0 10px; font-weight: 800; }
.toc-card ol { margin: 0; padding: 0 0 0 19px; color: var(--muted); font-size: .84rem; }
.toc-card li { margin: 8px 0; line-height: 1.45; }
.aside-note { margin-top: 18px; padding: 20px; background: var(--yellow); border-radius: var(--radius); font-size: .86rem; }
.aside-note p { margin: 8px 0 0; line-height: 1.6; }

.not-found { min-height: 56vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 80px; }
.not-found h1 { max-width: 720px; margin: 16px 0 12px; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.04; letter-spacing: 0; }
.not-found p { margin: 0 0 28px; color: var(--muted); }

.site-footer { padding-block: 40px; color: #c1ccd2; background: var(--night); }
.footer-grid { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.site-footer strong { color: var(--white); font-size: .95rem; }
.site-footer p { margin: 6px 0 0; font-size: .84rem; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; font-size: .8rem; }
.footer-meta a { color: var(--mint); }

@media (max-width: 880px) {
    .hero-grid { grid-template-columns: 1fr; gap: 44px; padding-block: 60px 72px; }
    .hero-art { min-height: 330px; }
    .post-grid { grid-template-columns: 1fr 1fr; }
    .post-card:last-child { grid-column: 1 / -1; min-height: 240px; }
    .article-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .article-aside { display: none; }
}
@media (max-width: 620px) {
    .container { width: min(100% - 32px, 1120px); }
    .nav-wrap { min-height: 66px; }
    .brand { font-size: .9rem; }
    .brand em { display: none; }
    nav { gap: 14px; font-size: .82rem; }
    nav a { padding: 20px 0 17px; }
    .hero-copy h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
    .hero-copy > p { font-size: 1rem; }
    .hero-art { min-height: 280px; }
    .art-grid, .hero-art::before { inset: 18px; }
    .orbit-a { width: 220px; height: 124px; left: 6%; }
    .orbit-b { width: 180px; height: 230px; left: 22%; }
    .art-core { width: 86px; height: 86px; }
    .art-core span { font-size: 1.5rem; }
    .label-one { right: 24px; top: 28px; }
    .label-two { left: 24px; bottom: 28px; }
    .latest-section { padding-block: 58px 70px; }
    .section-heading { align-items: start; flex-direction: column; gap: 12px; }
    .post-grid { grid-template-columns: 1fr; }
    .post-card, .post-card:last-child { grid-column: auto; min-height: 0; }
    .principle-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 52px; }
    .archive-hero { padding-block: 58px 48px; }
    .archive-hero h1 { font-size: clamp(2.2rem, 12vw, 3.4rem); }
    .archive-list { padding-block: 26px 70px; }
    .archive-item { grid-template-columns: 1fr; gap: 12px; padding-block: 27px; }
    .archive-date { flex-direction: row; gap: 12px; }
    .archive-date span { padding-left: 12px; border-left: 1px solid var(--line); }
    .article-page { padding-block: 52px 72px; }
    .article-main > h1 { font-size: clamp(2.25rem, 12vw, 3.6rem); }
    .article-dek { font-size: 1.03rem; }
    .article-body { margin-top: 42px; }
    .article-section h2 { font-size: 1.4rem; }
    .article-section pre { padding: 15px; font-size: .76rem; }
    .footer-grid { align-items: start; flex-direction: column; }
    .footer-meta { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
