/* ==========================================================================
   Gazette — thème clair « quotidien » pour PluXml
   ========================================================================== */

:root {
	--paper: #faf8f3;
	--paper-2: #f2efe7;
	--white: #ffffff;
	--ink: #16130f;
	--ink-2: #3a352e;
	--muted: #6f685d;
	--rule: #d8d2c4;
	--rule-strong: #16130f;
	--accent: #b4141e;
	--accent-dark: #8e0f17;
	--highlight: #fff2b8;

	--f-display: "Didot", "Bodoni 72", Georgia, serif;
	--f-text: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-ui: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wrap: 1240px;
	--gap: clamp(1.25rem, 3vw, 2.5rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-text);
	font-size: 1.0625rem;
	line-height: 1.65;
	font-optical-sizing: auto;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .18em; }
a:hover { color: var(--accent); }
::selection { background: var(--highlight); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; letter-spacing: -.005em; margin: 0 0 .5em; font-synthesis: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

/* ---------- Top bar ---------- */
.topbar { font-family: var(--f-ui); font-size: .75rem; color: var(--muted); border-bottom: 1px solid var(--rule); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.25rem; }
.topbar__date { text-transform: capitalize; letter-spacing: .02em; }
.topbar__pages { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.topbar__pages a { text-decoration: none; }
.topbar__pages .active a { color: var(--ink); font-weight: 600; }
.topbar__rss a { display: inline-flex; align-items: center; gap: .3rem; color: var(--accent); font-weight: 600; }

/* ---------- Masthead ---------- */
.masthead { text-align: center; padding: clamp(0.5rem, 1vw, 2.75rem) 0 clamp(0.5rem, 1vw, 1.5rem); }
.masthead__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.8rem, 8.5vw, 6rem); line-height: .95; letter-spacing: -.02em; }
.masthead__title a { text-decoration: none; color: var(--ink); }
.masthead__title a:hover { color: var(--ink); }
.masthead__tagline {
	margin: .9rem auto 0; max-width: 40rem;
	font-family: var(--f-display); font-style: italic; color: var(--muted); font-size: 1.2rem;
}
.masthead__tagline:empty { display: none; }

/* ---------- Sections nav ---------- */
.sections {
	position: sticky; top: 0; z-index: 50;
	background: var(--paper);
	border-top: 3px double var(--rule-strong);
	border-bottom: 1px solid var(--rule-strong);
	transition: box-shadow .2s;
}
.sections.is-stuck { box-shadow: 0 6px 18px -12px rgba(0,0,0,.35); }
.sections__inner { display: flex; align-items: center; justify-content: center; }
.sections__list { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.sections__list a {
	display: block; padding: .8rem 1rem;
	font-family: var(--f-ui); font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
	text-decoration: none; color: var(--ink);
	box-shadow: inset 0 -3px 0 transparent; transition: box-shadow .15s, color .15s;
}
.sections__list a:hover { color: var(--accent); }
.sections__list .active a { box-shadow: inset 0 -3px 0 var(--accent); color: var(--accent); }
.sections__toggle { display: none; }

/* ---------- Layout ---------- */
.main { padding: clamp(1.5rem, 3vw, 2.5rem) 0 4rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--gap); align-items: start; }
.layout > .content { min-width: 0; }
.layout--full { grid-template-columns: minmax(0, 1fr); }
.layout--full > .content { max-width: 100%; }

/* ---------- Titres de séparation ---------- */
.rule-title {
	display: flex; align-items: center; gap: 1rem;
	font-family: var(--f-ui); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	margin: 2.5rem 0 1.25rem; color: var(--ink);
}
.rule-title::after { content: ""; flex: 1; border-top: 1px solid var(--rule-strong); }
.rule-title span::before { content: ""; display: inline-block; width: .55rem; height: .55rem; background: var(--accent); margin-right: .55rem; vertical-align: .05em; }

/* ---------- Kicker & byline ---------- */
.kicker { margin: 0 0 .45rem; font-family: var(--f-ui); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.kicker a { text-decoration: none; color: inherit; }
.kicker a:hover { text-decoration: underline; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 0; margin: 0; font-family: var(--f-ui); font-size: .76rem; color: var(--muted); margin-left: -1.1rem; clip-path: inset(-2px -2px -2px 1.1rem); }
.byline > * { white-space: nowrap; }
.byline > *::before { content: "·"; display: inline-block; width: 1.1rem; text-align: center; color: var(--muted); opacity: .6; }
.byline__author { color: var(--ink-2); }
.byline a { text-decoration: none; }

/* ---------- Stories (cartes) ---------- */
.story { position: relative; }
.story__media { display: block; overflow: hidden; background: var(--paper-2); }
.story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.story:hover .story__media img { transform: scale(1.035); }
.story__title { margin: 0 0 .5rem; }
.story__title a { text-decoration: none; }
.story__title a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.story__excerpt { margin: 0 0 .75rem; color: var(--ink-2); }

/* La Une */
.story--lead {
	display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--gap); align-items: center;
	padding-bottom: var(--gap); border-bottom: 1px solid var(--rule-strong);
}
.story--lead.no-img { grid-template-columns: 1fr; text-align: center; padding: 1rem 0 var(--gap); }
.story--lead.no-img .byline { justify-content: center; }
.story--lead.no-img .story__excerpt { max-width: 46rem; margin-left: auto; margin-right: auto; }
.story--lead .story__media { aspect-ratio: 3 / 2; }
.story--lead .story__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 400; line-height: 1.02; letter-spacing: -.015em; }
.story--lead .story__excerpt { font-size: 1.18rem; line-height: 1.55; }
.story--lead .kicker { font-size: .78rem; }

/* Rangée de 3 */
.front__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.front__row .story--card + .story--card::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gap) / -2); border-left: 1px solid var(--rule); }
.story--card .story__media { aspect-ratio: 16 / 10; margin-bottom: 1rem; }
.story--card .story__title { font-size: 1.5rem; line-height: 1.12; font-weight: 400; }
.story--card .story__excerpt { font-size: .98rem; }

/* Fil (liste) */
.river { display: flex; flex-direction: column; }
.story--river {
	display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 1.5rem; align-items: start;
	padding: 1.5rem 0; border-top: 1px solid var(--rule);
}
.river > .story--river:first-child { border-top: 0; padding-top: 0; }
.story--river .story__media { order: 2; aspect-ratio: 4 / 3; }
.story--river.no-img { grid-template-columns: 1fr; }
.story--river .story__title { font-size: 1.7rem; line-height: 1.12; font-weight: 400; }

/* ---------- En-tête de rubrique ---------- */
.section-head { margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 3px double var(--rule-strong); }
.crumbs { font-family: var(--f-ui); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.crumbs a { text-decoration: none; }
.crumbs span { margin: 0 .35rem; color: var(--rule); }
.section-head__title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 400; margin: 0; }
.section-head__desc { margin-top: .75rem; font-family: var(--f-display); font-style: italic; color: var(--ink-2); font-size: 1.1rem; max-width: 46rem; }
.section-head__desc p { margin: 0; }

/* ---------- Article ---------- */
.post { max-width: 760px; }
.layout--full .post { margin: 0 auto; }
.post__head { margin-bottom: 1.75rem; }
.post__title { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 400; line-height: 1.04; letter-spacing: -.015em; margin: 0 0 1rem; }
.post__lede { font-family: var(--f-display); font-style: italic; font-size: 1.4rem; line-height: 1.45; color: var(--ink-2); margin-bottom: 1.25rem; }
.post__lede p { margin: 0 0 .5em; }
.post__meta {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1.5rem;
	padding: .8rem 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule);
}
.post__meta .byline__author strong { font-weight: 600; color: var(--ink); }
.share { display: flex; align-items: center; gap: .35rem; margin: 0; font-family: var(--f-ui); font-size: .74rem; }
.share__label { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-right: .25rem; }
.share a {
	display: inline-grid; place-items: center; width: 2rem; height: 2rem;
	border: 1px solid var(--rule); border-radius: 50%; text-decoration: none; font-weight: 700; color: var(--ink);
	transition: background .15s, color .15s, border-color .15s;
}
.share a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.post__figure { margin: 0 0 2rem; }
.post__figure img { margin: 0 auto; }

.post__body { font-size: 1.1rem; line-height: 1.8; color: var(--ink-2); font-weight: 400; }
.post__body strong { color: var(--ink); font-weight: 600; }
.post__body > * { margin-top: 0; margin-bottom: 1.25em; }
.post__body > p:first-child::first-letter,
.post--static .post__body > p:first-child::first-letter {
	float: left; font-family: var(--f-display); font-weight: 400; color: var(--accent);
	font-size: 4.9em; line-height: .8; margin: .07em .12em 0 0;
}
.post__body h2 { font-size: 2rem; margin-top: 2em; color: var(--ink); }
.post__body h3 { font-size: 1.5rem; margin-top: 1.75em; color: var(--ink); }
.post__body a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.post__body a:hover { color: var(--accent-dark); text-decoration-color: currentColor; }
.post__body blockquote {
	position: relative; margin: 2em 0; padding: 1.25rem 0 1.25rem 2.25rem;
	border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule);
	font-family: var(--f-display); font-size: 1.75rem; font-weight: 400; font-style: italic; line-height: 1.3; color: var(--ink);
}
.post__body blockquote::before { content: "«"; position: absolute; left: 0; top: .95rem; color: var(--accent); font-size: 2.2rem; line-height: 1; font-style: normal; }
.post__body blockquote p { margin: 0; }
.post__body blockquote cite, .post__body blockquote footer { display: block; margin-top: .75rem; font-family: var(--f-ui); font-size: .8rem; font-style: normal; font-weight: 500; color: var(--muted); }
.post__body figure { margin: 2em 0; }
.post__body figcaption, .post__body .caption { font-family: var(--f-ui); font-size: .8rem; color: var(--muted); padding-top: .5rem; border-bottom: 1px solid var(--rule); padding-bottom: .5rem; }
.post__body ul, .post__body ol { padding-left: 1.3em; }
.post__body li { margin-bottom: .35em; }
.post__body li::marker { color: var(--accent); }
.post__body hr { border: 0; text-align: center; margin: 2.5em 0; }
.post__body hr::before { content: "* * *"; letter-spacing: .6em; color: var(--muted); }
.post__body table { width: 100%; border-collapse: collapse; font-family: var(--f-ui); font-size: .9rem; }
.post__body th, .post__body td { padding: .6rem .75rem; border-bottom: 1px solid var(--rule); text-align: left; }
.post__body th { border-bottom: 2px solid var(--ink); }
.post__body code { font-size: .88em; background: var(--paper-2); padding: .1em .35em; border-radius: 3px; }
.post__body pre { background: var(--ink); color: var(--paper); padding: 1rem 1.25rem; overflow: auto; font-size: .88rem; }
.post__body pre code { background: none; padding: 0; }
.post__body img { margin: 0 auto; }
.post__body iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.post__body mark { background: var(--highlight); }

.post__foot { margin-top: 2.5rem; }
.post__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-family: var(--f-ui); font-size: .8rem; }
.post__tags span { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-right: .3rem; }
.post__tags a { display: inline-block; padding: .25rem .7rem; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; }
.post__tags a:hover { background: var(--ink); color: var(--paper); }

.author-box { margin-top: 2rem; padding: 1.25rem 1.5rem; background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--accent); font-size: 1rem; }
.author-box__label { margin: 0 0 .35rem; font-family: var(--f-ui); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.author-box p:last-child { margin-bottom: 0; }

/* À lire aussi */
.related { max-width: 760px; }
.layout--full .related, .layout--full .comments { margin-left: auto; margin-right: auto; }
.related__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.related__list li.active { display: none; }
.related__list a { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding-top: .75rem; border-top: 3px solid var(--ink); text-decoration: none; font-family: var(--f-display); font-weight: 400; font-size: 1.2rem; line-height: 1.2; }
.related__list time { font-family: var(--f-ui); font-size: .72rem; font-weight: 500; color: var(--muted); }

/* ---------- Commentaires ---------- */
.comments { max-width: 760px; }
.comment { padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.comment.level-1 { margin-left: 1.5rem; } .comment.level-2 { margin-left: 3rem; }
.comment.level-3, .comment.level-4, .comment.level-5 { margin-left: 4.5rem; }
.comment[class*="level-"]:not(.level-0) { padding-left: 1rem; border-left: 2px solid var(--rule); }
.comment__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin: 0 0 .4rem; font-family: var(--f-ui); font-size: .8rem; color: var(--muted); }
.comment__author { color: var(--ink); font-size: .9rem; }
.comment__author a { text-decoration: none; }
.comment__num { margin-left: auto; text-decoration: none; }
.comment__content { font-size: 1.02rem; }
.comment__content p { margin: 0 0 .6em; }
.comment__reply { font-family: var(--f-ui); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); text-decoration: none; }
.comments__closed { font-style: italic; color: var(--muted); }

.com-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field { margin: 0 0 1rem; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: .35rem; font-family: var(--f-ui); font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea {
	width: 100%; padding: .7rem .85rem; font: inherit; font-size: 1rem; color: var(--ink);
	background: var(--white); border: 1px solid var(--rule); border-radius: 2px; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field--capcha { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.field--capcha label { width: 100%; }
.field--capcha input { width: 4rem; }
#id_answer { display: none; margin-bottom: 1rem; padding: .75rem 1rem; background: var(--paper-2); border-left: 3px solid var(--accent); font-size: .92rem; }
#id_answer a { display: inline-block; margin-top: .5rem; font-family: var(--f-ui); font-size: .78rem; color: var(--accent); }
.com-form__msg { padding: .75rem 1rem; background: #fdecec; border-left: 3px solid var(--accent); font-family: var(--f-ui); font-size: .88rem; }

.btn {
	display: inline-block; padding: .85rem 1.6rem; border: 0; border-radius: 2px; cursor: pointer;
	background: var(--ink); color: var(--paper); text-decoration: none;
	font-family: var(--f-ui); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	transition: background .15s;
}
.btn:hover { background: var(--accent); color: #fff; }

/* ---------- Sidebar ---------- */
.aside { position: sticky; top: 4.25rem; font-family: var(--f-ui); }
.widget { margin-bottom: 2.25rem; }
.widget__title {
	margin: 0 0 .9rem; padding-bottom: .5rem; border-bottom: 2px solid var(--ink);
	font-family: var(--f-ui); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.widget ul, .widget ol { list-style: none; margin: 0; padding: 0; }

.latest { counter-reset: latest; }
.latest li { counter-increment: latest; border-bottom: 1px solid var(--rule); }
.latest li:last-child { border-bottom: 0; }
.latest a { display: grid; grid-template-columns: 2.25rem 1fr; column-gap: .25rem; padding: .8rem 0; text-decoration: none; }
.latest a::before { content: counter(latest); grid-row: span 2; font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--accent); }
.latest__title { font-family: var(--f-display); font-weight: 400; font-size: 1.1rem; line-height: 1.22; color: var(--ink); }
.latest a:hover .latest__title { text-decoration: underline; text-decoration-color: var(--accent); }
.latest time { font-size: .72rem; color: var(--muted); margin-top: .2rem; }
.latest .active .latest__title { color: var(--accent); }

.cat-list li a, .arch-list li a { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px dotted var(--rule); text-decoration: none; font-size: .9rem; }
.cat-list li a span, .arch-list li a span { color: var(--muted); font-size: .78rem; }
.cat-list li.active a, .arch-list li.active a { color: var(--accent); font-weight: 600; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-cloud a { display: inline-block; padding: .25rem .65rem; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; font-size: .78rem; background: var(--white); }
.tag-cloud a:hover, .tag-cloud a.active { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 3rem 0 1rem; font-family: var(--f-ui); font-size: .85rem; }
.pagination:empty { display: none; }
.pagination a, .pagination span { display: inline-block; min-width: 2.5rem; padding: .55rem .8rem; text-align: center; text-decoration: none; border: 1px solid var(--rule); background: var(--white); }
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination .p_current, .pagination span.current { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 600; }
.pagination span:has(> a) { padding: 0; border: 0; background: none; min-width: 0; }

.feed-link { font-family: var(--f-ui); font-size: .8rem; text-align: center; }
.feed-link a { color: var(--accent); }
.empty { font-style: italic; color: var(--muted); }

/* ---------- Erreur ---------- */
.error-page { text-align: center; padding: 3rem 0; }
.error-page__code { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(5rem, 18vw, 10rem); line-height: 1; color: var(--accent); }
.error-page .post__title { max-width: 40rem; margin: 1rem auto; }
.error-page__msg { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { margin-top: 2rem; border-top: 3px double var(--rule-strong); background: var(--paper-2); font-family: var(--f-ui); font-size: .85rem; }
.footer .wrap { padding-top: 2.5rem; padding-bottom: 1.5rem; }
.footer__brand { text-align: center; margin-bottom: 2rem; }
.footer__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 2.6rem; line-height: 1; }
.footer__title a { text-decoration: none; }
.footer__tagline { margin: .4rem 0 0; font-family: var(--f-display); font-style: italic; color: var(--muted); }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); padding: 1.75rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.footer__cols h4 { font-family: var(--f-ui); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .75rem; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; }
.footer__cols li { margin-bottom: .35rem; }
.footer__cols a { text-decoration: none; color: var(--ink-2); }
.footer__cols a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding-top: 1.25rem; font-size: .75rem; color: var(--muted); }
.footer__bottom p { margin: 0; }
.footer__bottom a { text-decoration: none; }

/* ---------- Barre de lecture ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; display: none; }
.has-progress .read-progress { display: block; }
.read-progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
	.aside { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); padding-top: 2rem; border-top: 3px double var(--rule-strong); }
	.post, .related, .comments { margin-left: auto; margin-right: auto; }
}

@media (max-width: 820px) {
	.story--lead { grid-template-columns: 1fr; }
	.front__row { grid-template-columns: 1fr; }
	.front__row { gap: 0; }
	.front__row .story--card + .story--card::before { display: none; }
	.front__row .story--card { padding: 1.5rem 0 0; margin-top: 1.5rem; border-top: 1px solid var(--rule); }
	.front__row .story--card:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
	.story--card.has-img { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 1rem; }
	.story--card.has-img .story__media { order: 2; margin: 0; aspect-ratio: 1; }
	.story--card .story__excerpt { display: none; }
	.story--river { grid-template-columns: minmax(0, 1fr) 120px; gap: 1rem; }
	.story--river .story__media { aspect-ratio: 1; }
	.story--river .story__title { font-size: 1.25rem; }
	.story--river .story__excerpt { font-size: .95rem; }

	.sections__inner { justify-content: flex-start; }
	.sections__toggle {
		display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 0; border: 0; background: none; cursor: pointer;
		font-family: var(--f-ui); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
	}
	.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background .2s; }
	.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
	.burger::before { top: -6px; } .burger::after { top: 6px; }
	.is-open .burger { background: transparent; }
	.is-open .burger::before { transform: translateY(6px) rotate(45deg); }
	.is-open .burger::after { transform: translateY(-6px) rotate(-45deg); }
	.sections__inner { flex-direction: column; align-items: stretch; }
	.sections__list { display: none; flex-direction: column; padding-bottom: .5rem; }
	.sections.is-open .sections__list { display: flex; }
	.sections__list a { padding: .7rem 0; border-top: 1px solid var(--rule); box-shadow: none !important; }

	.post__meta { flex-direction: column; align-items: flex-start; }
	.aside { grid-template-columns: 1fr; }
	.footer__cols { grid-template-columns: 1fr 1fr; }
	.com-form__row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
	body { font-size: 1rem; }
	.topbar__pages li:not(.topbar__rss) { display: none; }
	.post__body { font-size: 1.04rem; }
	.post__lede { font-size: 1.25rem; }
	.footer__cols { grid-template-columns: 1fr; }
	.comment.level-1, .comment.level-2, .comment.level-3, .comment.level-4, .comment.level-5 { margin-left: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.topbar, .sections, .aside, .share, .comments, .related, .footer__cols, .read-progress { display: none !important; }
	body { background: #fff; }
	.layout { display: block; }
}
