/**
 * Shared editorial foundation for Downloads, FAQ, and Events.
 *
 * Extends the Blog and Contact visual language without coupling the modules.
 */

body {
    background: var(--df-paper);
}

.df-editorial-page {
    background: var(--df-paper);
    color: var(--df-body);
    font-family: var(--df-sans);
    min-height: 80vh;
}

.df-editorial-page *,
.df-editorial-page *::before,
.df-editorial-page *::after {
    box-sizing: border-box;
}

.df-editorial-page :where(a, button, input, [tabindex]):focus-visible {
    border-radius: 2px;
    outline: 3px solid var(--df-focus);
    outline-offset: 4px;
}

.df-editorial-shell {
    margin-inline: auto;
    max-width: var(--df-max-width);
    padding-inline: var(--df-gutter);
}

.df-editorial-masthead {
    max-width: 800px;
    padding-top: clamp(4rem, 8vw, 7.5rem);
}

.df-editorial-kicker {
    color: var(--df-muted);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.075em;
    line-height: 1.4;
    margin: 0 0 1rem;
    text-transform: uppercase;
}

.df-editorial-title {
    color: var(--df-ink);
    font-family: var(--df-serif);
    font-size: clamp(4rem, 9vw, 6.75rem);
    font-variation-settings: 'opsz' 60;
    font-weight: 520;
    letter-spacing: -0.045em;
    line-height: 0.92;
    margin: 0;
    text-wrap: balance;
}

.df-editorial-intro {
    color: var(--df-muted);
    font-family: var(--df-serif);
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    line-height: 1.6;
    margin: 1.75rem 0 0;
    max-width: 700px;
}

.df-editorial-link {
    align-items: center;
    color: var(--df-blue);
    display: inline-flex;
    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;
}

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

.df-screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

@media (max-width: 600px) {
    .df-editorial-title {
        font-size: clamp(3.35rem, 17vw, 4.5rem);
        letter-spacing: -0.04em;
    }

    .df-editorial-masthead {
        padding-top: 3.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .df-editorial-page *,
    .df-editorial-page *::before,
    .df-editorial-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
