/* The Bible opens with the title artwork. The closing art comes from the release. */
.bible-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  /* Room for the floating menu, so the title never runs under it. */
  padding-top: 88px;
  background: var(--ink);
}
.bible-art {
  position: absolute;
  inset: 0;
  background: var(--art-mission-9, none) 70% 40% / cover no-repeat;
  opacity: 0.8;
}
/* The shade must paint over the picture: the picture is a later positioned
   child, so without z-index it would cover the shade and the words lose
   contrast. */
.bible-hero .bible-art {
  z-index: 0;
  background-image: url("/brand/development-bible-cover.webp");
}
.bible-hero::before,
.bible-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.bible-hero::before {
  background:
    linear-gradient(
      90deg,
      rgba(5, 13, 26, 0.95),
      rgba(5, 13, 26, 0.72) 46%,
      rgba(5, 13, 26, 0.12) 78%
    ),
    linear-gradient(0deg, var(--ink), transparent 40%);
}
.bible-hero::after {
  top: auto;
  height: 26svh;
  background: linear-gradient(180deg, transparent, var(--ink));
}
.bible-hero-copy {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  padding: 0 var(--gutter) clamp(64px, 12svh, 130px);
}
.bible-hero h1 {
  font-size: clamp(40px, 6vw, 92px);
  font-weight: 700;
  letter-spacing: -0.042em;
  line-height: 0.98;
  text-shadow: 0 2px 28px rgba(5, 13, 26, 0.7);
}
.bible-hero .hero-sub {
  max-width: 30em;
  margin-top: 22px;
  font-size: clamp(18px, 1.7vw, 23px);
  text-shadow: 0 1px 18px rgba(5, 13, 26, 0.85);
}
.bible-hero .actions {
  margin: 30px 0 0;
}
.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 24px 0 0;
  color: var(--soft);
  font-size: 15px;
}
.status .chip {
  margin: 0;
}

.inside,
.ladder-section,
.join {
  padding: clamp(88px, 14vw, 190px) var(--gutter) 0;
  max-width: calc(1240px + 2 * var(--gutter));
  margin: 0 auto;
}
.inside h2,
.ladder-section h2,
.join h2 {
  font-size: clamp(42px, 6.8vw, 100px);
  font-weight: 700;
  letter-spacing: -0.042em;
  line-height: 0.98;
  max-width: 11em;
}
.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 clamp(24px, 3vw, 48px);
  margin: clamp(32px, 4vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}
.shelf li {
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
}
.shelf b {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: clamp(24px, 2.2vw, 32px);
  letter-spacing: -0.025em;
}
.shelf span {
  color: var(--soft);
  font-size: 18px;
  line-height: 1.55;
}

/* The reveal ladder: a real page, with what the owner keeps for readers hidden. */
.ladder-wrap {
  margin: clamp(32px, 4vw, 56px) 0 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(9, 19, 36, 0.7);
}
.ladder {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}
.ladder caption {
  padding: 18px 22px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-align: left;
  text-transform: uppercase;
}
.ladder th,
.ladder td {
  padding: 16px 22px;
  vertical-align: top;
  border-top: 1px solid var(--line);
}
.ladder thead th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ladder tbody th {
  width: 20%;
  color: var(--text);
  font-weight: 600;
}
.ladder tbody th b {
  margin-right: 8px;
  color: var(--amber);
  letter-spacing: 0.1em;
}
.ladder tbody th small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}
.ladder td {
  color: var(--soft);
}
.ladder .locked {
  background: linear-gradient(90deg, rgba(5, 13, 26, 0.5), transparent);
}
.redact {
  display: inline-block;
  width: 5.2em;
  height: 0.95em;
  margin: 0 1px;
  vertical-align: -0.1em;
  border-radius: 2px;
  background: #2c405c;
}
.redact--s {
  width: 6em;
}
.redact--m {
  width: 11em;
  max-width: 100%;
}
.redact--l {
  width: 100%;
  max-width: 17em;
}
.ladder-section .actions {
  margin: 30px 0 0;
}

.follow {
  margin: 34px 0 0;
}
.follow-title {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.follow ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.follow a {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.follow a:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.join .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin: 34px 0 0;
}
.bible-close {
  margin-top: clamp(88px, 14vw, 190px);
}
.bible-close .bible-art {
  opacity: 0.7;
  background-position: 60% 50%;
}

/* The words span most of the width below this size, so the side shade no
   longer sits behind them; shade from the top instead. */
@media (max-width: 1100px) {
  .bible-art {
    background-position: 62% 30%;
  }
  .bible-hero::before {
    background: linear-gradient(
      180deg,
      rgba(5, 13, 26, 0.2),
      rgba(5, 13, 26, 0.55) 30%,
      rgba(5, 13, 26, 0.78) 55%,
      rgba(5, 13, 26, 0.9) 80%,
      var(--ink)
    );
  }
}
@media (max-width: 760px) {
  .ladder {
    min-width: 0;
  }
  .ladder-wrap {
    border: 0;
    background: none;
  }
  .ladder thead {
    display: none;
  }
  .ladder tr,
  .ladder tbody th,
  .ladder td {
    display: block;
    width: auto;
  }
  .ladder tr {
    margin: 0 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(9, 19, 36, 0.7);
  }
  .ladder th,
  .ladder td {
    padding: 8px 16px;
    border: 0;
  }
  .ladder tbody th {
    padding-top: 14px;
  }
  .ladder td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .ladder td:last-child {
    padding-bottom: 14px;
  }
}
