:root {
    --bg: #f7f1e8;
    --bg-deep: #eadfce;
    --panel: rgba(255, 251, 246, 0.8);
    --panel-strong: rgba(255, 248, 240, 0.95);
    --ink: #211816;
    --muted: #6f5d54;
    --line: rgba(33, 24, 22, 0.12);
    --accent: #925436;
    --accent-deep: #6d3219;
    --glow: rgba(205, 155, 121, 0.3);
    --shadow: 0 26px 80px rgba(56, 34, 21, 0.12);
    --shadow-soft: 0 14px 40px rgba(56, 34, 21, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 10%, rgba(205, 155, 121, 0.34), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(136, 78, 47, 0.18), transparent 24%),
        linear-gradient(180deg, #fbf6ef 0%, var(--bg) 42%, #f1e8dd 100%);
    font-family: "Manrope", "Microsoft YaHei", sans-serif;
}

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

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

.ambient {
    position: fixed;
    inset: auto;
    width: 32rem;
    height: 32rem;
    filter: blur(60px);
    opacity: 0.32;
    pointer-events: none;
    z-index: 0;
}

.ambient-left {
    top: -8rem;
    left: -10rem;
    background: radial-gradient(circle, rgba(215, 171, 125, 0.72), transparent 65%);
}

.ambient-right {
    right: -8rem;
    bottom: -10rem;
    background: radial-gradient(circle, rgba(150, 95, 62, 0.34), transparent 62%);
}

.noise-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(33, 24, 22, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 24, 22, 0.03) 1px, transparent 1px);
    background-size: 13px 13px;
    mask-image: radial-gradient(circle at center, black, transparent 90%);
    z-index: 0;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0 48px;
}

.site-header,
.hero-panel,
.feature-strip article,
.post-card,
.archive-card,
.page-intro,
.article-shell,
.info-card,
.statement-card,
.site-footer,
.empty-card {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255, 252, 247, 0.92), rgba(250, 242, 233, 0.82));
    box-shadow: var(--shadow);
}

.brand {
    display: grid;
    gap: 4px;
    max-width: 30rem;
}

.brand-kicker,
.section-kicker,
.footer-label,
.feature-index {
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand-kicker,
.section-kicker,
.footer-label {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
}

.brand-name {
    font-family: "Noto Serif SC", "Microsoft YaHei", serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
}

.brand-tagline {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

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

.site-nav a {
    position: relative;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    transition: color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--ink);
    background: rgba(146, 84, 54, 0.08);
    transform: translateY(-1px);
}

.page-main {
    display: grid;
    gap: 28px;
    margin-top: 28px;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    gap: 20px;
}

.hero-panel,
.page-intro,
.article-shell,
.site-footer {
    border: 1px solid var(--line);
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.hero-panel {
    background: linear-gradient(160deg, rgba(255, 252, 247, 0.9), rgba(248, 238, 229, 0.78));
}

.hero-copy {
    padding: 50px 50px 54px;
    position: relative;
    overflow: hidden;
}

.hero-copy::after {
    content: "";
    position: absolute;
    width: 14rem;
    height: 14rem;
    right: -2rem;
    top: -3rem;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow), transparent 68%);
}

.hero-copy h1,
.page-intro h1,
.article-header h1,
.footer-intro h2,
.feature-strip h2,
.archive-main h2,
.info-card h2,
.statement-card h2,
.post-card h3 {
    font-family: "Noto Serif SC", "Microsoft YaHei", serif;
    line-height: 1.16;
    margin: 0;
}

.hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(2.7rem, 5vw, 5rem);
}

.hero-summary,
.page-intro p,
.article-summary,
.archive-main p,
.post-card p,
.info-card p,
.statement-card p,
.footer-intro p,
.footer-card p {
    color: var(--muted);
    line-height: 1.85;
}

.hero-summary {
    max-width: 56ch;
    margin: 22px 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.hero-actions-center {
    justify-content: center;
}

.button,
.text-link,
.record-link,
.card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    transition: transform 0.22s ease, color 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.button {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
}

.button-dark {
    background: var(--ink);
    color: #fff9f0;
}

.button-dark:hover,
.button-dark:focus-visible {
    background: #120d0c;
    transform: translateY(-1px);
}

.button-light {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.34);
}

.button-light:hover,
.button-light:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.record-link:hover,
.record-link:focus-visible,
.card-link:hover,
.card-link:focus-visible {
    color: var(--accent-deep);
    border-color: rgba(109, 50, 25, 0.24);
    transform: translateY(-1px);
}

.hero-aside {
    display: grid;
    gap: 16px;
    padding: 24px;
}

.stat-block,
.hero-note {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 249, 241, 0.76);
    border: 1px solid rgba(33, 24, 22, 0.08);
    box-shadow: var(--shadow-soft);
}

.stat-value {
    display: block;
    font-family: "Noto Serif SC", "Microsoft YaHei", serif;
    font-size: clamp(3rem, 7vw, 4.8rem);
    line-height: 1;
}

.stat-label,
.hero-note p {
    color: var(--muted);
}

.hero-note-title {
    margin: 0 0 8px;
    color: var(--ink);
    font-weight: 800;
}

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

.feature-strip article,
.post-card,
.archive-card,
.info-card,
.statement-card,
.empty-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.feature-strip article {
    padding: 24px;
    transform: translateY(0);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.feature-strip article:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-index {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
}

.feature-strip h2 {
    font-size: 1.5rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    padding: 8px 4px 0;
}

.section-heading h2,
.page-intro h1,
.archive-main h2,
.info-card h2,
.statement-card h2,
.footer-intro h2 {
    font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.text-link,
.card-link,
.record-link {
    color: var(--accent);
    font-weight: 700;
}

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

.post-card,
.empty-card {
    grid-column: span 4;
    padding: 24px;
}

.post-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.post-date,
.archive-date {
    margin: 0;
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 800;
}

.post-card h3 {
    margin-top: 18px;
    font-size: 1.52rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(146, 84, 54, 0.08);
    color: var(--accent);
    font-size: 0.84rem;
}

.card-link {
    margin-top: 12px;
}

.page-intro {
    padding: 40px;
    background: linear-gradient(150deg, rgba(255, 251, 246, 0.92), rgba(245, 234, 223, 0.82));
}

.page-intro-wide {
    min-height: 14rem;
}

.page-intro-center {
    text-align: center;
}

.archive-list,
.info-layout,
.statement-grid {
    display: grid;
    gap: 18px;
}

.archive-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
}

.archive-side {
    display: grid;
    align-content: start;
    gap: 14px;
}

.archive-main h2 a:hover,
.archive-main h2 a:focus-visible {
    color: var(--accent-deep);
}

.article-shell {
    padding: 46px;
    background: linear-gradient(150deg, rgba(255, 251, 246, 0.94), rgba(247, 238, 229, 0.82));
}

.article-header {
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.article-summary {
    max-width: 52ch;
    margin-top: 18px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-top: 22px;
}

.article-meta > span {
    color: var(--accent);
    font-weight: 800;
}

.article-body {
    max-width: 760px;
    margin-top: 28px;
}

.article-body p {
    margin: 0 0 20px;
    font-family: "Noto Serif SC", "Microsoft YaHei", serif;
    font-size: 1.1rem;
    line-height: 2;
    color: #302523;
}

.article-tail {
    margin-top: 18px;
}

.info-layout {
    grid-template-columns: repeat(12, 1fr);
}

.info-card,
.statement-card {
    padding: 24px;
}

.large-card {
    grid-column: span 12;
}

.info-layout .info-card:not(.large-card) {
    grid-column: span 6;
}

.statement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer {
    margin-top: 42px;
    padding: 28px;
    background: linear-gradient(150deg, rgba(255, 252, 247, 0.92), rgba(246, 235, 224, 0.82));
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 22px;
}

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

.footer-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(33, 24, 22, 0.08);
    background: rgba(255, 249, 241, 0.76);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

@media (max-width: 980px) {
    .hero-section,
    .feature-strip,
    .footer-top,
    .footer-columns,
    .archive-card,
    .statement-grid {
        grid-template-columns: 1fr;
    }

    .post-card,
    .empty-card,
    .large-card,
    .info-layout .info-card:not(.large-card) {
        grid-column: span 12;
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: min(100% - 20px, 1160px);
        padding-top: 14px;
    }

    .site-header,
    .hero-panel,
    .page-intro,
    .article-shell,
    .site-footer,
    .feature-strip article,
    .post-card,
    .archive-card,
    .info-card,
    .statement-card,
    .empty-card {
        border-radius: 24px;
    }

    .site-header,
    .section-heading,
    .article-meta,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-header,
    .hero-copy,
    .page-intro,
    .article-shell,
    .site-footer {
        padding: 22px;
    }

    .hero-copy {
        padding: 32px 24px 34px;
    }

    .hero-copy h1,
    .page-intro h1,
    .article-header h1 {
        max-width: none;
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .post-card,
    .empty-card {
        grid-column: span 12;
    }

    .post-card-top {
        flex-direction: column;
    }
}
