/* cult-community / illuminated-codex  (own skeleton: variants/illuminated-codex.html + .js)

   An illuminated manuscript. The page opens as a two-page spread on vellum: the creed on
   the left leaf behind a gilded initial, the order's particulars as marginal glosses, and
   on the right leaf the mascot as a miniature (arched gold frame, diapered ground, a
   nimbus) over a banderole with its name. Below, one long ruled leaf: every section is
   written into it with its rubric and folio in the outer margin; lore in two columns
   with a drop cap, the facts as the numbered articles of the codex (red and blue
   Lombardic numerals), the timeline as a calendar, testimonies as sayings with
   pilcrows, the questions as a catechism, the supply as a rota in mineral pigments.
   Images: the pfp (miniature) and scene-1 (the first picture of a gallery, framed as a
   second miniature); nothing else.

   Polarity: warm light vellum. Type: an old-style book serif, rubricated. Shape: arches,
   ruled lines, square gilded initials, vine borders. Motion: the gold catches the light
   and the nimbus turns, slowly; off under reduced motion. */

:root {
  --cx-vellum: #f2e6c8;
  --cx-vellum-hi: #f7eed8;
  --cx-vellum-deep: #dcc594;
  --cx-ink: #2b2016;
  --cx-ink-soft: #5b4a38;
  --cx-rubric: #a3281a;
  --cx-lapis: #213f8c;
  --cx-verdigris: #3f7b5c;
  --cx-gold: #c4952a;
  --cx-leaf: linear-gradient(135deg, #a8781f 0%, #f5dd8f 22%, #c99a2e 42%, #f7e3a1 58%, #b8862a 78%, #e9c96c 100%);
  --cx-rule: rgb(163 40 26 / 0.22);
  --cx-run: 46px;
  --cx-vine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='132' viewBox='0 0 40 132'%3E%3Cpath d='M20 0C4 22 4 44 20 66S36 110 20 132' fill='none' stroke='%233f7b5c' stroke-width='2.2'/%3E%3Cpath d='M20 32c7-7 15-8 19-4-5 6-13 8-19 4z' fill='%23a3281a'/%3E%3Cpath d='M20 98c-7-7-15-8-19-4 5 6 13 8 19 4z' fill='%23213f8c'/%3E%3Ccircle cx='9' cy='14' r='3.2' fill='%23c4952a'/%3E%3Ccircle cx='31' cy='80' r='3.2' fill='%23c4952a'/%3E%3Ccircle cx='31' cy='52' r='1.8' fill='%23a3281a'/%3E%3Ccircle cx='9' cy='118' r='1.8' fill='%23213f8c'/%3E%3C/svg%3E");
  --cx-boss: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect x='6' y='6' width='28' height='28' fill='%23c4952a' stroke='%232b2016' stroke-width='1.2'/%3E%3Crect x='12' y='12' width='16' height='16' fill='%23213f8c'/%3E%3Ccircle cx='20' cy='20' r='4' fill='%23f5dd8f'/%3E%3C/svg%3E");
  --cx-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.3 0 0 0 0 0.14 0 0 0 0.11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --v-bg: var(--cx-vellum);
  --v-fg: var(--cx-ink);
  --v-soft: var(--cx-ink-soft);
  --v-faint: #7f6b52;
  --v-line: rgb(43 32 22 / 0.14);
  --v-line-strong: rgb(43 32 22 / 0.34);
  --v-surface: var(--cx-vellum-hi);
  --v-surface-2: #eadbb5;
  --v-card-bg: transparent;
  --v-accent: var(--cx-rubric);
  --v-accent-text: var(--cx-rubric);
  --v-on-accent: #fbf3de;
  --v-secondary: var(--cx-lapis);
  --v-seg-1: var(--cx-rubric);
  --v-seg-2: var(--cx-lapis);
  --v-seg-3: var(--cx-gold);
  --v-seg-4: var(--cx-verdigris);
  --v-seg-5: #6d3f86;
  --v-seg-6: #8c7a60;
  --v-font-body: "Palatino Linotype", "Book Antiqua", Palatino, "Goudy Old Style", Garamond, "EB Garamond", "FreeSerif", Georgia, serif;
  --v-font-display: var(--v-font-body);
  --v-font-mono: "Courier 10 Pitch", "Courier New", ui-monospace, monospace;
  --v-display-weight: 400;
  --v-display-tracking: 0;
  --v-display-case: none;
  --v-display-lh: 1.08;
  --v-title-size: clamp(1.9rem, 3.3vw, 2.8rem);
  --v-body-size: clamp(1.04rem, 0.25vw + 1rem, 1.16rem);
  --v-radius: 2px;
  --v-radius-sm: 2px;
  --v-radius-lg: 4px;
  --v-border: 1px solid var(--v-line);
  --v-shadow: none;
  --v-card-pad: 20px;
  --v-maxw: 1060px;
  --v-pad-x: clamp(16px, 4vw, 56px);
  --v-sec-gap: clamp(44px, 6vw, 72px);

  --wl-label-lore: "Of the beginning";
  --wl-label-features: "Of its virtues";
  --wl-label-supply: "Of the treasury";
  --wl-label-flow: "Of the way";
  --wl-label-timeline: "The calendar";
  --wl-label-comparison: "Of the weighing";
  --wl-label-stats: "Of the reckoning";
  --wl-label-tweet: "A letter";
  --wl-label-gallery: "A miniature";
  --wl-label-facts: "The codex";
  --wl-label-quotes: "Sayings";
  --wl-label-faq: "The catechism";
  --wl-label-access: "Of joining";
}

html { background: #d8c393; color-scheme: light; }
body {
  background:
    var(--cx-grain),
    radial-gradient(120% 90% at 50% 30%, transparent 58%, rgb(110 70 25 / 0.22) 100%),
    radial-gradient(40% 30% at 18% 22%, rgb(170 120 50 / 0.1), transparent 70%),
    radial-gradient(36% 28% at 82% 70%, rgb(170 120 50 / 0.09), transparent 70%),
    #e4d2a6;
  color: var(--cx-ink);
  font-feature-settings: "liga", "onum";
}
::selection { background: var(--cx-gold); color: var(--cx-ink); }

/* ---------------------------------------------------------------- running head */
.cx-running {
  position: sticky; top: 0; z-index: 30; height: var(--cx-run);
  display: flex; align-items: center; gap: 22px; padding: 0 var(--v-pad-x);
  background: rgb(228 210 166 / 0.94); backdrop-filter: blur(4px);
  border-bottom: 3px double var(--cx-rule);
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
}
.cx-running a { text-decoration: none; }
.cx-running__title { flex: none; color: var(--cx-rubric); font-weight: 700; letter-spacing: 0.3em; white-space: nowrap; }
.cx-running__nav { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cx-running__nav::-webkit-scrollbar { display: none; }
.cx-running__nav .wl-nav__link { flex: none; padding: 6px 10px; color: var(--cx-ink-soft); white-space: nowrap; font-style: italic; text-transform: none; letter-spacing: 0.02em; font-size: 0.92rem; }
.cx-running__nav .wl-nav__link:hover { color: var(--cx-rubric); }
.cx-running__nav .wl-nav__link + .wl-nav__link::before { content: "\00B7"; margin-right: 12px; color: var(--cx-rubric); font-style: normal; }
.cx-running__tick { flex: none; color: var(--cx-lapis); font-weight: 700; }

/* ---------------------------------------------------------------- the opening spread */
.cx-spread {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  max-width: 1320px; margin: 0 auto;
  min-height: calc(100vh - var(--cx-run)); min-height: calc(100svh - var(--cx-run));
  padding: clamp(12px, 2vh, 22px) clamp(12px, 2.4vw, 36px) clamp(18px, 3vh, 30px);
}
.cx-leaf {
  position: relative; min-width: 0;
  padding: clamp(28px, 5vh, 58px) clamp(26px, 3.6vw, 58px);
  box-shadow: 0 26px 40px -26px rgb(70 40 10 / 0.55), 0 2px 0 rgb(120 85 35 / 0.25);
}
.cx-leaf--verso {
  border-radius: 8px 0 0 8px;
  background: var(--cx-grain), linear-gradient(90deg, #eadbb4 0%, var(--cx-vellum-hi) 12%, var(--cx-vellum) 72%, #d6bd87 100%);
  display: grid; grid-template-columns: minmax(88px, 128px) minmax(0, 1fr); column-gap: clamp(16px, 2vw, 28px);
  padding-left: clamp(52px, 5.4vw, 78px);
}
.cx-leaf--recto {
  border-radius: 0 8px 8px 0;
  background: var(--cx-grain), linear-gradient(270deg, #eadbb4 0%, var(--cx-vellum-hi) 12%, var(--cx-vellum) 72%, #d6bd87 100%);
  display: grid; align-content: center; justify-items: center; row-gap: 14px;
  padding-right: clamp(52px, 5.4vw, 78px);
}
/* the vine border on each leaf's outer edge, a gilded boss at either end */
.cx-leaf::before {
  content: ""; position: absolute; top: 26px; bottom: 26px; width: 34px;
  background: var(--cx-boss) top center / 30px 30px no-repeat, var(--cx-boss) bottom center / 30px 30px no-repeat, var(--cx-vine) center 28px / 34px auto repeat-y;
}
.cx-leaf--verso::before { left: 12px; }
.cx-leaf--recto::before { right: 12px; }
.cx-folio { position: absolute; bottom: 14px; font-size: 0.8rem; font-style: italic; color: var(--v-faint); }
.cx-leaf--verso .cx-folio { left: 58px; }
.cx-leaf--recto .cx-folio { right: 58px; }
.cx-leaf--verso .cx-folio::before { content: "fol. i v"; }
.cx-leaf--recto .cx-folio::before { content: "fol. ii r"; }

.cx-leaf__text { grid-column: 2; align-self: center; min-width: 0; }
.cx-incipit { margin: 0 0 18px; font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cx-rubric); }
.cx-incipit__word { font-weight: 700; }
.cx-incipit__kicker { color: var(--cx-lapis); }

.cx-creed {
  margin: 0 0 22px; font-weight: 400; font-size: clamp(2.3rem, 4vw, 3.7rem); line-height: 1.06; letter-spacing: -0.005em;
  color: var(--cx-ink); text-wrap: balance;
}
.cx-creed::first-letter {
  float: left; font-size: 2.35em; line-height: 0.84; font-weight: 700;
  margin: 0.06em 0.14em 0 0; padding: 0.14em 0.16em 0.1em;
  color: #fbeebb; text-shadow: 0 1px 0 rgb(0 0 0 / 0.35);
  background:
    radial-gradient(circle, rgb(245 221 143 / 0.55) 1.2px, transparent 1.8px) 0 0 / 11px 11px,
    linear-gradient(135deg, #2c4fa3, var(--cx-lapis) 60%, #182f6b);
  border: 5px solid transparent;
  border-image: var(--cx-leaf) 1;
  box-shadow: inset 0 0 0 1.5px var(--cx-rubric);
}
.cx-sub { margin: 0 0 26px; max-width: 34ch; font-size: 1.14rem; line-height: 1.55; color: var(--cx-ink-soft); }
.cx-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.cx-cta .wl-btn { border-radius: 2px; border: 1.5px solid var(--cx-ink); padding: 0.72em 1.05em; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cx-ink); background: rgb(255 250 235 / 0.4); }
.cx-cta .wl-btn:hover { transform: none; background: rgb(255 250 235 / 0.8); }
.cx-cta .wl-btn--primary { border-color: #8a6412; background: var(--cx-leaf); background-size: 200% 200%; color: var(--cx-ink); animation: cx-sheen 9s ease-in-out infinite; }
.cx-cta .wl-btn .wl-glyph { color: var(--cx-rubric); }
.cx-cta .wl-btn__ca { opacity: 0.7; }

.cx-glosses { grid-column: 1; grid-row: 1; align-self: end; display: grid; gap: 14px; text-align: right; padding-bottom: 6px; }
.cx-gloss { margin: 0; font-size: 0.86rem; font-style: italic; line-height: 1.3; color: var(--cx-ink); overflow-wrap: anywhere; }
.cx-gloss__k::before { content: "\00B6\00A0"; }
.cx-gloss__k { display: block; font-style: normal; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cx-rubric); }
.cx-gloss code, .cx-folios .wl-ca__value, .cx-cta .wl-btn__ca { font-family: inherit; font-feature-settings: "lnum"; }

/* the miniature */
.cx-miniature { margin: 0; display: grid; justify-items: center; width: min(100%, 420px); }
.cx-miniature__frame {
  position: relative; width: 100%; aspect-ratio: 5 / 6; max-height: 62vh;
  padding: 12px; border-radius: 50% 50% 4px 4px / 32% 32% 4px 4px;
  background: var(--cx-leaf); background-size: 200% 200%;
  box-shadow: 0 0 0 2px var(--cx-ink), 0 0 0 7px var(--cx-vellum-hi), 0 0 0 9px var(--cx-rubric), 0 20px 34px -18px rgb(60 30 5 / 0.6);
  animation: cx-sheen 11s ease-in-out infinite;
}
.cx-miniature__frame::before { /* the diapered ground */
  content: ""; position: absolute; inset: 12px; border-radius: inherit;
  background:
    radial-gradient(circle, #f5dd8f 1.6px, transparent 2.2px) 11px 11px / 22px 22px,
    repeating-conic-gradient(var(--cx-lapis) 0 25%, #8f2217 0 50%) 0 0 / 44px 44px;
  box-shadow: inset 0 0 0 2px rgb(0 0 0 / 0.35);
}
.cx-miniature__nimbus {
  position: absolute; left: 50%; top: 50%; width: 76%; aspect-ratio: 1; transform: translate(-50%, -54%); border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #f7e3a1 0 4deg, #c4952a 4deg 8deg);
  box-shadow: 0 0 0 3px var(--cx-ink), 0 0 30px rgb(247 227 161 / 0.6);
  animation: cx-turn 90s linear infinite;
}
.cx-miniature__img {
  position: absolute; left: 50%; top: 50%; width: 60%; aspect-ratio: 1; transform: translate(-50%, -58%);
  object-fit: cover; border-radius: 50%;
  box-shadow: 0 0 0 3px #f5dd8f, 0 0 0 5px var(--cx-ink);
}
.cx-banderole {
  position: relative; z-index: 1; margin-top: -26px; padding: 9px 40px 8px;
  background: var(--cx-vellum-hi); color: var(--cx-rubric);
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 50%, 100% 100%, 0 100%, 16px 50%);
  filter: drop-shadow(0 2px 0 rgb(43 32 22 / 0.6));
  font-weight: 700; font-size: 1rem; letter-spacing: 0.3em; text-transform: uppercase; white-space: nowrap;
}
.cx-motto { margin: 6px 0 0; font-style: italic; font-size: 1.15rem; color: var(--cx-lapis); text-align: center; }
.cx-motto::before, .cx-motto::after { content: "\00B7\00A0"; color: var(--cx-rubric); }
.cx-motto::after { content: "\00A0\00B7"; }

/* ---------------------------------------------------------------- the long leaf */
.cx-folios {
  position: relative; counter-reset: folio;
  max-width: 1260px; margin: clamp(10px, 2vw, 24px) auto 0;
  padding: 18px clamp(18px, 4vw, 64px) clamp(40px, 6vw, 80px) clamp(58px, 7vw, 104px);
  background: var(--cx-grain), repeating-linear-gradient(transparent 0 33px, rgb(163 40 26 / 0.05) 33px 34px), linear-gradient(90deg, #eadbb4, var(--cx-vellum-hi) 6%, var(--cx-vellum) 90%, #e6d3a8);
  box-shadow: 0 26px 40px -26px rgb(70 40 10 / 0.55);
}
.cx-folios::before {
  content: ""; position: absolute; left: 14px; top: 26px; bottom: 26px; width: 34px;
  background: var(--cx-boss) top center / 30px 30px no-repeat, var(--cx-boss) bottom center / 30px 30px no-repeat, var(--cx-vine) center 28px / 34px auto repeat-y;
}
.cx-folios .wl-sec { counter-increment: folio; padding: var(--v-sec-gap) 0 0; }
.cx-folios .wl-sec + .wl-sec::before {
  content: ""; display: block; max-width: 420px; height: 16px; margin: 0 auto var(--v-sec-gap);
  background: radial-gradient(circle, #f5dd8f 2.5px, var(--cx-lapis) 3px 6px, transparent 6.5px) center / 16px 16px no-repeat,
    linear-gradient(var(--cx-rubric), var(--cx-rubric)) center / 100% 1px no-repeat;
}
.cx-folios .wl-sec__inner {
  max-width: var(--v-maxw); display: grid;
  grid-template-columns: minmax(96px, 150px) minmax(0, 1fr); column-gap: clamp(20px, 3.2vw, 44px); align-items: start;
}
.cx-folios .wl-sec__head { display: contents; }
.cx-folios .wl-kicker {
  grid-column: 1; grid-row: 1 / span 2; display: block; margin: 0.6em 0 0; text-align: right;
  font-family: var(--v-font-body); font-size: 0.98rem; font-style: italic; letter-spacing: 0.01em; text-transform: none; color: var(--cx-rubric);
}
.cx-folios .wl-kicker::before { content: "fol. " counter(folio, lower-roman); display: block; margin-bottom: 4px; font-style: normal; font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--v-faint); }
.cx-folios .wl-kicker .wl-ord { display: none; }
.cx-folios .wl-sec__title { grid-column: 2; grid-row: 1; margin-bottom: 22px; color: var(--cx-ink); }
.cx-folios .wl-sec__title::first-letter { color: var(--cx-rubric); }
.cx-folios .wl-sec__body { grid-column: 2; grid-row: 2; min-width: 0; }

/* lore: two ruled columns, a gilded drop cap */
.cx-folios .wl-lore { max-width: none; columns: 2 20rem; column-gap: 46px; column-rule: 1px solid var(--cx-rule); }
.cx-folios .wl-lore__lead, .cx-folios .wl-lore__p { font-size: 1.13rem; line-height: 1.62; font-weight: 400; color: var(--cx-ink); max-width: none; margin: 0 0 0.9em; text-align: justify; hyphens: auto; }
.cx-folios .wl-lore__lead::first-letter, .cx-folios .wl-flowchart .wl-node:first-child .wl-node__text::first-letter {
  float: left; font-size: 3.5em; line-height: 0.82; font-weight: 700; margin: 0.08em 0.12em 0 0; padding: 0.08em 0.1em 0.04em;
  color: var(--cx-rubric);
  background: radial-gradient(circle, rgb(163 40 26 / 0.35) 1px, transparent 1.6px) 0 0 / 8px 8px, var(--cx-leaf);
  box-shadow: inset 0 0 0 1.5px var(--cx-ink);
}

/* the codex: articles numbered in alternating red and blue */
.cx-folios .wl-facts { display: block; max-width: none; columns: 2 19rem; column-gap: 46px; counter-reset: art; }
.cx-folios .wl-fact {
  counter-increment: art; display: block; break-inside: avoid; margin: 0 0 16px; padding: 0 0 16px;
  border: 0; border-bottom: 1px solid var(--v-line); border-radius: 0; background: none; font-size: 1.1rem; line-height: 1.5;
}
.cx-folios .wl-fact::before { content: counter(art, upper-roman); float: left; min-width: 1.5em; margin: 0.05em 0.35em 0 0; font-size: 2.2em; line-height: 0.9; font-weight: 700; color: var(--cx-rubric); }
.cx-folios .wl-fact:nth-child(even)::before { color: var(--cx-lapis); }
.cx-folios .wl-fact__mark { display: none; }
.cx-folios .wl-fact::after { content: ""; display: block; clear: both; }

/* the calendar */
.cx-folios .wl-milestones { max-width: none; gap: 0; }
.cx-folios .wl-milestones::before { display: none; }
.cx-folios .wl-ms { grid-template-columns: minmax(0, 1fr); padding: 14px 0; border-bottom: 1px solid var(--v-line); }
.cx-folios .wl-ms__dot { display: none; }
.cx-folios .wl-ms__body { display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr); column-gap: 24px; }
.cx-folios .wl-ms__when { grid-row: 1 / span 2; margin: 0.15em 0 0; font-family: var(--v-font-body); font-size: 1.02rem; font-style: italic; letter-spacing: 0; text-transform: none; color: var(--cx-rubric); }
.cx-folios .wl-ms--done .wl-ms__when::before { content: "\2713\00A0"; font-style: normal; color: var(--cx-verdigris); }
.cx-folios .wl-ms__title { grid-column: 2; font-weight: 400; font-size: 1.3rem; }
.cx-folios .wl-ms__text { grid-column: 2; color: var(--cx-ink-soft); }

/* sayings */
.cx-folios .wl-quotes { display: block; columns: 2 19rem; column-gap: 46px; }
.cx-folios .wl-quote { break-inside: avoid; margin: 0 0 22px; padding: 0; border: 0; border-radius: 0; background: none; }
.cx-folios .wl-quote::before { content: "\00B6"; position: static; float: left; margin: 0 8px 0 0; font-family: var(--v-font-body); font-size: 1.7rem; line-height: 1.1; color: var(--cx-rubric); }
.cx-folios .wl-quote__text { margin: 0 0 0.4em; font-size: 1.16rem; line-height: 1.5; font-weight: 400; font-style: italic; }
.cx-folios .wl-quote__who { font-family: var(--v-font-body); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cx-lapis); }

/* the catechism */
.cx-folios .wl-faq { gap: 0; max-width: 46rem; }
.cx-folios .wl-qa { border: 0; border-bottom: 1px solid var(--v-line); border-radius: 0; background: none; }
.cx-folios .wl-qa__q { padding: 14px 0; font-weight: 400; font-style: italic; font-size: 1.16rem; color: var(--cx-rubric); }
.cx-folios .wl-qa__a { padding: 0 0 16px; color: var(--cx-ink); }
.cx-folios .wl-qa__sign::before, .cx-folios .wl-qa__sign::after { background: var(--cx-rubric); }

/* the rota */
.cx-folios .wl-graphic--supply { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.cx-folios .wl-donut { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: center; justify-items: start; column-gap: 34px; }
.cx-folios .wl-donut__chart { width: 100%; }
.cx-folios .wl-donut__track { stroke: rgb(43 32 22 / 0.08); stroke-width: 30; }
.cx-folios .wl-donut__seg { stroke-width: 30; }
.cx-folios .wl-donut__ticks line { stroke: rgb(43 32 22 / 0.45); }
.cx-folios .wl-donut__svg { filter: drop-shadow(0 0 0 var(--cx-ink)); }
.cx-folios .wl-donut__value { font-weight: 700; color: var(--cx-ink); }
.cx-folios .wl-donut__label, .cx-folios .wl-ring__label, .cx-folios .wl-stat__label { font-family: var(--v-font-body); font-style: italic; letter-spacing: 0.04em; text-transform: none; font-size: 0.86rem; color: var(--cx-rubric); }
.cx-folios .wl-legend__swatch { border-radius: 0; box-shadow: inset 0 0 0 1px var(--cx-ink); }
.cx-folios .wl-legend__value { font-weight: 700; }
.cx-folios .wl-stats { background: none; border: 0; border-top: 3px double var(--cx-rule); border-radius: 0; }
.cx-folios .wl-stat { background: none; padding: 16px 12px 16px 0; }
.cx-folios .wl-stat__value, .cx-folios .wl-ring__value, .cx-folios .wl-bar__value { font-weight: 400; }
.cx-folios .wl-caption { font-style: italic; }
.cx-folios .wl-ring__track { stroke: rgb(43 32 22 / 0.08); }
.cx-folios .wl-bar__track { border-radius: 0; height: 12px; }
.cx-folios .wl-table-wrap { border: 0; border-top: 3px double var(--cx-rule); border-radius: 0; }
.cx-folios .wl-table th, .cx-folios .wl-table td { border-bottom-color: var(--v-line); }
.cx-folios .wl-table thead th { font-family: var(--v-font-body); font-style: italic; letter-spacing: 0.04em; text-transform: none; color: var(--cx-rubric); }

/* virtues and the way: entries of the codex */
.cx-folios .wl-features { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0 40px; }
.cx-folios .wl-feature { padding: 16px 0; border: 0; border-bottom: 1px solid var(--v-line); border-radius: 0; background: none; }
.cx-folios .wl-feature:hover { transform: none; }
.cx-folios .wl-feature .wl-ord { position: static; display: inline; margin-right: 8px; font-family: var(--v-font-body); font-size: 0.9rem; font-style: italic; color: var(--cx-rubric); }
.cx-folios .wl-feature__icon { width: 44px; height: 44px; margin: 0 0 10px; border-radius: 50%; background: var(--cx-leaf); color: var(--cx-lapis); box-shadow: inset 0 0 0 1.5px var(--cx-ink); }
.cx-folios .wl-feature__icon .wl-glyph { width: 22px; height: 22px; }
.cx-folios .wl-feature__title { display: inline; font-weight: 400; font-size: 1.25rem; color: var(--cx-rubric); }
.cx-folios .wl-feature__text { margin-top: 0.4em; color: var(--cx-ink); }
.cx-folios .wl-flowchart { display: block; }
.cx-folios .wl-node { display: block; }
/* the way: each step points down to the next, a small rubricated arrow */
.cx-folios .wl-flowchart .wl-node .wl-node__edge { visibility: visible; display: block; width: 26px; height: 30px; margin: 2px 0 2px 14px; transform: rotate(90deg); }
.cx-folios .wl-edge__line { stroke: var(--cx-rubric); stroke-width: 2; stroke-dasharray: none; animation: none; }
.cx-folios .wl-edge__head { stroke: var(--cx-rubric); stroke-width: 2; }
.cx-folios .wl-node__card { padding: 12px 0; border: 0; border-bottom: 1px solid var(--v-line); border-radius: 0; background: none; }
.cx-folios .wl-node__card .wl-ord { width: auto; height: auto; margin: 0 8px 0 0; background: none; color: var(--cx-rubric); font-family: var(--v-font-body); font-style: italic; font-size: 1rem; }
.cx-folios .wl-node__title { display: inline; font-weight: 400; }

/* a second miniature: the first picture of a gallery, nothing more */
.cx-folios .wl-gallery { display: block; }
.cx-folios .wl-shot { max-width: 560px; margin: 0 auto; padding: 10px; overflow: visible; border-radius: 50% 50% 3px 3px / 26% 26% 3px 3px; background: var(--cx-leaf); box-shadow: 0 0 0 2px var(--cx-ink), 0 16px 30px -18px rgb(60 30 5 / 0.6); }
.cx-folios .wl-shot:nth-child(n+2) { display: none; }
.cx-folios .wl-shot img { border-radius: 50% 50% 2px 2px / 25% 25% 2px 2px; aspect-ratio: 4 / 3; box-shadow: 0 0 0 2px var(--cx-ink); }
.cx-folios .wl-shot:hover img { transform: none; }
.cx-folios .wl-shot__caption { position: static; margin-top: 10px; padding: 0; border-radius: 0; background: none; backdrop-filter: none; text-align: center; font-style: italic; font-size: 1rem; color: var(--cx-rubric); }

/* a letter */
.cx-folios .wl-post { background: var(--cx-vellum-hi); border: 1px solid var(--v-line-strong); border-radius: 2px; box-shadow: 4px 5px 0 rgb(43 32 22 / 0.12); }

/* of joining */
.cx-folios .wl-access { gap: 18px; }
.cx-folios .wl-access__net { font-family: var(--v-font-body); font-style: italic; letter-spacing: 0.04em; text-transform: none; font-size: 1rem; color: var(--cx-lapis); }
.cx-folios .wl-ca { border: 3px double var(--cx-rubric); border-radius: 0; background: rgb(255 250 235 / 0.5); }
.cx-folios .wl-ca__label { font-family: var(--v-font-body); font-style: italic; letter-spacing: 0.04em; text-transform: none; color: var(--cx-rubric); font-size: 0.9rem; }
.cx-folios .wl-ca__value { color: var(--cx-ink); }
.cx-folios .wl-ca .wl-copy { border-radius: 50%; width: 64px; height: 64px; padding: 0; justify-content: center; flex-direction: column; gap: 0; font-size: 0.7rem;
  background: radial-gradient(circle at 36% 32%, #c8412f, var(--cx-rubric) 55%, #6e150c); color: #fbeebb; box-shadow: 0 2px 0 #4d0e07, inset 0 0 0 3px rgb(255 255 255 / 0.12); }
.cx-folios .wl-ca .wl-copy .wl-glyph { width: 16px; height: 16px; }
.cx-book .wl-links { gap: 6px 24px; }
.cx-book .wl-link { padding: 4px 0; border: 0; border-bottom: 1px solid var(--cx-rule); border-radius: 0; background: none; font-weight: 400; font-style: italic; color: var(--cx-rubric); }
.cx-book .wl-link:hover { transform: none; border-color: var(--cx-rubric); }

.cx-colophon { max-width: 1260px; margin: 0 auto; padding: 34px var(--v-pad-x) 48px; text-align: center; }
.cx-colophon .wl-foot { justify-content: center; gap: 8px 22px; }
.cx-colophon .wl-foot::before { content: ""; flex-basis: 100%; height: 16px; margin-bottom: 10px;
  background: radial-gradient(circle, #f5dd8f 2.5px, var(--cx-rubric) 3px 6px, transparent 6.5px) center / 16px 16px no-repeat; }
.cx-colophon .wl-foot__name { color: var(--cx-rubric); letter-spacing: 0.24em; text-transform: uppercase; font-size: 0.9rem; }
.cx-colophon .wl-foot .wl-links { margin-left: 0; }
.cx-colophon .wl-foot__nfa { font-style: italic; }

@keyframes cx-sheen { 0%, 100% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } }
@keyframes cx-turn { to { transform: translate(-50%, -54%) rotate(360deg); } }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 900px) {
  .cx-spread { grid-template-columns: minmax(0, 1fr); min-height: 0; row-gap: 0; }
  .cx-leaf--verso { border-radius: 8px 8px 0 0; background: var(--cx-grain), linear-gradient(180deg, var(--cx-vellum-hi), var(--cx-vellum) 80%, #dcc594); grid-template-columns: minmax(0, 1fr); }
  .cx-leaf--recto { border-radius: 0 0 8px 8px; background: var(--cx-grain), linear-gradient(0deg, var(--cx-vellum-hi), var(--cx-vellum) 80%, #dcc594); padding-bottom: 54px; }
  .cx-leaf__text { grid-column: 1; }
  .cx-glosses { grid-column: 1; grid-row: 2; text-align: left; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-top: 26px; }
  .cx-running__nav { display: none; }
  .cx-running { justify-content: space-between; }
}
@media (max-width: 640px) {
  :root { --cx-run: 42px; }
  .cx-leaf { padding: 26px 18px 34px 50px; }
  .cx-leaf--recto { padding: 26px 50px 50px 18px; }
  .cx-leaf::before { width: 26px; background-size: 24px 24px, 24px 24px, 26px auto; }
  .cx-leaf--verso::before { left: 10px; }
  .cx-leaf--recto::before { right: 10px; }
  .cx-creed { font-size: clamp(2rem, 9vw, 2.6rem); }
  .cx-miniature__frame { max-height: none; }
  .cx-banderole { padding: 8px 30px 7px; font-size: 0.86rem; }
  .cx-folios { padding: 8px 16px 44px 46px; }
  .cx-folios::before { left: 8px; width: 26px; background-size: 24px 24px, 24px 24px, 26px auto; }
  .cx-folios .wl-sec__inner { grid-template-columns: minmax(0, 1fr); }
  .cx-folios .wl-kicker { grid-column: 1; grid-row: auto; text-align: left; margin: 0 0 8px; }
  .cx-folios .wl-kicker::before { display: inline; margin-right: 8px; }
  .cx-folios .wl-sec__title, .cx-folios .wl-sec__body { grid-column: 1; grid-row: auto; }
  .cx-folios .wl-donut { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .cx-folios .wl-ms__body { grid-template-columns: minmax(0, 1fr); }
  .cx-folios .wl-ms__when { grid-row: auto; }
  .cx-folios .wl-ms__title, .cx-folios .wl-ms__text { grid-column: 1; }
  .cx-folios .wl-lore__lead, .cx-folios .wl-lore__p { text-align: left; }
}

.cx-creed--plain::first-letter { float: none; font-size: inherit; line-height: inherit; font-weight: inherit; margin: 0; padding: 0; color: inherit; text-shadow: none; background: none; border: 0; box-shadow: none; }
.cx-running__nav .wl-nav__link.is-active { color: var(--cx-rubric); }
