@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&family=Oswald:wght@500;600;700&display=swap');

:root {
    --article-ink: #202321;
    --article-muted: #737871;
    --article-paper: #f4f1eb;
    --article-line: #c9c8c0;
    --article-red: #c54b32;
    --article-red-dark: #8e3828;
    --article-yellow: #e6c85f;
}

body:has(.article-page) {
    padding: 0;
    background: var(--article-paper);
    color: var(--article-ink);
    font-family: 'Manrope', sans-serif;
    line-height: 1.6;
}

body:has(.article-page):before,
body:has(.article-page):after {
    display: none;
}

body:has(.article-page)>header {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 36px;
    border-bottom: 1px solid var(--article-line);
}

body:has(.article-page) .header-container {
    min-height: 112px;
    gap: 24px;
}

body:has(.article-page) .logo-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

body:has(.article-page) .logo {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--article-ink);
    font: 700 29px/.9 'Oswald', sans-serif;
    letter-spacing: .01em;
    text-transform: uppercase;
}

body:has(.article-page) .logo img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

body:has(.article-page) .logo-tagline {
    color: var(--article-muted);
    font: 500 10px/1.3 'DM Mono', monospace;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body:has(.article-page) .logo-tagline span {
    color: var(--article-red-dark);
}

body:has(.article-page) nav li {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

body:has(.article-page) nav li a {
    padding: 9px 0;
    color: var(--article-ink);
    font: 500 11px 'DM Mono', monospace;
    letter-spacing: .04em;
}

body:has(.article-page) nav li a:hover {
    color: var(--article-red);
}

body:has(.article-page) footer {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 36px 42px;
    border-radius: 0;
    border-top: 1px solid var(--article-ink);
    background: transparent;
    box-shadow: none;
}

body:has(.article-page) .footer-container {
    padding: 0;
    text-align: left;
    color: var(--article-muted);
    font: 500 11px 'DM Mono', monospace;
    text-transform: uppercase;
}

body:has(.article-page) footer a {
    color: var(--article-red-dark);
    font-weight: 500;
}

body:has(.article-page) .back-to-top {
    display: none;
}

.article-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 72px 36px 100px;
}

.article-heading {
    max-width: 970px;
    margin: 0 0 32px;
}

.article-kicker {
    display: flex;
    gap: 24px;
    color: var(--article-red-dark);
    font: 500 10px/1.3 'DM Mono', monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.article-kicker span+span:before {
    content: '/';
    color: var(--article-line);
    margin-right: 24px;
}

.article-page h1 {
    max-width: 900px;
    margin: 24px 0 0;
    color: var(--article-ink);
    font: 600 clamp(48px, 7.5vw, 96px)/.92 'Oswald', sans-serif;
    letter-spacing: -.01em;
    text-transform: uppercase;
}

.article-lead {
    max-width: 610px;
    margin: 28px 0 0;
    color: var(--article-muted);
    font-size: 18px;
    line-height: 1.5;
}

.hero-image {
    margin: 0;
}

.hero-image img {
    display: block;
    width: 100%;
    height: min(68vh, 650px);
    object-fit: cover;
    filter: saturate(.8);
}

.article-page figcaption {
    margin-top: 9px;
    color: var(--article-muted);
    font: 500 10px/1.4 'DM Mono', monospace;
    text-transform: uppercase;
}

.article-layout {
    padding-top: 52px;
}

.article-aside {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-top: 1px solid var(--article-ink);
    padding-top: 13px;
    margin-bottom: 46px;
}

.aside-label {
    color: var(--article-red-dark);
    font: 500 10px 'DM Mono', monospace;
    text-transform: uppercase;
}

.aside-value {
    margin: 7px 0 0;
    font: 600 20px/1.05 'Oswald', sans-serif;
    text-transform: uppercase;
}

.like-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--article-ink);
    background: transparent;
    padding: 9px 12px;
    color: var(--article-ink);
    cursor: pointer;
    font: 500 11px 'DM Mono', monospace;
}

.like-button:hover,
.like-button.liked {
    background: var(--article-yellow);
}

.like-button .like-heart {
    fill: currentColor;
}

.article-body {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    color: var(--article-ink);
    font-size: 18px;
    line-height: 1.8;
}

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

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
    color: var(--article-ink);
    font-family: 'Oswald', sans-serif;
    line-height: 1;
    text-transform: uppercase;
}

.article-body h2 {
    margin: 58px 0 18px;
    font-size: 36px;
}

.article-body h3 {
    margin: 42px 0 16px;
    font-size: 28px;
}

.article-body a {
    color: var(--article-red-dark);
}

.article-body blockquote {
    margin: 45px 0;
    padding: 20px 0 20px 24px;
    border-left: 4px solid var(--article-red);
    font: 500 25px/1.25 'Oswald', sans-serif;
    text-transform: uppercase;
}

.article-body img {
    max-width: 100%;
    height: auto;
}

.article-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
    margin-top: 70px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.gallery-item img {
    display: block;
    width: 100%;
    min-height: 230px;
    object-fit: cover;
    filter: saturate(.8);
    flex: none;
}

.gallery-item figcaption {
    flex: none;
}

.gallery-item:nth-child(1) {
    grid-column: span 7;
}

.gallery-item:nth-child(1) img {
    height: 430px;
}

.gallery-item:nth-child(2) {
    grid-column: span 5;
}

.gallery-item:nth-child(2) img {
    height: 430px;
}

.gallery-item:nth-child(n+3) {
    grid-column: span 4;
}

.gallery-item:nth-child(n+3) img {
    height: 280px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    border-top: 1px solid var(--article-ink);
    margin-top: 80px;
    padding-top: 18px;
    font: 500 11px 'DM Mono', monospace;
    text-transform: uppercase;
}

.article-footer a:first-child {
    color: var(--article-red-dark);
}

@media (max-width:900px) {
    body:has(.article-page)>header {
        padding: 0 20px;
    }

    body:has(.article-page) .header-container {
        min-height: 86px;
    }

    body:has(.article-page) .logo img {
        width: 48px;
        height: 48px;
    }

    body:has(.article-page) .logo {
        font-size: 24px;
    }

    body:has(.article-page) .logo-tagline,
    body:has(.article-page) nav li:not(:last-child) {
        display: none;
    }

    body:has(.article-page) footer {
        padding: 28px 20px 36px;
    }

    .article-page {
        padding: 48px 20px 70px;
    }

    .article-page h1 {
        font-size: clamp(46px, 9vw, 72px);
    }

    .hero-image img {
        height: 52vh;
    }

    .article-body {
        max-width: none;
    }

    .article-gallery {
        margin-top: 52px;
    }
}

@media (max-width:560px) {
    .article-kicker {
        gap: 12px;
        flex-wrap: wrap;
    }

    .article-kicker span+span:before {
        margin-right: 12px;
    }

    .article-lead {
        font-size: 16px;
    }

    .article-body {
        font-size: 16px;
    }

    .article-body h2 {
        font-size: 30px;
    }

    .article-gallery {
        display: flex;
        flex-direction: column;
    }

    .gallery-item:nth-child(n) img {
        height: 250px;
    }

    .gallery-item img {
        min-height: 0;
    }

    .article-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}