/*
Theme Name: B-Empire Magazine
Theme URI: https://b-empiremagazine.com
Author: B-Empire
Author URI: https://b-empiremagazine.com
Description: Magazine digital premium bilingue FR/EN. Design éditorial international — Culture without borders.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: b-empire-magazine
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --white: #FFFFFF;
  --ink: #0D0D0D;
  --gold: #C9A84C;
  --paper: #F7F5F2;
  --hairline: #E8E0D0;
  --grey-60: #666666;
  --grey-40: #999999;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-secondary: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1240px;
  --article-width: 800px;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color .3s ease; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  clip: rect(1px,1px,1px,1px); overflow: hidden;
}

/* Label / tag utility — Inter uppercase 4px spacing */
.be-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
}

/* =========================================================
   TOP BAR
   ========================================================= */
.be-topbar {
  background: var(--ink);
  height: 36px;
  display: flex;
  align-items: center;
}
.be-topbar .container {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
}
.be-topbar__date {
  font-size: 10px; color: var(--white); text-transform: uppercase; letter-spacing: 2px;
}
.be-topbar__social { display: flex; gap: 16px; align-items: center; }
.be-topbar__social a { color: var(--white); display: flex; }
.be-topbar__social a:hover { color: var(--gold); }
.be-topbar__social svg { width: 14px; height: 14px; fill: currentColor; }

/* =========================================================
   HEADER
   ========================================================= */
.be-header { background: var(--white); }

.be-header__masthead {
  position: relative;
  text-align: center;
  padding: 34px 24px 26px;
}
.be-header__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 1px;
}
.be-header__logo a { color: var(--ink); }
.be-header__tagline {
  margin-top: 10px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--gold);
}

.be-header__search {
  position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
  color: var(--ink); display: flex; padding: 8px;
}
.be-header__search:hover { color: var(--gold); }
.be-header__search svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

.be-header__newsletter-btn {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  background: var(--ink); color: var(--white);
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  padding: 10px 20px;
  transition: background .3s ease;
}
.be-header__newsletter-btn:hover { background: var(--gold); color: var(--ink); }

/* Navigation */
.be-nav {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.be-nav ul {
  list-style: none;
  display: flex; justify-content: center; align-items: center;
  gap: 40px;
  height: 52px;
}
.be-nav a {
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--ink);
  padding: 6px 0;
}
.be-nav a:hover { color: var(--gold); }
.be-nav .current-menu-item a,
.be-nav .current_page_item a,
.be-nav .active a {
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
}

/* Breaking ticker */
.be-ticker {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
}
.be-ticker__track {
  display: flex;
  white-space: nowrap;
  animation: be-ticker-scroll 45s linear infinite;
}
.be-ticker__track:hover { animation-play-state: paused; }
.be-ticker__item {
  font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--white);
  padding: 0 18px;
  display: inline-flex; align-items: center;
}
.be-ticker__item::after {
  content: '\25C6';
  color: var(--gold);
  font-size: 8px;
  margin-left: 36px;
}
.be-ticker__item:hover { color: var(--gold); }
@keyframes be-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Search overlay */
.be-search-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(255,255,255,.98);
  display: none;
  align-items: center; justify-content: center;
}
.be-search-overlay.is-open { display: flex; }
.be-search-overlay form { width: min(680px, 88vw); position: relative; }
.be-search-overlay input[type="search"] {
  width: 100%;
  font-family: var(--font-display);
  font-size: 42px;
  border: none;
  border-bottom: 2px solid var(--ink);
  padding: 12px 0;
  background: transparent;
  outline: none;
  color: var(--ink);
}
.be-search-overlay__close {
  position: absolute; top: 32px; right: 32px;
  font-size: 32px; line-height: 1; color: var(--ink);
}
.be-search-overlay__close:hover { color: var(--gold); }

/* =========================================================
   HERO — FULLSCREEN MAGAZINE
   ========================================================= */
.be-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  background: var(--ink);
  overflow: hidden;
}
.be-hero__image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.be-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(13,13,13,.65) 100%);
}
.be-hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 72px;
}
.be-hero__main { max-width: 720px; }
.be-hero__tag {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 18px;
}
.be-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 72px;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 18px;
}
.be-hero__title a { color: var(--white); }
.be-hero__excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.be-hero__meta {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  margin-bottom: 28px;
}
.be-hero__cta {
  display: inline-block;
  border: 1px solid var(--white);
  color: var(--white);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 3px;
  padding: 14px 32px;
  transition: all .3s ease;
}
.be-hero__cta:hover { background: var(--white); color: var(--ink); }

.be-hero__side {
  flex: 0 0 300px;
  display: none;
}
.be-hero__side-item {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.3);
}
.be-hero__side-item:first-child { border-top: none; }
.be-hero__side-item .be-hero__tag { margin-bottom: 8px; font-size: 9px; }
.be-hero__side-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  color: var(--white);
}
.be-hero__side-item h3 a { color: var(--white); }
.be-hero__side-item h3 a:hover { color: var(--gold); }

/* =========================================================
   NEWSLETTER — ABOVE FOLD
   ========================================================= */
.be-newsletter {
  background: var(--ink);
  padding: 60px 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s ease, transform .8s ease;
}
.be-newsletter.is-visible { opacity: 1; transform: none; }
.be-newsletter__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 42px;
  color: var(--white);
  margin-bottom: 12px;
}
.be-newsletter__subtitle {
  font-size: 13px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 32px;
}
.be-newsletter__form {
  display: flex; justify-content: center; gap: 0;
  max-width: 520px; margin: 0 auto;
}
.be-newsletter__form input[type="email"] {
  flex: 1;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 15px 20px;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: var(--white);
  outline: none;
}
.be-newsletter__form input[type="email"]::placeholder { color: rgba(255,255,255,.5); }
.be-newsletter__form button {
  background: var(--gold);
  color: var(--ink);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  padding: 15px 32px;
  transition: background .3s ease;
}
.be-newsletter__form button:hover { background: var(--white); }
.be-newsletter__msg { margin-top: 16px; font-size: 13px; color: var(--gold); }

/* =========================================================
   HOMEPAGE SECTIONS
   ========================================================= */
.be-section { padding: 0 0 96px; }
.be-section:first-of-type { padding-top: 96px; }
.be-section--paper {
  background: var(--paper);
  padding-top: 72px;
  padding-bottom: 72px;
  margin-bottom: 96px;
}

.be-section__header {
  display: flex; align-items: baseline; justify-content: space-between;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin-bottom: 40px;
}
.be-section__kicker {
  display: block;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 6px;
}
.be-section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  color: var(--ink);
  line-height: 1.1;
}
.be-section__more {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--gold);
  white-space: nowrap;
}
.be-section__more:hover { color: var(--ink); }

/* Grids */
.be-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.be-grid-featured {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}
.be-grid-featured__side { display: flex; flex-direction: column; gap: 32px; }

/* Style section — 1 large horizontal + 3 small */
.be-grid-style { display: grid; gap: 40px; }
.be-grid-style__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

/* =========================================================
   ARTICLE CARDS
   ========================================================= */
.be-card { background: var(--white); position: relative; }
.be-section--paper .be-card { background: transparent; }

.be-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--paper);
}
.be-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.be-card:hover .be-card__media img { transform: scale(1.04); }

.be-card__tag {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 10px;
}
.be-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 10px;
}
.be-card__title a { color: var(--ink); }
.be-card__title a:hover { color: var(--gold); }
.be-card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey-60);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.be-card__meta {
  font-size: 11px;
  color: var(--grey-40);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}
.be-card__meta .sep { color: var(--gold); font-size: 8px; margin: 0 8px; vertical-align: 1px; }

.be-card__fav {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  transition: color .3s ease;
}
.be-card__fav:hover, .be-card__fav.is-saved { color: var(--gold); }
.be-card__fav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.be-card__fav.is-saved svg { fill: currentColor; }

/* Large card variants */
.be-card--lead .be-card__title { font-size: 34px; }
.be-card--horizontal {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
}
.be-card--horizontal .be-card__media { margin-bottom: 0; }
.be-card--horizontal .be-card__title { font-size: 32px; }

/* =========================================================
   ARTICLE PAGE
   ========================================================= */
.be-article { max-width: var(--article-width); margin: 0 auto; padding: 56px 24px 80px; }

.be-breadcrumb {
  font-size: 11px;
  color: var(--grey-40);
  margin-bottom: 28px;
}
.be-breadcrumb a { color: var(--grey-40); }
.be-breadcrumb a:hover { color: var(--gold); }
.be-breadcrumb .sep { margin: 0 8px; }

.be-article__tag {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 16px;
}
.be-article__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 58px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 22px;
}
.be-article__excerpt {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.6;
  color: #444444;
  margin-bottom: 32px;
}
.be-article__rule { border: none; border-top: 1px solid var(--hairline); margin-bottom: 24px; }

.be-author {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 36px;
}
.be-author__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.be-author__avatar img { width: 100%; height: 100%; object-fit: cover; }
.be-author__name { font-size: 14px; font-weight: 600; color: var(--ink); }
.be-author__role, .be-author__date { font-size: 12px; color: var(--grey-40); }

.be-article__featured { margin: 0 0 40px; }
.be-article__featured img { width: 100%; }
.be-article__featured figcaption,
.be-article__body figcaption {
  font-style: italic;
  font-size: 12px;
  color: var(--grey-40);
  text-align: center;
  margin-top: 10px;
}

/* Article body */
.be-article__body { font-size: 17px; line-height: 1.9; color: var(--ink); }
.be-article__body > * + * { margin-top: 1.6em; }
.be-article__body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.25;
  margin-top: 2em;
}
.be-article__body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  margin-top: 1.8em;
}
.be-article__body a { color: var(--gold); }
.be-article__body a:hover { text-decoration: underline; }
.be-article__body blockquote {
  border-left: 3px solid var(--gold);
  background: var(--paper);
  padding: 28px 32px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  line-height: 1.5;
}
.be-article__body blockquote p { margin: 0; }
.be-article__body img { width: 100%; }
.be-article__body hr {
  border: none;
  text-align: center;
  margin: 3em 0;
}
.be-article__body hr::after {
  content: '\25C6';
  color: var(--gold);
  font-size: 11px;
  display: block;
  text-align: center;
}
.be-article__body ul, .be-article__body ol { padding-left: 1.4em; }

/* Article footer */
.be-article__footer { margin-top: 56px; }
.be-article__tags { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 28px; }
.be-article__tags a {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--gold);
}
.be-article__tags a:hover { color: var(--ink); }

.be-share {
  display: flex; align-items: center; gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.be-share__label { font-size: 10px; text-transform: uppercase; letter-spacing: 3px; color: var(--grey-40); }
.be-share a, .be-share button { color: var(--ink); display: flex; }
.be-share a:hover, .be-share button:hover { color: var(--gold); }
.be-share svg { width: 18px; height: 18px; fill: currentColor; }

.be-related { max-width: var(--container); margin: 0 auto; padding: 0 24px 96px; }
.be-related__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin-bottom: 40px;
}

/* =========================================================
   ARCHIVE / SEARCH / LISTING
   ========================================================= */
.be-archive { padding: 64px 0 96px; }
.be-archive__header { margin-bottom: 48px; border-left: 3px solid var(--gold); padding-left: 20px; }
.be-archive__title { font-family: var(--font-display); font-weight: 700; font-size: 44px; color: var(--ink); }
.be-archive__desc { font-size: 14px; color: var(--grey-60); margin-top: 8px; max-width: 640px; }

.be-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 64px; }
.be-pagination a, .be-pagination span {
  font-size: 12px; letter-spacing: 2px;
  padding: 10px 16px;
  border: 1px solid var(--hairline);
  color: var(--ink);
}
.be-pagination a:hover { border-color: var(--gold); color: var(--gold); }
.be-pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* =========================================================
   FOOTER
   ========================================================= */
.be-footer { background: var(--ink); color: var(--white); padding: 72px 0 0; }
.be-footer__top { text-align: center; margin-bottom: 56px; }
.be-footer__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  color: var(--white);
}
.be-footer__tagline {
  margin-top: 10px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--gold);
}
.be-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 64px;
}
.be-footer__col h4 {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 20px;
}
.be-footer__col ul { list-style: none; }
.be-footer__col li { margin-bottom: 12px; }
.be-footer__col a, .be-footer__col p {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
}
.be-footer__col a:hover { color: var(--gold); }
.be-footer__social { display: flex; gap: 16px; margin-top: 20px; }
.be-footer__social a { color: var(--white); }
.be-footer__social a:hover { color: var(--gold); }
.be-footer__social svg { width: 16px; height: 16px; fill: currentColor; }

.be-footer__newsletter input[type="email"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 13px;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  outline: none;
  margin-bottom: 10px;
}
.be-footer__newsletter button {
  width: 100%;
  background: var(--gold);
  color: var(--ink);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  padding: 12px;
}
.be-footer__newsletter button:hover { background: var(--white); }

.be-footer__bottom {
  background: #080808;
  padding: 20px 0;
}
.be-footer__bottom .container {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 11px;
  color: #666666;
}
.be-footer__bottom a { color: #666666; margin-left: 20px; }
.be-footer__bottom a:hover { color: var(--gold); }

/* =========================================================
   MOBILE BOTTOM NAVIGATION
   ========================================================= */
.be-bottomnav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1500;
  height: 56px;
  background: var(--white);
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}
.be-bottomnav a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  color: var(--ink);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.be-bottomnav a.is-active { color: var(--gold); }
.be-bottomnav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* =========================================================
   PWA INSTALL BANNER
   ========================================================= */
.be-install {
  position: fixed;
  left: 16px; right: 16px; bottom: 72px;
  z-index: 1800;
  background: var(--ink);
  color: var(--white);
  padding: 18px 20px;
  display: none;
  align-items: center;
  gap: 16px;
  animation: be-fade-up .4s ease;
}
.be-install.is-open { display: flex; }
.be-install__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
  flex-shrink: 0;
}
.be-install__text { font-size: 13px; line-height: 1.5; flex: 1; }
.be-install__actions { display: flex; flex-direction: column; gap: 8px; }
.be-install__yes {
  background: var(--gold); color: var(--ink);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  padding: 10px 18px;
}
.be-install__later {
  color: rgba(255,255,255,.6);
  font-size: 10px; text-transform: uppercase; letter-spacing: 2px;
}
@media (min-width: 768px) {
  .be-install { left: auto; right: 32px; bottom: 32px; max-width: 420px; }
}

/* =========================================================
   NOTIFICATION PERMISSION POPUP
   ========================================================= */
.be-notify {
  position: fixed; inset: 0;
  z-index: 2100;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(13,13,13,.4);
  padding: 24px;
}
.be-notify.is-open { display: flex; }
.be-notify__card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  max-width: 420px;
  width: 100%;
  padding: 36px 32px;
  text-align: center;
  animation: be-fade-up .3s ease;
}
.be-notify__icon {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  color: var(--ink);
  margin-bottom: 16px;
}
.be-notify__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 10px;
}
.be-notify__text { font-size: 14px; line-height: 1.7; color: var(--grey-60); margin-bottom: 28px; }
.be-notify__yes {
  display: block; width: 100%;
  background: var(--gold); color: var(--ink);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  padding: 14px;
  margin-bottom: 12px;
}
.be-notify__no { color: var(--grey-40); font-size: 12px; }

/* =========================================================
   OFFLINE TOAST
   ========================================================= */
.be-offline {
  position: fixed;
  left: 50%; bottom: 80px;
  transform: translateX(-50%);
  z-index: 1900;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  padding: 14px 24px;
  display: none;
  white-space: nowrap;
}
.be-offline.is-open { display: block; }

/* =========================================================
   FAVORITES PAGE
   ========================================================= */
.be-favorites { padding: 64px 0 96px; }
.be-favorites__empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--grey-60);
  font-size: 15px;
}
.be-favorites__empty .be-notify__icon { margin-bottom: 8px; }

/* =========================================================
   ANIMATIONS / UTILITIES
   ========================================================= */
@keyframes be-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.be-reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.be-reveal.is-visible { opacity: 1; transform: none; }

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

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 1024px) {
  .be-hero__side { display: block; }
}

@media (max-width: 1023px) {
  .be-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .be-grid-featured { grid-template-columns: 1fr; }
  .be-grid-style__row { grid-template-columns: repeat(2, 1fr); }
  .be-card--horizontal { grid-template-columns: 1fr; gap: 0; }
  .be-card--horizontal .be-card__media { margin-bottom: 18px; }
  .be-footer__cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  body { font-size: 16px; padding-bottom: 56px; }

  .be-topbar__date { letter-spacing: 1px; }

  .be-header__masthead { padding: 24px 60px 18px; }
  .be-header__logo { font-size: 32px; }
  .be-header__tagline { letter-spacing: 3px; font-size: 8px; }
  .be-header__newsletter-btn { display: none; }
  .be-header__search { left: 12px; }

  .be-nav ul {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 20px;
    gap: 28px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .be-nav ul::-webkit-scrollbar { display: none; }
  .be-nav a { white-space: nowrap; }

  .be-hero { height: 70vh; min-height: 480px; }
  .be-hero__inner { padding-bottom: 44px; }
  .be-hero__title { font-size: 36px; }
  .be-hero__excerpt { font-size: 14px; }

  .be-newsletter { padding: 48px 20px; }
  .be-newsletter__title { font-size: 32px; }
  .be-newsletter__form { flex-direction: column; gap: 12px; }
  .be-newsletter__form button { width: 100%; }

  .be-section { padding-bottom: 64px; }
  .be-section:first-of-type { padding-top: 64px; }
  .be-section--paper { padding-top: 48px; padding-bottom: 48px; margin-bottom: 64px; }
  .be-grid-3, .be-grid-style__row { grid-template-columns: 1fr; }
  .be-section__title { font-size: 26px; }
  .be-card--lead .be-card__title { font-size: 26px; }

  .be-article { padding: 36px 20px 56px; }
  .be-article__title { font-size: 32px; }
  .be-article__excerpt { font-size: 19px; }
  .be-article__body { font-size: 16px; }
  .be-article__body h2 { font-size: 26px; }
  .be-article__body h3 { font-size: 21px; }
  .be-article__body blockquote { font-size: 20px; padding: 22px 24px; }

  .be-archive__title { font-size: 32px; }

  .be-footer__cols { grid-template-columns: 1fr; gap: 36px; }
  .be-footer__bottom .container { justify-content: center; text-align: center; }

  .be-bottomnav { display: flex; }
}
