/* ============================================================
   style.css — Main stylesheet for mp.brandbywit.com
   Neobrutalism design system
   ============================================================ */

/* ── Custom Properties ──────────────────────────────────────── */
:root {
  --primary:    #F4A20A;
  --primary-dark: #d4880a;
  --black:      #0D0D0D;
  --white:      #FAFAFA;
  --grey-100:   #f5f5f5;
  --grey-200:   #e8e8e8;
  --grey-400:   #999;
  --grey-600:   #555;
  --red:        #e53e3e;
  --green:      #38a169;

  /* Neobrutalism tokens */
  --border:     3px solid #0D0D0D;
  --shadow:     4px 4px 0px #0D0D0D;
  --shadow-lg:  6px 6px 0px #0D0D0D;
  --shadow-hover: 2px 2px 0px #0D0D0D;
  --radius:     0px;

  /* Theme (light) */
  --bg:         #FAFAFA;
  --surface:    #FFFFFF;
  --text:       #0D0D0D;
  --text-muted: #555;
  --card-bg:    #FFFFFF;
  --nav-bg:     #FAFAFA;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Nav */
  --nav-height: 64px;
}

/* Dark theme */
html.dark {
  --bg:         #0D0D0D;
  --surface:    #111111;
  --text:       #FAFAFA;
  --text-muted: #aaa;
  --card-bg:    #1a1a1a;
  --nav-bg:     #0D0D0D;
  --border:     3px solid #FAFAFA;
  --shadow:     4px 4px 0px #FAFAFA;
  --shadow-lg:  6px 6px 0px #FAFAFA;
  --shadow-hover: 2px 2px 0px #FAFAFA;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Layout Utilities ───────────────────────────────────────── */
.container {
  width: min(var(--container-max), 100%);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.section {
  padding-block: var(--space-3xl);
}

/* ── Card Component (Neobrutalism core) ─────────────────────── */
.card {
  background: var(--card-bg);
  border: var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translate(2px, 2px);
}

/* Static cards (no hover effect) */
.card--static:hover {
  box-shadow: var(--shadow);
  transform: none;
}

/* ── Button System ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-sans);
  border: var(--border);
  box-shadow: var(--shadow);
  background: var(--white);
  color: var(--black);
  transition: box-shadow 0.12s, transform 0.12s;
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
}

.btn:hover {
  box-shadow: var(--shadow-hover);
  transform: translate(2px, 2px);
}

.btn:active {
  box-shadow: none;
  transform: translate(4px, 4px);
}

.btn--primary {
  background: var(--primary);
  color: var(--black);
}

.btn--outline {
  background: transparent;
  color: var(--text);
}

html.dark .btn--outline {
  border-color: var(--white);
  color: var(--white);
}

.btn--danger {
  background: var(--red);
  color: #fff;
  border-color: var(--black);
}

.btn--warning {
  background: #f6ad55;
  color: var(--black);
}

.btn--sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn--xs { padding: 0.25rem 0.6rem; font-size: 0.75rem; }
.btn--full { width: 100%; justify-content: center; }

.btn--share {
  background: var(--grey-100);
  font-size: 0.8rem;
}

html.dark .btn--share {
  background: #2a2a2a;
  color: var(--white);
}

/* ── Badge ──────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid var(--black);
  background: var(--primary);
  color: var(--black);
}

html.dark .badge {
  border-color: var(--white);
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: var(--border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.2rem;
  font-weight: 900;
  font-family: var(--font-serif);
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.nav__logo-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  border: var(--border);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 900;
  transition: box-shadow 0.12s, transform 0.12s;
}

.nav__logo:hover .nav__logo-accent {
  box-shadow: var(--shadow-hover);
  transform: translate(2px, 2px);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-left: auto;
}

.nav__link {
  position: relative;
  padding: 0.3rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
}

.nav__link-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav__link:hover .nav__link-underline,
.nav__link--active .nav__link-underline {
  width: 100%;
}

.nav__link--active {
  color: var(--primary);
}

.nav__theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: var(--border);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  transition: box-shadow 0.12s, transform 0.12s;
  flex-shrink: 0;
}

.nav__theme-toggle:hover {
  box-shadow: var(--shadow-hover);
  transform: translate(2px, 2px);
}

.nav__theme-toggle .icon {
  width: 18px;
  height: 18px;
  color: var(--text);
}

html.light .icon--moon { display: none; }
html.dark  .icon--sun  { display: none; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.2s;
}

/* ── Section Header ─────────────────────────────────────────── */
.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  gap: var(--space-md);
  flex-wrap: wrap;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.1;
}

.section__title-accent {
  color: var(--primary);
}

/* ── Page Hero ──────────────────────────────────────────────── */
.page-hero {
  padding-block: var(--space-2xl) var(--space-xl);
  border-bottom: var(--border);
  margin-bottom: var(--space-2xl);
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: var(--space-sm);
}

.page-hero__title .accent { color: var(--primary); }

.page-hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* ── Filter Pills ───────────────────────────────────────────── */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.filter-pill {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid var(--text);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.12s;
  text-decoration: none;
  display: inline-block;
}

.filter-pill:hover,
.filter-pill--active {
  background: var(--primary);
  border-color: var(--black);
  color: var(--black);
  box-shadow: 2px 2px 0 var(--black);
}

html.dark .filter-pill { border-color: var(--white); color: var(--white); }
html.dark .filter-pill:hover,
html.dark .filter-pill--active { border-color: var(--white); color: var(--black); }

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.filter-tags__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.filter-tag {
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 2px solid var(--grey-400);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.12s;
  display: inline-block;
}

.filter-tag:hover,
.filter-tag--active {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tag--clear {
  border-color: var(--red);
  color: var(--red);
}

.filter-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.filter-bar { margin-bottom: var(--space-md); }

/* ── Reels Strip ────────────────────────────────────────────── */
.reels-strip-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-block: var(--space-sm);
  padding-inline: var(--space-lg);
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--grey-200);
}

.reels-strip-wrapper::-webkit-scrollbar { height: 6px; }
.reels-strip-wrapper::-webkit-scrollbar-track { background: var(--grey-200); }
.reels-strip-wrapper::-webkit-scrollbar-thumb { background: var(--primary); }

.reels-strip {
  display: flex;
  gap: var(--space-md);
  width: max-content;
  padding-bottom: var(--space-sm);
}

.reel-card {
  width: 240px;
  flex-shrink: 0;
  cursor: pointer;
  transition: box-shadow 0.12s, transform 0.12s;
}

.reel-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translate(2px, 2px);
}

.reel-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.reel-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.reel-card:hover .reel-card__thumb img { transform: scale(1.05); }

.reel-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,13,13,0.4);
  border: none;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}

.reel-card__play svg { width: 40px; height: 40px; }
.reel-card:hover .reel-card__play { opacity: 1; }

.reel-card__body {
  padding: var(--space-sm);
}

.reel-card__title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ── Videos Grid ────────────────────────────────────────────── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.video-card {
  cursor: pointer;
}

.video-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-card:hover .video-card__thumb img { transform: scale(1.05); }

.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,13,13,0.5);
  border: none;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}

.video-card__play svg { width: 48px; height: 48px; }
.video-card:hover .video-card__play { opacity: 1; }

.video-card__body {
  padding: var(--space-md);
}

.video-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.video-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.video-card__date { font-size: 0.8rem; color: var(--text-muted); }

/* ── YouTube Modal ──────────────────────────────────────────── */
.yt-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.yt-modal[aria-hidden="false"] { display: flex; }

.yt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13,13,13,0.85);
  cursor: pointer;
}

.yt-modal__content {
  position: relative;
  z-index: 1;
  width: min(860px, 95vw);
}

.yt-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  background: var(--primary);
  border: var(--border);
  color: var(--black);
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}

.yt-modal__close:hover { box-shadow: var(--shadow); }

.yt-modal__embed {
  aspect-ratio: 16/9;
  border: var(--border);
  box-shadow: var(--shadow-lg);
  background: #000;
}

.yt-modal__embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.yt-embed-wrapper {
  aspect-ratio: 16/9;
}

.yt-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Article Cards ──────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.articles-grid--3 { grid-template-columns: repeat(3, 1fr); }

.article-card {
  display: flex;
  flex-direction: column;
}

.article-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
}

.article-card--featured .article-card__image {
  aspect-ratio: 16/9;
}

.article-card__image-link { display: block; }

.article-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-bottom: var(--border);
}

.article-card--featured .article-card__image {
  border-bottom: none;
  border-right: var(--border);
  height: 100%;
  aspect-ratio: unset;
}

.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.article-card:hover .article-card__image img { transform: scale(1.04); }

.article-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card__category {
  margin-bottom: var(--space-sm);
  text-decoration: none;
}

.article-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.article-card--featured .article-card__title {
  font-size: 1.6rem;
}

.article-card__title a { color: var(--text); text-decoration: none; }
.article-card__title a:hover { color: var(--primary); }

.article-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-md);
  flex: 1;
}

.article-card__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.article-card__sep { color: var(--grey-400); }

.article-card__date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Inspiration ────────────────────────────────────────────── */
.inspiration-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.inspiration-featured {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.inspiration-featured__image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: var(--border);
}

.inspiration-featured__quote-bg {
  font-size: 8rem;
  color: var(--primary);
  opacity: 0.15;
  position: absolute;
  top: -20px;
  left: 10px;
  line-height: 1;
  pointer-events: none;
}

.inspiration-featured__body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.inspiration-featured__caption {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.5;
}

.inspiration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.inspiration-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.inspiration-card__image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-bottom: var(--border);
}

.inspiration-card__quote-bg {
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.2;
  padding: var(--space-sm);
  line-height: 1;
}

.inspiration-card__body {
  padding: var(--space-sm);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.inspiration-card__caption {
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.4;
  flex: 1;
}

.inspiration-card__link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  align-self: flex-end;
}

/* ── Podcasts ───────────────────────────────────────────────── */
.podcasts-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.podcast-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
}

.podcast-item__info {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  border-right: var(--border);
}

.podcast-item__number {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  border: 2px solid var(--primary);
  display: inline-block;
  padding: 0.1rem 0.4rem;
  width: fit-content;
}

.podcast-item__header {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

.podcast-item__title {
  font-size: 1rem;
  font-weight: 600;
}

.podcast-item__detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.podcast-item__date { font-size: 0.8rem; color: var(--text-muted); }

.podcast-item__embed {
  padding: var(--space-md);
  background: var(--grey-100);
  display: flex;
  align-items: center;
}

html.dark .podcast-item__embed { background: #111; }

/* ── Journey / Timeline ─────────────────────────────────────── */
.bio-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.bio-image {
  position: relative;
  overflow: hidden;
}

.bio-image img {
  width: 100%;
  display: block;
}

.bio-image__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  background: var(--grey-100);
  min-height: 300px;
}

html.dark .bio-image__placeholder { background: #1a1a1a; }

.bio__name {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  margin-bottom: var(--space-xs);
}

.bio__tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-lg);
}

.bio__body { margin-bottom: var(--space-lg); }
.bio__body p + p { margin-top: var(--space-md); }

/* Bio stats row */
.bio__stats-row {
  display: flex;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
  flex-wrap: wrap;
}
.bio__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border: var(--border);
  box-shadow: var(--shadow);
  background: var(--card-bg);
  min-width: 90px;
}
.bio__stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.bio__stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

/* Outlet badges */
.bio-outlets {
  margin-top: var(--space-md);
}
.bio-outlets__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}
.bio-outlets__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.outlet-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border: 2px solid var(--black);
  background: var(--primary);
  color: var(--black);
  letter-spacing: 0.03em;
}

.bio__cta-row {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.timeline {
  position: relative;
  padding-left: 120px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
}

.timeline__item {
  position: relative;
  margin-bottom: var(--space-xl);
}

.timeline__marker {
  position: absolute;
  left: -120px;
  top: 0;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: var(--space-lg);
}

.timeline__year {
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--primary);
  background: var(--bg);
  padding: 0.2rem 0.4rem;
  border: 2px solid var(--primary);
  line-height: 1;
}

.timeline__content {
  padding: var(--space-lg);
}

.timeline__content::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 16px;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border: 3px solid var(--black);
}

html.dark .timeline__content::before { border-color: var(--white); }

.timeline__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline__company {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.timeline__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

/* ── Contact ────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  padding-block: var(--space-2xl);
  align-items: start;
}

.contact-info__block {
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.contact-info__heading {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: var(--border);
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-block: var(--space-sm);
  border-bottom: 1px solid var(--grey-200);
  font-size: 0.9rem;
}

html.dark .contact-info__item { border-color: #333; }

.contact-info__item:last-child { border-bottom: none; }

.contact-info__icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-info__item a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s;
}

.contact-info__item a:hover { text-decoration-color: var(--primary); }

.contact-map {
  overflow: hidden;
}

.contact-map iframe { display: block; }

.contact-form-card {
  padding: var(--space-xl);
}

.contact-form-card__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

/* ── Article Single ─────────────────────────────────────────── */
.article-single {
  max-width: 760px;
  margin-inline: auto;
  padding-block: var(--space-2xl);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: 0.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.breadcrumb a:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}

.article-single__header {
  margin-bottom: var(--space-xl);
}

.article-single__category { margin-bottom: var(--space-md); }

.article-single__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.article-single__excerpt {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  font-style: italic;
  border-left: 4px solid var(--primary);
  padding-left: var(--space-md);
}

.article-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-single__sep { color: var(--grey-400); }

.article-single__featured-image {
  margin-block: var(--space-xl);
  border: var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.article-single__featured-image img {
  width: 100%;
  height: auto;
}

.article-single__publication-note {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  margin-bottom: var(--space-xl);
  background: var(--grey-100);
  font-size: 0.9rem;
}

html.dark .article-single__publication-note {
  background: #1a1a1a;
}

.article-single__publication-note a {
  color: var(--primary);
  text-decoration: underline;
}

.article-single__tags {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.article-single__tags-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.tag-chip {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  border: 2px solid var(--grey-400);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s;
}

.tag-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.article-single__share {
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  padding-block: var(--space-lg);
  border-top: var(--border);
  border-bottom: var(--border);
}

.share__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ── Prose ──────────────────────────────────────────────────── */
.prose { line-height: 1.75; }

.prose h2, .prose h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  margin-top: 1.75em;
  margin-bottom: 0.5em;
}

.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.2rem; }

.prose p { margin-bottom: 1em; }

.prose ul, .prose ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
  list-style: revert;
}

.prose blockquote {
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  background: var(--grey-100);
}

html.dark .prose blockquote { background: #1a1a1a; }

.prose a {
  color: var(--primary);
  text-decoration: underline;
}

.prose img {
  border: var(--border);
  box-shadow: var(--shadow);
  margin-block: 1.5rem;
}

.prose-page {
  max-width: 800px;
  margin-inline: auto;
  padding-block: var(--space-2xl);
}

.prose-page .prose {
  padding: var(--space-xl);
}

.prose-page .prose h2 {
  margin-top: 1.5em;
  padding-top: 1rem;
  border-top: 2px dashed var(--grey-200);
}

/* ── Form ───────────────────────────────────────────────────── */
.form__group { margin-bottom: var(--space-lg); }

.form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.required { color: var(--red); }

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: box-shadow 0.12s;
  outline: none;
  appearance: none;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  box-shadow: var(--shadow);
}

.form__textarea { resize: vertical; min-height: 120px; }

.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D0D0D' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

html.dark .form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FAFAFA' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* ── Flash Messages ─────────────────────────────────────────── */
.flash {
  padding: var(--space-md);
  border: var(--border);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
}

.flash--success { background: #f0fff4; border-color: var(--green); }
.flash--error   { background: #fff5f5; border-color: var(--red); }
.flash--error ul { padding-left: 1.2em; list-style: disc; }
html.dark .flash--success { background: #0d2010; }
html.dark .flash--error   { background: #2d0a0a; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  margin-top: var(--space-xl);
}

.pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.pagination li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border: var(--border);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--card-bg);
  color: var(--text);
  transition: all 0.12s;
}

.pagination li.active a,
.pagination li a:hover {
  background: var(--primary);
  color: var(--black);
  box-shadow: var(--shadow);
}

/* ── Empty State ────────────────────────────────────────────── */
.empty-state { color: var(--text-muted); font-style: italic; }

.empty-state-full {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-3xl);
  border: 2px dashed var(--grey-200);
  color: var(--text-muted);
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  margin-top: var(--space-3xl);
  border-top: var(--border);
}

/* Ticker tape */
.ticker-wrap {
  background: var(--black);
  border-bottom: var(--border);
  overflow: hidden;
  padding-block: 0.5rem;
}

html.dark .ticker-wrap { background: var(--primary); }

.ticker {
  overflow: hidden;
  width: 100%;
}

.ticker__inner {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  width: max-content;
}

.ticker__inner:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-inline: var(--space-xl);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.15s;
}

html.dark .ticker__item { color: var(--black); }

.ticker__item:hover { color: var(--white); }
html.dark .ticker__item:hover { color: var(--black); opacity: 0.8; }

.ticker__dot { color: var(--primary); flex-shrink: 0; }
html.dark .ticker__dot { color: var(--black); }

/* Footer body */
.footer__body {
  background: var(--black);
  color: var(--white);
  padding-block: var(--space-3xl) var(--space-xl);
  position: relative;
  overflow: hidden;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  margin-bottom: var(--space-md);
}

.footer__logo-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  border: 3px solid var(--white);
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--black);
}

.footer__tagline {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

/* Typewriter */
.footer__typewriter {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--primary);
  min-height: 1.5em;
  margin-bottom: var(--space-lg);
}

.typewriter-cursor {
  animation: cursor-blink 0.8s step-end infinite;
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

/* Social links */
.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid #444;
  color: #aaa;
  transition: all 0.15s;
}

.social-link svg { width: 16px; height: 16px; }

.social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(244,162,10,0.1);
}

/* Footer nav */
.footer__heading {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid #333;
}

.footer__nav li + li { margin-top: var(--space-sm); }

.footer__nav a {
  font-size: 0.9rem;
  color: #aaa;
  text-decoration: none;
  transition: color 0.15s;
}

.footer__nav a:hover { color: var(--primary); }

/* Footer bottom */
.footer__bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: #666;
}

.footer__credit { font-style: italic; }

/* Ink splatter SVG */
.ink-splatter {
  position: absolute;
  width: 120px;
  height: 120px;
  pointer-events: none;
}

.ink-splatter--tl { top: 0; left: 0; }
.ink-splatter--br { bottom: 0; right: 0; }

/* ── Subscription Popup ─────────────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: rgba(13,13,13,0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.popup-overlay[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}

.popup {
  position: relative;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
  animation: popup-enter 0.3s ease forwards;
}

html.dark .popup { background: var(--card-bg); }

@keyframes popup-enter {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0)   scale(1);    opacity: 1; }
}

.popup__close {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 40px;
  height: 40px;
  background: var(--primary);
  border: var(--border);
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.popup__inner {
  padding: var(--space-xl);
}

.popup__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.popup__title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: var(--space-sm);
}

.popup__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.popup__field {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.popup__input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border: var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
}

.popup__input:focus { box-shadow: var(--shadow); }

.popup__message {
  font-size: 0.85rem;
  margin-bottom: var(--space-sm);
}

.popup__message.success { color: var(--green); }
.popup__message.error   { color: var(--red); }

.popup__privacy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.popup__privacy a {
  color: var(--primary);
  text-decoration: underline;
}

/* ── Error Page ─────────────────────────────────────────────── */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-lg);
}

.error-code {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

/* ── Scroll Reveal Animations ───────────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-card--featured { grid-column: span 2; }
  .inspiration-layout { grid-template-columns: 1fr; }
  .inspiration-grid { grid-template-columns: repeat(3, 1fr); }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-image-col { max-width: 300px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 56px; }

  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 80vw);
    background: var(--nav-bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--space-xl);
    padding-top: 80px;
    border-left: var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 200;
    margin-left: 0;
  }

  .nav__links.nav__links--open { transform: translateX(0); }

  .nav__link {
    font-size: 1.1rem;
    padding-block: var(--space-md);
    width: 100%;
    border-bottom: 1px solid var(--grey-200);
  }

  html.dark .nav__link { border-color: #333; }

  .nav__hamburger { display: flex; }

  .nav__theme-toggle { margin-left: 0; }

  .articles-grid { grid-template-columns: 1fr; }
  .article-card--featured { grid-column: span 1; grid-template-columns: 1fr; }
  .article-card--featured .article-card__image { border-right: none; border-bottom: var(--border); height: 220px; }

  .podcast-item { grid-template-columns: 1fr; }
  .podcast-item__info { border-right: none; border-bottom: var(--border); }

  .contact-layout { grid-template-columns: 1fr; }

  .timeline { padding-left: 80px; }
  .timeline__marker { left: -80px; width: 60px; }

  .footer__grid { grid-template-columns: 1fr; }

  .inspiration-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--space-md); }

  .articles-grid { grid-template-columns: 1fr; }

  .inspiration-grid { grid-template-columns: 1fr; }

  .popup__field { flex-direction: column; }

  .bio__cta-row { flex-direction: column; }

  .timeline { padding-left: 60px; }
  .timeline::before { left: 52px; }
  .timeline__marker { left: -60px; width: 44px; }
  .timeline__year { font-size: 0.7rem; }
}
