.subpage .site-header {
  position: relative;
}

.subpage .site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.daily-hero {
  min-height: 510px;
  padding: 104px max(24px, calc((100% - var(--max-width)) / 2)) 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 64px;
  border-bottom: 1px solid var(--line);
}

.daily-hero h1 {
  max-width: 800px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 9vw, 132px);
  font-weight: 400;
  line-height: 0.98;
}

.daily-intro {
  padding: 28px 0 6px;
  border-top: 1px solid var(--line);
}

.daily-intro p {
  margin: 0 0 42px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.daily-intro span {
  font-size: 13px;
}

.daily-intro strong {
  margin-right: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 400;
}

.timeline-band {
  padding: 100px max(24px, calc((100% - var(--max-width)) / 2)) 120px;
  background: var(--white);
}

.timeline-heading {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: end;
  gap: 32px;
  margin-bottom: 54px;
}

.timeline-heading .eyebrow {
  margin: 0 0 7px;
}

.timeline-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 400;
  line-height: 1.08;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(220px, 0.75fr) minmax(280px, 1.25fr);
  gap: clamp(24px, 4vw, 62px);
  align-items: center;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-entry::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background: var(--paper);
  opacity: 0;
  transition: opacity 180ms ease;
}

.timeline-entry:hover::before,
.timeline-entry:focus-visible::before {
  opacity: 1;
}

.timeline-entry:focus-visible {
  outline-offset: 8px;
}

.timeline-entry > * {
  position: relative;
  z-index: 1;
}

.timeline-order {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 0;
}

.timeline-order span {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.timeline-order time {
  color: var(--muted);
  font-size: 12px;
}

.memory-visual,
.story-visual {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.memory-visual {
  aspect-ratio: 4 / 3;
  min-height: 190px;
  display: grid;
  place-items: center;
}

.memory-visual::before,
.story-visual::before {
  position: absolute;
  inset: 12%;
  z-index: -1;
  content: "";
  border: 1px solid rgba(32, 34, 31, 0.42);
}

.memory-visual::after,
.story-visual::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 1px;
  content: "";
  background: rgba(32, 34, 31, 0.2);
  transform: rotate(32deg);
}

.memory-visual > span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 7vw, 104px);
  line-height: 1;
}

.memory-visual small,
.story-visual small {
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-size: 11px;
  font-weight: 800;
}

.tone-coral { background: var(--coral); }
.tone-green { background: var(--green); }
.tone-blue { background: var(--blue); }
.tone-yellow { background: var(--yellow); }

.timeline-copy {
  padding-right: 60px;
}

.timeline-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.7vw, 38px);
  line-height: 1.25;
}

.timeline-copy > p {
  max-width: 520px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font-size: 10px;
}

.timeline-arrow {
  position: absolute;
  top: 0;
  right: 4px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 19px;
  transition: color 180ms ease, background-color 180ms ease;
}

.timeline-entry:hover .timeline-arrow,
.timeline-entry:focus-visible .timeline-arrow {
  color: var(--white);
  background: var(--ink);
}

.content-state,
.detail-state {
  margin: 0;
  padding: 64px 0;
  color: var(--muted);
  text-align: center;
}

.content-error {
  color: #9c3c2e;
}

.daily-ending {
  min-height: 390px;
  padding: 80px max(24px, calc((100% - var(--max-width)) / 2));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  background: var(--green);
}

.daily-ending p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.2;
}

.daily-ending a {
  padding-bottom: 10px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 800;
}

.story-hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  border-bottom: 1px solid var(--line);
}

.story-visual {
  min-height: 560px;
  display: grid;
  place-items: center;
}

.story-visual > span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(110px, 18vw, 260px);
  line-height: 1;
}

.story-visual small {
  right: 34px;
  bottom: 28px;
  font-size: 13px;
}

.story-heading {
  padding: clamp(70px, 8vw, 120px) max(24px, calc((100vw - var(--max-width)) / 2)) 72px clamp(42px, 6vw, 90px);
  align-self: center;
}

.back-link {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 54px;
  color: var(--muted);
  font-size: 12px;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.story-heading h1 {
  max-width: 700px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 400;
  line-height: 1.08;
}

.story-summary {
  max-width: 620px;
  margin: 32px 0 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.story-body {
  padding: 100px 24px 120px;
  background: var(--white);
}

.story-body > div {
  max-width: 720px;
  margin: 0 auto;
}

.story-body p {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 2;
}

.story-body blockquote {
  margin: 58px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.5;
}

.story-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.story-nav a {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px max(24px, calc((100vw - var(--max-width)) / 2));
  border-right: 1px solid var(--line);
}

.story-nav a:last-child {
  border-right: 0;
}

.story-nav span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.story-nav strong {
  font-size: 22px;
}

.detail-state a {
  display: inline-block;
  margin-top: 12px;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
}

@media (max-width: 900px) {
  .daily-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  }

  .timeline-entry {
    grid-template-columns: 120px minmax(190px, 0.8fr) minmax(240px, 1.2fr);
    gap: 24px;
  }

  .story-hero {
    grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  }
}

@media (max-width: 680px) {
  .daily-hero {
    min-height: 470px;
    padding-top: 76px;
    padding-bottom: 52px;
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .daily-hero h1 {
    font-size: 64px;
  }

  .daily-intro p {
    margin-bottom: 26px;
  }

  .timeline-band {
    padding-top: 72px;
    padding-bottom: 84px;
  }

  .timeline-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .timeline-heading h2 {
    font-size: 40px;
  }

  .timeline-entry {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 28px 0 34px;
  }

  .timeline-order {
    grid-row: 1 / span 2;
    min-height: 100%;
  }

  .timeline-order span {
    font-size: 24px;
  }

  .timeline-order time {
    writing-mode: vertical-rl;
  }

  .memory-visual {
    min-height: 0;
  }

  .timeline-copy {
    padding: 0 48px 0 0;
  }

  .timeline-copy h3 {
    margin-top: 22px;
    font-size: 26px;
  }

  .timeline-arrow {
    top: 18px;
    width: 38px;
    height: 38px;
  }

  .daily-ending {
    min-height: 340px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }

  .daily-ending p {
    font-size: 42px;
  }

  .story-hero {
    display: flex;
    flex-direction: column;
  }

  .story-visual {
    min-height: auto;
    aspect-ratio: 1 / 0.82;
    order: 2;
  }

  .story-heading {
    padding: 60px 24px 52px;
  }

  .back-link {
    margin-bottom: 42px;
  }

  .story-heading h1 {
    font-size: 50px;
  }

  .story-summary {
    font-size: 15px;
  }

  .story-body {
    padding-top: 72px;
    padding-bottom: 82px;
  }

  .story-body p {
    font-size: 16px;
  }

  .story-nav {
    grid-template-columns: 1fr;
  }

  .story-nav a {
    min-height: 132px;
    padding: 28px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .story-nav a:last-child {
    border-bottom: 0;
  }
}
