/* Blog hero: title + image */
.blog-hero {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: end;
  gap: 0px
}

.blog-hero-header {
  padding: 40px 0 80px;
}

.blog-hero h1 {
  font-family: var(--body-font);
  font-size: clamp(42px, 6vw, 76px);
  line-height: .95;
  letter-spacing: -.055em;
  margin: 0;
  padding-top: 20px;
  max-width: 14ch;
  font-weight: 500
}

.blog-hero h1 span {
  color: var(--accent)
}

.hero-image {
  aspect-ratio: 5 / 3;
  position: relative;
  overflow: hidden;
}

.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}



/*
 * Section overrides
 */
.section-head h2 {
  font-size: 34px;
}



/*
 * Blog intro: description + metadata
 */
.blog-intro {
  padding: 40px 0 0 0;
  display: grid;
  gap: 10px;
}

.blog-intro p {
  margin: 0;
  padding: 20px 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.metadata {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px 50px;
  color: var(--ink);
}

.metadata dd span {
  font-size: 12px;
  background: var(--paper);
  margin: 0 4px;
}

.metadata div {
  display: grid;
  gap: 10px;
  text-align: center;
}

.metadata dt {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.metadata dd {
  margin: 0;
  font-size: 14px;
}



/*
 * Blog body (the actual content)
 */
.blog-body h1 {
  display: inline-block;
  margin: 0;
  font-size: 40px;
  letter-spacing: -.05em;
  font-weight: 500;
  border-bottom: 2px solid var(--accent);
  max-width: none;
  /* color: var(--accent); */
}

.blog-body h2 {
  margin: 40px 0 0 0;
  font-size: 32px;
  letter-spacing: -.05em;
  font-weight: 500;
  max-width: none;
  /* color: var(--accent); */
}

.blog-body h3 {
  margin: 20px 0 0 0;
  font-size: 24px;
  letter-spacing: -.05em;
  font-weight: 500;
  max-width: none;
  /* color: var(--accent); */
}



/*
 * Responsive adjustments
 */

@media(max-width:820px) {
  .wrap {
    width: min(var(--max), calc(100% - 40px))
  }

  .blog-hero {
    grid-template-columns: 1fr;
    gap: 24px
  }

  .hero-image {
    order: -1;
    aspect-ratio: 16 / 9
  }

  .blog-body {
    grid-template-columns: 1fr;
    gap: 8px
  }
}

.blog-hero.no-image {
  grid-template-columns: 1fr
}
