@font-face {
    font-family: 'Inter';
    src: url('../fonts/InterVariable.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/InterVariable-Italic.woff2') format('woff2');
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --panel: #f4f4f4;
    --muted: #999;
    --like: #008000;
    --dislike: #b95c00;
    --space: 15px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: #0a0a0a; background: #fff; font-family: 'Inter', Arial, Helvetica, sans-serif; font-synthesis: none; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #1668b2; outline-offset: 4px; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 1000; padding: 12px; background: #fff; }
.skip-link:focus { top: 10px; }
.site-shell { width: calc(100% - 30px); max-width: 1200px; margin: 30px auto; }
.site-header { padding: 15px var(--space); background: var(--panel); }
.site-header__title { font-size: 34px; line-height: 38px; }
.primary-nav { background: #d9d9d9; padding: 0 calc(var(--space) - 10px); }
.primary-nav__list { display: flex; flex-wrap: wrap; gap: 10px 32px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 0 5px; font-size: 14px; line-height: 40px; font-weight: 700; }
.site-layout { display: flex; flex-direction: column; gap: 30px; margin: 30px 0 50px; align-items: stretch; }
.article-feed { min-width: 0; padding: 15px var(--space); background: var(--panel); }
.article-feed__heading { margin: 0 0 30px; font-size: 32px; line-height: 38px; font-weight: 400; }
.article-feed__list { display: flex; flex-direction: column; gap: 30px; }
.article-feed__empty { margin: 0; }
.article-card { display: flex; flex-direction: column; background: #fff; min-width: 0; }
.article-card__image-link { display: block; flex-shrink: 0; height: 170px; overflow: hidden; }
.article-card__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.article-card__image--empty { background: #e4e4e4; }
.article-card__body { min-width: 0; flex: 1; padding: 20px; }
.article-card__title { margin: 0; font-size: 18px; line-height: 24px; font-weight: 700; overflow-wrap: anywhere; }
.article-card__excerpt { margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 20px; }
.article-card__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 14px; }
.article-card__author { margin: 0; font-size: 16px; line-height: 22px; font-style: italic; }
.article-card__author span { color: #909090; }
.article-votes { display: flex; align-items: center; position: relative; margin: -5px -5px -5px 0; white-space: nowrap; }
.article-votes__button { display: inline-flex; align-items: center; justify-content: center; border: 0; padding: 5px; width: 32px; height: 32px; background: transparent; border-radius: 50%; cursor: pointer; }
.article-votes__button img { display: block; pointer-events: none; }
.article-votes__button:disabled { cursor: wait; }
.article-votes__button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px currentColor; }
.article-votes__button--like { color: #43b05c; }
.article-votes__button--dislike { color: #ed8a19; }
.article-votes__button:hover:not(:disabled) { background: #f1f1f1; }
.article-votes__score { min-width: 24px; padding: 0 2px; color: var(--like); text-align: center; font-size: 18px; line-height: 22px; font-weight: 700; }
.article-votes__score--negative { color: var(--dislike); }
.article-votes__message { position: absolute; z-index: 1; right: 0; top: 38px; width: 240px; padding: 8px 10px; color: #a32316; background: #fff; border: 1px solid #a32316; font-size: 13px; line-height: 18px; white-space: normal; }
.article-votes__message:empty { display: none; }
.pagination { display: grid; grid-template-columns: minmax(16px, 1fr) auto minmax(16px, 1fr); grid-template-areas: 'previous pages next'; align-items: center; gap: 7px; margin-top: 30px; font-size: 14px; line-height: 16px; }
.pagination__pages { grid-area: pages; display: flex; justify-content: center; align-items: center; gap: 5px; margin: 0; padding: 0; list-style: none; }
.pagination__pages li { flex: 0 0 32px; }
.pagination__pages .page-numbers { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 16px; }
.pagination__pages--wide { display: none; }
.pagination__control { display: flex; width: 16px; height: 32px; align-items: center; justify-content: center; }
.pagination__control--prev { grid-area: previous; justify-self: start; }
.pagination__control--next { grid-area: next; justify-self: end; }
.pagination__label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pagination__chevron { display: block; width: 12px; height: 12px; border-bottom: 3px solid; border-left: 3px solid; }
.pagination__chevron--prev { transform: rotate(45deg); }
.pagination__chevron--next { transform: rotate(225deg); }
.pagination__disabled { color: #aaa; }
.pagination .current { background: #000; color: #fff; }
.site-sidebar, .site-footer { padding: 30px; background: var(--panel); font-size: 34px; line-height: 38px; }

@media (min-width: 360px) {
    .pagination__pages--wide { display: flex; }
    .pagination__pages--compact { display: none; }
}

@media (min-width: 600px) {
    :root { --space: 30px; --muted: #888; }
    .site-header { padding: 30px var(--space); }
    .site-header__title { line-height: 40px; }
    .primary-nav__list { column-gap: 20px; }
    .primary-nav a { padding: 0 10px; }
    .article-feed { padding: 30px var(--space); }
    .article-card { flex-direction: row; }
    .article-card__image-link { width: 170px; height: auto; min-height: 170px; position: relative; }
    .article-card__image { position: absolute; inset: 0; }
    .article-card__title { font-size: 24px; line-height: 28px; }
    .article-card__excerpt { font-size: 18px; line-height: 22px; margin-top: 14px; }
    .article-card__author { font-size: 18px; line-height: 22px; }
    .article-card__footer { margin-top: 12px; }
    .pagination { grid-template-columns: minmax(70px, 1fr) auto minmax(70px, 1fr); }
    .pagination__control { width: auto; font-weight: 700; margin-left: auto; padding: 0 4px; }
    .pagination__control--next { margin-right: auto; margin-left: 0; }
    .pagination__label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
    .pagination__chevron { display: none; }
}

@media (min-width: 1024px) {
    .site-shell { width: 100%; margin-top: 0; margin-bottom: 0; }
    .site-layout { flex-direction: row; align-items: flex-start; }
    .article-feed { flex: 1; }
    .site-sidebar { flex: 0 0 293px; }
}
