:root {
    --paper: #f7f7f4;
    --surface: #ffffff;
    --ink: #171717;
    --muted: #62625d;
    --line: #d8d8d1;
    --coral: #d94f3d;
    --green: #1f6755;
    --blue: #245da4;
    --yellow: #e6b83f;
    --content: 1180px;
    --reading: 720px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
}

body,
button,
input {
    letter-spacing: 0;
}

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

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

button,
input {
    font: inherit;
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 8px;
    left: 8px;
    padding: 8px 12px;
    background: var(--ink);
    color: #fff;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 247, 244, 0.96);
}

.header-inner {
    width: min(calc(100% - 40px), var(--content));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.wordmark-mark {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: var(--coral);
    color: #fff;
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 17px;
    font-weight: 800;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    white-space: nowrap;
}

.primary-nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.primary-nav a:hover {
    color: var(--coral);
}

.masthead {
    border-bottom: 1px solid var(--line);
}

.masthead-inner {
    width: min(calc(100% - 40px), var(--content));
    min-height: 150px;
    margin: 0 auto;
    padding: 24px 0 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "issue deck"
        "title deck";
    align-items: end;
    gap: 0 40px;
}

.issue-line,
.eyebrow {
    margin: 0;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
}

.issue-line {
    grid-area: issue;
}

.issue-line span {
    margin-left: 10px;
    color: var(--muted);
}

.masthead h1 {
    grid-area: title;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 74px;
    font-weight: 700;
    line-height: 0.95;
}

.masthead-deck {
    grid-area: deck;
    max-width: 330px;
    margin: 0 0 8px;
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1.25;
}

.featured-story {
    position: relative;
    width: 100%;
    height: min(52vh, 520px);
    min-height: 360px;
    overflow: hidden;
    background: #222;
}

.featured-story > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
}

.featured-content {
    position: absolute;
    inset: auto 0 0;
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    padding: 34px 0 38px;
    color: #fff;
}

.featured-content .story-kicker {
    color: #fff;
}

.featured-content .story-kicker span {
    color: rgba(255, 255, 255, 0.8);
}

.featured-content h2 {
    max-width: 780px;
    margin: 10px 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 48px;
    line-height: 1.02;
}

.featured-content > p:not(.story-kicker) {
    max-width: 690px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
}

.story-link {
    display: inline-block;
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
}

.story-link-light {
    color: #fff;
}

.story-link span {
    display: inline-block;
    margin-left: 6px;
    transition: transform 160ms ease;
}

.story-link:hover span {
    transform: translateX(4px);
}

.stories-section {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    padding: 78px 0 90px;
}

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

.section-heading h2,
.about-band h2,
.related-section h2 {
    margin: 6px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    line-height: 1.08;
}

.search-field {
    width: min(100%, 340px);
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.search-field input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--surface);
    color: var(--ink);
    padding: 9px 12px;
    font-size: 15px;
    text-transform: none;
}

.search-field input:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(36, 93, 164, 0.18);
}

.category-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.filter-button {
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: transparent;
    color: var(--muted);
    padding: 6px 13px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

.filter-button:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.filter-button.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.filter-button:focus-visible,
.primary-nav a:focus-visible,
.wordmark:focus-visible,
.story-card a:focus-visible,
.back-link:focus-visible,
.footer-links a:focus-visible {
    outline: 3px solid rgba(36, 93, 164, 0.35);
    outline-offset: 4px;
}

.results-status {
    min-height: 20px;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
}

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

.story-card {
    min-width: 0;
    border-top: 3px solid var(--ink);
    padding-top: 12px;
}

.story-card:nth-child(4n + 1) {
    border-color: var(--coral);
}

.story-card:nth-child(4n + 2) {
    border-color: var(--green);
}

.story-card:nth-child(4n + 3) {
    border-color: var(--blue);
}

.story-card:nth-child(4n) {
    border-color: var(--yellow);
}

.story-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e6e6e0;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
}

.story-image:hover img {
    transform: scale(1.018);
}

.story-card-body {
    padding: 18px 2px 0;
}

.story-kicker {
    margin: 0;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    text-transform: uppercase;
}

.story-kicker span {
    margin-left: 9px;
    color: var(--muted);
    font-weight: 650;
}

.story-card h3,
.related-story h3 {
    margin: 8px 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    line-height: 1.1;
}

.story-card h3 a,
.related-story h3 a {
    text-decoration: none;
}

.story-card h3 a:hover,
.related-story h3 a:hover {
    color: var(--coral);
}

.story-card-body > p:not(.story-kicker) {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.story-meta {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.empty-results {
    border-top: 1px solid var(--line);
    padding: 42px 0;
}

.empty-results h3 {
    margin: 0 0 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
}

.empty-results p {
    margin: 0;
    color: var(--muted);
}

.about-band {
    border-top: 1px solid #263e38;
    background: #143f35;
    color: #fff;
}

.about-inner {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    padding: 80px 0 86px;
}

.about-inner .eyebrow {
    color: #9bd8c7;
}

.about-band h2 {
    max-width: 680px;
    font-size: 52px;
}

.about-copy {
    max-width: 820px;
    margin: 32px 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}

.about-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.article-header {
    width: min(calc(100% - 40px), 900px);
    margin: 0 auto;
    padding: 64px 0 46px;
}

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

.article-header h1 {
    max-width: 860px;
    margin: 12px 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 64px;
    line-height: 1.02;
}

.article-deck {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    line-height: 1.42;
}

.article-byline {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 30px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.article-hero {
    width: min(100%, 1380px);
    aspect-ratio: 16 / 8.2;
    margin: 0 auto;
    overflow: hidden;
    background: #e6e6e0;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    width: min(calc(100% - 40px), var(--reading));
    margin: 0 auto;
    padding: 62px 0 90px;
    color: #282824;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.78;
}

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

.article-body h2 {
    margin: 50px 0 16px;
    color: var(--ink);
    font-size: 32px;
    line-height: 1.2;
}

.article-body blockquote {
    margin: 42px 0;
    border-left: 5px solid var(--coral);
    padding: 8px 0 8px 28px;
    color: var(--ink);
    font-size: 27px;
    font-style: italic;
    line-height: 1.38;
}

.related-section {
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.related-inner {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    padding: 72px 0 84px;
}

.related-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.related-story {
    min-width: 0;
}

.related-story .story-kicker {
    margin-top: 17px;
}

.site-footer {
    border-top: 1px solid #333;
    background: #171717;
    color: #fff;
}

.footer-inner {
    width: min(calc(100% - 40px), var(--content));
    min-height: 240px;
    margin: 0 auto;
    padding: 48px 0 36px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-content: space-between;
    gap: 30px;
}

.footer-brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
}

.footer-inner p {
    max-width: 480px;
    margin: 9px 0 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 700;
}

.footer-inner .footer-meta {
    grid-column: 1 / -1;
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    max-width: none;
}

@media (max-width: 760px) {
    .header-inner {
        width: min(calc(100% - 28px), var(--content));
        min-height: 60px;
    }

    .primary-nav {
        gap: 15px;
    }

    .primary-nav a {
        font-size: 13px;
    }

    .primary-nav a:nth-child(2) {
        display: none;
    }

    .masthead-inner {
        width: min(calc(100% - 28px), var(--content));
        min-height: 134px;
        padding: 18px 0 16px;
        grid-template-columns: 1fr;
        grid-template-areas:
            "issue"
            "title"
            "deck";
        align-items: start;
    }

    .masthead h1 {
        margin-top: 7px;
        font-size: 50px;
    }

    .masthead-deck {
        max-width: none;
        margin: 7px 0 0;
        font-size: 18px;
    }

    .featured-story {
        height: 380px;
        min-height: 380px;
    }

    .featured-content {
        width: min(calc(100% - 28px), var(--content));
        padding: 24px 0 26px;
    }

    .featured-content h2 {
        margin: 7px 0 9px;
        font-size: 34px;
    }

    .featured-content > p:not(.story-kicker) {
        display: -webkit-box;
        margin-bottom: 14px;
        overflow: hidden;
        font-size: 14px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .stories-section {
        width: min(calc(100% - 28px), var(--content));
        padding: 54px 0 68px;
    }

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

    .section-heading h2,
    .related-section h2 {
        font-size: 35px;
    }

    .search-field {
        width: 100%;
    }

    .category-filter {
        margin-right: -14px;
        padding-right: 14px;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .story-card h3,
    .related-story h3 {
        font-size: 27px;
    }

    .about-inner {
        width: min(calc(100% - 28px), var(--content));
        padding: 60px 0 66px;
    }

    .about-band h2 {
        font-size: 39px;
    }

    .about-copy {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 26px;
    }

    .article-header {
        width: min(calc(100% - 28px), 900px);
        padding: 38px 0 32px;
    }

    .back-link {
        margin-bottom: 30px;
    }

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

    .article-deck {
        font-size: 19px;
    }

    .article-byline {
        justify-content: space-between;
        gap: 14px;
    }

    .article-hero {
        aspect-ratio: 4 / 3;
    }

    .article-body {
        width: min(calc(100% - 32px), var(--reading));
        padding: 44px 0 66px;
        font-size: 18px;
        line-height: 1.72;
    }

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

    .article-body blockquote {
        margin: 34px 0;
        padding-left: 20px;
        font-size: 23px;
    }

    .related-inner {
        width: min(calc(100% - 28px), var(--content));
        padding: 56px 0 64px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-inner {
        width: min(calc(100% - 28px), var(--content));
        min-height: 270px;
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 380px) {
    .wordmark {
        font-size: 20px;
    }

    .wordmark-mark {
        width: 27px;
        height: 27px;
    }

    .primary-nav {
        gap: 11px;
    }

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

    .article-header h1 {
        font-size: 37px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
