.articles-index {
    padding-top: clamp(7rem, 12vw, 9rem);
    background: #f7f7f7;
}

.articles-container {
    width: min(100%, 80rem);
    margin: 0 auto;
}

.articles-container > h1,
.article-header h1 {
    margin: 0 0 1rem;
    color: var(--headerColor);
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.05;
}

.articles-intro {
    max-width: 42rem;
    margin: 0 0 3rem;
    color: var(--bodyTextColorLight);
    font-size: 1.125rem;
    line-height: 1.7;
}

.articles-empty {
    padding: 2rem;
    border: 1px solid #e3e3e3;
    background: #fff;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: 1.5rem;
}

.article-card {
    overflow: hidden;
    border: 1px solid #e3e3e3;
    background: #fff;
}

.article-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-card-content {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.article-card time,
.article-header time {
    color: #666;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-header time {
    display: block;
    margin: 0;
}

.article-card h2 {
    margin: 0.75rem 0;
    font-size: 1.5rem;
    line-height: 1.25;
    text-transform: none;
}

.article-card h2 a {
    color: var(--headerColor);
}

.article-card p,
.article-excerpt {
    color: var(--bodyTextColorLight);
    line-height: 1.65;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 1.25rem 0;
}

.article-tags span {
    padding: 0.3rem 0.55rem;
    background: #fff3ef;
    color: #8d2f15;
    font-size: 0.75rem;
    font-weight: 500;
}

.article-read-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
}

.article-header {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e6e6e6;
}

.article-header h1 {
    max-width: 56rem;
}

.article-excerpt {
    max-width: 48rem;
    font-size: 1.2rem;
}

.article-header .article-tags {
    margin: 1rem 0 0;
}

.article-header .article-tags:empty {
    display: none;
}

.article-hero-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 2rem 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-body {
    max-width: 48rem;
    margin: 1rem auto 0;
    color: #242424;
    font-size: 1.0625rem;
    line-height: 1.8;
}

/* Keep the complete article on one reading axis. The surrounding content
   canvas can remain generous without making the header and body feel detached. */
#article .cs-content > .breadcrumb,
#article .article-header,
#article .article-hero-image,
#article .article-body {
    width: 100%;
    max-width: 48rem;
    margin-right: auto;
    margin-left: auto;
}

#article .cs-content {
    row-gap: 0;
}

#article .cs-content > .breadcrumb {
    margin-bottom: 2rem;
}

#article .article-header + .article-hero-image {
    margin-top: 0.5rem;
}

.article-body > :first-child {
    margin-top: 0 !important;
}

.article-body h2,
.article-body h3 {
    margin-top: 2.5rem;
    color: var(--headerColor);
    text-transform: none;
}

.article-body pre,
.article-body code {
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.article-body pre {
    padding: 1rem;
    background: #1a1a1a;
    color: #fff;
}

.article-body blockquote {
    margin: 2rem 0;
    padding-left: 1.25rem;
    border-left: 3px solid var(--primary);
    color: #555;
}
