/*
Theme Name: Le Spectateur
Description: Hebdomadaire local. Éditions, articles sourcés, numéros et archives mis en page automatiquement.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: le-spectateur
License: GPL-2.0-or-later
*/
:root {
    --ink: #121212;
    --red: #ad3929;
    --muted: #605853;
    --line: #ded8d2;
    --wash: #f7f4f0;
    --blush: #fbf0eb;
    --wide: 66rem;
    --reading: 44rem;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 1rem/1.6 Arial, Helvetica, sans-serif; }
a { color: var(--red); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
img { max-width: 100%; height: auto; vertical-align: middle; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.025em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.15rem, 6vw, 4rem); margin: .25em 0; }
h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); }
h3 { font-size: 1.35rem; }
p { margin: .65em 0 1em; overflow-wrap: anywhere; }
.wrap { width: min(var(--wide), calc(100% - 2.5rem)); margin-inline: auto; }
.reading { max-width: var(--reading); margin-inline: auto; }
.reading > img { margin-bottom: 1rem; }
.issue .reading { text-align: left; }
.skip { position: absolute; z-index: 4; left: 1rem; top: 1rem; padding: .7rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header { border-top: 5px solid var(--red); }
.topbar { min-height: 3.25rem; display: flex; justify-content: space-between; gap: .75rem 1.5rem; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-block: .6rem; }
.topbar nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }
.topbar a { color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 700; }
.topbar a:hover { color: var(--red); text-decoration: underline; }
.masthead { text-align: center; padding: 1.5rem 0 1rem; border-bottom: 1px solid var(--line); }
.masthead-logo, .custom-logo { display: inline-block; width: min(16rem, 100%); max-height: 16rem; object-fit: contain; }
.masthead p { margin: .65rem 0 0; font-size: .87rem; font-weight: 700; }
main { padding-bottom: 3rem; }
.page-intro { text-align: center; margin-inline: auto; padding: 2rem 0 1.6rem; max-width: var(--reading); }
.page-intro p { margin: .75rem 0; }
.article-header { padding-top: 2rem; }
.overline { color: var(--red); font-size: .76rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.overline a { color: inherit; }
.muted, time { color: var(--muted); }
.lead { font-size: 1.16rem; }
.section-title { border-top: 3px solid var(--ink); padding-top: .6rem; margin-top: 2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: 1rem; }
.lead-grid { display: grid; gap: 1rem; }
.lead-grid .card h3 { font-size: clamp(1.55rem, 4vw, 2.35rem); }
.card, .feature { min-width: 0; padding: 1.15rem; background: #fff; border: 1px solid var(--line); border-radius: .45rem; }
.card h2, .card h3, .feature h2, .archive-item h2 { margin: .2em 0 .4em; }
.card h2 a, .card h3 a, .feature h2 a, .archive-item h2 a { color: var(--ink); }
.card img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: .85rem; border-radius: .25rem; }
.edition-card, .feature { background: var(--wash); }
.feature, .summary, .sources, .newsletter { padding: clamp(1rem, 4vw, 2rem); }
.summary { background: var(--wash); border-left: 4px solid var(--red); margin: 1.5rem 0; }
.issue > .summary { max-width: var(--reading); margin-inline: auto; }
.summary h2, .newsletter h2, .sources h2 { margin: 0 0 .55em; }
.summary ul, .sources ol { padding-left: 1.3rem; margin-bottom: 0; }
.summary li, .sources li { margin-bottom: .35rem; }
.sources { background: var(--wash); margin: 1.5rem 0; }
.newsletter { background: var(--blush); border-top: 3px solid var(--red); margin: 2rem 0 0; text-align: center; }
.newsletter small { display: block; margin-top: .75rem; }
.button { display: inline-block; padding: .65rem 1rem; background: var(--red); border-radius: .3rem; color: #fff; font-weight: 700; text-decoration: none; }
.button:hover { background: #8d291b; text-decoration: underline; }
.advert { margin: 1.5rem auto; max-width: var(--reading); text-align: center; border: 1px solid var(--line); padding: 1rem; }
.advert .overline { display: block; color: var(--muted); margin-bottom: .4rem; }
.advert img { display: block; max-height: 15rem; object-fit: contain; margin: auto; }
.advert p { margin: .35em 0; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.5rem; }
.filters a, .page-numbers { display: inline-block; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: .25rem; }
.filters a[aria-current], .page-numbers.current { background: var(--ink); color: #fff; text-decoration: none; }
.archive-item { padding: 1rem 0; border-top: 1px solid var(--line); }
.archive-item p { margin: 0; }
.pagination { margin-top: 1.5rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-footer { padding: 1.75rem 0; background: var(--wash); border-top: 1px solid var(--line); }
.entry-content { overflow-wrap: anywhere; }
.entry-content iframe, .entry-content video { max-width: 100%; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; }
.entry-content figure { max-width: 100%; margin-inline: 0; }
.entry-content blockquote { margin-inline: 0; padding-inline-start: 1.15rem; border-left: 3px solid var(--red); }

.brand-lockup { display: inline-block; width: min(28rem, 95%); }
.brand-lockup img { display: block; width: 100%; }
.front-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2.25rem);
    align-items: center;
    margin-top: 1.25rem;
    padding: clamp(1.15rem, 4vw, 2.75rem);
    background: var(--wash);
    border-top: 3px solid var(--red);
}
.front-feature:has(.front-emblem, .front-image) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.front-story h1 { font-size: clamp(2.1rem, 4.5vw, 3.65rem); margin-block: .2em .35em; }
.front-story .overline, .issue-date { margin-bottom: .3rem; }
.issue-date { color: var(--muted); font-size: .9rem; }
.front-emblem img { display: block; width: min(100%, 20rem); margin: auto; mix-blend-mode: multiply; }
.front-image { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.front-briefs .overline, .integral .overline { margin-block: 0 .45rem; }
.integral { min-width: 0; }
.integral .practical { padding: .65rem .85rem; background: var(--wash); }
.integral .sources { padding: .75rem; margin: .8rem 0 0; background: none; border-top: 1px solid var(--line); font-size: .9rem; }
.integral .sources h4 { margin: 0 0 .45rem; }
@media (max-width: 650px) {
    .front-feature:has(.front-emblem, .front-image) { grid-template-columns: minmax(0, 1fr); }
    .front-emblem { order: 2; border-top: 1px solid var(--line); }
    .front-emblem img { width: min(55%, 11rem); }
}
