html:has(.chapter-home) {
  scroll-padding-top: var(--site-header-height, 148px);
}

/* Fit the carousel and controls in the first screen, allowing extra height for large text. */

.chapter-home .creative-feature-carousel {
  box-sizing: border-box;
  max-width: 1500px;
  min-height: calc(100svh - var(--site-header-height, 148px));
  grid-template-rows: 1fr auto;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 12px clamp(12px, 2.5vw, 38px) max(12px, env(safe-area-inset-bottom));
}

.chapter-home .creative-feature-stage {
  display: grid;
  height: auto;
  min-height: 220px;
  overflow: hidden;
  background: #21180f;
}

.chapter-home .creative-feature-slide {
  position: relative;
  inset: auto;
  grid-area: 1 / 1;
  display: grid;
  grid-template: none;
  grid-template-columns: 48% minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  transition: none;
}

@media (prefers-reduced-motion: no-preference) {
  .chapter-home .creative-feature-slide.is-active { animation: feature-appear 350ms ease-out; }
  @keyframes feature-appear { from { opacity: .78; } to { opacity: 1; } }
}

.chapter-home .creative-feature-copy {
  position: relative;
  inset: auto;
  grid-column: 2;
  min-height: 0;
  padding: clamp(14px, 3svh, 40px) clamp(28px, 5vw, 75px);
}

.chapter-home .creative-feature-copy h1 {
  font-size: clamp(24px, min(3.4vw, 6svh), 47px);
  margin: clamp(6px, 1.7svh, 15px) 0;
  overflow-wrap: anywhere;
}

.chapter-home .creative-feature-copy > p:not(.eyebrow) {
  font-size: clamp(13px, 2.3svh, 17px);
  line-height: 1.45;
  margin: 0;
}

.chapter-home .creative-feature-copy .text-link {
  margin-top: clamp(8px, 2svh, 15px);
}

.chapter-home .creative-feature-photo img {
  object-fit: cover;
  object-position: center 40%;
}

.chapter-home .creative-feature-controls {
  padding-top: 6px;
}

.chapter-home .creative-feature-navigation {
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(3px, 1vw, 8px);
}

.chapter-home .creative-feature-navigation > [data-feature-step] {
  position: static;
  color: #79563f;
  background: transparent;
  border: 1px solid #cbb9a5;
  font-size: 20px;
}

.chapter-home .creative-feature-navigation button,
.chapter-home .creative-feature-navigation .creative-feature-play {
  height: 44px;
}

.chapter-home .creative-feature-navigation > [data-feature-step],
.chapter-home .creative-feature-navigation .creative-feature-play {
  min-width: 44px;
}

.chapter-home .explore {
  box-sizing: border-box;
  min-height: calc(100svh - var(--site-header-height, 148px));
  padding: clamp(14px, 2.5svh, 28px) 2.5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chapter-home .explore > .eyebrow {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
}

.chapter-home .explore > h2 {
  margin: 7px 0 18px;
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.12;
}

.chapter-home .themes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chapter-home .themes > a {
  box-sizing: border-box;
  height: auto;
  padding: clamp(10px, 1vw, 20px);
}

.chapter-home .themes > a > span {
  font-size: 12px;
  line-height: 1.25;
}

.chapter-home .themes h3 {
  min-height: 0;
  margin: 5px 0 6px;
  font-size: clamp(18px, 1.65vw, 27px);
  line-height: 1.2;
}

.chapter-home .themes > a > p.theme-preview {
  min-height: 0;
  margin: 0 0 10px;
  font: italic clamp(12px, 1vw, 15px)/1.4 Lora, Georgia, serif;
}

.chapter-home .themes small {
  display: none;
}

.chapter-home .themes .theme-strip {
  margin: auto 0 0;
  aspect-ratio: auto;
  background: transparent;
}

.chapter-home .themes .theme-strip img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.chapter-home .life-home-links .life-home-visual {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1);
  align-self: center;
}

@media (max-width: 1000px) {
  .chapter-home .themes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  html:has(.chapter-home) {
    scroll-padding-top: var(--site-header-height, 170px);
  }






  .chapter-home .creative-feature-stage {
    min-height: 0;
  }

  .chapter-home .creative-feature-slide {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(80px, 1fr) auto;
  }

  .chapter-home .creative-feature-photo {
    position: relative;
    inset: auto;
    grid-row: 1;
    grid-column: 1;
  }

  .chapter-home .creative-feature-copy {
    grid-column: 1;
    grid-row: 2;
    padding: clamp(12px, 2.5svh, 20px) 6%;
  }

  .chapter-home .creative-feature-copy h1 {
    font-size: clamp(20px, 5.7vw, 30px);
  }

  .chapter-home .creative-feature-copy .eyebrow {
    font-size: 10px;
  }

  .chapter-home .explore {
    padding-inline: 4%;
  }

  .chapter-home .themes h3 {
    font-size: clamp(15px, 4.4vw, 21px);
  }

  .chapter-home .life-home-links > a {
    grid-template-columns: minmax(64px, 25%) 16px minmax(0, 1fr);
    column-gap: 9px;
  }

  .chapter-home .life-home-links strong {
    font-size: clamp(16px, 5vw, 23px);
  }
}

.chapter-home {
  --story-photo-ratio: 3 / 2;
  --story-monochrome: grayscale(1) brightness(1.06) contrast(1.05);
}

.chapter-home .curiosity-story-title {
  margin: 0 0 6px;
  color: #714d3c;
  font: 500 clamp(13px, 1.15vw, 17px)/1.35 Lora, Georgia, serif;
}

.chapter-home .themes .theme-strip {
  aspect-ratio: var(--story-photo-ratio);
}

.chapter-home .themes .theme-strip img {
  height: 100%;
  object-fit: cover;
}

.chapter-home .life-home-links .life-home-visual {
  aspect-ratio: var(--story-photo-ratio);
  height: auto;
}

.chapter-home :is(.themes .theme-strip img, .life-home-links .life-home-visual, .life-home-feature img),
.chapter-home .themes > a:hover .theme-strip img {
  filter: var(--story-monochrome);
  transition: filter 220ms ease;
}

.chapter-home .themes > a:not([data-curiosity-preview="Through the Lens"]):is(:hover, :focus-visible) img,
.chapter-home .life-home-links > a:is(:hover, :focus-visible) img,
.chapter-home .life-home-feature a:is(:hover, :focus-visible) img {
  filter: none;
}

.chapter-home .life-home-feature {
  margin: 0 3% 32px;
  border: 1px solid #d9cbb9;
  background: #faf6ef;
}

.chapter-home .life-home-feature a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 4vw, 56px);
  padding: clamp(18px, 3vw, 40px);
}

.chapter-home .life-home-feature h2 {
  font-size: clamp(24px, 3vw, 44px);
  margin: 10px 0 12px;
}

.chapter-home .life-feature-summary {
  font: 15px/1.65 Lora, Georgia, serif;
  margin: 0;
}

.chapter-home .life-home-feature img {
  display: block;
  width: 100%;
  aspect-ratio: var(--story-photo-ratio);
  object-fit: cover;
}

@media (max-width: 650px) {
  .chapter-home .life-home-feature a {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chapter-home :is(.themes .theme-strip img, .life-home-links .life-home-visual, .life-home-feature img) {
    transition: none;
  }
}

/* Fit the card grid into the viewport space beneath the sticky header. */
.chapter-home .explore {
  --explore-height: calc(100svh - var(--site-header-height, 148px));
  min-height: 0;
  height: var(--explore-height);
  padding-block: clamp(6px, 1.8svh, 22px);
}

.chapter-home .explore > h2 {
  margin-block: 4px clamp(6px, 1.8svh, 18px);
  font-size: clamp(23px, min(3.4vw, 6svh), 52px);
}

.chapter-home .themes {
  min-height: 0;
  max-height: 100%;
  grid-template-rows: minmax(0, 1fr);
}

.chapter-home .themes > a {
  min-height: 0;
  padding: clamp(6px, 1.3svh, 16px);
}

.chapter-home .themes h3 {
  margin-block: 0 4px;
}

.chapter-home .themes > a > p.theme-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  flex: 0 0 auto;
  height: 4.2em;
  margin: 0 0 5px;
}

.chapter-home .themes > a > .curiosity-continue {
  align-self: flex-end;
  padding: 4px 8px;
  margin: 0 0 6px;
  border: 1px solid #b69a80;
  color: #714d3c;
  font: 500 clamp(11px, 1vw, 13px)/1.2 'DM Sans', sans-serif;
}

.chapter-home .themes > a:is(:hover, :focus-visible) > .curiosity-continue {
  color: #fffaf4;
  background: #714d3c;
  border-color: #714d3c;
}

.chapter-home .themes .theme-strip {
  flex: 0 1 auto;
  min-height: 28px;
}

@media (max-width: 1000px) {
  .chapter-home .explore {
    --explore-height: calc(100svh - var(--site-header-height, 170px));
    min-height: 328px;
  }

  .chapter-home .themes {
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .chapter-home .themes h3 {
    font-size: clamp(13px, 3.6vw, 21px);
    margin-bottom: 2px;
  }

  .chapter-home .curiosity-story-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: clamp(11px, 2.8vw, 15px);
    line-height: 1.2;
    margin-bottom: 3px;
  }

  .chapter-home .themes > a > p.theme-preview {
    font-size: clamp(11px, 2.8vw, 13px);
    line-height: 1.25;
    height: 3.75em;
    margin-bottom: 4px;
  }

  .chapter-home .themes > a > .curiosity-continue {
    padding: 3px 5px;
    margin-bottom: 4px;
  }
}

@media (max-width: 650px) {
  .chapter-home .explore {
    height: auto;
    min-height: 0;
    padding-block: 18px;
  }

  .chapter-home .themes {
    max-height: none;
    grid-template-rows: auto;
  }

  .chapter-home .themes > a > p.theme-preview,
  .chapter-home .curiosity-story-title {
    display: block;
    height: auto;
    overflow: visible;
  }

  .chapter-home .themes .theme-strip {
    flex: none;
  }
}

.chapter-home .weekly-feeling {
  margin: 0 auto 32px;
  width: min(94%, 1400px);
  padding: clamp(12px, 3vw, 42px);
  box-sizing: border-box;
  background: #eee9de;
  border: 1px solid #dbcec0;
}
.chapter-home .weekly-feeling h2 {
  font-size: clamp(25px, 4vw, 44px);
  margin: 0 0 18px;
}
#weekly-feeling-polaroids {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: clamp(8px, 2vw, 24px);
}
.feeling-polaroid {
  display: flex;
  flex-direction: column;
  padding: clamp(6px, 1.1vw, 15px);
  background: #fffaf2;
  color: #4b352b;
  box-shadow: 0 3px 10px #48392b24;
}
.feeling-polaroid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.feeling-polaroid span {
  padding-block: 10px 6px;
  font: italic clamp(12px, 1.3vw, 16px)/1.4 Lora, Georgia, serif;
}
.feeling-polaroid:is(:hover, :focus-visible) span { text-decoration: underline; }
@media (max-width: 430px) {
  #weekly-feeling-polaroids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.feeling-polaroid img {
 filter: grayscale(1) brightness(1.05) contrast(1.08);
 transition: filter 240ms ease;
}
.feeling-polaroid:is(:hover, :focus-visible) img { filter: none; }
@media (prefers-reduced-motion: reduce) {
 .feeling-polaroid img { transition: none; }
}

.chapter-home .whats-today-banner {
  display:grid;
  justify-items:center;
  gap:clamp(10px,2.4vw,24px);
  margin:0 auto 32px;
  width:min(94%,1400px);
  box-sizing:border-box;
  padding:clamp(20px,4vw,46px) 12px;
  background:#faf6ed;
  color:#2c211b;
  border:1px solid #d8c6ac;
  border-radius:12px;
  text-align:center;
  text-decoration:none;
}
.whats-today-brand { color:#8c6939;font-size:clamp(10px,1.4vw,15px);letter-spacing:.3em; }
.whats-today-banner strong { font:400 clamp(36px,8vw,100px)/1.05 Lora,Georgia,serif; }
.whats-today-tagline { font:italic clamp(15px,2.5vw,26px)/1.3 Lora,Georgia,serif; }
.whats-today-tagline::before { content:"";display:block;width:min(100%,180px);margin:0 auto 12px;border-bottom:1px solid #b59455; }

/* Leave enough space below this anchor to align it below the sticky masthead. */
.chapter-home #connection:target {
 box-sizing:border-box;
 min-block-size:calc(100svh - var(--site-header-height, 148px) - 16px);
 align-content:start;
 padding-block-start:clamp(16px, 3svh, 32px);
}

@media (prefers-reduced-motion: no-preference) {
 .feeling-polaroid.is-awaiting-reveal {
  opacity:0;
  transform:translateY(24px) scale(.94);
 }
 .feeling-polaroid.is-revealing {
  animation:polaroid-rise 720ms cubic-bezier(.2,.7,.3,1)
   calc(var(--polaroid-step, 0) * 85ms) both;
 }
 @keyframes polaroid-rise {
  from { opacity:0; transform:translateY(24px) scale(.94); }
  72% { opacity:1; transform:translateY(-3px) scale(1.015); }
  to { opacity:1; transform:none; }
 }
}
