:root {
    color-scheme: light dark;
    --background: #f2f1ed;
    --foreground: #252522;
    --muted: #6d6c67;
    --border: #d5d3cc;
    --surface: #e9e8e3;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #1b1b1a;
        --foreground: #e7e6e1;
        --muted: #aaa8a1;
        --border: #3b3a37;
        --surface: #242423;
    }
}

* {
    box-sizing: border-box;
}

html {
    background: var(--background);
    color: var(--foreground);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
}

a {
    color: inherit;
}

.site-shell {
    width: min(100% - 2rem, 62.5rem);
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 2rem 1rem;
    border-bottom: 1px solid var(--border);
}

.wordmark {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 4vw, 2.2rem);
    font-weight: 400;
}

.wordmark a {
    text-decoration: none;
}

.navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    font-size: 0.95rem;
}

.navigation a {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25rem;
}

.navigation a[aria-current="page"] {
    text-decoration-thickness: 2px;
}

.content {
    padding-block: 4rem;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.content h2 {
    max-width: 18ch;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 7vw, 4.4rem);
    font-weight: 400;
    line-height: 1.02;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.9rem;
}

.status-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.65;
}

.status[data-ready="false"] .status-dot {
    background: var(--muted);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1rem 2rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.85rem;
}

.news-content {
    padding-block: 2.5rem 4rem;
}

.section-heading {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.section-heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 400;
}

.archive-controls {
    display: flex;
    align-items: end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.archive-field {
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.archive-field select,
.archive-submit,
.load-more {
    min-height: 2.65rem;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--surface);
    color: var(--foreground);
    font: inherit;
}

.archive-field select {
    min-width: 15rem;
    padding-inline: 0.75rem 2rem;
}

.archive-submit,
.load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 1rem;
    cursor: pointer;
    text-decoration: none;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    padding-block: 1.5rem;
}

.load-more[aria-disabled="true"] {
    cursor: wait;
    opacity: 0.65;
}

.article-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-row {
    border-bottom: 1px solid var(--border);
}

.article-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 8.5rem;
    gap: 1.5rem;
    padding-block: 1.35rem;
    text-decoration: none;
}

.article-link.no-image {
    grid-template-columns: minmax(0, 1fr);
}

.article-link:hover .article-title,
.article-link:focus-visible .article-title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.article-copy {
    min-width: 0;
}

.article-title {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    line-height: 1.2;
}

.article-description {
    display: -webkit-box;
    margin-top: 0.55rem;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.topic-summary {
    display: block;
    max-width: 46rem;
    margin-top: 0.6rem;
    color: var(--muted);
    line-height: 1.5;
}

.top-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-row {
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr);
    column-gap: 1rem;
    border-bottom: 1px solid var(--border);
}

.top-rank {
    padding-top: 1.55rem;
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.topic-link {
    padding-block: 1.45rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.article-meta > * + *::before {
    margin-right: 0.55rem;
    content: "·";
}

.subscription-label {
    color: var(--foreground);
}

.article-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    align-self: start;
    border: 1px solid var(--border);
    background: var(--surface);
    object-fit: cover;
}

.empty-state {
    margin-block: 2rem;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 1rem;
}

@media (max-width: 42rem) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .content {
        padding-block: 3rem;
    }

    .site-footer {
        flex-direction: column;
    }

    .article-link {
        grid-template-columns: minmax(0, 1fr) 5.5rem;
        gap: 0.9rem;
    }

    .archive-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .archive-field select {
        width: 100%;
        min-width: 0;
    }
}
