:root {
  --text: #37352f;
  --text-muted: #6b6b67;
  --bg: #ffffff;
  --rule: #ececea;
  --callout-bg: #f7f6f3;
  --row-bg: #f7f6f3;
  --card-bg: #ecedfb;
  --card-text: #4f46e5;
  --link: #37352f;
  --link-hover: #000000;
  --content-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 16px;
  line-height: 1.5;
}

main.page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 112px 24px 160px;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--link-hover);
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  margin-bottom: 36px;
  background: #e9e9e7;
}

h1 {
  font-size: 44px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 48px;
}

h2 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  margin: 72px 0 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

h2 + p,
h2 + ul,
h2 + .callout,
h2 + .stats,
h2 + .cards,
h2 + .columns {
  margin-top: 32px;
}

p {
  margin: 18px 0;
  line-height: 1.65;
}

ul {
  margin: 20px 0;
  padding-left: 24px;
}

li {
  margin: 12px 0;
  line-height: 1.6;
}

ul.plain {
  list-style: none;
  padding-left: 0;
}

ul.plain li {
  margin: 18px 0;
}

.callout {
  background: var(--callout-bg);
  border-radius: 6px;
  padding: 22px 28px;
  margin: 32px 0;
}

.callout p {
  margin: 0;
  line-height: 1.6;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 44px 0;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.card {
  display: block;
  background: var(--card-bg);
  color: var(--card-text);
  border-radius: 8px;
  padding: 28px;
  text-decoration: none;
  min-height: 168px;
}

.card:hover {
  filter: brightness(0.97);
  color: var(--card-text);
}

.card-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 24px;
}

.card-title {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
}

.podcast {
  background: var(--card-bg);
  color: var(--card-text);
  border-radius: 8px;
  padding: 44px 40px;
  margin: 32px 0;
}

.podcast-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 18px;
}

.podcast-tag {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  max-width: 440px;
}

.row-link {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--row-bg);
  border-radius: 6px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text);
  margin: 12px 0;
}

.row-link:hover {
  filter: brightness(0.97);
}

.row-link .label {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin: 32px 0;
}

.columns h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
}

.columns p {
  margin: 0 0 14px;
}

.columns ul {
  margin: 12px 0 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  main.page {
    padding: 64px 20px 96px;
  }
  .avatar {
    width: 88px;
    height: 88px;
    margin-bottom: 28px;
  }
  h1 {
    font-size: 34px;
    margin-bottom: 36px;
  }
  h2 {
    font-size: 20px;
    margin-top: 56px;
  }
  .cards,
  .stats,
  .columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .podcast {
    padding: 32px 28px;
  }
  .podcast-title {
    font-size: 26px;
  }
  .podcast-tag {
    font-size: 17px;
  }
}
