#articles {
    max-width: 1392px;
    padding: 6rem max(6vw, 24px);
    color: var(--brew-ink);
}

.journal-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: end;
    gap: 3rem;
    margin-bottom: 3rem;
}

.journal-intro .brew-eyebrow {
    margin-bottom: 1.5rem;
    color: #526549;
}

#articles h2 {
    margin-bottom: 1rem;
    text-align: left;
    color: var(--brew-ink);
    font-size: clamp(2.5rem, 4.5vw, 4.25rem);
    font-weight: 400;
    letter-spacing: -.04em;
    line-height: 1.1;
}

.journal-description {
    max-width: 440px;
    font-size: .85rem;
    line-height: 1.85;
    color: #5a6256;
}

.journal-search label {
    display: block;
    margin-bottom: .75rem;
    color: #526549;
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.journal-search input {
    width: 100%;
    min-height: 48px;
    padding: .85rem 1rem;
    border: 1px solid #8b9583;
    border-radius: 2px;
    background: #fffdf8;
    color: var(--brew-ink);
    font-family: inherit;
    font-size: .8rem;
}

#articles .journal-filters {
    justify-content: flex-start;
    gap: .5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 0;
    border-bottom: 1px solid #cbcfc3;
}

#articles .filter-bubble {
    margin: 0;
    padding: .75rem 1rem;
    min-height: 44px;
    border: 1px solid #c6cdbd;
    border-radius: 2px;
    background: transparent;
    color: #46553f;
    font-size: .68rem;
    letter-spacing: .025em;
    text-transform: none;
    transition: color .2s, background .2s, border-color .2s;
}

#articles .filter-bubble:hover {
    transform: none;
    background: #e8eddf;
    border-color: #607356;
}

#articles .filter-bubble.active {
    background: #26392f;
    color: #fffdf8;
    border-color: #26392f;
}

.journal-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: .8rem 0 2rem;
    font-size: .7rem;
}

.journal-status {
    color: #5a6256;
}

.journal-reset {
    min-height: 44px;
    text-decoration: underline;
    text-underline-offset: 4px;
    color: #46553f;
}

.journal-reset:disabled {
    color: #73786d;
    text-decoration: none;
    cursor: default;
}

#articles > .grid {
    gap: 3rem 2rem;
}

#articles .article-card {
    min-width: 0;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid #cbcfc3;
    box-shadow: none;
}

#articles .article-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#articles .article-card > a > img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: filter .25s;
}

#articles .article-card > a:hover > img {
    filter: brightness(1.07);
}

#articles .article-card > a > div {
    flex: 1;
    padding: 1.5rem .15rem 1.75rem;
}

#articles .article-card h3 {
    margin: .75rem 0 1rem;
    color: var(--brew-ink);
    font-size: 1.55rem;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

#articles .article-card p {
    font-size: .82rem;
    line-height: 1.8;
    color: #5a6256;
}

#articles .article-card > a > div > span:first-child {
    color: #526549;
    font-size: .6rem;
    letter-spacing: .15em;
}

#articles .article-card > a > div > span:not(:first-child) {
    display: inline-block;
    color: #344a37;
    font-size: .72rem;
    padding-block: .35rem;
    border-bottom: 1px solid #a4af97;
}

#articles .article-card .bg-amber-100 {
    background: #e8eddf;
    color: #46553f;
    border-radius: 2px;
}

#articlesShowMoreWrap button {
    padding: 1rem 2rem;
    border: 1px solid #26392f;
    border-radius: 2px;
    color: #fffdf8;
    background: #26392f;
    font-size: .8rem;
}

#articlesShowMoreWrap button:hover {
    background: #3e5542;
}

#noResultsMessage {
    padding: 3rem 1.5rem;
    border: 1px solid #cbcfc3;
    background: var(--brew-paper);
    color: #46553f;
    font-size: 1rem;
}

#articles :is(a, button, input):focus-visible {
    outline: 3px solid #a47937;
    outline-offset: 4px;
}

#articles .article-card:focus-within {
    overflow: visible;
}

@media (max-width: 760px) {
    #articles {
        padding-block: 3.5rem;
    }

    .journal-header {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #articles .filter-bubble,
    #articles .article-card > a > img {
        transition: none;
    }
}
