/*
Theme Name: Balade Gourmande 0.7.0 Product Editorial Design System
Theme URI: https://www.balade-gourmande.fr/
Author: Balade Gourmande
Description: Thème éditorial Gutenberg/FSE léger pour Balade Gourmande — maquette d’accueil validée, gastronomie française et terroirs.
Version: 0.7.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: balade-gourmande
Tags: full-site-editing, block-patterns, custom-logo, editor-style, featured-images, wide-blocks, e-commerce
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --bg-ref-ink: #16291f;
  --bg-ref-paper: #faf5ee;
  --bg-ref-body: #fbf7f0;
  --bg-ref-footer: #f5eee3;
  --bg-ref-accent: #b84e31;
  --bg-ref-gold: #b88f4d;
  --bg-ref-line: #e4dacb;
  --bg-ref-muted: #3c4a42;
  --bg-ref-max: 1240px;
  --bg-ref-gutter: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--bg-ref-ink);
  background: var(--bg-ref-body);
  font-family: Georgia, "Times New Roman", serif;
  text-rendering: optimizeLegibility;
}
body.admin-bar .bg-ref-header { /* WP admin bar remains outside the theme */ }
a { color: inherit; text-underline-offset: .18em; }
img { max-width: 100%; height: auto; }
.wp-site-blocks { overflow-x: clip; }
.wp-site-blocks > * { margin-block-start: 0; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.bg-ref-container {
  width: min(var(--bg-ref-max), calc(100% - (var(--bg-ref-gutter) * 2)));
  margin-inline: auto;
}

/* Header — single visual block: brand + editorial navigation + search */
.bg-ref-header {
  position: relative;
  z-index: 20;
  background: #10281f;
}
.bg-ref-headerbar {
  min-height: 96px;
  border-top: 3px solid #b88f4d;
  border-bottom: 1px solid rgb(210 162 91 / 42%);
  background: #10281f;
}
.bg-ref-headerbar__inner {
  display: grid;
  grid-template-columns: minmax(285px, 330px) minmax(0, 1fr) 46px;
  min-height: 96px;
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
}
.bg-ref-brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 13px;
  color: #fffaf2;
  text-decoration: none;
}
.bg-ref-brand__mark {
  display: block;
  width: 46px;
  height: 57px;
  flex: 0 0 auto;
  background: url("assets/brand/mark.svg") center/contain no-repeat;
  filter: drop-shadow(0 1px 0 rgb(255 255 255 / 5%));
}
.bg-ref-brand__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bg-ref-brand__copy strong {
  color: #fffaf2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 2vw, 31px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .95;
}
.bg-ref-brand__copy span {
  margin-top: 8px;
  color: #d7a85d;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .19em;
  line-height: 1;
  text-transform: uppercase;
}
.bg-ref-main-navigation {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 2.35vw, 38px);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(14px, 1.03vw, 16px);
  font-weight: 680;
  letter-spacing: .005em;
  line-height: 1.2;
  white-space: nowrap;
}
.bg-ref-main-navigation a {
  position: relative;
  padding: 38px 0 35px;
  color: #fffaf2;
  text-decoration: none;
  transition: color .16s ease;
}
.bg-ref-main-navigation a::after {
  position: absolute;
  right: 50%;
  bottom: 23px;
  left: 50%;
  height: 2px;
  background: #c85d3e;
  content: "";
  transition: right .16s ease, left .16s ease;
}
.bg-ref-main-navigation a:hover,
.bg-ref-main-navigation a:focus-visible {
  color: #f0d5a4;
}
.bg-ref-main-navigation a:hover::after,
.bg-ref-main-navigation a:focus-visible::after {
  right: 0;
  left: 0;
}
.bg-ref-search {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  justify-self: end;
  border: 1px solid rgb(210 162 91 / 70%);
  border-radius: 999px;
  color: #fffaf2;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.bg-ref-search svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bg-ref-search:hover,
.bg-ref-search:focus-visible {
  border-color: #d7a85d;
  color: #10281f;
  background: #d7a85d;
}
.bg-ref-mobile-menu { display: none; }

/* Homepage hero — same refined green/gold language as the header, with a soft editorial image fade. */
.bg-ref-home { background: var(--bg-ref-body); }
.bg-ref-hero {
  display: grid;
  grid-template-columns: 35% 65%;
  min-height: 404px;
  border-bottom: 1px solid rgb(184 143 77 / 42%);
  background: var(--bg-ref-paper);
}
.bg-ref-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 58px 34px 58px max(var(--bg-ref-gutter), calc((100vw - var(--bg-ref-max)) / 2));
}
.bg-ref-hero__copy::before {
  width: 42px;
  height: 2px;
  margin-bottom: 18px;
  background: var(--bg-ref-gold);
  content: "";
}
.bg-ref-kicker,
.bg-ref-section-label {
  margin: 0;
  color: var(--bg-ref-accent);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}
.bg-ref-hero h1 {
  max-width: 360px;
  margin: 14px 0 0;
  color: var(--bg-ref-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 4.6vw, 66px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .94;
  text-wrap: balance;
}
.bg-ref-hero__rule { width: 28px; height: 2px; margin-top: 22px; background: var(--bg-ref-accent); }
.bg-ref-hero__lead {
  max-width: 390px;
  margin: 18px 0 0;
  color: #25382f;
  font-size: 15px;
  line-height: 1.52;
}
.bg-ref-hero__image {
  position: relative;
  min-height: 404px;
  overflow: hidden;
  background-image: url("assets/images/home/hero-terroir.webp");
  background-position: center 47%;
  background-repeat: no-repeat;
  background-size: cover;
}
.bg-ref-hero__image::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 22%;
  background: linear-gradient(90deg, var(--bg-ref-paper) 0%, rgb(250 245 238 / 84%) 26%, rgb(250 245 238 / 0%) 100%);
  content: "";
  pointer-events: none;
}
.bg-ref-hero__image::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(184 143 77 / 58%) 45%, transparent);
  content: "";
}

/* Featured stories — three articles, image-led and deliberately more open. */
.bg-ref-feature {
  padding: 54px 0 58px;
  border-bottom: 1px solid var(--bg-ref-line);
  background: var(--bg-ref-body);
}
.bg-ref-feature__header {
  display: grid;
  grid-template-columns: auto minmax(40px, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.bg-ref-feature__header::after {
  height: 1px;
  background: linear-gradient(90deg, rgb(184 143 77 / 78%), rgb(228 218 203 / 36%));
  content: "";
}
.bg-ref-feature__stories {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
}
.bg-ref-feature-card { min-width: 0; }
.bg-ref-feature-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
  border-radius: 3px;
  background: #efe6d8;
}
.bg-ref-feature-card--lead .bg-ref-feature-card__media { aspect-ratio: 1.75 / 1; }
.bg-ref-feature-card__media::after {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--bg-ref-accent), var(--bg-ref-gold) 54%, transparent 92%);
  content: "";
  opacity: .92;
}
.bg-ref-feature-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease, filter .25s ease;
}
.bg-ref-feature-card:hover .bg-ref-feature-card__media img { transform: scale(1.018); filter: saturate(1.03) contrast(1.02); }
.bg-ref-feature-card h2,
.bg-ref-feature-card h3 {
  margin: 15px 0 0;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.08;
  text-wrap: balance;
}
.bg-ref-feature-card h2 { max-width: 18ch; font-size: clamp(27px, 2.5vw, 36px); }
.bg-ref-feature-card h3 { font-size: clamp(18px, 1.55vw, 22px); }
.bg-ref-feature-card h2 a,
.bg-ref-feature-card h3 a { color: var(--bg-ref-ink); text-decoration: none; }
.bg-ref-feature-card h2 a:hover,
.bg-ref-feature-card h3 a:hover { color: var(--bg-ref-accent); }

/* Editorial rows */
.bg-ref-editorial { background: var(--bg-ref-body); }
.bg-ref-section { padding: 56px 0 54px; }
.bg-ref-section + .bg-ref-section { border-top: 1px solid var(--bg-ref-line); }
.bg-ref-section__header {
  display: grid;
  grid-template-columns: auto minmax(36px, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.bg-ref-section__header h2 {
  margin: 0;
  padding-left: 13px;
  border-left: 3px solid var(--bg-ref-accent);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.04;
  white-space: nowrap;
}
.bg-ref-section__line { height: 1px; background: linear-gradient(90deg, rgb(184 143 77 / 74%), rgb(228 218 203 / 55%)); }

.bg-ref-section__more {
  color: #4d534e;
  font-size: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.bg-ref-section__more span { margin-left: 5px; color: var(--bg-ref-accent); font-size: 14px; }
.bg-ref-section__more:hover { color: var(--bg-ref-accent); }
.bg-ref-grid { display: grid; }
.bg-ref-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 42px 30px; }
.bg-ref-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.bg-ref-card { min-width: 0; }
.bg-ref-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.72 / 1;
  overflow: hidden;
  border-radius: 3px;
  background: #efe6d8;
}
.bg-ref-card__media::after {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, rgb(184 78 49 / 88%), rgb(184 143 77 / 56%), transparent 88%);
  content: "";
  opacity: 0;
  transition: opacity .2s ease;
}
.bg-ref-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease, filter .25s ease;
}
.bg-ref-card:hover .bg-ref-card__media img { transform: scale(1.018); filter: saturate(1.03) contrast(1.02); }
.bg-ref-card:hover .bg-ref-card__media::after { opacity: 1; }
.bg-ref-card h3 {
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.23;
  text-wrap: balance;
}
.bg-ref-card h3 a { color: var(--bg-ref-ink); text-decoration: none; }
.bg-ref-card h3 a:hover { color: var(--bg-ref-accent); }

.bg-ref-compact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
  padding: 56px 0 60px;
  border-top: 1px solid var(--bg-ref-line);
}
.bg-ref-compact-section { min-width: 0; position: relative; }
.bg-ref-compact-section + .bg-ref-compact-section { padding-left: 42px; border-left: 1px solid var(--bg-ref-line); }
.bg-ref-section__header--compact { grid-template-columns: auto minmax(16px, 1fr) auto; gap: 11px; margin-bottom: 22px; }
.bg-ref-section__header--compact h2 { padding-left: 10px; border-left-width: 2px; font-size: 21px; }
.bg-ref-section__header--compact .bg-ref-section__more { font-size: 9px; }
.bg-ref-card--compact .bg-ref-card__media { aspect-ratio: 1.55 / 1; }
.bg-ref-card--compact h3 { margin-top: 11px; font-size: 14px; line-height: 1.2; }

/* Footer — light, editorial, as in the approved reference */
.bg-ref-footer {
  border-top: 1px solid var(--bg-ref-line);
  background: var(--bg-ref-footer);
  color: var(--bg-ref-ink);
}
.bg-ref-footer__grid {
  display: grid;
  grid-template-columns: 31% 16% 16% 37%;
  gap: 0;
  padding: 27px 0 21px;
}
.bg-ref-footer__brand { padding-right: 40px; }
.bg-ref-footer-lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--bg-ref-ink); text-decoration: none; }
.bg-ref-footer-lockup__mark { width: 36px; height: 45px; flex: 0 0 auto; background: url("assets/brand/mark.svg") center/contain no-repeat; }
.bg-ref-footer-lockup__copy { display: flex; flex-direction: column; }
.bg-ref-footer-lockup__copy strong { font-size: 20px; line-height: .95; letter-spacing: -.03em; }
.bg-ref-footer-lockup__copy span { margin-top: 6px; color: var(--bg-ref-accent); font-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size: 7px; font-weight: 800; letter-spacing: .16em; line-height: 1; text-transform: uppercase; }
.bg-ref-footer__brand p,
.bg-ref-footer__newsletter p {
  margin: 9px 0 0;
  color: #37443c;
  font-size: 10px;
  line-height: 1.5;
}
.bg-ref-socials { display: flex; align-items: center; gap: 14px; margin-top: 13px; }
.bg-ref-socials a { color: var(--bg-ref-ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.bg-ref-footer__column,
.bg-ref-footer__newsletter { padding-top: 9px; }
.bg-ref-footer__column h2,
.bg-ref-footer__newsletter h2 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
}
.bg-ref-footer__column a {
  display: block;
  margin: 0 0 5px;
  color: #29382f;
  font-size: 10px;
  text-decoration: none;
}
.bg-ref-footer__column a:hover { color: var(--bg-ref-accent); }
.bg-ref-footer__newsletter { padding-left: 9px; }
.bg-ref-footer__newsletter form { display: flex; margin-top: 13px; }
.bg-ref-footer__newsletter input {
  min-width: 0;
  flex: 1 1 auto;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #ded5c8;
  border-radius: 2px 0 0 2px;
  background: #fffdfa;
  color: var(--bg-ref-ink);
  font: 10px Georgia, "Times New Roman", serif;
  outline: none;
}
.bg-ref-footer__newsletter input:focus { border-color: var(--bg-ref-gold); }
.bg-ref-footer__newsletter button {
  width: 72px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0 2px 2px 0;
  background: var(--bg-ref-accent);
  color: #fffaf4;
  font: 700 10px Georgia, "Times New Roman", serif;
  cursor: pointer;
}
.bg-ref-footer__newsletter button:hover { background: #9f4027; }
.bg-ref-footer__bottom {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #ddd3c5;
  color: #5a625d;
  font-size: 9px;
}
.bg-ref-footer__bottom p { margin: 0; }
.bg-ref-footer__bottom nav { display: flex; align-items: center; gap: 9px; }
.bg-ref-footer__bottom a { color: #5a625d; text-decoration: none; }
.bg-ref-footer__bottom a:hover { color: var(--bg-ref-accent); }

/* Existing editorial templates */
.bg-breadcrumbs { font-size: .84rem; color: #66726b; }
.bg-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem .55rem; list-style: none; margin: 0; padding: 0; }
.bg-breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: .55rem; color: #b9ac99; }
.bg-breadcrumbs a { color: inherit; }
.bg-hero { border-bottom: 1px solid var(--bg-ref-line); }
.bg-editorial-title { max-width: 18ch; text-wrap: balance; }
.bg-decision-summary { border-left: .28rem solid var(--bg-ref-accent); background: #f3eadc; padding: clamp(1.1rem,2.5vw,1.6rem); }
.bg-card-grid, .bg-intent-grid, .bg-related-grid, .bg-subhub-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap: 1.25rem; }
.bg-card, .bg-intent-card, .bg-related-card, .bg-subhub-card { border: 1px solid var(--bg-ref-line); background: var(--bg-ref-paper); padding: 1.25rem; }
.bg-intent-card a, .bg-related-card a, .bg-subhub-card a { color: var(--bg-ref-ink); font-family: Georgia,"Times New Roman",serif; font-size: 1.08rem; font-weight: 700; text-decoration: none; }
.bg-meta { color: #66726b; font-size: .88rem; }
.wp-block-post-featured-image img, .wp-block-image img { height: auto; }
.bg-featured-media img { width: 100%; max-height: 42rem; object-fit: cover; }
.bg-article-shell > .wp-block-post-content { font-size: clamp(1.03rem,1.5vw,1.13rem); }
.bg-article-shell > .wp-block-post-content > :where(p,ul,ol,blockquote) { line-height: 1.72; }
.bg-author-box { border-top: 1px solid var(--bg-ref-line); padding-top: 2rem; }
.bg-author-profile-inner { display: flex; gap: 1.25rem; align-items: center; }
.bg-author-avatar { border-radius: 999px; }

/* WooCommerce stays compatible but visually secondary. */
.woocommerce ul.products li.product, .woocommerce div.product { font-family: Georgia, "Times New Roman", serif; }

@media (max-width: 1120px) {
  :root { --bg-ref-gutter: 40px; }
  .bg-ref-headerbar__inner { grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) 42px; gap: 20px; }
  .bg-ref-main-navigation { gap: 20px; font-size: 13px; }
  .bg-ref-brand__copy strong { font-size: 27px; }
}

@media (max-width: 940px) {
  :root { --bg-ref-gutter: 28px; }
  .bg-ref-headerbar__inner { grid-template-columns: 1fr auto auto; min-height: 86px; }
  .bg-ref-main-navigation { display: none; }
  .bg-ref-mobile-menu { display: block; position: relative; }
  .bg-ref-mobile-menu summary { display: grid; width: 32px; height: 32px; place-content: center; gap: 4px; cursor: pointer; list-style: none; }
  .bg-ref-mobile-menu summary::-webkit-details-marker { display: none; }
  .bg-ref-mobile-menu summary span { display: block; width: 20px; height: 1.5px; background: #fffaf2; }
  .bg-ref-mobile-menu nav { position: absolute; top: 46px; right: 0; z-index: 50; width: min(320px, calc(100vw - 40px)); padding: 14px 18px; border: 1px solid rgb(210 162 91 / 50%); background: #10281f; box-shadow: 0 18px 45px rgb(5 20 15 / 28%); }
  .bg-ref-mobile-menu nav a { display: block; padding: 10px 4px; color: #fffaf2; text-decoration: none; }
  .bg-ref-hero { grid-template-columns: 40% 60%; }
  .bg-ref-feature__stories { gap: 22px; }
  .bg-ref-grid--4 { gap: 34px 22px; }
  .bg-ref-footer__grid { grid-template-columns: 42% 24% 34%; }
  .bg-ref-footer__newsletter { grid-column: 1 / -1; padding-left: 0; padding-top: 20px; max-width: 430px; }
}

@media (max-width: 720px) {
  :root { --bg-ref-gutter: 20px; }
  .bg-ref-headerbar, .bg-ref-headerbar__inner { min-height: 80px; }
  .bg-ref-brand { gap: 10px; }
  .bg-ref-brand__mark { width: 42px; height: 52px; }
  .bg-ref-brand__copy strong { font-size: 23px; }
  .bg-ref-brand__copy span { margin-top: 6px; font-size: 8px; letter-spacing: .15em; }
  .bg-ref-search { width: 38px; height: 38px; }
  .bg-ref-hero { grid-template-columns: 1fr; }
  .bg-ref-hero__copy { padding: 52px var(--bg-ref-gutter) 42px; }
  .bg-ref-hero h1 { font-size: clamp(44px, 13vw, 62px); max-width: 310px; }
  .bg-ref-hero__image { min-height: 330px; }
  .bg-ref-hero__image::before { display: none; }
  .bg-ref-desktop-break { display: none; }
  .bg-ref-feature__stories { grid-template-columns: 1fr 1fr; gap: 30px 18px; }
  .bg-ref-feature-card--lead { grid-column: 1 / -1; }
  .bg-ref-feature-card--lead .bg-ref-feature-card__media { aspect-ratio: 1.7 / 1; }
  .bg-ref-feature-card__media { aspect-ratio: 1.5 / 1; }
  .bg-ref-grid--4 { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 34px 18px; }
  .bg-ref-compact-row { grid-template-columns: 1fr; gap: 34px; }
  .bg-ref-compact-section + .bg-ref-compact-section { padding-left: 0; border-left: 0; border-top: 1px solid var(--bg-ref-line); padding-top: 34px; }
  .bg-ref-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .bg-ref-footer__brand, .bg-ref-footer__newsletter { grid-column: 1 / -1; }
  .bg-ref-footer__bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 13px; }
}

@media (max-width: 480px) {
  :root { --bg-ref-gutter: 16px; }
  .bg-ref-section__header { grid-template-columns: 1fr auto; }
  .bg-ref-section__line { display: none; }
  .bg-ref-section__header h2 { white-space: normal; font-size: 20px; }
  .bg-ref-section__more { font-size: 9px; }
  .bg-ref-grid--4, .bg-ref-grid--2 { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .bg-ref-card h3 { font-size: 13px; }
  .bg-ref-feature { padding-block: 42px 46px; }
  .bg-ref-feature__stories { grid-template-columns: 1fr; gap: 30px; }
  .bg-ref-feature-card--lead { grid-column: auto; }
  .bg-ref-feature-card__media, .bg-ref-feature-card--lead .bg-ref-feature-card__media { aspect-ratio: 1.58 / 1; }
  .bg-ref-footer__grid { grid-template-columns: 1fr; }
  .bg-ref-footer__brand, .bg-ref-footer__newsletter { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
