/* ==========================================================================
   Blog article page
   ========================================================================== */

.blog__wrap {
  display: block;
}

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

.blog__wrap .blog__hero {
  position: relative;
  display: flex;
  flex-direction: column;
  /* anchor the title / category / author / date to the bottom of the image */
  justify-content: flex-end;
  width: 100%;
  min-height: 320px;
  margin-bottom: 3rem;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
}

.blog__wrap .blog__hero-media {
  position: absolute;
  inset: 0;
  margin: 0;
  height: 100%;
  width: 100%;
}

.blog__wrap .blog__hero-media img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

.blog__wrap .blog__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 17, 0.55) 0%,
    rgba(15, 15, 17, 0.15) 36%,
    rgba(15, 15, 17, 0.82) 100%
  );
}

/* In-flow content block; the hero pushes it to the bottom via justify-content */
.blog__wrap .blog__hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 1.25rem;
  padding-bottom: 1.75rem;
}

/* Hero content: category -> title -> author/date */
.blog__hero .page__header {
  align-items: center;
  padding: 0;
}

.blog__hero-content {
  max-width: 820px;
}

.blog__kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.4em 0.9em;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 999px;
  background: var(--gs-button-bg-color, #111214);
  color: var(--gs-button-text-color, #ffffff);
}

.blog__title.blog__title {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.75rem, 1rem + 2.6vw, 3rem);
  line-height: 1.12;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35);
}

.blog__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.blog__author {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.blog__avatar {
  display: grid;
  place-items: center;
  height: 2rem;
  width: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.blog__meta-sep {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.blog__date {
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Article body — constrained reading column
   -------------------------------------------------------------------------- */

.blog__content {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
}

.blog__body {
  width: 100%;
  max-width: 760px;
  line-height: 1.75;
}

.blog__body > *:first-child {
  margin-top: 0;
}

.blog__body p {
  margin-bottom: 1.4rem;
}

.blog__body h2,
.blog__body h3,
.blog__body h4 {
  margin-top: 2.4rem;
  margin-bottom: 0.9rem;
  line-height: 1.25;
}

.blog__body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.blog__body a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.blog__body blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 3px solid var(--gs-button-bg-color, #111214);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
}

.blog__body ul,
.blog__body ol {
  margin-bottom: 1.4rem;
  padding-left: 1.4rem;
}

.blog__body li {
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   In-article image alignment (from rich content)
   -------------------------------------------------------------------------- */

figure.image.image-style-align-left {
  margin-right: 10px;
  float: left;
  width: 50%;
}

figure.image.image-style-align-right {
  margin-left: 10px;
  float: right;
  width: 50%;
}

figure:not(.image-style-align-right):not(.image-style-align-left) {
  text-align: center;
}

.blog__body:after {
  content: "";
  display: block;
  clear: both;
}

/* --------------------------------------------------------------------------
   Media queries
   -------------------------------------------------------------------------- */

/* Mobile / small screens */
@media only screen and (max-width: 767.98px) {
  .blog__wrap .blog__hero {
    min-height: 300px;
    margin-bottom: 2rem;
  }

  .blog__wrap .blog__hero-inner {
    padding-top: 1rem;
    padding-bottom: 1.5rem;
  }

  .blog__kicker {
    margin-bottom: 0.75rem;
    text-align: left;
  }

  .blog__meta {
    margin-top: 1rem;
    font-size: 0.875rem;
  }

  .blog__avatar {
    height: 1.75rem;
    width: 1.75rem;
    font-size: 0.72rem;
  }
}

/* Tablet and up */
@media only screen and (min-width: 768px) {
  .blog__wrap .blog__hero {
    min-height: 420px;
  }
}

/* Desktop and up */
@media only screen and (min-width: 992px) {
  .blog__wrap .blog__hero {
    min-height: 520px;
  }

  .blog__wrap .blog__hero-inner {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
}
