.daily-story {
  --story-cream: #fffaf0;
  --story-ink: #23352b;
  --story-muted: #5f685f;
  --story-forest: #20392e;
  --story-gold: #c4a066;
  --story-line: #d7cbb7;
  padding-block: clamp(4rem, 8vw, 7rem);
  background: #f1ece2;
  color: var(--story-ink);
}

.daily-story__shell {
  width: min(calc(100% - 2 * clamp(1.25rem, 4vw, 4rem)), 76rem);
  margin-inline: auto;
}

.daily-story__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.55fr);
  gap: 2rem 4rem;
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3.75rem);
}

.daily-story__heading h2 {
  max-width: 15ch;
  margin: 0 0 1rem;
  color: var(--story-ink);
  font-size: clamp(2.35rem, 4.5vw, 4.2rem);
  line-height: 1.08;
}

.daily-story__heading p {
  max-width: 62ch;
  margin-bottom: 0;
}

.daily-story__eyebrow {
  color: #765826;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.daily-story__calendar {
  padding-left: 1rem;
  border-left: 2px solid var(--story-gold);
  color: var(--story-muted);
  font-size: 0.88rem;
}

.daily-story__calendar time,
.daily-story__calendar span {
  display: block;
}

.daily-story__calendar time {
  color: var(--story-ink);
  font-weight: 750;
}

.daily-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.daily-story__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 0.8rem;
  background: var(--story-forest);
  box-shadow: 0 1.5rem 4rem rgb(31 51 42 / 16%);
}

.daily-story__poster {
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  justify-items: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  background:
    radial-gradient(circle at 70% 15%, rgb(196 160 102 / 32%), transparent 30%),
    linear-gradient(145deg, #29483a, #172d25);
  color: var(--story-cream);
  text-align: center;
}

.daily-story__poster[hidden] {
  display: none;
}

.daily-story__symbol {
  display: grid;
  width: 4.25rem;
  height: 4.25rem;
  place-items: center;
  margin-bottom: 1rem;
  border: 1px solid rgb(255 250 240 / 45%);
  border-radius: 50%;
  color: var(--story-gold);
  font-size: 1.35rem;
}

.daily-story__poster-label {
  margin-bottom: 0.45rem;
  color: #e0c690;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.daily-story__poster h3 {
  margin: 0 0 1.25rem;
  color: var(--story-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3.3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
}

.daily-story__load,
.daily-story__close {
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--story-cream);
  border-radius: 0.4rem;
  background: var(--story-cream);
  color: var(--story-forest);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
}

.daily-story__load:hover,
.daily-story__close:hover {
  background: #f0dfbd;
}

.daily-story__media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.daily-story__close {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  right: 0.75rem;
  min-height: 2.6rem;
  border-color: rgb(255 255 255 / 45%);
  background: rgb(23 45 37 / 92%);
  color: var(--story-cream);
}

.daily-story__close:hover {
  background: #172d25;
  color: #fff;
}

.daily-story__privacy {
  max-width: 48rem;
  margin: 0.8rem 0 0;
  color: var(--story-muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.daily-story__copy h3 {
  margin-bottom: 1rem;
  color: var(--story-ink);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.2;
}

.daily-story__summary {
  color: var(--story-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.daily-story__prompt {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--story-gold);
  background: rgb(255 253 248 / 72%);
  line-height: 1.75;
}

.daily-story__prompt strong,
.daily-story__note strong {
  color: var(--story-ink);
}

.daily-story__note,
.daily-story__credit,
.daily-story__rights {
  color: var(--story-muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.daily-story__source {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  color: var(--story-forest);
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22rem;
}

.daily-story__meaning {
  display: grid;
  grid-template-columns: minmax(12rem, 0.36fr) minmax(0, 1fr);
  gap: 1rem 3rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--story-line);
}

.daily-story__meaning h3 {
  margin-bottom: 0;
  color: var(--story-ink);
  font-size: 1.35rem;
}

.daily-story__meaning p {
  margin-bottom: 0;
  color: var(--story-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

html[lang^="zh"] .daily-story__heading h2,
html[lang^="zh"] .daily-story__copy h3,
html[lang^="zh"] .daily-story__meaning h3,
html[lang^="zh"] .daily-story__poster h3 {
  letter-spacing: 0;
}

html[lang^="zh"] .daily-story__eyebrow {
  letter-spacing: 0.06em;
}

@media (max-width: 52rem) {
  .daily-story__heading,
  .daily-story__grid,
  .daily-story__meaning {
    grid-template-columns: 1fr;
  }

  .daily-story__heading {
    align-items: start;
  }

  .daily-story__calendar {
    max-width: 18rem;
  }
}

@media (max-width: 36rem) {
  .daily-story__shell {
    width: min(calc(100% - 2.5rem), 76rem);
  }

  .daily-story__media {
    border-radius: 0.45rem;
  }

  .daily-story__privacy {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .daily-story__load,
  .daily-story__close {
    scroll-behavior: auto;
  }
}
