.stories-index,
.reading-main {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.stories-index {
  padding: clamp(82px, 11vw, 150px) 0 140px;
}

.stories-hero {
  max-width: 920px;
}

.stories-kicker {
  display: block;
  color: var(--purple);
  font: 750 11px ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .14em;
}

.stories-hero h1 {
  margin: 22px 0 30px;
  font-size: clamp(72px, 11vw, 148px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.075em;
}

.stories-hero p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
}

.story-list {
  margin-top: clamp(72px, 10vw, 126px);
  border-top: 1px solid var(--line);
}

.story-row {
  min-height: 172px;
  padding: 32px 4px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  transition: padding .24s ease, background-color .24s ease;
}

.story-row:hover {
  padding-inline: 18px;
  background: rgba(101, 72, 238, .035);
}

.story-number {
  align-self: start;
  padding-top: 9px;
  color: var(--purple);
  font: 700 11px ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.story-row-copy h2 {
  margin: 0 0 13px;
  font-size: clamp(29px, 3.3vw, 44px);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.story-row-copy p {
  max-width: 660px;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.story-row-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
  color: var(--muted);
  font: 650 10px ui-monospace, "SFMono-Regular", Consolas, monospace;
  white-space: nowrap;
}

.story-arrow {
  color: var(--purple);
  font-size: 20px;
  transition: transform .2s ease;
}

.story-row:hover .story-arrow {
  transform: translate(4px, -4px);
}

.reading-main {
  max-width: 980px;
  padding-bottom: 130px;
}

.story-article {
  width: min(100%, 760px);
  margin-inline: auto;
}

.story-header {
  padding: clamp(86px, 11vw, 138px) 0 68px;
  border-bottom: 1px solid var(--line);
}

.back-to-stories {
  display: inline-flex;
  margin-bottom: 58px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  transition: color .2s ease, border-color .2s ease;
}

.back-to-stories:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.story-header h1 {
  max-width: 800px;
  margin: 21px 0 34px;
  font-size: clamp(54px, 8.5vw, 92px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.065em;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  color: var(--muted);
  font: 650 11px ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.story-body {
  padding: 70px 0 105px;
  color: var(--ink);
  font-family: ui-serif, "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", STSong, serif;
  font-size: 18px;
  line-height: 2.08;
  letter-spacing: .018em;
  text-wrap: pretty;
}

.story-body p {
  margin: 0 0 1.48em;
}

.story-body p:last-child {
  margin-bottom: 0;
}

.story-break {
  height: 30px;
}

.story-neighbors {
  width: min(100%, 900px);
  margin: 0 auto;
  padding-top: 35px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.story-neighbors > a {
  min-height: 122px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}

.story-neighbors > a:hover {
  border-color: var(--purple);
  background: rgba(101, 72, 238, .04);
  transform: translateY(-3px);
}

.story-neighbors span {
  color: var(--muted);
  font-size: 11px;
}

.story-neighbors strong {
  font-size: 18px;
  letter-spacing: -.025em;
}

.next-story {
  text-align: right;
}

html[data-theme="dark"] .story-row:hover,
html[data-theme="dark"] .story-neighbors > a:hover {
  background: rgba(155, 135, 255, .055);
}

@media (max-width: 760px) {
  .stories-index,
  .reading-main {
    width: min(100% - 30px, 1120px);
  }

  .stories-index {
    padding: 82px 0 100px;
  }

  .stories-hero h1 {
    margin-top: 19px;
    font-size: clamp(62px, 20vw, 92px);
  }

  .story-list {
    margin-top: 72px;
  }

  .story-row {
    min-height: 0;
    padding: 28px 0;
    grid-template-columns: 30px minmax(0, 1fr) 22px;
    gap: 13px;
  }

  .story-row:hover {
    padding-inline: 0;
    background: transparent;
  }

  .story-number {
    padding-top: 6px;
    font-size: 9px;
  }

  .story-row-copy h2 {
    margin-bottom: 10px;
    font-size: clamp(27px, 8vw, 36px);
  }

  .story-row-copy p {
    font-size: 12px;
    -webkit-line-clamp: 3;
  }

  .story-row-meta {
    grid-column: 2;
    grid-row: 2;
    margin-top: -3px;
    display: flex;
    flex-wrap: wrap;
    justify-items: start;
    justify-content: flex-start;
    gap: 7px 15px;
    font-size: 9px;
  }

  .story-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .story-header {
    padding: 72px 0 50px;
  }

  .back-to-stories {
    margin-bottom: 46px;
  }

  .story-header h1 {
    margin-top: 18px;
    font-size: clamp(48px, 15vw, 68px);
  }

  .story-body {
    padding: 54px 1px 82px;
    font-size: 17px;
    line-height: 2.02;
    letter-spacing: .012em;
  }

  .story-body p {
    margin-bottom: 1.4em;
  }

  .story-break {
    height: 22px;
  }

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

  .story-neighbors > span {
    display: none;
  }

  .story-neighbors > a {
    min-height: 106px;
    border-radius: 18px;
  }

  .next-story {
    text-align: left;
  }
}
