/* ------------------------------------------------ */
/* Цвета и типографика */
/* ------------------------------------------------ */

:root {
  --bg: #fef7ea;
  --text: #171717;
  --accent: #c9951c;
  --border: #e2d8c5;
  --card: rgba(255, 255, 255, 0.35);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 18px;
}

/* ------------------------------------------------ */
/* Убираем стандартный заголовок Quarto */
/* ------------------------------------------------ */

.quarto-title-block {
  display: none;
}

/* ------------------------------------------------ */
/* Контейнер */
/* ------------------------------------------------ */

.page-columns,
.page-layout-full,
#quarto-content {
  max-width: 100%;
}

/* ------------------------------------------------ */
/* Hero */
/* ------------------------------------------------ */

.hero {
  display: grid;
  grid-template-columns: 1fr 460px;

  align-items: center;
  gap: 3rem;

  max-width: 1200px;

  margin: 4rem auto 5rem;
  padding: 0 2rem;
}

.hero-top-line {
  width: 240px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 2rem;
}

.podcast-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  margin-top: 1.75rem;
  color: var(--accent);

  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 1rem;
}

.hero-description {
  margin-top: 1rem;
  max-width: 450px;

  font-size: 1.3rem;
  line-height: 1.7;
}

.hero-image {
  justify-self: end;
}

.hero-image img {
  width: 100%;
  max-width: 520px;
  display: block;
}

/* ------------------------------------------------ */
/* Карточки */
/* ------------------------------------------------ */

.cards {
  display: grid;
  grid-template-columns: 2fr 1fr;

  gap: 2rem;

  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;

  padding: 2.5rem;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
}

.card h2 {
  margin-top: 0;

  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;

  font-size: 1rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
}

.card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 4vw, 3rem);

  line-height: 1;
  margin-bottom: 1rem;
}

/* ------------------------------------------------ */
/* ARCHIVE — как лента эпизодов */
/* ------------------------------------------------ */

.card.archive ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

/* каждый выпуск = отдельная строка-объект */
.card.archive li {
  padding: 0.9rem 0;

  border-bottom: 1px solid rgba(0, 0, 0, 0.06);

  transition: background 0.2s ease, transform 0.2s ease;
}

/* ссылка внутри */
.card.archive a {
  display: block;

  color: var(--text);
  font-weight: 500;
  font-size: 1.05rem;

  text-decoration: none;
}

/* hover = ощущение движения */
.card.archive li:hover {
  transform: translateX(6px);
}

.card.archive a:hover {
  color: var(--accent);
}

/* убираем визуальный шум у последнего */
.card.archive li:last-child {
  border-bottom: none;
}

/* CTA внизу */
.card.archive > a:last-of-type {
  display: inline-block;
  margin-top: 1.2rem;

  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.card.archive > a:last-of-type:hover {
  text-decoration: underline;
}

/* ------------------------------------------------ */
/* Listen блок */
/* ------------------------------------------------ */

.listen {
  margin-top: 1.5rem;
}

/* кнопка */
.listen-button {
  display: inline-block;

  background: #111;
  color: white;

  padding: 0.9rem 1.5rem;
  border-radius: 10px;

  text-decoration: none;
  font-weight: 600;

  transition: 0.2s ease;
}

.listen-button:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* платформы */
.listen-platforms {
  margin-top: 0.9rem;

  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.listen-platforms a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;

  border-bottom: 1px solid transparent;
  transition: 0.2s ease;
}

.listen-platforms a:hover {
  border-bottom: 1px solid var(--accent);
}

/* mobile */
@media (max-width: 900px) {
  .listen-platforms {
    justify-content: center;
  }
}

/* ------------------------------------------------ */
/* Навбар */
/* ------------------------------------------------ */

.navbar {
  background: #0d0d0d !important;
  border-bottom: 2px solid var(--accent);
}

.navbar-brand,
.nav-link {
  color: #f5f1e8 !important;
}

.nav-link:hover {
  color: var(--accent) !important;
}

/* ------------------------------------------------ */
/* Ссылки */
/* ------------------------------------------------ */

a {
  color: var(--accent);
}

a:hover {
  color: #b88310;
}

/* ------------------------------------------------ */
/* Мобильная версия */
/* ------------------------------------------------ */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-top-line {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    justify-self: center;
  }

  .hero-image img {
    max-width: 380px;
  }

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

/* ------------------------------------------------ */
/* ARCHIVE PAGE */
/* ------------------------------------------------ */

.archive-list {
  max-width: 1000px;
  margin: 4rem auto 6rem;
  padding: 0 2rem;
}

.archive-item {
  display: grid;
  grid-template-columns: 80px 1fr;

  gap: 2rem;
  align-items: center;

  padding: 2rem 0;

  text-decoration: none;
  color: var(--text);

  border-bottom: 1px solid var(--border);

  transition: all 0.25s ease;
  
  position: relative;
}

.archive-item::before {
  content: "";
  position: absolute;

  left: -20px;
  top: 50%;
  transform: translateY(-50%);

  width: 0;
  height: 2px;

  background: var(--accent);

  transition: width 0.25s ease;
}

.archive-item:hover::before {
  width: 12px;
}

.archive-item:hover {
  transform: translateX(8px);
}

.archive-number {
  font-family: "Cormorant Garamond", serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;

  color: var(--accent);
}

.archive-title {
  font-size: 1.3rem;
  line-height: 1.5;

  transition: color 0.25s ease;
}

.archive-item:hover .archive-title {
  color: var(--accent);
}

/* заголовок страницы */

.archive-page-title {
  max-width: 1000px;
  margin: 4rem auto 2rem;
  padding: 0 2rem;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.95;
}

/* mobile */

@media (max-width: 700px) {
  .archive-item {
    grid-template-columns: 50px 1fr;
    gap: 1rem;
  }

  .archive-number {
    font-size: 2.5rem;
  }

  .archive-title {
    font-size: 1.1rem;
  }
}

/* ------------------------------------------------ */
/* FOOTER */
/* ------------------------------------------------ */

.site-footer {
  max-width: 1200px;
  margin: 4rem auto 2rem;
  padding: 0 2rem;

  text-align: center;

  font-size: 0.9rem;
  color: #777;

  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;

  border-bottom: 1px solid rgba(0,0,0,0.2);
}

.site-footer a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
