:root {
    --bg: #1e2022;
    --bg-elevated: #2a2d30;
    --line: rgba(201, 214, 222, 0.18);
    --text: #f0f5f9;
    --muted: rgba(201, 214, 222, 0.74);
    --muted-strong: rgba(201, 214, 222, 0.9);
    --brand-soft: #c9d6de;
    --accent: #8b7355;
    --accent-soft: #d1b79d;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 14% 10%, rgba(139, 115, 85, 0.18), transparent 30%),
        linear-gradient(135deg, #1e2022 0%, #2a2d30 50%, #1e2022 100%);
    color: var(--text);
    line-height: 1.7;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(30, 32, 34, 0.9);
    backdrop-filter: blur(18px);
}

.nav,
.container {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

.nav {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: grid;
    gap: 2px;
    text-decoration: none;
}

.brand strong {
    font-size: 18px;
}

.brand span {
    color: var(--muted);
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--muted-strong);
    font-size: 14px;
}

.nav-links a {
    text-decoration: none;
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid rgba(209, 183, 157, 0.4);
    background: rgba(139, 115, 85, 0.24);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

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

.eyebrow {
    color: var(--accent-soft);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.15;
}

h1 {
    max-width: 860px;
    margin: 16px 0 18px;
    font-size: clamp(38px, 6vw, 72px);
}

.lead {
    max-width: 760px;
    color: var(--muted-strong);
    font-size: 19px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 34px 0 76px;
}

.article-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(42, 45, 48, 0.82);
    text-decoration: none;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.article-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.article-card div {
    padding: 22px;
}

.article-card span,
.meta {
    color: var(--accent-soft);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.article-card h2 {
    margin: 10px 0;
    font-size: 23px;
}

.article-card p,
.article-body p,
.article-body li {
    color: var(--muted-strong);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 34px;
    align-items: start;
    padding: 36px 0 80px;
}

.article-body {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(42, 45, 48, 0.78);
}

.article-body img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.article-body h2 {
    margin-top: 38px;
    font-size: 28px;
}

.article-visual { margin: 26px 0 34px; }
.article-visual img { display: block; width: 100%; max-height: 520px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.04); }
.article-visual figcaption { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.table-wrap { width: 100%; overflow-x: auto; margin: 22px 0 30px; }
.table-wrap table { width: 100%; min-width: 680px; border-collapse: collapse; }
.table-wrap th, .table-wrap td { padding: 14px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-wrap th { background: rgba(201, 214, 222, 0.08); color: var(--text); }
.table-wrap td { color: var(--muted-strong); }
.note-box { margin: 34px 0; padding: 24px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(82, 97, 106, 0.34); }
.note-box h2 { margin-top: 0; }

.article-body h3 {
    margin-top: 24px;
    font-size: 20px;
}

.side-panel {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 16px;
}

.toc,
.cta-box {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(82, 97, 106, 0.42);
}

.toc a {
    display: block;
    padding: 7px 0;
    color: var(--muted-strong);
    text-decoration: none;
    font-size: 14px;
}

.cta-box p {
    color: var(--muted-strong);
}

.related {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.related a {
    color: var(--brand-soft);
}

.footer {
    border-top: 1px solid var(--line);
    padding: 26px 0;
    color: var(--muted);
}

.footer a { color: var(--brand-soft); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

@media (max-width: 880px) {
    .nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 0;
    }

    .nav-links {
        flex-wrap: wrap;
    }

    .article-grid,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
    }

    .article-body {
        padding: 24px;
    }
}
