/* ═══════════════════════════════════════════════════════════
   THE DAILY BASTARD — Magazine-App Design System v2
   Auto dark/light · Mobile-first · App chrome
   ─────────────────────────────────────────────────────────── */

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

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Theme: LIGHT (default) ─── */
:root {
  --bg: #FAF6EE;
  --bg-soft: #F2EBDB;
  --surface: #FFFDF7;
  --surface-2: #F7F0DF;
  --ink: #0E0C0A;
  --ink-soft: #2B241E;
  --muted: #7A6F60;
  --hair: #E0D5BE;
  --hair-strong: #C4B79B;

  --ai: #4F4ED1;
  --marketing: #E04A87;
  --business: #2A7A4E;
  --fitness: #E63946;
  --market: #C89028;
  --sanne: #CB7585;

  --accent: #E04A18;
  --accent-glow: rgba(224, 74, 24, 0.12);

  --shadow-sm: 0 1px 2px rgba(14, 12, 10, 0.05);
  --shadow-md: 0 4px 16px rgba(14, 12, 10, 0.08);
  --shadow-lg: 0 20px 50px rgba(14, 12, 10, 0.12);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body: "Onest", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --page-max: 1100px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Theme: DARK (auto) ─── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D0B09;
    --bg-soft: #14100C;
    --surface: #17130E;
    --surface-2: #1F1A13;
    --ink: #F0E6D4;
    --ink-soft: #D4C9B4;
    --muted: #8F8471;
    --hair: #2A2318;
    --hair-strong: #3A3122;

    --ai: #7B7AE8;
    --marketing: #F77AA8;
    --business: #5FB07F;
    --fitness: #FF6B78;
    --market: #E5B04D;
    --sanne: #E89AA8;

    --accent: #FF6B3D;
    --accent-glow: rgba(255, 107, 61, 0.18);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);
  }
}

/* Manual override */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #FAF6EE; --bg-soft: #F2EBDB; --surface: #FFFDF7; --surface-2: #F7F0DF;
  --ink: #0E0C0A; --ink-soft: #2B241E; --muted: #7A6F60; --hair: #E0D5BE; --hair-strong: #C4B79B;
  --ai: #4F4ED1; --marketing: #E04A87; --business: #2A7A4E; --fitness: #E63946; --market: #C89028; --sanne: #CB7585;
  --accent: #E04A18; --accent-glow: rgba(224, 74, 24, 0.12);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0D0B09; --bg-soft: #14100C; --surface: #17130E; --surface-2: #1F1A13;
  --ink: #F0E6D4; --ink-soft: #D4C9B4; --muted: #8F8471; --hair: #2A2318; --hair-strong: #3A3122;
  --ai: #7B7AE8; --marketing: #F77AA8; --business: #5FB07F; --fitness: #FF6B78; --market: #E5B04D; --sanne: #E89AA8;
  --accent: #FF6B3D; --accent-glow: rgba(255, 107, 61, 0.18);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: light dark;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  padding-bottom: env(safe-area-inset-bottom);
}

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

/* ═══════════════════════════════════════════════════════════
   APP CHROME — Header + Bottom Nav (mobile)
   ─────────────────────────────────────────────────────────── */

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hair);
  padding: 14px var(--gutter);
  padding-top: calc(14px + env(safe-area-inset-top));
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 0;
}
.brand-dot {
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
}

.header-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.icon-btn:hover {
  background: var(--surface-2);
  border-color: var(--hair);
}
.icon-btn svg { width: 18px; height: 18px; }

.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--hair);
  padding: 10px var(--gutter);
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  display: none;
}
.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  max-width: 520px;
  margin: 0 auto;
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a.active { color: var(--accent); }
.bottom-nav a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .bottom-nav { display: block; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE — Cover + Feed
   ─────────────────────────────────────────────────────────── */

.cover {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 40px var(--gutter) 20px;
}

.cover-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.cover-meta .pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}
.cover-meta .pulse::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.masthead {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(52px, 12vw, 132px);
  line-height: 0.85;
  letter-spacing: -0.045em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 0;
  margin-bottom: 18px;
}
.masthead em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.45;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 32px;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}

/* Today's badge */
.today-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 36px;
}
.today-badge .dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

/* TL;DR pill-grid */
.highlights {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
}
.highlights-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.highlights-label::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--muted);
}
.highlights-pulse {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-md);
}
.highlights-pulse li {
  list-style: none;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.4;
}
.highlights-pulse .n {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

/* Feed */
.feed {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 20px var(--gutter) 80px;
}
.feed-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 20px;
}
.feed-title h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 0;
}
.feed-title h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.feed-title .count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Card */
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s var(--ease);
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--hair-strong);
}
.card:active { transform: translateY(-1px); }

.card-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
.card-cover svg {
  width: 100%;
  height: 100%;
  display: block;
}

.card-body {
  padding: 20px 22px 22px;
}

.card-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.card-cat::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.card[data-cat="ai"] .card-cat { color: var(--ai); background: color-mix(in srgb, var(--ai) 12%, transparent); }
.card[data-cat="marketing"] .card-cat { color: var(--marketing); background: color-mix(in srgb, var(--marketing) 12%, transparent); }
.card[data-cat="business"] .card-cat { color: var(--business); background: color-mix(in srgb, var(--business) 14%, transparent); }
.card[data-cat="fitness"] .card-cat { color: var(--fitness); background: color-mix(in srgb, var(--fitness) 12%, transparent); }
.card[data-cat="market"] .card-cat { color: var(--market); background: color-mix(in srgb, var(--market) 14%, transparent); }
.card[data-cat="sanne"] .card-cat { color: var(--sanne); background: color-mix(in srgb, var(--sanne) 16%, transparent); }

.card-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21px;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 10px;
  font-variation-settings: "opsz" 96, "SOFT" 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.card-dek {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--hair);
}
.card-meta .read-arrow { color: var(--accent); font-size: 16px; letter-spacing: 0; }

/* Hero card (first one, spans 2 cols on desktop) */
.card.hero {
  grid-column: span 2;
}
@media (max-width: 720px) {
  .card.hero { grid-column: span 1; }
}
.card.hero .card-cover { aspect-ratio: 21 / 10; }
.card.hero .card-headline {
  font-size: 30px;
  -webkit-line-clamp: 4;
}
.card.hero .card-dek { -webkit-line-clamp: 4; }

/* Weather — on homepage */
.weather-strip {
  max-width: var(--page-max);
  margin: 0 auto 40px;
  padding: 18px 22px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}
.weather-strip .loc {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 96, "SOFT" 0;
}
.weather-strip .loc small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
}
.weather-strip .data {
  display: flex;
  align-items: baseline;
  gap: 14px;
  justify-content: center;
}
.weather-strip .icon { font-size: 28px; line-height: 1; }
.weather-strip .temp {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 36px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.weather-strip .detail {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.weather-strip .note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13.5px;
  color: var(--muted);
  text-align: right;
  font-variation-settings: "opsz" 96, "SOFT" 80;
}
@media (max-width: 720px) {
  .weather-strip { grid-template-columns: 1fr; gap: 12px; text-align: left; }
  .weather-strip .data { justify-content: flex-start; }
  .weather-strip .note { text-align: left; }
}

/* ═══════════════════════════════════════════════════════════
   ARTICLE SECTIONS (same page, below feed)
   ─────────────────────────────────────────────────────────── */

.article-section {
  padding: 60px var(--gutter);
  scroll-margin-top: 80px;
  border-top: 1px solid var(--hair);
  background: var(--bg);
}
.article-section:nth-child(even) {
  background: var(--bg-soft);
}
.article-inner {
  max-width: 680px;
  margin: 0 auto;
}

.article-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-md);
}
.article-cover svg { width: 100%; height: 100%; display: block; }

.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.article-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.article-section[data-cat="ai"] .article-tag { color: var(--ai); background: color-mix(in srgb, var(--ai) 12%, transparent); }
.article-section[data-cat="marketing"] .article-tag { color: var(--marketing); background: color-mix(in srgb, var(--marketing) 12%, transparent); }
.article-section[data-cat="business"] .article-tag { color: var(--business); background: color-mix(in srgb, var(--business) 14%, transparent); }
.article-section[data-cat="fitness"] .article-tag { color: var(--fitness); background: color-mix(in srgb, var(--fitness) 12%, transparent); }
.article-section[data-cat="market"] .article-tag { color: var(--market); background: color-mix(in srgb, var(--market) 14%, transparent); }
.article-section[data-cat="sanne"] .article-tag { color: var(--sanne); background: color-mix(in srgb, var(--sanne) 16%, transparent); }

.article-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin-bottom: 18px;
  font-variation-settings: "opsz" 144, "SOFT" 0;
}
.article-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.article-dek {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: var(--muted);
  margin-bottom: 28px;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}

.article-meta {
  display: flex;
  gap: 14px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-body p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 18px;
  color: var(--ink-soft);
}

.pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.22;
  color: var(--ink);
  padding: 28px 0;
  margin: 28px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--hair);
  text-align: center;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* For you / "action" boxes */
.for-you {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.55;
  border-left: 4px solid var(--accent);
}
.for-you .tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.action-card {
  background: var(--ink);
  color: var(--bg);
  padding: 26px 28px;
  border-radius: var(--radius-md);
  margin: 28px 0;
  position: relative;
}
.action-card .label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.action-card .label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--accent) 30%, transparent);
}
.action-card p { font-size: 14.5px; line-height: 1.6; margin-bottom: 12px; color: var(--bg); }
.action-card ul { padding-left: 20px; margin: 8px 0; }
.action-card li { margin: 8px 0; font-size: 14px; line-height: 1.55; color: var(--bg); }
.action-card strong { color: var(--accent); }
.action-card pre {
  background: color-mix(in srgb, var(--bg) 8%, transparent);
  border-left: 3px solid var(--accent);
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--bg) 92%, transparent);
  white-space: pre-wrap;
  overflow-x: auto;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 12px 0;
}
.action-card .sub {
  font-size: 12.5px;
  font-style: italic;
  opacity: 0.65;
  margin-top: 10px;
}

/* Clipping (for carousel slides) */
.clipping {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin: 18px 0;
}
.clipping .clip-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.clipping .slide {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--hair);
  font-size: 14.5px;
  line-height: 1.5;
}
.clipping .slide:last-child { border-bottom: none; }
.clipping .slide-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 20px;
  color: var(--accent);
  line-height: 1;
}
.clipping-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  font-variation-settings: "opsz" 96, "SOFT" 60;
}

/* Source */
.source {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 16px 0;
  margin-top: 20px;
  border-top: 1px solid var(--hair);
}
.source a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.source a:hover { color: var(--accent); }

.mini {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 18px 0 0;
  margin-top: 18px;
  border-top: 1px dashed var(--hair);
  align-items: start;
}
.mini .glyph {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 30px;
  color: var(--hair-strong);
  line-height: 0.9;
}
.mini .mini-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.mini p { font-size: 14px; line-height: 1.5; }

/* Market table */
.market-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.market-table thead th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 10px 0;
  border-bottom: 2px solid var(--ink);
}
.market-table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}
.market-table .asset {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 96;
}
.market-table .price {
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
  padding-right: 18px;
}
.market-table .change { font-family: var(--font-mono); font-weight: 700; font-size: 13px; text-align: right; }
.up { color: var(--business); }
.down { color: var(--fitness); }
.market-table .reason {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13.5px;
  color: var(--muted);
  padding-top: 4px;
  font-variation-settings: "opsz" 96;
}

/* Lesson */
.lesson {
  background: var(--surface);
  border: 2px solid var(--market);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  margin: 28px 0;
  position: relative;
}
.lesson::before {
  content: "LES VAN DE DAG";
  position: absolute;
  top: -10px;
  left: 22px;
  background: var(--bg);
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--market);
  text-transform: uppercase;
}
.lesson h4 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  margin: 2px 0 14px;
  letter-spacing: -0.02em;
}
.lesson p { font-size: 14.5px; line-height: 1.65; margin-bottom: 10px; }
.lesson .reflect {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14.5px;
  color: var(--muted);
  border-top: 1px dashed var(--hair);
  padding-top: 14px;
  margin-top: 14px;
  font-variation-settings: "opsz" 96, "SOFT" 80;
}

.agenda-header {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  margin: 30px 0 10px;
}
.agenda { list-style: none; padding: 0; }
.agenda li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 14.5px;
}
.agenda .when {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
}
.agenda .what {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  font-variation-settings: "opsz" 96;
}
@media (max-width: 520px) { .agenda li { grid-template-columns: 1fr; gap: 2px; } }

/* Sanne section — special */
.article-section[data-cat="sanne"] {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--sanne) 12%, var(--bg)) 0%,
    color-mix(in srgb, var(--sanne) 4%, var(--bg)) 100%);
}

.countdown-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--sanne) 40%, var(--hair));
  border-radius: var(--radius-lg);
  margin: 20px 0 28px;
}
.countdown-days {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(90px, 18vw, 140px);
  line-height: 0.85;
  color: var(--sanne);
  letter-spacing: -0.05em;
  margin-bottom: 8px;
}
.countdown-event {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown-event strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 10px;
  text-transform: none;
  font-variation-settings: "opsz" 96, "SOFT" 80;
}

.sanne-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0 24px;
}
@media (max-width: 640px) { .sanne-cards { grid-template-columns: 1fr; } }
.sanne-card-box {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--sanne) 30%, var(--hair));
  border-radius: var(--radius-md);
  padding: 22px 20px;
}
.sanne-card-box .euro {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}
.sanne-card-box h4 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  color: var(--sanne);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.sanne-card-box ul { padding-left: 18px; font-size: 14px; line-height: 1.55; }
.sanne-card-box li { margin: 6px 0; }
.sanne-card-box li strong { color: var(--ink); }

.sanne-tip {
  padding: 16px 22px;
  background: color-mix(in srgb, var(--sanne) 8%, var(--bg));
  border-left: 3px solid var(--sanne);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 96;
}
.sanne-tip strong { font-style: normal; color: var(--ink); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ─────────────────────────────────────────────────────────── */
.site-footer {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 40px var(--gutter) 60px;
  border-top: 1px solid var(--hair);
  text-align: center;
}
.site-footer .signoff {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 12px;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.site-footer .meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════
   ARCHIVE
   ─────────────────────────────────────────────────────────── */
.archive-section {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 40px var(--gutter) 60px;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.archive-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  min-height: 160px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-md);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.archive-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.archive-card .date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.archive-card .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 34px;
  letter-spacing: -0.02em;
  margin-top: auto;
}
.archive-card.upcoming { opacity: 0.5; cursor: default; }
.archive-card.upcoming:hover { transform: none; border-color: var(--hair); box-shadow: none; }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ─────────────────────────────────────────────────────────── */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  animation: reveal-up 0.8s var(--ease) forwards;
}
.reveal[data-delay="1"] { animation-delay: 0.06s; }
.reveal[data-delay="2"] { animation-delay: 0.12s; }
.reveal[data-delay="3"] { animation-delay: 0.18s; }
.reveal[data-delay="4"] { animation-delay: 0.24s; }
.reveal[data-delay="5"] { animation-delay: 0.30s; }
.reveal[data-delay="6"] { animation-delay: 0.36s; }

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--accent);
  width: 0;
  z-index: 100;
  transition: width 0.15s linear;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
