:root {
    --page: #f6f1d8;
    --page-soft: #fff8df;
    --ink: #3d3125;
    --muted: #6d604f;
    --line: rgba(99, 78, 45, 0.18);
    --soil: #8b5e35;
    --leaf: #4f8f4d;
    --leaf-soft: #ddecbd;
    --gold: #d6943e;
    --sky: #6fa9cc;
    --rose: #d96965;
    --shadow: 0 24px 70px rgba(77, 55, 28, 0.18);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(255, 252, 231, 0.9) 0%, rgba(246, 241, 216, 0.96) 42%, rgba(229, 238, 197, 0.82) 100%),
        #f6f1d8;
    color: var(--ink);
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.74;
}

a {
    color: #2f7f60;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 248, 223, 0.9);
    backdrop-filter: blur(16px);
}

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    color: var(--ink);
    font-weight: 800;
    font-size: 1.08rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.96rem;
    font-weight: 700;
}

.hero {
    max-width: 1140px;
    margin: 0 auto;
    padding: 5rem 1.5rem 3rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(79, 143, 77, 0.28);
    border-radius: 999px;
    background: rgba(79, 143, 77, 0.1);
    color: #2f7f60;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    max-width: 980px;
    margin: 1.35rem 0 1.2rem;
    color: var(--ink);
    font-size: 4rem;
    line-height: 1.05;
    letter-spacing: 0;
}

.dek {
    max-width: 860px;
    color: var(--muted);
    font-size: 1.23rem;
}

.meta {
    margin-top: 1.55rem;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    color: #6c563a;
    padding: 0.28rem 0.78rem;
    font-size: 0.94rem;
    font-weight: 700;
}

.hero-image,
.article-shell {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-image {
    margin-bottom: 3.5rem;
}

.hero-image img,
.figure img,
.sheet-grid img {
    display: block;
    width: 100%;
}

.hero-image img,
.figure {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--page-soft);
    box-shadow: var(--shadow);
}

.article-shell {
    max-width: 920px;
    padding-bottom: 5rem;
}

.toc {
    margin-bottom: 3rem;
    padding: 1.4rem 1.6rem;
    border: 1px solid rgba(79, 143, 77, 0.2);
    border-radius: 16px;
    background: rgba(255, 248, 223, 0.72);
}

.toc h2 {
    margin: 0 0 0.7rem;
    color: #2f7f60;
    font-size: 1.15rem;
}

.toc ol {
    margin-left: 1.2rem;
}

.toc li {
    margin: 0.38rem 0;
    color: var(--muted);
}

section {
    scroll-margin-top: 6rem;
}

h2 {
    margin: 3.4rem 0 1rem;
    color: var(--ink);
    font-size: 2rem;
    line-height: 1.18;
    letter-spacing: 0;
}

h3 {
    margin: 2rem 0 0.75rem;
    color: #2f7f60;
    font-size: 1.24rem;
}

p {
    margin: 0 0 1.35rem;
    color: var(--muted);
    font-size: 1.08rem;
}

strong {
    color: var(--ink);
}

ul,
ol {
    margin: 0 0 1.5rem 1.25rem;
    color: var(--muted);
    font-size: 1.05rem;
}

li {
    margin-bottom: 0.55rem;
}

.figure {
    margin: 2.3rem 0;
}

.figure figcaption {
    border-top: 1px solid var(--line);
    background: rgba(255, 248, 223, 0.86);
    color: #6d604f;
    padding: 0.85rem 1rem;
    font-size: 0.94rem;
}

.note {
    margin: 2rem 0;
    border-left: 5px solid var(--gold);
    border-radius: 12px;
    background: rgba(255, 248, 223, 0.8);
    color: var(--muted);
    padding: 1.1rem 1.25rem;
    font-size: 1.02rem;
}

.feature-grid {
    margin: 1.7rem 0 2.4rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 248, 223, 0.72);
    padding: 1.15rem;
}

.feature-card strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #2f7f60;
}

.feature-card span {
    color: var(--muted);
    font-size: 0.98rem;
}

.timeline {
    margin: 1.8rem 0 2.4rem;
    border-left: 3px solid rgba(79, 143, 77, 0.28);
}

.timeline-item {
    position: relative;
    padding: 0 0 1.3rem 1.35rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -0.56rem;
    top: 0.28rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(214, 148, 62, 0.18);
}

.timeline-item h3 {
    margin-top: 0;
    color: var(--soil);
    font-size: 1.08rem;
}

.timeline-item p {
    margin-bottom: 0;
}

.sheet-grid {
    margin: 1.8rem 0 2.4rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.sheet-tile {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 248, 223, 0.75);
}

.sheet-tile img {
    background:
        linear-gradient(45deg, rgba(79, 143, 77, 0.08) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(79, 143, 77, 0.08) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(79, 143, 77, 0.08) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(79, 143, 77, 0.08) 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
    object-fit: contain;
    aspect-ratio: 16 / 10;
    padding: 0.8rem;
}

.sheet-tile figcaption {
    border-top: 1px solid var(--line);
    padding: 0.75rem 0.9rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.related {
    margin-top: 3.5rem;
    padding: 1.4rem 1.55rem;
    border: 1px solid rgba(111, 169, 204, 0.28);
    border-radius: 16px;
    background: rgba(224, 239, 242, 0.55);
}

.related h2 {
    margin-top: 0;
    font-size: 1.35rem;
}

.footer {
    border-top: 1px solid var(--line);
    background: rgba(255, 248, 223, 0.8);
    padding: 2rem 1.5rem;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 0.98rem;
}

@media (max-width: 760px) {
    .nav-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero {
        padding-top: 3.4rem;
    }

    h1 {
        font-size: 2.45rem;
    }

    .dek {
        font-size: 1.08rem;
    }

    h2 {
        font-size: 1.65rem;
    }

    .feature-grid,
    .sheet-grid {
        grid-template-columns: 1fr;
    }
}
