:root {
  /* Colors - Desiring God Red Palette */
  --bg: #f9f9f9;
  --surface: #ffffff;
  --ink: #333333;
  --muted: #6b7280;

  /* Red Brand Colors - Multiple Shades */
  --red-900: #7a0c1f;        /* Darkest - deep shadows */
  --red-800: #a00d25;        /* Darker - strong hover states */
  --red-700: #c8102e;        /* Primary brand red - main color */
  --red-600: #d91e3a;        /* Medium light - interactive elements */
  --red-500: #e63946;        /* Light - less prominent elements */
  --red-400: #ef5865;        /* Lighter - borders, accents */
  --red-300: #f47881;        /* Very light - hover backgrounds */
  --red-200: #f9a1a8;        /* Pale - subtle backgrounds */
  --red-100: #fcd3d6;        /* Palest - badge backgrounds */
  --red-50: #fef2f3;         /* Almost white - subtle tints */

  /* Primary Brand (Red) */
  --brand: var(--red-700);
  --brand-hover: var(--red-800);
  --brand-light: var(--red-500);
  --brand-soft: var(--red-50);
  --brand-badge: var(--red-100);
  --brand-muted: var(--red-400);

  /* Accent Gold */
  --accent: #ffcc5a;
  --accent-hover: #f0b840;

  /* Neutrals */
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --success: #059669;
  --warning: #f59e0b;

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

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Typography */
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
}

h1 {
  font-size: 2.55rem;
  letter-spacing: 0;
}

h2 {
  font-size: 1.8rem;
  letter-spacing: 0;
}

h3 {
  font-size: 1.25rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.container {
  width: min(1200px, 94%);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.container-wide {
  width: min(1400px, 96%);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.announcement {
  background: var(--accent);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  font-size: 0.94rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.announcement p {
  margin: 0;
  font-weight: 500;
}

.announcement a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.announcement a:hover {
  color: var(--brand-hover);
  text-decoration-thickness: 2px;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}

.site-header.container {
  max-width: none;
  padding-inline: max(2rem, calc((100vw - 1180px) / 2));
  width: 100%;
}

.logo {
  color: var(--brand);
  font-family: var(--font-sans);
  font-size: 1.38rem;
  font-weight: 400;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.logo:hover {
  color: var(--brand-hover);
}

.logo-icon {
  width: 30px;
  height: 30px;
  display: inline-block;
  margin-right: 0.5rem;
}

.logo span {
  display: inline-block;
  letter-spacing: 0;
  transform: translateY(2px);
}

.logo-black {
  color: var(--ink);
}

.logo-red {
  color: var(--brand);
}

.logo:hover .logo-red {
  color: var(--brand-hover);
}

.logo:hover .logo-icon {
  transform: scale(1.05);
}

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

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

.main-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--brand);
}

.main-nav a:hover {
  color: var(--brand-light);
}

.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.search-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  cursor: pointer;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.search-btn:hover {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.donate-btn {
  background: var(--brand);
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.donate-btn:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
}

.hero {
  align-items: stretch;
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1.6fr 1fr;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.hero-content,
.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.hero-content {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content:hover {
  box-shadow: var(--shadow-md);
}

.hero-panel {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-hover) 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.eyebrow {
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 var(--space-md);
  text-transform: uppercase;
  display: inline-block;
}

.hero h1 {
  margin-bottom: var(--space-lg);
  max-width: 20ch;
}

.hero-content p {
  color: var(--muted);
  margin: 0 0 var(--space-xl);
  max-width: 60ch;
  font-size: 1rem;
  line-height: 1.65;
}

.primary-link {
  color: var(--brand);
  font-weight: 700;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-base);
}

.primary-link::after {
  content: '→';
  transition: transform var(--transition-base);
}

.primary-link:hover {
  gap: 0.75rem;
  color: var(--brand-hover);
}

.primary-link:hover::after {
  transform: translateX(4px);
}

.hero-panel h2 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.daily-reading-theme {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-lg);
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}

.verse {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.reference {
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-sm);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.hero-panel a {
  color: var(--accent);
  font-weight: 700;
  margin-top: var(--space-lg);
  display: inline-block;
  position: relative;
  z-index: 1;
  transition: color var(--transition-fast);
}

.hero-panel a:hover {
  color: #fff;
}

.card-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: var(--space-2xl) auto;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.content-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.card-image {
  width: min(100%, 720px);
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--brand-soft) 0%, var(--brand-badge) 100%);
  border-radius: 0;
  margin: 0 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--brand-light);
  opacity: 0.7;
  overflow: hidden;
}

/* When a real image is present, it fills the card-image box cleanly. */
.card-image.has-photo {
  background: var(--line);
  opacity: 1;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.content-card .card-image {
  width: 100%;
}

.list-card .card-image {
  width: min(100%, 720px);
}

/* Clean photo treatment for article/episode hero images:
   consistent 16:9 frame, sharp corners, soft shadow. */
.post-hero {
  margin: 0 0 var(--space-2xl);
}

.post-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
  border-radius: 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  background: var(--line);
}

.post-hero figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.6rem;
  text-align: center;
}

.card-type {
  color: var(--brand-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 var(--space-sm);
  text-transform: uppercase;
  display: inline-block;
}

.content-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  transition: color var(--transition-fast);
}

.content-card h3 a {
  color: inherit;
  text-decoration: none;
}

.content-card h3 a:focus-visible {
  outline: 3px solid var(--brand-badge);
  outline-offset: 4px;
}

.content-card:hover h3 {
  color: var(--brand);
}

.content-card:hover {
  border-color: var(--brand-muted);
}

.content-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.empty-state-card {
  cursor: default;
  min-height: auto;
}

.empty-state-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: none;
}

.empty-state-card h2,
.empty-state-card h3 {
  color: var(--ink);
}

.empty-state-card p {
  color: var(--muted);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.author-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-badge);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
}

.latest {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  margin: var(--space-2xl) auto;
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.section-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.section-heading h2 {
  font-size: 1.75rem;
}

.section-heading a {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--line-strong);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.section-heading a::after {
  content: '→';
  transition: transform var(--transition-base);
}

.section-heading a:hover {
  background: var(--brand-soft);
  border-color: var(--brand-badge);
  color: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.section-heading a:hover::after {
  transform: translateX(3px);
}

.latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.latest-list li {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 120px 1fr auto;
  padding: var(--space-lg) 0;
  transition: background var(--transition-fast);
}

.latest-list li:first-child {
  border-top: 0;
}

.latest-list li:hover {
  background: #fafafa;
  margin: 0 calc(var(--space-lg) * -1);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
}

.latest-list li:hover .topic {
  color: var(--brand-hover);
}

.latest-list .topic {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 0;
  display: inline-block;
}

.latest-list a {
  font-weight: 700;
  font-size: 1rem;
  transition: color var(--transition-fast);
  line-height: 1.4;
}

.latest-list li:hover a {
  color: var(--brand);
}

.latest-list time {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.page-main {
  margin-bottom: var(--space-3xl);
  min-height: 60vh;
}

.page-hero {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  margin: var(--space-xl) auto var(--space-2xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: var(--space-lg);
  max-width: 24ch;
  margin-inline: auto;
}

.page-hero p {
  color: var(--muted);
  margin: 0;
  max-width: 65ch;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.65;
}

.section-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-2xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.section-block h2 {
  font-size: 1.7rem;
  margin-bottom: var(--space-xl);
}

.section-block > p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: var(--space-lg);
}

.split-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(2, 1fr);
}

.stack-list {
  display: grid;
  gap: var(--space-lg);
}

.list-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  background: var(--surface);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.list-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.list-card h3 {
  font-size: 1.22rem;
  margin-bottom: var(--space-md);
  transition: color var(--transition-fast);
}

.list-card:hover h3 {
  color: var(--ink);
}

.list-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

.meta {
  color: var(--brand);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  background: transparent;
  padding: 0;
  border-radius: 0;
  display: inline-block;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.topic-pills a {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--brand);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 0.65rem 1.2rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.topic-pills a:hover {
  background: var(--brand-soft);
  color: var(--brand-hover);
  border-color: var(--brand-badge);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.articles-index {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(249, 249, 249, 0.96)),
    radial-gradient(circle at 10% 5%, rgba(200, 16, 46, 0.08), transparent 32%);
}

.articles-masthead {
  margin: var(--space-xl) auto var(--space-2xl);
  padding: var(--space-xl) 0 0;
}

.articles-masthead h1 {
  max-width: 18ch;
  margin-bottom: var(--space-lg);
}

.articles-masthead p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 62ch;
  margin: 0;
}

.compact-heading {
  align-items: end;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
}

.compact-heading h2 {
  font-size: 1.5rem;
}

.articles-featured,
.article-discovery,
.recent-articles-section {
  margin-bottom: var(--space-2xl);
}

.featured-article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl);
}

.featured-article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.featured-article-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.featured-article-image,
.recent-article-thumb {
  background: var(--line);
  display: block;
  overflow: hidden;
}

.featured-article-image {
  aspect-ratio: 4 / 5;
}

.featured-article-image img,
.recent-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-article-copy h3,
.recent-article-copy h3 {
  font-size: 1.28rem;
  margin-bottom: var(--space-sm);
}

.featured-article-copy h3 a,
.recent-article-copy h3 a {
  color: inherit;
}

.featured-article-copy h3 a:hover,
.recent-article-copy h3 a:hover {
  color: var(--brand);
}

.featured-article-copy p,
.recent-article-copy p,
.discovery-panel p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.article-byline {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.92rem;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
}

.article-discovery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-xl);
}

.discovery-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
}

.muted-panel {
  background: var(--brand-soft);
}

.discovery-title {
  color: var(--brand);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 700;
  gap: var(--space-sm);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
}

.discovery-panel h2 {
  font-size: 1.45rem;
  margin-bottom: var(--space-lg);
}

.topic-link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}

.topic-link-list a {
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  padding: 0.75rem 0.85rem;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.topic-link-list a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.recent-article-list {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.recent-article-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: var(--space-lg);
  padding: var(--space-lg);
}

.recent-article-item + .recent-article-item {
  border-top: 1px solid var(--line);
}

.recent-article-thumb {
  aspect-ratio: 16 / 10;
}

.articles-page-layout {
  background: #f7f7f7;
  padding-bottom: var(--space-3xl);
}

.articles-title-block {
  margin: var(--space-2xl) auto var(--space-2xl);
}

.articles-title-block h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.35rem, 4.5vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.centered-title-block {
  text-align: center;
}

.centered-title-block p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: var(--space-md) auto 0;
  max-width: 62ch;
}

.podcasts-title-block {
  margin-bottom: var(--space-xl);
}

.podcasts-title-block p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-top: var(--space-md);
  max-width: 58ch;
}

.podcast-show-section {
  margin-bottom: var(--space-3xl);
}

.podcast-show-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  max-width: 330px;
  min-height: 520px;
}

.podcast-show-card.empty-state-card {
  max-width: 520px;
  min-height: auto;
}

.podcast-show-art {
  background: #1e1e1e;
  color: inherit;
  display: block;
  text-decoration: none;
}

.podcast-show-cover {
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 22% 16%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #151515 0%, #2b2b2b 48%, #c8102e 49%, #c8102e 100%);
  color: #fff;
  display: grid;
  overflow: hidden;
  padding: var(--space-xl);
  position: relative;
}

.podcast-show-cover::after {
  background:
    linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.07) 18px 19px),
    linear-gradient(0deg, transparent 0 18px, rgba(255, 255, 255, 0.05) 18px 19px);
  background-size: 38px 38px;
  content: "";
  inset: 0;
  opacity: 0.35;
  position: absolute;
}

.podcast-show-cover img {
  height: 78px;
  position: relative;
  width: 78px;
  z-index: 1;
}

.podcast-show-cover span,
.podcast-show-cover strong {
  align-self: end;
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}

.podcast-show-cover span {
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: auto;
}

.podcast-show-cover strong {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: none;
}

.podcast-show-copy {
  padding: var(--space-lg);
}

.podcast-show-copy h2 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}

.podcast-show-copy p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.55;
  margin: 0;
}

.podcast-show-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding: var(--space-lg);
}

.podcast-show-footer a {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.podcast-show-footer a:hover {
  color: var(--brand);
}

.podcast-show-footer span {
  color: var(--muted);
  font-size: 1.15rem;
}

.articles-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(300px, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.lead-article-card,
.side-feature-card,
.article-tile-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.lead-article-card {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(320px, 1fr);
  min-height: 430px;
}

.lead-article-image,
.side-feature-image,
.article-tile-image {
  background: var(--line);
  display: block;
  overflow: hidden;
  position: relative;
}

.lead-article-image img,
.side-feature-image img,
.article-tile-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.lead-article-copy,
.side-feature-copy,
.article-tile-copy {
  display: flex;
  flex-direction: column;
}

.lead-article-copy {
  padding: clamp(2rem, 4vw, 3rem);
}

.resource-label,
.image-label {
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.55rem 0.85rem;
  text-transform: uppercase;
  width: max-content;
}

.resource-label {
  background: transparent;
  color: var(--muted);
  padding: 0;
  margin-bottom: var(--space-xl);
}

.image-label {
  left: var(--space-lg);
  position: absolute;
  top: var(--space-lg);
}

.lead-article-copy h2,
.side-feature-copy h2,
.article-tile-copy h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lead-article-copy h2 {
  font-size: 1.35rem;
  margin-bottom: var(--space-sm);
}

.lead-article-copy h2 a,
.side-feature-copy h2 a,
.article-tile-copy h3 a {
  color: inherit;
}

.lead-article-copy h2 a:hover,
.side-feature-copy h2 a:hover,
.article-tile-copy h3 a:hover {
  color: var(--brand);
}

.lead-article-copy time,
.side-feature-copy time,
.article-tile-copy time {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: var(--space-sm) 0;
  text-transform: uppercase;
}

.lead-article-copy p,
.side-feature-copy p,
.article-tile-copy p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.58;
  margin: 0;
}

.compact-byline {
  margin-top: auto;
}

.side-feature-card {
  display: grid;
  grid-template-rows: 180px 1fr;
}

.side-feature-copy {
  padding: var(--space-xl);
}

.side-feature-copy h2 {
  font-size: 1.18rem;
  margin-bottom: var(--space-xs);
}

.articles-recent-grid-section {
  margin-bottom: var(--space-3xl);
}

.articles-recent-grid-section > h2 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: var(--space-xl);
}

.articles-card-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.article-tile-card {
  display: flex;
  flex-direction: column;
  min-height: 460px;
}

.article-tile-card.empty-state-card {
  min-height: auto;
}

.article-tile-image {
  aspect-ratio: 16 / 9;
}

.article-tile-copy {
  flex: 1;
  padding: var(--space-lg);
}

.article-tile-copy h3 {
  font-size: 1.12rem;
  margin-bottom: var(--space-sm);
}

.podcast-card h3 a {
  color: inherit;
}

.podcast-card h3 a:hover {
  color: var(--ink);
}

.article-card h3 a {
  color: inherit;
}

.article-card h3 a:hover {
  color: var(--ink);
}

.article-shell {
  max-width: 740px;
  margin-top: var(--space-xl);
}

.article-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.article-header h1 {
  max-width: 24ch;
  margin-bottom: var(--space-lg);
}

.article-header > p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  max-width: 100%;
}

.article-body {
  max-width: 100%;
}

.article-body p {
  color: var(--ink);
  line-height: 1.75;
  margin: 0 0 var(--space-lg);
}

.article-body h2 {
  font-size: 1.45rem;
  margin: var(--space-2xl) 0 var(--space-md);
}

.article-body blockquote {
  border-left: 3px solid var(--brand);
  color: var(--ink);
  font-style: italic;
  margin: var(--space-xl) 0;
  padding: 0.2rem 0 0.2rem var(--space-lg);
}

.article-body blockquote p {
  color: inherit;
  font-style: italic;
}

.article-body blockquote cite,
.article-body blockquote footer {
  color: var(--muted);
  display: block;
  font-size: 0.92rem;
  font-style: normal;
  margin-top: var(--space-sm);
}

.article-body table {
  border-collapse: collapse;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: var(--space-xl) 0 var(--space-2xl);
  text-align: left;
  width: 100%;
}

.article-body th,
.article-body td {
  border-bottom: 1px solid var(--line);
  padding: 0.95rem 1rem 0.95rem 0;
  text-align: left;
  vertical-align: top;
}

.article-body th {
  color: var(--ink);
  font-weight: 700;
}

.article-body td {
  color: var(--ink-soft);
}

.article-body tr:last-child td {
  border-bottom: 0;
}

.episode-hero {
  text-align: left;
}

.episode-hero h1,
.episode-hero p {
  margin-inline: 0;
}

.episode-details {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-lg);
  font-size: 0.9rem;
  font-weight: 600;
}

.episode-player {
  display: block;
  margin-top: var(--space-xl);
  width: 100%;
}

.episode-notes {
  max-width: 820px;
}

.episode-notes h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.episode-notes ul {
  color: var(--muted);
  margin: 0;
  padding-left: 1.2rem;
}

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

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

.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.form-card h3 {
  margin-bottom: var(--space-lg);
}

.form-card form {
  display: grid;
  gap: var(--space-lg);
}

.form-group {
  display: grid;
  gap: var(--space-sm);
}

.form-card label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.form-card input,
.form-card textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font: inherit;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
}

.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.form-card textarea {
  min-height: 160px;
  resize: vertical;
}

.form-card button {
  background: var(--brand);
  border: 0;
  border-radius: var(--radius-md);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.form-card button:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.callout {
  align-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-hover) 100%);
  border-radius: var(--radius-xl);
  color: #ffffff;
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1.4fr 1fr;
  margin: var(--space-3xl) auto;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.callout::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 204, 90, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.callout > * {
  position: relative;
  z-index: 1;
}

.callout .eyebrow {
  color: var(--accent);
}

.callout h2 {
  font-size: 1.65rem;
  line-height: 1.3;
  color: #ffffff;
}

.signup-form {
  display: flex;
  gap: var(--space-md);
}

.signup-form input {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  flex: 1;
  font: inherit;
  min-width: 0;
  padding: 0.75rem 1rem;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
}

.signup-form input:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

.signup-form button {
  background: var(--brand);
  border: 0;
  border-radius: var(--radius-md);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.signup-form button:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-3xl) 0 var(--space-2xl);
  margin-top: var(--space-3xl);
  background: #fafafa;
}

.footer-inner {
  align-items: start;
  color: var(--muted);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-2xl);
}

.footer-brand {
  max-width: 400px;
}

.footer-brand .logo {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  color: var(--brand);
}

.footer-brand .logo:hover {
  color: var(--brand-hover);
}

.footer-brand .logo-icon {
  width: 28px;
  height: 28px;
}

.footer-inner p {
  margin: 0;
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  font-weight: 600;
}

.footer-links a {
  transition: color var(--transition-fast);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--brand);
}

.social-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all var(--transition-fast);
  color: var(--muted);
}

.social-links a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

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

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  animation: fadeIn 200ms ease;
}

.search-modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  width: min(650px, 90%);
  box-shadow: var(--shadow-lg);
  animation: slideDown 250ms ease;
}

.search-header {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-xl);
  border-bottom: 1px solid var(--line);
}

.search-header input {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 1.15rem;
  padding: 0;
  outline: none;
  color: var(--ink);
}

.search-shortcuts {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: 0 var(--space-xl) var(--space-md);
}

.search-shortcuts span {
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
}

.close-search {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.close-search:hover {
  background: var(--line);
  color: var(--ink);
}

.search-results {
  max-height: min(62vh, 620px);
  overflow-y: auto;
  padding: var(--space-md);
}

.search-hint {
  color: var(--muted);
  text-align: center;
  margin: var(--space-xl) 0;
}

.search-count {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  padding: var(--space-sm) var(--space-sm) var(--space-md);
}

.search-result-list {
  display: grid;
  gap: var(--space-sm);
}

.search-result-item {
  border: 1px solid transparent;
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 86px minmax(0, 1fr);
  padding: var(--space-sm);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.search-result-item:hover,
.search-result-item:focus-visible,
.search-result-item.is-active {
  background: var(--brand-soft);
  border-color: var(--brand-badge);
}

.search-result-item img {
  aspect-ratio: 1;
  background: var(--line);
  height: 86px;
  object-fit: cover;
  width: 86px;
}

.search-result-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.search-result-copy strong {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.search-result-copy span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.search-result-copy em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.search-result-meta {
  color: var(--brand) !important;
  font-size: 0.74rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-empty {
  color: var(--muted);
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-xl);
  text-align: center;
}

.search-empty strong {
  color: var(--ink);
  font-size: 1rem;
}

/* Keyboard Navigation */
body.keyboard-nav *:focus {
  outline: 2px solid var(--brand-light);
  outline-offset: 2px;
}

body:not(.keyboard-nav) *:focus {
  outline: none;
}

/* Form validation */
input.invalid,
textarea.invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: rise-in 600ms ease both;
}

.delay-1 {
  animation-delay: 120ms;
}

.delay-2 {
  animation-delay: 220ms;
}

.delay-3 {
  animation-delay: 320ms;
}

.delay-4 {
  animation-delay: 420ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet styles */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-article-grid,
  .article-discovery {
    grid-template-columns: 1fr;
  }

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

  .articles-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .latest-list li {
    grid-template-columns: 100px 1fr auto;
    gap: var(--space-md);
  }
}

@media (max-width: 930px) {
  .site-header {
    padding: var(--space-md) 0;
  }

  .site-header.container {
    padding-inline: var(--space-md);
  }

  .nav-wrapper {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-wrapper.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    gap: var(--space-md);
  }

  .main-nav {
    flex-direction: column;
    width: 100%;
    gap: var(--space-sm);
  }

  .main-nav a {
    padding: var(--space-md);
    border-radius: var(--radius-md);
  }

  .main-nav a:hover {
    background: var(--brand-soft);
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
  }

  .search-btn,
  .donate-btn {
    width: 100%;
    justify-content: center;
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .latest-list li {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .latest-list li:hover {
    margin: 0;
    padding: var(--space-lg);
  }

  .featured-article-card {
    grid-template-columns: 160px 1fr;
  }

  .topic-link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-article-card {
    grid-template-columns: 1fr;
  }

  .lead-article-image {
    aspect-ratio: 16 / 9;
  }
}

/* Mobile styles */
@media (max-width: 640px) {
  :root {
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
  }

  h1 {
    font-size: 2.05rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  .announcement {
    font-size: 0.85rem;
    text-align: center;
    flex-direction: column;
    gap: var(--space-xs);
  }

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

  .featured-article-card,
  .recent-article-item {
    grid-template-columns: 1fr;
  }

  .featured-article-image,
  .recent-article-thumb {
    aspect-ratio: 16 / 9;
  }

  .topic-link-list {
    grid-template-columns: 1fr;
  }

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

  .articles-title-block {
    margin-top: var(--space-xl);
  }

  .lead-article-copy,
  .side-feature-copy,
  .article-tile-copy {
    padding: var(--space-lg);
  }

  .search-result-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .search-result-item img {
    height: 64px;
    width: 64px;
  }

  .signup-form {
    flex-direction: column;
  }

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

  .hero-content,
  .hero-panel {
    padding: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }
}
