/* =========================================================
   andrianarisoa.org — système froid · moderne · élégant
   Plus Jakarta Sans
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Surfaces — froides */
    --bg: #eef1f6;
    --bg-deep: #e7ebf2;
    --surface: #ffffff;
    --surface-2: #f7f9fc;
    --surface-3: #eff3f9;

    /* Encres ardoise */
    --text: #131722;
    --text-soft: #2a3140;
    --muted: #5a6373;
    --muted-2: #8b93a3;

    /* Lignes */
    --line: rgba(19, 23, 34, 0.08);
    --line-strong: rgba(19, 23, 34, 0.14);
    --hairline: rgba(19, 23, 34, 0.06);

    /* Accent — bleu moderne */
    --accent: #2f6bff;
    --accent-deep: #1f54e0;
    --accent-soft: rgba(47, 107, 255, 0.10);
    --accent-line: rgba(47, 107, 255, 0.26);

    /* Catégories — hues froides */
    --c-litterature: #2f6bff;
    --c-litterature-bg: rgba(47, 107, 255, 0.10);
    --c-societe: #0a93a6;
    --c-societe-bg: rgba(10, 147, 166, 0.12);
    --c-riorio: #6a57f5;
    --c-riorio-bg: rgba(106, 87, 245, 0.12);

    /* Marques */
    --brand-linkedin: #0a66c2;
    --brand-x: #131722;
    --brand-instagram: #c13584;
    --brand-mail: #2f6bff;

    /* Profondeur — ombres froides, nettes */
    --shadow-sm:
        0 1px 2px rgba(16, 24, 40, 0.05),
        0 1px 3px rgba(16, 24, 40, 0.05);
    --shadow-md:
        0 1px 2px rgba(16, 24, 40, 0.04),
        0 6px 18px rgba(16, 24, 40, 0.07);
    --shadow-lg:
        0 2px 6px rgba(16, 24, 40, 0.05),
        0 14px 36px rgba(16, 24, 40, 0.10);
    --shadow-xl:
        0 4px 10px rgba(16, 24, 40, 0.06),
        0 24px 56px rgba(16, 24, 40, 0.13);

    --radius-xl: 20px;
    --radius-lg: 14px;
    --radius-md: 11px;
    --radius-sm: 999px;
    --page-width: 1120px;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(47, 107, 255, 0.07), transparent 55%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -0.003em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
    overflow-x: hidden;
}

a {
    color: inherit;
}

button {
    font: inherit;
}

::selection {
    background: var(--accent);
    color: #fff;
}

/* ---------- Coquille de page ---------- */
.page-shell {
    width: min(calc(100% - 40px), var(--page-width));
    margin: 0 auto;
    padding: 30px 0 40px;
    position: relative;
    z-index: 1;
}

.page-shell--narrow {
    width: min(calc(100% - 40px), 740px);
}

/* ---------- En-têtes ---------- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 26px;
}

.site-header--home {
    justify-content: center;
    padding-bottom: 22px;
}

.site-header--bare {
    padding-bottom: 22px;
    margin-bottom: 14px;
}

.brand-mark {
    display: inline-block;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(0.82rem, 1vw, 0.92rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text);
    transition: color 0.2s var(--ease);
}

.brand-mark:hover {
    color: var(--accent);
}

/* ---------- Navigation ---------- */
.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

.site-nav a,
.site-footer a,
.home-footer a {
    text-decoration: none;
    color: var(--muted);
    transition: color 0.2s var(--ease);
}

.site-nav a:hover,
.site-footer a:hover,
.home-footer a:hover {
    color: var(--text);
}

.nav-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
        color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-icon-button:hover {
    transform: translateY(-2px);
    color: var(--accent);
    border-color: var(--accent-line);
    box-shadow: var(--shadow-md);
}

.nav-icon-button svg {
    width: 20px;
    height: 20px;
}

/* ---------- Eyebrow / label ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--accent);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

/* ---------- Accueil : composition ---------- */
.home-layout {
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    gap: 22px;
    align-items: stretch;
    min-height: calc(100vh - 116px);
}

/* ---------- Cartes ---------- */
.landing-card,
.journal-cta-card,
.journal-card,
.legal-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.landing-card,
.journal-cta-card {
    padding: 40px;
}

.landing-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 460px;
}

.journal-cta-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 460px;
    background: var(--surface);
}

.journal-cta-inner {
    position: relative;
    z-index: 2;
    max-width: 460px;
}

.cta-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.cta-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cta-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.62) 0%,
        rgba(255, 255, 255, 0.34) 24%,
        rgba(255, 255, 255, 0.06) 44%,
        rgba(255, 255, 255, 0) 60%);
}

/* ---------- Titres ---------- */
.landing-card h1,
.journal-cta-card h2,
.journal-intro h1,
.legal-card h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.03;
    color: var(--text);
    text-wrap: balance;
}

.landing-card h1 {
    max-width: 11ch;
    margin-top: 30px;
    font-size: clamp(2.7rem, 6vw, 5.2rem);
    line-height: 0.98;
}

.title-tail {
    display: block;
    color: var(--accent);
}

/* ---------- Vidéo hero ---------- */
.hero-video {
    display: block;
    height: clamp(110px, 16vh, 180px);
    width: auto;
    max-width: 100%;
    margin: 0 0 22px;
    border-radius: var(--radius-lg);
}

/* ---------- Grille sociale ---------- */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
    padding-top: 0;
}

.social-tile {
    position: relative;
    min-height: 122px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
        border-color 0.28s var(--ease);
}

.social-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.5;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
}

.social-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.social-tile:hover::after {
    opacity: 1;
}

.social-tile svg {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1;
    transition: transform 0.28s var(--ease);
}

.social-tile:hover svg {
    transform: scale(1.08);
}

.social-tile--linkedin { color: var(--brand-linkedin); }
.social-tile--linkedin:hover { border-color: rgba(10, 102, 194, 0.4); }
.social-tile--linkedin::after {
    background: radial-gradient(120% 100% at 50% 130%, rgba(10, 102, 194, 0.12), transparent 70%);
}

.social-tile--x { color: var(--brand-x); }
.social-tile--x:hover { border-color: rgba(19, 23, 34, 0.3); }
.social-tile--x::after {
    background: radial-gradient(120% 100% at 50% 130%, rgba(19, 23, 34, 0.08), transparent 70%);
}

.social-tile--instagram { color: var(--brand-instagram); }
.social-tile--instagram:hover { border-color: rgba(193, 53, 138, 0.4); }
.social-tile--instagram::after {
    background: radial-gradient(120% 100% at 50% 130%, rgba(193, 53, 138, 0.12), transparent 70%);
}

.social-tile--mail { color: var(--brand-mail); }
.social-tile--mail:hover { border-color: var(--accent-line); }
.social-tile--mail::after {
    background: radial-gradient(120% 100% at 50% 130%, rgba(47, 107, 255, 0.12), transparent 70%);
}

/* ---------- CTA journal ---------- */
.journal-cta-card h2 {
    max-width: 11ch;
    margin-top: 14px;
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}

.journal-cta-copy,
.article-subtitle,
.article-excerpt,
.legal-card > p:not(.eyebrow),
.legal-section p,
.legal-section li {
    color: var(--muted);
}

.journal-cta-copy {
    margin-top: 16px;
    font-size: 1.12rem;
    line-height: 1.5;
    color: var(--text-soft);
    max-width: 32ch;
}

/* ---------- Boutons ---------- */
/* CTA primaire — bleu plein */
.journal-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    min-height: 50px;
    margin-top: 28px;
    padding: 0 24px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--accent);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(47, 107, 255, 0.30);
    transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
        background 0.22s var(--ease);
}

.journal-button svg {
    width: 17px;
    height: 17px;
    transition: transform 0.25s var(--ease);
}

.journal-button:hover {
    transform: translateY(-2px);
    background: var(--accent-deep);
    box-shadow: 0 10px 26px rgba(47, 107, 255, 0.38);
}

.journal-button:hover svg {
    transform: translateX(4px);
}

/* Actions d'article + charger plus — boutons doux sans contour */
.article-toggle,
.article-copy,
.load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--surface-3);
    color: var(--text-soft);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.94rem;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s var(--ease), background 0.2s var(--ease),
        color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.article-toggle:hover,
.article-copy:hover,
.load-more:hover {
    background: #e6ecf6;
    color: var(--text);
}

.article-toggle:active,
.article-copy:active,
.load-more:active {
    transform: translateY(1px);
}

/* ---------- Pieds de page ---------- */
.home-footer {
    display: flex;
    justify-content: center;
    margin-top: 22px;
    font-size: 0.86rem;
    color: var(--muted);
}

/* ---------- Journal : intro ---------- */
.journal-intro {
    padding-top: 8px;
}

.journal-intro--panel {
    padding: 34px 36px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.journal-intro h1 {
    max-width: 16ch;
    margin-top: 16px;
    font-size: clamp(2.3rem, 5vw, 3.8rem);
}

.legal-card h1 {
    margin-top: 13px;
}

.journal-intro p:not(.eyebrow) {
    max-width: 60ch;
    margin-top: 14px;
    color: var(--muted);
}

/* Barre d'outils : onglets soulignés + compteur */
.journal-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    border-top: 1px solid var(--hairline);
    flex-wrap: wrap;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.filter-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 4px;
    margin-right: 22px;
    border: none;
    background: none;
    color: var(--muted);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.96rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s var(--ease);
}

.filter-chip::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
}

.filter-chip:hover {
    color: var(--text);
}

.filter-chip.active {
    color: var(--accent);
    font-weight: 600;
}

.filter-chip.active::after {
    transform: scaleX(1);
}

.journal-count,
.article-date {
    color: var(--muted);
    font-size: 0.86rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    white-space: nowrap;
}

.journal-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.journal-count::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ---------- Liste d'articles ---------- */
.journal-list {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.journal-card,
.legal-card {
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
        border-color 0.3s var(--ease);
}

.journal-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.journal-card.is-open {
    border-color: var(--accent-line);
    box-shadow: var(--shadow-xl);
}

.journal-card.is-open:hover {
    transform: none;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.category-container {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.article-category {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 11px;
    border-radius: 7px;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: capitalize;
}

.article-category--litterature { background: var(--c-litterature-bg); color: var(--c-litterature); }
.article-category--societe { background: var(--c-societe-bg); color: var(--c-societe); }
.article-category--riorio { background: var(--c-riorio-bg); color: var(--c-riorio); }

.article-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-top: 16px;
    font-size: clamp(1.45rem, 2.3vw, 1.85rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--text);
    text-wrap: balance;
}

.article-subtitle {
    margin-top: 6px;
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--muted);
}

.article-excerpt {
    margin-top: 14px;
    max-width: 64ch;
    line-height: 1.62;
}

.article-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.article-toggle,
.article-copy {
    min-height: 44px;
    padding: 0 16px;
    flex: 1 1 0;
    font-size: 0.9rem;
}

.journal-card.is-open .article-toggle {
    background: var(--accent-soft);
    color: var(--accent-deep);
}

.button-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.article-toggle .button-icon {
    transition: transform 0.3s var(--ease);
}

.journal-card.is-open .article-toggle .button-icon {
    transform: rotate(180deg);
}

.button-label {
    display: inline-block;
    line-height: 1;
}

/* ---------- Contenu d'article ---------- */
.article-content {
    margin-top: 22px;
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
    max-width: 68ch;
    font-size: 1.06rem;
    line-height: 1.72;
    color: var(--text-soft);
}

.article-content:not(.hidden) {
    animation: reveal 0.45s var(--ease) both;
}

.article-content p,
.article-content ul,
.article-content ol {
    margin-top: 15px;
}

.legal-section p,
.legal-section ul {
    margin-top: 13px;
}

.article-content p:first-child {
    margin-top: 0;
}

.article-content ul,
.article-content ol,
.legal-section ul {
    padding-left: 22px;
}

.article-content li {
    margin-top: 7px;
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--accent-line);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s var(--ease);
}

.article-content a:hover {
    text-decoration-color: var(--accent);
}

.article-content em {
    font-style: italic;
}

.article-content strong {
    font-weight: 700;
    color: var(--text);
}

.article-content blockquote {
    margin: 20px 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--accent);
    color: var(--text);
    font-weight: 500;
}

.hidden {
    display: none;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.load-more {
    padding: 0 28px;
}

.load-more.hidden {
    display: none;
}

/* ---------- Mentions légales ---------- */
.legal-card > p:not(.eyebrow) {
    margin-top: 16px;
    font-size: 1.06rem;
    line-height: 1.65;
}

.legal-section {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid var(--hairline);
}

.legal-section h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.legal-section p,
.legal-section li {
    font-size: 1.02rem;
    line-height: 1.65;
}

.legal-section a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--accent-line);
    text-underline-offset: 3px;
}

/* ---------- Pied de page global ---------- */
.site-footer {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid var(--hairline);
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.3;
}

.footer-separator {
    margin: 0 10px;
    color: var(--line-strong);
}

.site-footer--centered {
    text-align: center;
}

.site-footer--spacious {
    margin-top: 64px;
    padding-top: 28px;
}

/* ---------- Apparitions ---------- */
@keyframes reveal {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.landing-card,
.journal-cta-card,
.journal-intro--panel,
.legal-card {
    animation: rise 0.55s var(--ease) both;
}

.journal-cta-card {
    animation-delay: 0.07s;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 920px) {
    .home-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .landing-card,
    .journal-cta-card {
        min-height: auto;
    }

    .landing-card h1,
    .journal-cta-card h2 {
        max-width: 100%;
    }

    .landing-card h1 {
        margin-top: 26px;
    }

    .journal-cta-card {
        min-height: 320px;
    }
}

@media (max-width: 720px) {
    .page-shell,
    .page-shell--narrow {
        width: min(calc(100% - 28px), var(--page-width));
        padding-top: 18px;
        padding-bottom: 30px;
    }

    .landing-card,
    .journal-cta-card {
        padding: 28px;
        border-radius: 18px;
    }

    .journal-card,
    .legal-card {
        padding: 24px;
        border-radius: 16px;
    }

    .journal-intro--panel {
        padding: 26px 24px 6px;
        border-radius: 18px;
    }

    .site-header--home {
        justify-content: center;
        padding-bottom: 18px;
    }

    .site-header--bare {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }

    .brand-mark {
        font-size: 0.78rem;
        white-space: normal;
        max-width: calc(100% - 60px);
    }

    .site-header--bare .site-nav {
        position: static;
    }

    .nav-icon-button {
        width: 42px;
        height: 42px;
    }

    .social-grid {
        margin-top: 28px;
        padding-top: 0;
    }

    .social-tile {
        min-height: 104px;
    }

    .journal-button {
        width: 100%;
        justify-content: center;
    }

    .load-more {
        width: 100%;
    }

    .title-tail {
        display: inline;
    }

    .landing-card h1 {
        max-width: 100%;
        margin-top: 18px;
        font-size: clamp(2.3rem, 13vw, 3.6rem);
        line-height: 1.0;
    }

    .journal-intro h1 {
        font-size: clamp(2.1rem, 12vw, 3.2rem);
    }

    .journal-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        margin-top: 22px;
    }

    .filters {
        flex-wrap: nowrap;
        justify-content: space-between;
        width: 100%;
        gap: 6px;
        margin-top: 4px;
    }

    .filter-chip {
        min-height: 44px;
        margin-right: 0;
        padding: 0 2px;
        flex: 0 1 auto;
        white-space: nowrap;
        font-size: min(0.94rem, 3.4vw);
    }

    .journal-count {
        align-self: flex-start;
        padding-bottom: 4px;
        font-size: 0.82rem;
    }

    .article-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .article-date {
        font-size: 0.74rem;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .article-title {
        font-size: 1.4rem;
    }

    .article-content {
        font-size: 1.02rem;
    }

    .article-actions {
        gap: 8px;
    }

    .article-toggle,
    .article-copy {
        min-height: 46px;
        padding: 0 12px;
        font-size: 0.86rem;
        gap: 7px;
    }

    .site-footer {
        font-size: min(0.74rem, 2.5vw);
        white-space: nowrap;
        line-height: 1.3;
    }

    .footer-separator {
        margin: 0 6px;
    }
}

@media (max-width: 420px) {
    .page-shell,
    .page-shell--narrow {
        width: min(calc(100% - 22px), var(--page-width));
    }

    .landing-card,
    .journal-cta-card,
    .journal-card,
    .legal-card,
    .journal-intro--panel {
        padding: 22px;
    }

    .brand-mark {
        font-size: 0.74rem;
        max-width: calc(100% - 56px);
    }

    .title-tail {
        display: block;
    }

    .landing-card h1 {
        font-size: clamp(2.1rem, 12vw, 3.2rem);
    }

    .journal-intro h1 {
        font-size: clamp(1.95rem, 11vw, 3rem);
    }

    .filter-chip {
        margin-right: 0;
        font-size: min(0.9rem, 3.3vw);
    }

    .article-toggle,
    .article-copy {
        padding: 0 10px;
        font-size: 0.82rem;
    }
}
