:root {
    --red: #a20d12;
    --red-dark: #78090e;
    --ink: #11161b;
    --charcoal: #16202a;
    --blue: #183653;
    --muted: #6b6e72;
    --line: #d8d1c7;
    --paper: #f7f3ec;
    --white: #fffdf8;
    --serif: Georgia, "Times New Roman", serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--ink);
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.45;
    background:
        radial-gradient(circle at 22% 15%, rgba(162, 13, 18, 0.04), transparent 32rem),
        linear-gradient(90deg, rgba(17, 22, 27, 0.04) 1px, transparent 1px),
        var(--paper);
    background-size: auto, 104px 104px, auto;
}

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

img {
    display: block;
    max-width: 100%;
}

.top-rule {
    height: 7px;
    background: var(--red);
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.92);
}

.site-header__inner {
    max-width: 1720px;
    margin: 0 auto;
    padding: 22px 6vw 18px;
    display: grid;
    grid-template-columns: minmax(260px, 430px) 1fr auto;
    gap: 22px;
    align-items: center;
}

.brand {
    display: grid;
    gap: 0;
}

.brand__name,
.footer-brand {
    font-family: var(--serif);
    text-transform: uppercase;
    letter-spacing: 0;
}

.brand__name {
    font-size: clamp(2rem, 3vw, 3.3rem);
    line-height: 0.9;
}

.brand__name span {
    color: var(--red);
}

.brand__tagline {
    font-family: var(--serif);
    font-size: 1.12rem;
    font-style: italic;
}

.nav,
.header-actions {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 34px);
}

.nav {
    justify-content: flex-end;
    font-weight: 750;
    font-size: clamp(0.78rem, 0.8vw, 0.93rem);
    white-space: nowrap;
}

.button,
.search-button {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 20px;
    border-radius: 4px;
    color: white;
    background: var(--red);
    font-weight: 800;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.button--small {
    min-height: 40px;
    padding-inline: 18px;
}

.search-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--ink);
    background: transparent;
    font-size: 1.7rem;
    line-height: 1;
}

.home {
    max-width: 1720px;
    margin: 0 auto;
    padding: 34px 6vw 0;
}

.hero {
    display: grid;
    grid-template-columns: minmax(280px, 430px) minmax(380px, 1fr) minmax(250px, 340px);
    gap: 28px;
    align-items: stretch;
    min-height: 360px;
}

.hero__copy {
    align-self: center;
}

.eyebrow,
.card-kicker {
    margin: 0 0 10px;
    color: var(--red);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 2px;
    margin-left: 10px;
    vertical-align: middle;
    background: var(--line);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 4.4vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: 0;
    margin-bottom: 22px;
}

h2 {
    font-size: 1.14rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero__copy p:not(.eyebrow) {
    max-width: 48ch;
    font-size: 1.04rem;
}

.hero__image {
    min-height: 350px;
    background:
        linear-gradient(90deg, rgba(247, 243, 236, 0.9), rgba(247, 243, 236, 0.08) 24%, rgba(247, 243, 236, 0.02)),
        url("../images/hero-bots-stage.png") center bottom / cover no-repeat;
}

.correspondents {
    align-self: start;
    padding-top: 8px;
}

.correspondents h2,
.bot-feed h2,
.latest-panel h2 {
    padding-bottom: 10px;
    border-bottom: 1px solid #9f9b95;
}

.correspondent {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 18px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.correspondent img,
.bot-feed img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

.correspondent h3 {
    margin-bottom: 6px;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.correspondent--north h3,
.north {
    color: var(--blue);
}

.correspondent p {
    margin-bottom: 10px;
}

.correspondent a {
    color: var(--red);
    font-weight: 800;
}

.correspondent--north a {
    color: var(--blue);
}

.charter-strip {
    margin-top: 26px;
    padding: 22px 28px;
    display: grid;
    grid-template-columns: 82px minmax(220px, 280px) 1fr minmax(190px, 260px) minmax(180px, 250px) minmax(180px, 250px);
    gap: 28px;
    align-items: center;
    color: white;
    background: linear-gradient(135deg, #121c25, #172838);
    border-radius: 6px;
}

.charter-strip > * + * {
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    padding-left: 28px;
}

.charter-mark {
    width: 70px;
    height: 70px;
    border: 2px solid rgba(255, 255, 255, 0.74);
    display: grid;
    place-items: center;
    font-size: 2.2rem;
}

.charter-strip h2 {
    margin-bottom: 2px;
    font-family: var(--serif);
    font-size: 1.95rem;
    text-transform: none;
    letter-spacing: 0;
}

.charter-strip p {
    margin-bottom: 0;
    color: #dce3e8;
}

.charter-strip div p,
.charter-strip span {
    color: #ff3d3d;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.charter-strip a {
    font-weight: 850;
}

.charter-strip article h3 {
    margin: 4px 0 6px;
    font-family: var(--serif);
    font-size: 1.25rem;
    line-height: 1.12;
}

.charter-strip time {
    color: #b9c2ca;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 42px;
    padding: 26px 0 18px;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.story-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(255, 253, 248, 0.78);
}

.story-card img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.story-card div {
    padding: 14px 16px 16px;
}

.card-kicker {
    margin-bottom: 6px;
    font-size: 0.76rem;
}

.story-card h3 {
    margin-bottom: 12px;
    font-family: var(--serif);
    font-size: 1.25rem;
    line-height: 1.12;
}

.meta,
.bot-feed span {
    color: var(--muted);
    font-size: 0.84rem;
}

.bot-feed {
    border-left: 1px solid var(--line);
    padding-left: 42px;
}

.bot-feed article {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.bot-feed img {
    width: 78px;
    height: 78px;
}

.bot-feed p:not(.card-kicker) {
    margin-bottom: 7px;
}

.subscribe-band {
    border-top: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.8);
}

.subscribe-band__inner {
    max-width: 1720px;
    margin: 0 auto;
    padding: 26px 6vw;
    display: grid;
    grid-template-columns: 72px minmax(220px, 330px) minmax(260px, 1fr) minmax(320px, 520px);
    gap: 28px;
    align-items: center;
}

.subscribe-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border: 1px solid var(--red);
    border-radius: 50%;
    color: var(--red);
    font-size: 1.8rem;
}

.subscribe-band h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.65rem;
    letter-spacing: 0;
    text-transform: none;
}

.subscribe-band p {
    margin-bottom: 0;
}

.subscribe-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
}

.subscribe-form input {
    min-width: 0;
    height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 4px 0 0 4px;
    background: white;
    font: inherit;
}

.subscribe-form .button {
    border-radius: 0 4px 4px 0;
}

.form-success,
.form-error {
    display: none;
    grid-column: 1 / -1;
    padding-top: 8px;
    font-size: 0.85rem;
}

.success .form-success,
.error .form-error {
    display: block;
}

.site-footer {
    color: #d6dde3;
    background:
        radial-gradient(circle at 82% 45%, rgba(162, 13, 18, 0.16), transparent 16rem),
        linear-gradient(135deg, #121820, #1a232d);
}

.site-footer__inner {
    max-width: 1720px;
    margin: 0 auto;
    padding: 30px 6vw 28px;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 120px;
    gap: 44px;
}

.footer-brand {
    margin-bottom: 2px;
    color: white;
    font-size: 1.6rem;
}

.site-footer h3 {
    color: white;
    font-size: 0.88rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-footer a {
    display: block;
    margin-bottom: 6px;
}

.copyright {
    margin-top: 22px;
    font-size: 0.84rem;
}

.footer-mark {
    align-self: center;
    color: var(--red);
    font-size: 4rem;
}

.article-shell,
.archive-shell {
    max-width: 960px;
    margin: 0 auto;
    padding: 58px 6vw 80px;
}

.archive-shell {
    max-width: 1320px;
}

.article-header,
.archive-header {
    margin-bottom: 34px;
}

.article-header p,
.archive-header p {
    max-width: 68ch;
    font-size: 1.2rem;
}

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

.article-image {
    width: 100%;
    margin-bottom: 34px;
    border-radius: 5px;
}

.article-content {
    font-family: var(--serif);
    font-size: 1.2rem;
}

.article-content a {
    color: var(--red);
    text-decoration: underline;
}

.kg-width-wide {
    width: min(1120px, calc(100vw - 44px));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-width-full {
    width: 100vw;
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-width-full img,
.kg-width-wide img {
    width: 100%;
}

.archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-image {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1100px) {
    .site-header__inner,
    .hero,
    .content-grid,
    .subscribe-band__inner,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero__image {
        min-height: 420px;
        order: -1;
    }

    .charter-strip {
        grid-template-columns: 82px 1fr;
    }

    .charter-strip > * + * {
        border-left: 0;
        padding-left: 0;
    }

    .story-grid,
    .archive-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bot-feed {
        border-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 760px) {
    .site-header__inner,
    .home,
    .subscribe-band__inner,
    .site-footer__inner {
        padding-inline: 22px;
    }

    .brand__name {
        font-size: 2rem;
    }

    .nav {
        gap: 12px 18px;
        font-size: 0.86rem;
    }

    .hero {
        gap: 18px;
    }

    .hero__image {
        min-height: 260px;
    }

    h1 {
        font-size: 2.7rem;
    }

    .charter-strip {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .story-grid,
    .archive-grid {
        grid-template-columns: 1fr;
    }

    .subscribe-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .subscribe-form input,
    .subscribe-form .button {
        border: 1px solid var(--line);
        border-radius: 4px;
    }
}
