:root {
    --paper: #f7f6f2;
    --white: #ffffff;
    --ink: #171717;
    --muted: #676767;
    --line: #d8d7d2;
    --red: #d72638;
    --cyan: #5ce1e6;
    --yellow: #ffe66d;
    --green: #2f6b4f;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Space Grotesk", Arial, sans-serif;
    line-height: 1.55;
}

a { color: inherit; }

.focus-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.focus-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: end;
    padding: 44px 0 24px;
    border-bottom: 4px solid var(--ink);
}

.focus-kicker,
.section-label,
.story-tag,
.filter-button,
.focus-date {
    font-family: "Space Mono", monospace;
}

.focus-kicker {
    margin: 0 0 8px;
    color: var(--red);
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1;
    letter-spacing: 0;
}

.focus-deck {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.focus-meta {
    display: grid;
    justify-items: end;
    gap: 8px;
    padding-bottom: 4px;
    text-align: right;
}

.focus-date {
    color: var(--muted);
    font-size: .72rem;
}

.language-link {
    font-size: .85rem;
    font-weight: 700;
    text-underline-offset: 4px;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
}

.section-label {
    flex: 0 0 auto;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.filter-list {
    display: flex;
    gap: 8px;
}

.filter-button {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--ink);
    border-radius: 4px;
    background: transparent;
    color: var(--ink);
    font-size: .7rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
    background: var(--ink);
    color: var(--white);
}

.stories {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .8fr);
    gap: 34px;
    padding: 34px 0 48px;
    border-bottom: 1px solid var(--line);
}

.story {
    min-width: 0;
}

.story[hidden] { display: none; }

.story-link {
    display: block;
    text-decoration: none;
}

.story-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #e7e5df;
    aspect-ratio: 16 / 10;
}

.story-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.story-link:hover .story-media img {
    transform: scale(1.015);
}

.story-copy {
    padding-top: 18px;
}

.story-tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 7px;
    background: var(--yellow);
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
}

.story h2,
.story h3 {
    margin: 0;
    letter-spacing: 0;
}

.story h2 {
    max-width: 780px;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.08;
}

.story h3 {
    font-size: 1.3rem;
    line-height: 1.2;
}

.story-summary {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: .98rem;
}

.story-byline {
    margin: 13px 0 0;
    font-family: "Space Mono", monospace;
    color: var(--muted);
    font-size: .68rem;
}

.story-stack {
    display: grid;
    gap: 28px;
    align-content: start;
}

.story-secondary + .story-secondary {
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.story-secondary .story-media {
    aspect-ratio: 3 / 2;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 50px 0;
    color: var(--muted);
}

.focus-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 28px 0 56px;
}

.focus-bottom strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.focus-bottom p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
}

.focus-links {
    display: flex;
    gap: 14px;
    font-size: .84rem;
    font-weight: 700;
}

.focus-links a {
    text-underline-offset: 4px;
}

@media (max-width: 820px) {
    .focus-intro {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 32px;
    }

    .focus-meta {
        grid-auto-flow: column;
        justify-content: space-between;
        justify-items: start;
        text-align: left;
    }

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

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

    .story-secondary + .story-secondary {
        padding: 0;
        border: 0;
    }
}

@media (max-width: 600px) {
    .focus-shell {
        width: min(100% - 28px, 1180px);
    }

    h1 {
        font-size: 2.55rem;
    }

    .focus-meta,
    .story-stack,
    .focus-bottom {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
    }

    .filter-section {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .story-secondary .story-media {
        aspect-ratio: 16 / 10;
    }

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