:root {
    color-scheme: light;
    font: 17px/1.65 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #252720;
    background: #f7f6f1;
    --accent: #ce4829;
    --focus-color: #ffa300;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

a {
    color: inherit;
    text-underline-offset: .2em;
}

a:focus-visible, button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

button {
    font: inherit;
    cursor: pointer;
}

button:disabled {
    opacity: .55;
    cursor: default;
}

.topbar {
    max-width: 1180px;
    margin: auto;
    padding: 26px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid #dddcd2;
}

.brand {
    font-size: 25px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -1px;
}

.brand span {
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0;
    font-size: 17px;
}

.topbar nav {
    display: flex;
    gap: 24px;
    font-size: 14px;
}

.topbar nav a {
    text-decoration: none;
}

main {
    max-width: 1000px;
    margin: auto;
    padding: 0 28px 60px;
}

.hero {
    padding: 65px 0 42px;
    max-width: 800px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 24px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
    font-weight: 700;
    color: #727466;
}

.eyebrow time {
    font-weight: 400;
}

.hero h1 {
    font-size: clamp(35px, 6vw, 64px);
    line-height: 1.12;
    letter-spacing: -.055em;
    margin: 20px 0;
}

.hero h1 span {
    color: #7b7e70;
}

.hero > p:last-child {
    max-width: 620px;
    color: #66695d;
}

.topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.topic {
    font-size: 13px;
    border: 1px solid #ddded4;
    border-radius: 22px;
    padding: 8px 15px;
    text-decoration: none;
}

.topic.selected {
    color: white;
    background: #292d24;
    border-color: #292d24;
}

.news-card {
    padding: 30px 0;
    border-top: 1px solid #dcded2;
}

.news-card h2 {
    font-size: clamp(23px, 3vw, 32px);
    line-height: 1.25;
    letter-spacing: -.03em;
    max-width: 820px;
    margin: 12px 0;
}

.news-card h2 a {
    text-decoration: none;
}

.preview-it {
    text-decoration: none;
}

.preview-it * {
    transition: color .34s;
}

.preview-it:focus-visible *, .preview-it:hover * {
    color: var(--accent);
}

.preview-it:focus-visible {
    outline: none;
}

.news-card > p {
    color: #66695d;
    max-width: 780px;
}

.news-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 0;
    font-size: 12px;
}

.news-actions button {
    border: 1px solid #dedfd4;
    border-radius: 20px;
    padding: 7px 13px;
    background: transparent;
    color: inherit;
    font-size: 12px;
}

.news-actions button:hover {
    border-color: var(--accent);
}

.news-actions button[aria-pressed=true] {
    background: #e8eddf;
    pointer-events: none;
    touch-action: none;
}

.news-actions b {
    margin-left: 8px;
    color: #777;
}

.read-badge, .editor-label {
    font-size: 11px;
    color: #46683b;
    background: #e8eddf;
    border-radius: 5px;
    padding: 4px 8px;
}

.editor-label {
    color: #9e3f25;
    background: #f4e3d8;
    display: inline-block;
}

.read-badge[hidden] {
    display: none;
}

.action-status {
    color: #626656;
}

.empty {
    padding: 55px 0 90px;
}

.empty > span {
    font-size: 50px;
    color: var(--accent);
}

.empty h2 {
    font-size: 32px;
    margin: 12px 0;
}

.empty p {
    color: #6b6d62;
}

.pagination {
    display: flex;
    gap: 18px;
    margin-top: 30px;
}

.pagination a[aria-current] {
    color: var(--accent);
    font-weight: 700;
}

.article {
    max-width: 810px;
    margin: 35px auto;
}

.back {
    display: inline-block;
    font-size: 13px;
    margin: 5px 0 40px;
    color: #727466;
}

.article h1 {
    font-size: clamp(30px, 5vw, 51px);
    line-height: 1.16;
    letter-spacing: -.045em;
    margin: 20px 0 35px;
}

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

.article-body p {
    margin: 1.3em 0;
    overflow-wrap: anywhere;
}

.article figure {
    margin: 30px 0;
}

.article img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: contain;
    background: #eeeee4;
}

.article figcaption, .modified {
    font-size: 12px;
    color: #75776b;
}

.editor-note {
    margin: 35px 0;
    border-left: 4px solid var(--accent);
    background: #f0ede2;
    padding: 18px 26px;
}

.editor-note p {
    overflow-wrap: anywhere;
}

.sources {
    font-size: 14px;
    border-top: 1px solid #dedfd3;
    margin-top: 40px;
    padding-top: 20px;
}

.sources h2 {
    font-size: 17px;
}

.sources ul {
    padding-left: 20px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.tag {
    font-size: 11px;
    padding: 3px 8px;
    background: #eceee4;
    border-radius: 5px;
}

.preview-notice {
    margin: 20px 0;
    padding: 14px;
    background: #fff0c7;
    border-radius: 8px;
    font-size: 14px;
}

footer {
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 28px;
    border-top: 1px solid #dddcd2;
    font-size: 12px;
    color: #727466;
}

footer a {
    color: inherit;
}

@media (max-width: 600px) {
    .topbar {
        padding: 18px
    }

    .topbar nav {
        gap: 12px;
        font-size: 11px
    }

    .brand {
        font-size: 21px
    }

    .brand span {
        font-size: 12px
    }

    main {
        padding: 0 20px 40px
    }

    .hero {
        padding: 40px 0 25px
    }

    .hero h1 {
        letter-spacing: -.04em
    }

    .news-card {
        padding: 25px 0
    }

    .article {
        margin-top: 20px
    }

    .article-body {
        font-size: 17px
    }

    .editor-note {
        padding: 12px 18px
    }

    .back {
        margin-bottom: 24px
    }

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

.external-link-icon {
    display: inline-block;
    margin-left: .2em;
    font-size: .75em;
    line-height: 1;
    vertical-align: super;
    text-decoration: none;
}

.channel-subscribe {
    display: block;
    width: fit-content;
    padding: 10px 16px;
    border: 1px solid #cdd8c5;
    border-radius: 20px;
    margin-bottom: 20px;
    color: #386b34;
    background: #edf3e6;
    font-size: 14px;
    text-decoration: none;
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    transform: translateY(-200%);
    background: #252720;
    color: #fff;
    padding: 12px 18px;
    border-radius: 4px;
}

.skip-link:focus {
    transform: none;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    box-sizing: border-box;
    text-decoration: none;
}

.tag-filter a, .article-body a, .sources a {
    overflow-wrap: anywhere;
}

.topbar {
    flex-wrap: wrap;
}

.topbar nav {
    flex-wrap: wrap;
}

.eyebrow {
    flex-wrap: wrap;
}

.article h1, .news-card h2 {
    overflow-wrap: anywhere;
}

.topic, .news-actions button, .channel-subscribe, .pagination a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
}

.pagination a {
    min-width: 32px;
    justify-content: center;
}
