:root {
    --white: #ffffff;
    --paper: #f7fbfe;
    --sky: #d8f1fb;
    --sky-soft: #edf9fd;
    --sky-strong: #5aaed8;
    --navy: #0a2a43;
    --ink: #173247;
    --muted: #62788c;
    --line: #d7e8f0;
    --accent: #a87538;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.6;
}

body,
button,
input {
    font-size: 16px;
}

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

a:hover {
    color: var(--sky-strong);
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 5vw;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--navy);
    font-weight: 700;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--navy);
    background: var(--sky);
    border: 1px solid #b8deef;
    border-radius: 6px;
    font-size: 14px;
}

.brand__text {
    overflow-wrap: anywhere;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    color: var(--muted);
}

.site-nav a {
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.site-nav a.is-active,
.site-nav a:hover {
    color: var(--navy);
    border-bottom-color: var(--sky-strong);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.nav-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--navy);
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 68vh;
    padding: 90px 5vw;
    color: var(--white);
    background-image: linear-gradient(90deg, rgba(8, 35, 56, 0.88), rgba(8, 35, 56, 0.58), rgba(8, 35, 56, 0.18)), url('../img/editorial-hero.png');
    background-position: center;
    background-size: cover;
}

.hero__content {
    width: min(760px, 100%);
}

.eyebrow,
.section-kicker {
    margin: 0 0 14px;
    color: var(--accent);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--sky);
}

.hero h1,
.article-hero h1 {
    margin: 0;
    font-size: 64px;
    line-height: 1.02;
    font-weight: 700;
}

.hero__lead {
    max-width: 680px;
    margin: 24px 0 0;
    color: #edf8fd;
    font-size: 22px;
    line-height: 1.45;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
}

.button--primary {
    color: var(--navy);
    background: var(--sky);
    border-color: #bde3f2;
}

.button--primary:hover {
    color: var(--navy);
    background: #c5eaf7;
}

.button--ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.62);
}

.button--ghost:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.section-inner {
    width: min(1120px, calc(100% - 10vw));
    margin: 0 auto;
}

.featured-band {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.featured-band__inner {
    padding: 42px 0;
}

.featured-article {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 54px;
    align-items: start;
}

.featured-article h2 {
    margin: 8px 0 0;
    color: var(--navy);
    font-size: 36px;
    line-height: 1.15;
}

.featured-article p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.article-meta {
    margin: 0 0 12px;
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.analysis-section,
.method-section,
.newsletter-section {
    padding: 72px 0;
}

.analysis-section {
    background: var(--paper);
}

.newsletter-section {
    background: linear-gradient(135deg, var(--white), var(--sky-soft));
    border-top: 1px solid var(--line);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.section-heading h2,
.method-grid h2,
.newsletter h2 {
    margin: 0;
    color: var(--navy);
    font-size: 40px;
    line-height: 1.16;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.filter-button {
    min-height: 38px;
    padding: 8px 12px;
    color: var(--muted);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.filter-button.is-active,
.filter-button:hover {
    color: var(--navy);
    background: var(--sky-soft);
    border-color: #aeddeb;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.article-card {
    position: relative;
    min-height: 310px;
    padding: 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(10, 42, 67, 0.06);
}

.article-card[hidden] {
    display: none;
}

.article-card__accent {
    width: 44px;
    height: 4px;
    margin-bottom: 22px;
    background: var(--sky-strong);
}

.article-card h3 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 25px;
    line-height: 1.2;
}

.article-card p {
    color: var(--muted);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

.tag-list span {
    padding: 5px 8px;
    color: var(--navy);
    background: var(--sky-soft);
    border-radius: 4px;
}

.method-section {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.method-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
}

.method-list {
    display: grid;
    gap: 20px;
}

.method-list div {
    padding-left: 22px;
    border-left: 3px solid var(--sky-strong);
}

.method-list strong {
    display: block;
    color: var(--navy);
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 6px;
}

.method-list p,
.newsletter p {
    margin: 0;
    color: var(--muted);
}

.newsletter {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 44px;
    align-items: center;
    color: var(--ink);
}

.newsletter-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
}

.newsletter-form__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.newsletter-form input {
    min-width: 0;
    min-height: 46px;
    padding: 12px 14px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #b7d9e8;
    border-radius: 6px;
}

.site-footer {
    padding: 44px 0;
    color: #c6d6df;
    background: var(--navy);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 34px;
    width: min(1120px, calc(100% - 10vw));
    margin: 0 auto;
}

.brand--footer {
    color: var(--white);
}

.footer__inner p {
    max-width: 420px;
    margin: 14px 0 0;
}

.footer__links {
    display: flex;
    align-items: start;
    gap: 22px;
    font-family: Arial, Helvetica, sans-serif;
}

.footer__links a:hover {
    color: var(--white);
}

.article-hero {
    padding: 72px 0 58px;
    background: linear-gradient(135deg, var(--white), var(--sky-soft));
    border-bottom: 1px solid var(--line);
}

.back-link {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--sky-strong);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
}

.article-hero h1 {
    max-width: 860px;
    color: var(--navy);
}

.article-dek {
    max-width: 780px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 21px;
}

.article-author {
    margin: 24px 0 0;
    color: var(--navy);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 720px) 300px;
    gap: 70px;
    padding: 64px 0 82px;
    align-items: start;
}

.article-body {
    color: #243f53;
    font-size: 20px;
    line-height: 1.78;
}

.article-body p {
    margin: 0 0 28px;
}

.article-body blockquote {
    margin: 42px 0;
    padding: 4px 0 4px 28px;
    color: var(--navy);
    border-left: 4px solid var(--sky-strong);
    font-size: 30px;
    line-height: 1.28;
}

.article-aside {
    position: sticky;
    top: 104px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.article-aside h2 {
    margin: 0 0 16px;
    color: var(--navy);
    font-size: 22px;
}

.related-link {
    display: block;
    padding: 16px 0;
    color: var(--ink);
    border-top: 1px solid var(--line);
    font-weight: 700;
}

.related-link span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 400;
}

.not-found {
    min-height: 58vh;
    display: grid;
    place-items: center;
    background: var(--sky-soft);
}

.not-found__inner {
    text-align: center;
}

.not-found h1 {
    margin: 0;
    color: var(--navy);
    font-size: 48px;
}

.not-found p {
    color: var(--muted);
}

@media (max-width: 980px) {
    .site-nav {
        gap: 18px;
    }

    .hero h1,
    .article-hero h1 {
        font-size: 52px;
    }

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

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

    .article-aside {
        position: static;
    }
}

@media (max-width: 740px) {
    .site-header {
        min-height: 66px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 5vw 18px;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 28px rgba(10, 42, 67, 0.08);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 0;
    }

    .hero {
        min-height: 64vh;
        padding: 72px 5vw;
        background-position: center;
    }

    .hero h1,
    .article-hero h1 {
        font-size: 42px;
    }

    .hero__lead,
    .article-dek {
        font-size: 19px;
    }

    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-bar {
        justify-content: flex-start;
    }

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

    .section-heading h2,
    .method-grid h2,
    .newsletter h2 {
        font-size: 32px;
    }

    .newsletter-form__row {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        flex-direction: column;
    }

    .footer__links {
        flex-wrap: wrap;
    }

    .article-body {
        font-size: 18px;
    }

    .article-body blockquote {
        font-size: 24px;
    }
}

@media (max-width: 460px) {
    .brand__text {
        font-size: 14px;
    }

    .brand__mark {
        width: 38px;
        height: 38px;
    }

    .hero h1,
    .article-hero h1 {
        font-size: 36px;
    }

    .button {
        width: 100%;
    }

    .featured-article h2 {
        font-size: 30px;
    }
}
