/* A belief page: the belief in chapters, a label in a narrow column beside a large statement that inks in
   word by word as it is read, then the way on to the next belief. Hairlines and type only. */
section { border-top: none; }


.ch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr); gap: clamp(24px, 4vw, 80px); max-width: 1320px; margin: 0 auto; padding: clamp(110px, 11vw, 200px) var(--gx) 0; }
main > .ch:first-child { padding-top: clamp(150px, 22vh, 260px); }
.ch + .ch { padding-top: clamp(120px, 12vw, 220px); }
.ch-l { padding-top: 18px; border-top: 1px solid var(--ink); align-self: start; font-family: var(--sans); font-size: clamp(14px, 1vw, 17px); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.ch-l span { display: block; margin-top: 4px; font-weight: 400; color: var(--gray); }
.ch-r { padding-top: 18px; border-top: 1px solid rgba(17,17,17,0.14); min-width: 0; }
.ink { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.5vw, 64px); line-height: 1.1; letter-spacing: -0.045em; color: #CFCABE; max-width: 22ch; text-wrap: pretty; }
/* the padding is never seen: it widens what the browser repaints when a word changes colour, so the tails of g, y and p
   (which reach below the display face's tight line box) change with the rest of the word */
.ink span { transition: color 0.35s ease; padding: 0.3em 0; } .ink span.on { color: var(--ink); }
.ch-go { margin-top: clamp(40px, 3.6vw, 64px); }

/* on to the next belief: one large row between hairlines */
.bp-next { max-width: 1320px; margin: 0 auto; padding: clamp(150px, 15vw, 270px) var(--gx) clamp(120px, 12vw, 220px); }

@media (max-width: 899px) {
    .ch { grid-template-columns: 1fr; gap: 0; max-width: 640px; text-align: center; }
    .ch-l { border-top: none; padding-top: 0; margin-bottom: 22px; } .ch-l span { display: inline; margin: 0 0 0 6px; }
    .ch-r { border-top: none; padding-top: 0; }
    .ink { margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .ink span { color: var(--ink); transition: none; } }

/* The beliefs as a list of large rows (the Mission page lists all four; a belief page shows the next one): number, title and
   line, and a round arrow that fills on hover. */
.bl-list { display: block; border-top: 1px solid rgba(17,17,17,0.14); }
.bl-row { display: grid; grid-template-columns: clamp(44px, 6vw, 110px) minmax(0, 1fr) auto; align-items: center; gap: clamp(14px, 2vw, 32px); padding: clamp(26px, 3.4vw, 54px) 0; border-bottom: 1px solid rgba(17,17,17,0.14); color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.bl-row small { align-self: start; padding-top: 0.9em; font-family: var(--sans); font-size: clamp(13px, 0.95vw, 16px); font-weight: 500; color: var(--gray); font-variant-numeric: tabular-nums; }
.bl-row b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(36px, 5.6vw, 104px); line-height: 1; letter-spacing: -0.05em; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.bl-row em { display: block; margin-top: clamp(8px, 0.9vw, 14px); font-family: var(--sans); font-style: normal; font-size: clamp(15px, 1.25vw, 22px); font-weight: 500; letter-spacing: -0.015em; color: var(--gray); transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.03s; }
.bl-row i { display: grid; place-items: center; width: clamp(48px, 5vw, 84px); height: clamp(48px, 5vw, 84px); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(17,17,17,0.2); transition: background 0.35s ease, box-shadow 0.35s ease, color 0.35s ease; }
.bl-row i svg { width: 38%; height: 38%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) {
    .bl-row:hover b, .bl-row:hover em { transform: translateX(clamp(8px, 1vw, 18px)); }
    .bl-row:hover i { background: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--page); }
    .bl-row:hover i svg { transform: translateX(10%); }
}
.bl-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 4px; }
@media (max-width: 599px) { .bl-row { grid-template-columns: 30px minmax(0, 1fr) auto; } .bl-row small { padding-top: 0.6em; } }

/* read by screen readers, never seen */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
