/* Blog Figma 6306:1451. Shared header, offer and footer retain their own system. */
.blog-page {
  --page-gutter: var(--compact-page-gutter);
  --blog-title-size: 3.210625rem;
  position: relative;
  isolation: isolate;
}
.blog-page__masthead {
  position: relative;
  padding-top: .5rem;
}
.blog-page__backdrop {
  --scene-canvas-width: 900px;
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  /* Keep the source's colored portion behind the full intro as text grows.
     320.125px is the rounded bottom of the 1400px source introduction. */
  height: max(calc(var(--scene-canvas-width) * 676 / 1400), calc(100% * 676 / 320.125));
  overflow: clip;
  pointer-events: none;
}
.blog-page__backdrop img {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: var(--scene-canvas-width);
  max-width: none;
  height: 100%;
  object-fit: cover;
}
.blog-page__header, .blog-page__intro { color: var(--color-white); }
.blog-page__intro h1 {
  max-width: 39.375rem;
  margin-top: clamp(2rem, 4.5vw, 3.5rem);
  font-size: clamp(1.875rem, calc(1.389rem + 2.22vw), var(--blog-title-size));
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
.blog-page__intro h1 span { display: block; }
.blog-page__description {
  max-width: 33.75rem;
  margin-top: 1.51625rem;
  color: rgb(255 255 255 / 80%);
  font-size: clamp(.875rem, calc(.82232rem + .2634vw), 1.019875rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
.blog-page .blog-catalog { margin-top: 2.43375rem; }
.blog-page .special-offer { padding-top: 0; padding-bottom: clamp(3rem, 6vw, 5rem); }
@media (width < 75rem) {
  .blog-page__backdrop {
    --scene-edge-display: none;
    /* Only the empty left third supplies the sky; its height follows the copy. */
    background: var(--scene-image) left top / 300% 100% no-repeat;
  }
}
@media (width < 48rem) {
  .blog-page__backdrop img { display: none; }
}
@media (48rem <= width < 75rem) {
  .blog-page__backdrop { --scene-canvas-width: 1200px; }
  .blog-page__backdrop img {
    top: max(0px, calc(3.75rem - 6vw));
    left: 0;
    translate: none;
    width: 100%;
    height: auto;
    /* Blend the decorative side into the independent sky, keeping the full
       notebook and pencil in frame without lightening the text's backdrop. */
    mask-image: linear-gradient(90deg, transparent 50%, #000 65%), linear-gradient(transparent, #000 10%, #000 45%, transparent 75%);
    mask-composite: intersect;
  }
}
@media (width >= 75rem) {
  .blog-page { --page-gutter: var(--desktop-page-gutter); }
  .blog-page__masthead { padding-top: .875rem; }
  .blog-page__backdrop { --scene-canvas-width: calc(var(--scene-source-width) * var(--hero-scene-scale)); }
  .blog-page__intro h1 { margin-top: 1.875rem; font-size: var(--blog-title-size); }
  .blog-page__description { font-size: 1.019875rem; }
}
@media print {
  .blog-page__backdrop { display: none; }
  .blog-page__intro { color: var(--color-ink); }
  .blog-page__description { color: inherit; }
}

/* Compact blog navigation stays below the menu, above the cover. */
@media (width < 75rem) {
  .blog-page .breadcrumbs { display: block; margin-top: 1.25rem; font-size: .8125rem; line-height: 1.4; letter-spacing: normal; }
  .blog-page .breadcrumbs ol { flex-wrap: nowrap; gap: .5rem; min-width: 0; }
  .blog-page .breadcrumbs li { flex: none; gap: .5rem; min-width: 0; }
  .blog-page .breadcrumbs li:last-child { flex: 0 1 auto; }
  .blog-page .breadcrumbs li::before { flex: none; }
  .blog-page .breadcrumbs [aria-current] { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; opacity: .8; }
  .blog-page .breadcrumbs a { display: inline-flex; align-items: center; min-height: 2rem; }
}
