/* ============================================================
   CARBN — Premium Automotive Magazine
   Design system with light/dark mode
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,700;9..144,900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   LIGHT THEME (default)
   ============================================================ */
:root {
  --ink: #0a0a0a;
  --ink-2: #141414;
  --ink-3: #1e1e1e;
  --bg: #f5f1ea;
  --bg-2: #e8e2d5;
  --bg-3: #ddd6c6;
  --surface: #ffffff;
  --line: #2a2a2a;
  --line-light: #d8d2c5;
  --accent: #d40000;
  --gold: #b08d4a;
  --muted: #8a8a8a;
  --text-on-dark: #f5f1ea;

  --display: 'Fraunces', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;

  --container: 1400px;
  --gutter: 2rem;
}

/* ============================================================
   DARK THEME
   ============================================================ */
[data-theme="dark"] {
  --ink: #f5f1ea;
  --ink-2: #e8e2d5;
  --ink-3: #c8c2b5;
  --bg: #0a0a0a;
  --bg-2: #141414;
  --bg-3: #1e1e1e;
  --surface: #1a1a1a;
  --line: #d8d2c5;
  --line-light: #2a2a2a;
  --accent: #ff3030;
  --gold: #d4aa5a;
  --muted: #6a6a6a;
  --text-on-dark: #f5f1ea;
}

/* ============================================================
   AUTO DARK IF SYSTEM PREFERS
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f5f1ea;
    --ink-2: #e8e2d5;
    --ink-3: #c8c2b5;
    --bg: #0a0a0a;
    --bg-2: #141414;
    --bg-3: #1e1e1e;
    --surface: #1a1a1a;
    --line: #d8d2c5;
    --line-light: #2a2a2a;
    --accent: #ff3030;
    --gold: #d4aa5a;
    --muted: #6a6a6a;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.25s, color 0.25s;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   TOPBAR (toujours noir même en light)
   ============================================================ */
.topbar {
  background: #0a0a0a;
  color: #f5f1ea;
  padding: 0.4rem 0;
  border-bottom: 1px solid #2a2a2a;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.topbar .ticker {
  display: flex;
  gap: 1.5rem;
  overflow: hidden;
  flex: 1;
}
.topbar .ticker span { color: #8a8a8a; white-space: nowrap; }
.topbar .ticker strong { color: #f5f1ea; margin-right: 0.4rem; }

/* ============================================================
   NAV
   ============================================================ */
header.nav {
  border-bottom: 1px solid var(--line-light);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.2rem var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.nav-left { display: flex; gap: 1.8rem; }
.nav-right { display: flex; gap: 0.8rem; justify-content: flex-end; align-items: center; }

.logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: -0.04em;
  text-align: center;
  line-height: 1;
  color: var(--ink);
}
.logo span { color: var(--accent); }
.logo .sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.3rem;
}

nav a {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
nav a:hover { border-bottom-color: var(--accent); }

.btn-icon, .ig-btn, .theme-btn {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-icon:hover, .ig-btn:hover, .theme-btn:hover {
  background: var(--ink);
  color: var(--bg);
}
.theme-btn {
  padding: 0.5rem 0.7rem;
  font-size: 0.95rem;
}

/* ============================================================
   HERO with SVG backgrounds (generated client-side from brand/model)
   ============================================================ */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem var(--gutter) 4rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.hero-main {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
}
.hero-main .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 45%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}
.hero-main .content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  color: #f5f1ea;
}
.hero-main .category {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--accent);
  color: #f5f1ea;
  padding: 0.35rem 0.8rem;
  margin-bottom: 1.5rem;
}
.hero-main h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
  max-width: 90%;
}
.hero-main h1 em {
  font-style: italic;
  font-weight: 300;
}
.hero-main .meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(245, 241, 234, 0.75);
  text-transform: uppercase;
}
.hero-main .meta .sep { margin: 0 0.6rem; color: var(--accent); }

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.hero-side article {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-light);
  cursor: pointer;
}
.hero-side article:last-child { border-bottom: none; padding-bottom: 0; }
.hero-side article .img-wrap {
  position: relative;
  overflow: hidden;
  min-height: 140px;
}
.hero-side article .img-wrap .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-side .category-small {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.hero-side h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.hero-side .meta-small {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem var(--gutter);
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}
.section-title h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
}
.section-title h2 em { font-style: italic; font-weight: 300; }
.section-title .counter {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s;
}
.card:hover { transform: translateY(-4px); }
.card .img-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 4/3;
  background: var(--ink-2);
}
.card .img-wrap .bg {
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
}
.card:hover .bg { transform: scale(1.04); }

.price-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg);
  color: var(--ink);
  padding: 0.4rem 0.8rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.card .category-small {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.card p {
  font-size: 0.92rem;
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: 0.8rem;
}
.card .meta-small {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: auto;
}

/* ============================================================
   VIDEOS SECTION
   ============================================================ */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.video-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--ink-2);
}
.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.video-card:hover img { transform: scale(1.03); }
.video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}
.video-card .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(245, 241, 234, 0.95);
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 2;
  transition: transform 0.2s;
}
.video-card:hover .play-icon { transform: translate(-50%, -50%) scale(1.1); background: var(--accent); color: #fff; }
.video-card .info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: #f5f1ea;
  z-index: 2;
}
.video-card .info .category-small {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.video-card .info h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.2;
}
.video-card .duration {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.75);
  color: #f5f1ea;
  padding: 0.25rem 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  z-index: 2;
}

/* Modal vidéo */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.video-modal.active { display: flex; }
.video-modal iframe {
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16/9;
  border: none;
}
.video-modal .close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: #0a0a0a;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ============================================================
   DOSSIER
   ============================================================ */
.dossier {
  background: var(--ink);
  color: var(--bg);
  padding: 6rem 0;
  margin: 4rem 0;
}
.dossier-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.dossier .label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: block;
}
.dossier h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-style: italic;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.dossier p {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: 1.2rem;
  max-width: 500px;
}
.dossier .btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 1rem 2.2rem;
  border: 1px solid var(--bg);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.3s;
}
.dossier .btn:hover { background: var(--bg); color: var(--ink); }
.dossier-img { aspect-ratio: 4/3; overflow: hidden; }
.dossier-img .bg { width: 100%; height: 100%; }

/* ============================================================
   CATEGORY STRIP
   ============================================================ */
.cat-strip {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.cat-strip a {
  padding: 1.8rem 1rem;
  text-align: center;
  border-right: 1px solid var(--line-light);
  transition: background 0.2s, color 0.2s;
  color: var(--ink);
}
.cat-strip a:last-child { border-right: none; }
.cat-strip a:hover { background: var(--ink); color: var(--bg); }
.cat-strip .num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.6rem;
}
.cat-strip a:hover .num { color: rgba(245,241,234,0.6); }
.cat-strip .name {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  background: var(--bg-2);
  padding: 5rem 0;
}
.newsletter-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.newsletter h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--ink);
}
.newsletter h2 em { font-style: italic; font-weight: 300; }
.newsletter p {
  color: var(--ink-3);
  margin-bottom: 2rem;
}
.newsletter form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}
.newsletter input {
  flex: 1;
  padding: 1rem 1.2rem;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  outline: none;
}
.newsletter button {
  padding: 1rem 2rem;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter button:hover { background: var(--accent); border-color: var(--accent); color: #f5f1ea; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #0a0a0a;
  color: #f5f1ea;
  padding: 4rem var(--gutter) 2rem;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #2a2a2a;
}
footer .logo { text-align: left; margin-bottom: 1.2rem; color: #f5f1ea; }
footer .about {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(245,241,234,0.7);
  max-width: 380px;
}
footer h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
footer ul { list-style: none; }
footer li { margin-bottom: 0.7rem; }
footer a {
  font-size: 0.9rem;
  color: rgba(245,241,234,0.75);
  transition: color 0.2s;
}
footer a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #6a6a6a;
  text-transform: uppercase;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem var(--gutter) 2rem;
}
.article-hero .breadcrumb {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}
.article-hero .breadcrumb a:hover { color: var(--accent); }
.article-hero .category {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--accent);
  color: #f5f1ea;
  padding: 0.35rem 0.8rem;
  margin-bottom: 1.5rem;
}
.article-hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  max-width: 1100px;
}
.article-hero h1 em { font-style: italic; font-weight: 300; }
.article-hero .dek {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--ink-3);
  max-width: 800px;
  margin-bottom: 2rem;
}
.article-hero .meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  padding-top: 2rem;
  border-top: 1px solid var(--line-light);
}
.article-hero .meta .sep { margin: 0 0.6rem; color: var(--accent); }

.article-img {
  max-width: var(--container);
  margin: 0 auto 3rem;
  padding: 0 var(--gutter);
}
.article-img .img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  max-height: 700px;
}
.article-img .bg { width: 100%; height: 100%; }
.article-img .caption {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  padding: 0.8rem 0;
  text-transform: uppercase;
}

.article-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 var(--gutter) 4rem;
  font-family: var(--display);
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.article-body p { margin-bottom: 1.5rem; }
.article-body p:first-of-type::first-letter {
  font-family: var(--display);
  font-weight: 700;
  font-size: 4.5rem;
  float: left;
  line-height: 0.9;
  margin: 0.2rem 0.6rem 0 0;
  color: var(--accent);
}
.article-body h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.15;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.article-body blockquote {
  font-style: italic;
  font-size: 1.8rem;
  line-height: 1.3;
  color: var(--ink);
  margin: 2.5rem 0;
  padding-left: 1.5rem;
  border-left: 4px solid var(--accent);
  font-weight: 300;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero-main { min-height: 450px; }
  .hero-side article { grid-template-columns: 1fr 2fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .videos-grid { grid-template-columns: 1fr; }
  .dossier-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .cat-strip { grid-template-columns: repeat(2, 1fr); }
  .cat-strip a:nth-child(2) { border-right: none; }
  .cat-strip a:nth-child(1), .cat-strip a:nth-child(2) { border-bottom: 1px solid var(--line-light); }
}

@media (max-width: 680px) {
  :root { --gutter: 1.2rem; }
  .topbar-inner { font-size: 0.65rem; gap: 1rem; }
  .topbar .ticker { display: none; }
  .nav-inner { grid-template-columns: auto 1fr; gap: 1rem; }
  .nav-left { display: none; }
  .nav-right .ig-btn { display: none; }
  .logo { font-size: 1.5rem; text-align: left; }
  .hero-main .content { padding: 1.5rem; }
  .hero-main h1 { font-size: 1.8rem; max-width: 100%; }
  .section { padding: 3rem 1.2rem; }
  .section-title { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .section-title h2 { font-size: 1.8rem; }
  .grid { grid-template-columns: 1fr; }
  .dossier { padding: 4rem 0; margin: 2rem 0; }
  .dossier h2 { font-size: 2rem; }
  .cat-strip { grid-template-columns: 1fr; }
  .cat-strip a { border-right: none; border-bottom: 1px solid var(--line-light); }
  .cat-strip a:last-child { border-bottom: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .newsletter form { flex-direction: column; }
  .newsletter input, .newsletter button { width: 100%; }
  .article-hero h1 { font-size: 2rem; }
  .article-hero .dek { font-size: 1.1rem; }
  .article-body { font-size: 1.05rem; }
  .article-body p:first-of-type::first-letter { font-size: 3.5rem; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-main .content > * { animation: fadeUp 0.8s ease both; }
.hero-main .category { animation-delay: 0.1s; }
.hero-main h1 { animation-delay: 0.2s; }
.hero-main .meta { animation-delay: 0.3s; }

.card { animation: fadeUp 0.6s ease both; }
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }

.loading-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--muted);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
