.youtube-iframe {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin-bottom: 2em;
  height: 0;
}

/* Profile */
.profile {
  max-width: 250px;
  height: auto;
  border-radius: 50% !important;
  margin: 0 auto;
  display: block;
}

.published {
  color: var(--theme-foreground-muted);
  font-size: 0.9em;
  margin: 0 0 3em 0;
}

#observablehq-footer {
  margin-top: 3rem;
}

/* Homepage */
.blog-overview {
  text-align: center;
  max-width: 1000px !important;
  margin: 0 auto;
}

.blog-overview * {
  max-width: 100% !important;
}

.blog-overview .card {
  text-align: left;
}

.blog-overview .card p {
  line-height: 1.5rem;
  color: var(--theme-foreground-muted);
}

.blog-overview .chevron {
  display: inline-block;
  margin-left: 0.25rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--sans-serif);
  margin: 1rem 0 rem;
  text-wrap: balance;
  text-align: center;
}

.hero h1 {
  margin: 1rem 0;
  padding: 1rem 0;
  max-width: none;
  font-size: 5rem !important;
  line-height: 1;
}

.hero h1 span {
  background: linear-gradient(30deg, var(--theme-foreground-focus), currentColor);
  font-weight: 800;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h2 {
  margin: 0;
  max-width: 34em;
  font-size: 20px;
  font-style: initial;
  font-weight: 500;
  line-height: 1.5;
  color: var(--theme-foreground-muted);
}

#observablehq-footer nav {
  display: none;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 90px;
  }
}


/* Post Meta */
[class^="plot-"] {
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  width: 100%;
}

.post-footer {
  margin-top: 3rem;
}

.subscribe-cta {
  background: var(--theme-background-alt, #f5f5f5);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}

.subscribe-cta h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

.subscribe-cta p {
  margin: 0 0 1.5rem 0;
  color: var(--theme-foreground-muted);
}

.subscribe-button {
  display: inline-block;
  background: var(--theme-foreground-focus, #3b82f6);
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.subscribe-button:hover {
  opacity: 0.9;
}

.subscribe-button .chevron {
  margin-left: 0.25rem;
}

/* Image Captions */
figure.image-with-caption {
  margin: 1.5rem 0;
  padding: 0;
}

figure.image-with-caption img {
  display: block;
  width: 100%;
  border-radius: 4px;
}

figure.image-with-caption figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--theme-foreground-muted);
  text-align: center;
  font-style: italic;
}