:root {
  --color-primary: #8b5e3c;
  --color-accent: #d97706;
  --color-surface: #f8f4ee;
  --color-surface-raised: #fffdf9;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-border: #e7d9c8;
  --shadow-soft: 0 10px 30px rgba(31, 41, 55, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f9f3ec 0%, #f5efe8 100%);
  color: var(--color-text);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

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

#root {
  min-height: 100vh;
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.topbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 4px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--color-muted);
}

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

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
}

h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 4rem);
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  margin-bottom: 0;
}

h4 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.text-link {
  color: var(--color-primary);
  font-weight: 700;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--color-text);
}

.panel {
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  padding: 28px;
  gap: 28px;
  align-items: center;
  margin-top: 10px;
}

.hero-copy {
  padding: 12px 8px;
}

.lede {
  max-width: 56ch;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button-row.vertical {
  flex-direction: column;
  align-items: stretch;
}

.button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  font-weight: 700;
}

.button:hover,
.small-button:hover {
  transform: translateY(-1px);
}

.button {
  padding: 0.9rem 1.4rem;
}

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

.secondary {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.small-button {
  border-color: var(--color-border);
  background: rgba(139, 94, 60, 0.06);
  color: var(--color-text);
  padding: 0.55rem 0.9rem;
}

.hero-art {
  min-height: 330px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, rgba(139, 94, 60, 0.2), rgba(217, 119, 6, 0.15));
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-block {
  margin-top: 30px;
}

.welcome-note {
  max-width: 760px;
  padding: 20px 4px 30px;
}

.welcome-note h2 {
  max-width: 20ch;
  font-size: 2.25rem;
  margin-bottom: 10px;
}

.welcome-note > p:last-child {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.podcast-list {
  display: grid;
  gap: 24px;
  padding-bottom: 40px;
}

.podcast-tile {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 42px;
  padding: 32px;
}

.podcast-tile-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.podcast-copy,
.podcast-art,
.podcast-actions {
  position: relative;
  z-index: 2;
}

.podcast-copy,
.podcast-art {
  pointer-events: none;
}

.podcast-copy {
  grid-column: 1;
  grid-row: 1;
}

.podcast-copy h2 {
  margin-bottom: 14px;
  font-size: 2.75rem;
}

.podcast-copy .lede {
  line-height: 1.65;
}

.podcast-art {
  width: 100%;
  aspect-ratio: 1;
  grid-column: 2;
  grid-row: 1 / span 2;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
}

.podcast-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop-download {
  display: inline-flex;
}

.podcast-actions {
  grid-column: 1;
  grid-row: 2;
  margin-top: 0;
  pointer-events: auto;
}

.feed-page {
  padding-top: 10px;
}

.feed-back {
  min-height: 48px;
}

.feed-heading {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin: 10px 0 28px;
}

.feed-heading > img {
  width: 112px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.feed-heading h1 {
  margin-bottom: 8px;
}

.feed-heading p:last-child {
  margin-bottom: 0;
  color: var(--color-muted);
}

.episode-list {
  display: grid;
  gap: 18px;
  padding-bottom: 40px;
}

.episode-tile {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 20px;
}

.episode-art {
  width: 180px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background: var(--color-surface);
}

.episode-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-copy h2 {
  margin-bottom: 10px;
  font-size: 1.55rem;
}

.episode-copy p:last-child {
  max-width: 60ch;
  margin-bottom: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.episode-download {
  white-space: nowrap;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.story-card {
  overflow: hidden;
}

.story-cover {
  height: 202px;
  background: #efe0d0;
  border-bottom: 1px solid var(--color-border);
}

.story-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-body {
  padding: 18px;
}

.story-topline,
.story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meta {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.12);
  color: var(--color-accent);
  padding: 0.38rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.about {
  padding: 22px 24px;
  color: var(--color-text);
}

.detail-page {
  padding-top: 10px;
}

.two-column {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  padding: 24px;
  align-items: center;
}

.detail-art {
  min-height: 420px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, #f5eada, #efe3d5);
}

.detail-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--color-muted);
}

.detail-copy {
  margin-top: 26px;
  padding: 22px 24px;
}

.chapter-list {
  margin-top: 16px;
}

.chapter-list ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--color-text);
}

.chapter-list li + li {
  margin-top: 8px;
}

@media (max-width: 760px) {
  .topbar,
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .two-column {
    grid-template-columns: 1fr;
  }

  .welcome-note {
    padding: 14px 0 22px;
  }

  .welcome-note h2 {
    font-size: 1.8rem;
  }

  .podcast-tile {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 20px;
    padding: 20px;
  }

  .podcast-art {
    grid-column: 1;
    grid-row: 1;
    max-width: 440px;
    justify-self: center;
  }

  .podcast-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .podcast-actions {
    grid-column: 1;
    grid-row: 3;
  }

  .podcast-copy h2 {
    font-size: 2rem;
  }

  .feed-heading {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
  }

  .feed-back {
    width: 100%;
    justify-content: flex-start;
  }

  .feed-heading > img {
    width: 76px;
  }

  .episode-tile {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .episode-art {
    width: min(100%, 260px);
  }

  .episode-download {
    display: none;
  }

  .page-shell,
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }
}
