/**
 * Public Blog archive and single article styles.
 *
 * A restrained literary-editorial system: serif-led reading typography,
 * warm paper surfaces, quiet controls, and one clear content path.
 */

.blog-archive,
.blog-single {
    background: var(--df-paper);
    color: var(--df-ink);
    min-height: 80vh;
}

.blog-archive *,
.blog-single * {
    box-sizing: border-box;
}

.blog-archive :where(a, button, input, [tabindex]):focus-visible,
.blog-single :where(a, button, input, [tabindex]):focus-visible {
    border-radius: 2px;
    outline: 3px solid #2f5fd0;
    outline-offset: 4px;
}

/* Shared editorial controls */

.blog-archive__button {
    align-items: center;
    color: var(--df-blue);
    display: inline-flex;
    font-family: var(--df-sans);
    font-size: 0.875rem;
    font-weight: 650;
    gap: 0.55rem;
    line-height: 1.3;
    padding: 0.2rem 0;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.28em;
    transition:
        color 160ms ease,
        text-decoration-color 160ms ease;
}

.blog-archive__button:hover,
.blog-archive__button:focus-visible {
    color: var(--df-blue-dark);
    text-decoration-thickness: 2px;
}

.blog-archive__button span {
    font-size: 1.05em;
    transition: transform 160ms ease;
}

.blog-archive__button:hover span {
    transform: translateX(3px);
}

/* Metadata, imagery and calls to action shared by archive and article views. */

.blog-archive__eyebrow,
.blog-archive__meta,
.blog-archive-card__meta,
.blog-archive__cta-eyebrow,
.blog-single__back,
.blog-single__brief-card h2,
.blog-single__brief dt,
.blog-single__section-head p,
.blog-single__cta-eyebrow,
.blog-single__related-meta {
    color: var(--df-muted);
    font-family: var(--df-sans);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.075em;
    line-height: 1.4;
    text-transform: uppercase;
}

.blog-archive__featured-media,
.blog-archive-card__media,
.blog-single__related-media {
    background: var(--df-paper-deep);
    display: block;
    overflow: hidden;
}

.blog-archive__featured-image,
.blog-archive-card__image,
.blog-single__related-image {
    display: block;
    height: 100%;
    object-fit: cover;
    transition:
        opacity 180ms ease,
        transform 420ms cubic-bezier(0.2, 0, 0, 1);
    width: 100%;
}

.blog-archive__featured-media:hover .blog-archive__featured-image,
.blog-archive-card__media:hover .blog-archive-card__image,
.blog-single__related-media:hover .blog-single__related-image {
    opacity: 0.94;
    transform: scale(1.015);
}

.blog-archive__image--empty,
.blog-single__related-image--empty {
    background: linear-gradient(145deg, rgba(48, 48, 144, 0.08), transparent 62%), var(--df-paper-deep);
}

.blog-archive__featured-title a,
.blog-archive-card__title a,
.blog-single__related-card h3 a {
    color: var(--df-ink);
    text-decoration: none;
    transition: color 160ms ease;
}

.blog-archive__featured-title a:hover,
.blog-archive__featured-title a:focus-visible,
.blog-archive-card__title a:hover,
.blog-archive-card__title a:focus-visible,
.blog-single__related-card h3 a:hover,
.blog-single__related-card h3 a:focus-visible {
    color: var(--df-blue);
}

.blog-archive__cta,
.blog-single__cta {
    align-items: center;
    border-bottom: 1px solid var(--df-line);
    border-top: 1px solid var(--df-line);
    display: grid;
    gap: 2.5rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: clamp(4.5rem, 9vw, 7rem);
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.blog-archive__cta-eyebrow,
.blog-single__cta-eyebrow {
    margin: 0 0 0.75rem;
}

.blog-archive__cta h2,
.blog-single__cta h2 {
    color: var(--df-ink);
    font-family: var(--df-serif);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 550;
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin: 0;
}
