/* The library uses the same paper, ink and arch as the home page. */
.cover-christianity {
  --cover: #574253;
  --cover-ink: #fff2dd;
}
.cover-judaism {
  --cover: #cbd1bd;
  --cover-ink: #2f4035;
}
.cover-islam {
  --cover: #355451;
  --cover-ink: #f3ead2;
}
.cover-hinduism {
  --cover: #cd946f;
  --cover-ink: #392c28;
}
.cover-buddhism {
  --cover: #dbc993;
  --cover-ink: #413725;
}
.cover-taoism {
  --cover: #8fa4a0;
  --cover-ink: #152622;
}
.cover-confucianism {
  --cover: #c6b5c3;
  --cover-ink: #392e3c;
}
.cover-stoicism {
  --cover: #3f4a63;
  --cover-ink: #eef0f5;
}
.cover-mindfulness {
  --cover: #476459;
  --cover-ink: #f0e2b9;
}
.cover-minimalism {
  --cover: #d7c3a3;
  --cover-ink: #51412d;
}
.cover-absurdism {
  --cover: #634450;
  --cover-ink: #f3d9b7;
}
.cover-love {
  --cover: #deb7ac;
  --cover-ink: #4b2830;
}
.cover-buddhism .book-title {
  font-size: clamp(16px, 1.38vw, 21px);
}
.study-shelf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 32px 0 14px;
}
.study-shelf-head h3 {
  margin: 0;
  font: 500 clamp(23px, 3vw, 34px) / 1.2 var(--serif);
  letter-spacing: -0.03em;
}
.study-shelf-head > a {
  font-size: 14px;
  color: var(--accent);
  padding-block: 10px;
}
.study-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.study-volume {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-block-start: 1px solid var(--rule);
  text-decoration: none;
}
.study-volume > span:nth-child(2) {
  min-width: 0;
}
.study-volume strong {
  display: block;
  font: 600 19px/1.2 var(--serif);
  letter-spacing: -0.025em;
}
.study-volume strong + span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.study-volume i,
.catalog-cover h2 span,
.study-part li i {
  color: var(--accent);
  font-style: normal;
}
.mini-cover {
  width: 44px;
  height: 58px;
  display: grid;
  place-items: center;
  background: var(--cover);
  color: var(--cover-ink);
  border-radius: 24px 24px 2px 2px;
  box-shadow: inset 0 0 0 1px #0001;
}
.collection-glyph {
  font:
    400 1.65rem/1 Georgia,
    serif;
}
.study-volume:hover strong,
.catalog-cover:hover h2,
.study-part li a:hover strong {
  text-decoration: underline;
  text-underline-offset: 0.19em;
}
.study-public {
  --study-width: 1120px;
}
.study-public .wrap {
  max-width: var(--study-width);
}
.study-public .source-nav {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.study-public .top {
  gap: 24px;
}
.study-public .source-nav:hover {
  text-decoration: underline;
}
.collection-intro,
.study-hero {
  padding-block: clamp(32px, 5.5vw, 78px) clamp(28px, 4vw, 54px);
}
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.back-link:hover {
  text-decoration: underline;
}
.study-public h1,
.study-public h2,
.study-public h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.study-public h1 {
  font-size: clamp(46px, 7vw, 88px);
  margin: 14px 0 18px;
}
.collection-intro > p,
.study-description {
  max-width: 59ch;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.study-public h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin: 0 0 20px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 38px);
  padding-bottom: clamp(40px, 7vw, 96px);
}
.catalog-cover {
  display: block;
  text-decoration: none;
}
.catalog-cover h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 5px;
  font-size: clamp(26px, 3.8vw, 41px);
}
.catalog-cover h2 span {
  font: 400 19px var(--ui);
}
.catalog-card p {
  margin: 0 0 11px;
  color: var(--muted);
  line-height: 1.55;
}
.study-meta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--muted);
}
.study-cover {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1.55;
  background: var(--cover);
  color: var(--cover-ink);
  border-radius: 3px;
  border: 1px solid #0002;
  box-shadow:
    inset 5px 0 0 #00000014,
    inset 7px 0 0 #ffffff17;
}
.cover-field {
  display: grid;
  place-items: center;
  width: 61%;
  height: 77%;
  border: 1px solid currentColor;
  border-radius: 56% 56% 0 0 / 62% 62% 0 0;
  position: relative;
}
.cover-field::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid currentColor;
  border-radius: inherit;
  opacity: 0.38;
}
.cover-field .collection-glyph {
  font-size: clamp(52px, 6.6vw, 82px);
  font-weight: 400;
}
.study-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 24%);
  gap: clamp(25px, 6vw, 86px);
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.study-hero .study-cover {
  width: 100%;
  aspect-ratio: 0.86;
}
.study-hero .study-meta {
  margin: 17px 0;
}
.study-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.study-actions > a:last-child {
  font-size: 15px;
  color: var(--accent);
}
.study-layout {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(0, 3fr);
  gap: clamp(24px, 6vw, 80px);
  margin: clamp(30px, 4vw, 60px) 0 80px;
}
.study-side {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
}
.study-side a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.study-side a:hover {
  text-decoration: underline;
}
.study-text {
  min-width: 0;
}
.study-text section + section {
  margin-top: 58px;
}
.study-part {
  border-top: 1px solid var(--rule);
}
.study-part:last-child {
  border-bottom: 1px solid var(--rule);
}
.study-part summary {
  position: relative;
  cursor: pointer;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 15px 32px 15px 0;
  list-style: none;
}
.study-part summary::-webkit-details-marker {
  display: none;
}
.study-part summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  color: var(--muted);
  font-size: 22px;
}
.study-part[open] summary::after {
  content: "−";
}
.study-part summary > span {
  font: 500 clamp(20px, 2.4vw, 28px) / 1.2 var(--serif);
  letter-spacing: -0.025em;
}
.study-part summary small {
  flex: none;
  color: var(--muted);
  font-size: 12px;
}
.study-part > p {
  margin: 0 0 14px;
  color: var(--muted);
}
.study-part ol,
.study-sources {
  padding: 0;
  margin: 0;
  list-style: none;
}
.study-part ol {
  padding-bottom: 12px;
}
.study-part li a {
  display: grid;
  grid-template-columns: 2.5em minmax(0, 1fr) 18px;
  gap: 8px;
  align-items: center;
  min-height: 50px;
  padding: 8px 3px;
  text-decoration: none;
}
.reading-number {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 13px;
}
.study-part li strong {
  font: 600 16px/1.4 var(--ui);
}
.study-part li small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.study-part li:nth-child(odd) {
  background: color-mix(in srgb, var(--rule) 17%, transparent);
}
.study-part li i {
  text-align: end;
}
.study-sources li {
  border-top: 1px solid var(--rule);
  padding: 19px 0;
}
.study-sources h3 {
  font-size: 23px;
  margin: 0 0 7px;
}
.study-sources p {
  font-size: 14px;
  color: var(--muted);
  margin: 3px 0;
}
.study-sources li > div {
  margin-top: 8px;
  font-size: 14px;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.study-footer {
  padding: 22px 0 32px;
  border-top: 1px solid var(--rule);
}
.study-footer .wrap,
.study-footer nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.study-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .study-shelf {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .mini-cover {
    width: 40px;
    height: 52px;
  }
  .catalog-grid {
    gap: 18px;
  }
  .study-hero {
    grid-template-columns: minmax(0, 1fr) 135px;
  }
  .study-layout {
    display: block;
  }
  .study-side {
    position: static;
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
  }
}
@media (max-width: 600px) {
  .study-public .top {
    gap: 12px;
  }
  .source-nav {
    display: none;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .catalog-card {
    padding: 14px 0;
    border-top: 1px solid var(--rule);
    display: flow-root;
  }
  .catalog-cover .study-cover {
    float: left;
    width: 92px;
    aspect-ratio: 0.78;
    margin-right: 15px;
  }
  .catalog-cover h2 {
    font-size: 27px;
    margin: 0 0 6px;
  }
  .catalog-card p {
    font-size: 14px;
    margin: 0 0 5px;
  }
  .cover-field .collection-glyph {
    font-size: 34px;
  }
  .study-hero {
    position: relative;
    display: block;
  }
  .study-hero > .study-cover {
    display: none;
  }
  .study-actions {
    gap: 16px;
  }
  .study-footer .wrap,
  .study-footer nav {
    gap: 12px;
  }
  .study-part summary {
    gap: 8px;
  }
  .study-part summary small {
    font-size: 11px;
  }
  .cover-buddhism .book-title {
    font-size: clamp(18px, 4.5vw, 23px);
  }
}
.study-engraving {
  display: block;
  width: 75%;
  height: 75%;
  color: inherit;
}
.mini-cover .study-engraving {
  width: 80%;
  height: 72%;
}
.cover-field .study-engraving {
  width: 78%;
  height: 72%;
  transform: translateY(4%);
}
.entry-arrow {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}
.entry-arrow::after {
  content: "";
  position: absolute;
  inset: auto 0 auto auto;
  top: -1px;
  width: 15px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: right center;
}
.source-details {
  margin-top: 7px;
}
.source-details summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}
.source-details summary::before {
  content: "+";
  margin-right: 5px;
}
.source-details[open] summary::before {
  content: "−";
}
.source-public {
  background: #f9f7f0;
  color: #312932;
}
.source-public .mast,
.source-public .source-record,
.source-public .collection-list a,
.source-public .chapters .reader-link {
  border-color: #d7d0c4;
}
.source-public .source-record,
.source-public .collection-list a,
.source-public .chapters .reader-link {
  background: #fffdf8;
}
.source-public .source-record {
  border-inline-start-color: #9b422d;
}
.source-public .mast nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.source-public .mast {
  flex-wrap: wrap;
  gap: 8px;
}
.source-public a {
  color: #8e3927;
}
.source-public .mast nav {
  gap: 14px;
}
.source-public .chapters .reader-link {
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.source-public h1 {
  letter-spacing: -0.04em;
}
