/* Shared archive and reading styles. Keep poem whitespace untouched. */
.writing-archive {
  max-width: 850px;
  margin: 0 auto;
}
.archive-eye {
  display: inline-block;
  margin-left: 16px;
  font-size: 24px;
  opacity: 0.6;
  vertical-align: middle;
}
#writing .archive-intro h2,
.archive-page h1 {
  font:
    300 clamp(35px, 5vw, 58px)/1.08 "Cormorant Garamond",
    Georgia,
    serif;
  margin: 12px 0 16px;
}
.archive-note {
  color: #aaa096;
  font:
    italic 19px/1.5 "Cormorant Garamond",
    Georgia,
    serif;
  margin: 0 0 24px;
}
.archive-status {
  color: #aaa096;
  font-size: 10px;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}
.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.archive-list li {
  border-bottom: 1px solid #bca48720;
}
.archive-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  text-decoration: none;
  color: inherit;
  font:
    400 clamp(22px, 3vw, 29px)/1.25 "Cormorant Garamond",
    Georgia,
    serif;
  transition: color 0.2s;
}
.archive-list a:hover {
  color: #bca487;
}
.archive-list small {
  display: block;
  font:
    300 12px/1.6 "DM Sans",
    sans-serif;
  color: #aaa096;
  margin-top: 7px;
}
.archive-arrow {
  color: #bca487;
  opacity: 0.65;
  font:
    300 16px "DM Sans",
    sans-serif;
}
.archive-elsewhere {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 22px 0 4px;
  color: #aaa096;
  font:
    300 11px/1.7 "DM Sans",
    sans-serif;
}
.archive-elsewhere a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: #bca48760;
}
.archive-elsewhere > span {
  flex-basis: 100%;
  font-style: italic;
}
.archive-page,
.reading-page {
  margin: 0;
  background: #0b0a09;
  color: #e4dbd0;
  font:
    300 14px/1.7 "DM Sans",
    sans-serif;
}
.archive-page *,
.reading-page * {
  box-sizing: border-box;
}
.archive-page a,
.reading-page a {
  color: inherit;
  text-decoration: none;
}
.archive-page main {
  padding: 45px 7% 60px;
}
.archive-page .kicker {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: #bca487;
}
.reading-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  max-width: 1100px;
  padding: 32px 6%;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.reading-nav a:hover,
.reading-pagination a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.reading-sheet {
  width: min(100% - 48px, 660px);
  margin: 65px auto 80px;
  min-height: 36vh;
}
.collection-name {
  color: #a79887;
  font-size: 10px;
  letter-spacing: 0.12em;
  margin-bottom: 32px;
}
.reading-sheet h1 {
  font:
    400 clamp(36px, 6vw, 58px)/1.12 "Cormorant Garamond",
    Georgia,
    serif;
  margin: 0 0 18px;
  text-wrap: balance;
}
.opening-reference {
  font:
    italic 20px/1.6 "Cormorant Garamond",
    Georgia,
    serif;
  color: #b6a797;
}
.reading-symbol {
  display: block;
  font-size: 26px;
  color: #a79887;
  opacity: 0.7;
  margin: 36px 0;
}
.pending-text {
  font-size: 12px;
  color: #a79887;
}
.poem {
  white-space: pre-wrap;
  tab-size: 4;
  overflow-wrap: break-word;
  font:
    400 clamp(18px, 2.4vw, 21px)/1.9 "Cormorant Garamond",
    Georgia,
    serif;
}
.reading-pagination {
  display: flex;
  justify-content: space-between;
  width: min(100% - 48px, 660px);
  margin: 0 auto 54px;
  font-size: 11px;
  color: #a79887;
}
.reading-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #a79887;
}
.reading-page.paper {
  background: #e9e2d6;
  color: #302a24;
}
.paper .collection-name,
.paper .reading-symbol,
.paper .pending-text,
.paper .reading-pagination,
.paper .reading-footer,
.paper .opening-reference {
  color: #736556;
}
a:focus-visible {
  outline: 1px solid #bca487;
  outline-offset: 6px;
}
@media (max-width: 600px) {
  .reading-sheet {
    margin-top: 38px;
    margin-bottom: 60px;
  }
  .reading-nav {
    padding: 24px;
  }
  .archive-page main {
    padding-top: 25px;
  }
  .archive-list a {
    padding: 17px 0;
  }
}

/* Tarot archive: five illustrated cards, with quiet reading pages beyond them. */
#writing .writing-archive,
.archive-page .writing-archive {
  max-width: 1180px;
}
.tarot-deck {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 28px 0 24px;
}
.tarot-deck li {
  min-width: 0;
}
.tarot-card {
  position: relative;
  min-height: 392px;
  height: 100%;
  padding: 24px 18px 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  color: #d5c0a3 !important;
  text-decoration: none;
  border: 1px solid #887154;
  border-radius: 80px 80px 5px 5px;
  background: radial-gradient(ellipse at 50% 28%, #33271c, #17120e 72%);
  isolation: isolate;
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}
.tarot-card:before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid #bca48735;
  border-radius: 73px 73px 2px 2px;
  pointer-events: none;
}
.tarot-card:hover {
  transform: translateY(-7px);
  border-color: #dac3a1;
  box-shadow: 0 14px 35px #0005;
}
.card-number {
  font:
    400 11px Georgia,
    serif;
  letter-spacing: 0.15em;
  opacity: 0.7;
}
.tarot-art {
  width: 100%;
  max-width: 170px;
  height: 194px;
  margin: 6px 0 10px;
  color: #bca487;
}
.card-title {
  font:
    400 clamp(20px, 2.1vw, 26px)/1.15 "Cormorant Garamond",
    Georgia,
    serif;
  text-wrap: balance;
}
.card-opening {
  font:
    italic 14px/1.4 "Cormorant Garamond",
    Georgia,
    serif;
  color: #b2a08a;
  margin-top: 8px;
}
.card-foot {
  margin-top: auto;
  padding-top: 22px;
  font:
    300 9px/1.5 "DM Sans",
    sans-serif;
  letter-spacing: 0.1em;
  color: #b2a08a;
}
.tarot-2 {
  background: radial-gradient(ellipse at 50% 28%, #302822, #14110e 72%);
}
.tarot-3 {
  background: radial-gradient(ellipse at 50% 28%, #2e3024, #15150f 72%);
}
.tarot-4 {
  background: radial-gradient(ellipse at 50% 28%, #332635, #161016 72%);
}
.tarot-5 {
  background: radial-gradient(ellipse at 50% 28%, #23302c, #101614 72%);
}
.reading-sheet {
  width: min(100% - 48px, 760px);
}
.poem {
  line-height: 1.85;
}
@media (max-width: 1000px) {
  .tarot-deck {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .card-title {
    font-size: 26px;
  }
}
@media (max-width: 600px) {
  .tarot-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .tarot-card {
    min-height: 340px;
    padding: 22px 13px 18px;
  }
  .tarot-art {
    height: 155px;
  }
  .card-title {
    font-size: 23px;
  }
}
@media (max-width: 360px) {
  .tarot-deck {
    grid-template-columns: 1fr;
    max-width: 260px;
    margin-inline: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tarot-card {
    transition: none;
  }
  .tarot-card:hover {
    transform: none;
  }
}

#writing .archive-intro h2,
.archive-page .archive-intro h1 {
  font-size: clamp(16px, 4.2vw, 58px);
  white-space: nowrap;
  letter-spacing: -0.025em;
}
