:root {
    color-scheme: light;
    --ink: #152337;
    --gold: #b58a41;
    --surface: #fbf8f1;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
}

.insights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px max(24px, calc((100vw - 1160px)/2));
    background: #0e1b2c;
    color: #fff;
}

.insights-header .brand {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .12em;
    color: #e3c17d;
    text-decoration: none;
}

.insights-header nav {
    display: flex;
    gap: 22px;
}

.insights-header nav a {
    text-decoration: none;
}

main {
    width: min(1160px, calc(100% - 40px));
    margin: auto;
}

.intro {
    padding: 85px 0 55px;
    max-width: 750px;
}

.eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 700;
    font-size: 12px;
}

h1 {
    font-size: clamp(36px, 6vw, 66px);
    line-height: 1.13;
    letter-spacing: -.035em;
    margin: 12px 0 24px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 25px;
    padding-bottom: 90px;
}

.article-card {
    background: #fff;
    border: 1px solid #e8e0d2;
    border-radius: 15px;
    overflow: hidden;
}

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

.article-card-body {
    padding: 25px;
}

.article-card h2 {
    font-size: 21px;
    line-height: 1.35;
}

.article-card h2 a {
    text-decoration: none;
}

.article-card p,
.lead {
    color: #617084;
}

.read-more,
.back-link {
    color: #9b722e;
    font-weight: 700;
}

.article-detail {
    max-width: 820px;
    margin: 70px auto 110px;
}

.article-cover {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 15px;
    margin: 30px 0;
}

.article-body {
    font-size: 17px;
    overflow-wrap: anywhere;
}

.article-body h2,
.article-body h3 {
    margin-top: 36px;
}

.article-body img {
    max-width: 100%;
}

.article-body pre {
    overflow-x: auto;
    padding: 18px;
    background: #eae5db;
}

footer {
    background: #0e1b2c;
    color: #d9c9ab;
    padding: 35px 24px;
    text-align: center;
}

@media(max-width:850px) {
    .article-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media(max-width:580px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    .insights-header {
        padding: 18px 20px;
    }

    .insights-header .brand {
        font-size: 14px;
    }
}

@media(prefers-color-scheme:dark) {
    :root {
        color-scheme: dark;
        --ink: #eee9dd;
        --surface: #101b2a;
    }

    .article-card {
        background: #18283a;
        border-color: #36445a;
    }

    .article-card p,
    .lead {
        color: #b5c0cf;
    }

    .article-body pre {
        background: #25354a;
    }
}
