.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.site-body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.75;
    /* Improved readability */
    -webkit-font-smoothing: antialiased;
}

.section {
    padding: 6rem 0;
    /* Generous whitespace */
}

.site-header {
    padding: 1.25rem 0;
    background: var(--color-surface);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.main-nav .nav__list {
    display: flex;
    gap: 1.5rem;
}

.premium-footer {
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    background: #f1f5f9;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer__nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro {
    max-width: 65ch;
    margin: 0 auto;
}

.features-section:empty {
    display: none;
}

/* --- Layout Variants --- */

/* Centered Layout: Best for minimalist or authority sites */
.layout--centered #main-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.layout--centered .article-substance,
.layout--centered .intro {
    text-align: left;
    /* Keep text readable */
}

/* Split Layout: Hero on one side, content on other (often achieved via flex/grid) */
.layout--split .article-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 60vh;
}

@media (max-width: 768px) {
    .layout--split .article-header {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

/* Magazine Layout: More aggressive grid for bento-style cards */
.layout--magazine .nodes-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.layout--magazine .data-node:nth-child(3n) {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .layout--magazine .data-node:nth-child(3n) {
        grid-column: span 1;
    }
}

/* Sidebar Variants */
.layout--sidebar-right .layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.layout--sidebar-left .layout-with-sidebar {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}

.layout--sidebar-left .sidebar {
    grid-column: 1;
    grid-row: 1;
}

.layout--sidebar-left .content {
    grid-column: 2;
}

@media (max-width: 1024px) {

    .layout--sidebar-right .layout-with-sidebar,
    .layout--sidebar-left .layout-with-sidebar {
        grid-template-columns: 1fr;
    }
}