:root {
    --accent: #111827;
    --accent-2: #4b5563;
    --ink: #111827;
    --muted: #5b6778;
    --line: #d7dde7;
    --paper: #ffffff;
    --soft: #f6f8fb;
    --card: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.58;
}

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

a {
    color: inherit;
    text-decoration-color: color-mix(in srgb, var(--accent) 48%, transparent);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

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

h1,
h2,
h3,
.brand-title {
    line-height: 1.05;
}

.site-header,
.site-footer,
main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    border-bottom: 2px solid var(--ink);
}

.topline {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 24px;
    align-items: end;
    padding: 24px 0 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 6px;
    color: #fff;
    background: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.brand-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 58px;
    font-weight: 800;
}

.masthead p {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 15px;
}

.section-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    padding: 11px 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.section-nav span,
.section-nav a {
    flex: 0 0 auto;
}

.edition-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 24px;
    align-items: end;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.lede {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 20px;
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.edition-meta,
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.edition-meta span,
.meta-row span {
    border-left: 3px solid var(--accent-2);
    padding-left: 10px;
}

.front-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.95fr);
    gap: 28px;
    padding: 28px 0 36px;
    border-bottom: 1px solid var(--line);
}

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

.lead-image {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    text-decoration: none;
}

.lead-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.lead-copy {
    max-width: 860px;
}

.lead-copy h2 {
    margin-bottom: 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
}

.lead-copy p:not(.eyebrow) {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
}

.editor-rail {
    display: grid;
    gap: 18px;
}

.rail-panel,
.rail-story {
    border-top: 4px solid var(--accent);
    padding: 16px 0 0;
}

.rail-panel {
    background: var(--soft);
    padding: 18px;
}

.rail-panel h2,
.rail-story h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.rail-story {
    border-top-color: var(--line);
}

.rail-story p:not(.eyebrow) {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 15px;
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 8px;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: 26px;
}

.section-heading span {
    color: var(--muted);
    font-size: 13px;
}

.story-section {
    padding: 34px 0 52px;
}

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

.article-card {
    min-height: 210px;
    border-top: 1px solid var(--line);
    padding: 16px 0 0;
    background: var(--card);
}

.article-card.large {
    min-height: 250px;
}

.article-card h3 {
    margin-bottom: 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
}

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

.article-card .brand-mark {
    margin-bottom: 16px;
}

.tag-row,
.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.tag-row span,
.pill-list li {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--muted);
    background: #fff;
    font-size: 12px;
}

.article {
    max-width: 840px;
    padding: 42px 0 64px;
}

.article header {
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
    padding-bottom: 24px;
}

.article h1 {
    margin-bottom: 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 56px;
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
}

.meta-row {
    margin: 18px 0 0;
}

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

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

.article-body h3 {
    margin-top: 28px;
    font-size: 22px;
}

.article-body li {
    margin-bottom: 8px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0 36px;
    border-top: 2px solid var(--ink);
    color: var(--muted);
    font-size: 14px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 900px) {
    .masthead,
    .edition-intro,
    .front-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .masthead {
        gap: 12px;
    }

    .brand-title {
        font-size: 42px;
    }

    .lead-copy h2,
    .article h1 {
        font-size: 34px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .site-header,
    .site-footer,
    main {
        width: min(100% - 24px, 1180px);
    }

    .topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .brand {
        align-items: flex-start;
    }

    .brand-title {
        font-size: 36px;
    }

    .lede {
        font-size: 17px;
    }

    .lead-copy h2,
    .article h1 {
        font-size: 30px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}
