/*
 * The Fish Journal (ANG-R1, ANG-R50 to R54): the leather book of the Angler page and the Pending preview,
 * after variant B of prototypes/angler-page/, in the site's fonts and DESIGN.md's colours (the Journal section):
 * leather and grain for the cover, parchment with fibres for the pages, page kicker ink for kickers and ruled
 * heads, ribbon red and wax for the ribbons and seal, brass for the plate. Loaded only by the pages that draw the
 * book, after site.css, whose tokens and textures it uses (WEB-R2).
 * - Two-page spreads on the leather, red ribbons at its right edge, the brass plate at its foot, the gilt
 *   breadcrumbs with "as of" at their right above the pages.
 * - Without journal.js every spread shows, one after another; with it the book is .turning and shows only
 *   its .open spread (ANG-R52).
 * - Below 760 px (ANG-R53, ANG Tunables) one page at a time, left page first; the ribbons become a section
 *   menu above the pages, and the brass plate and breadcrumbs stay above them. Nothing scrolls sideways from
 *   360 px up (WEB-R24).
 * - Light only (WEB-R23).
 */

/* The book's own shades, beside site.css's tokens: the spine's shading, the ribbon's dark edge, the as-of ink. */
.journal {
  --book-fold: rgba(70, 40, 10, 0.62);
  --ribbon-deep: #6a1810;
  --as-of: #c8a860;
}

/* Above the book: the preview banner (ANG-R60), the owner's notices (ANG-R31 to ANG-R35), the name line. */
.preview-banner {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--ribbon);
  border-radius: 3px;
  background-color: var(--parchment-light);
  color: var(--ribbon);
  font-family: "Pagle Display", Georgia, serif;
  text-align: center;
}

.owner-notices {
  margin: 0 0 0.75rem;
}

.owner-notices .notice {
  margin: 0 0 0.5rem;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--brass-dark);
  background-color: var(--parchment-light);
}

/* ANG-R35: trust.md's Excluded and Flagged blocks, a heading with its lines. */
.owner-notices .notice-trust {
  border-left-color: var(--ribbon);
}

.owner-notices .notice-heading {
  margin: 0;
  font-weight: bold;
}

.owner-notices .notice-lines {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
}

.name-line {
  margin: 0.25rem 0 0.75rem;
}

.name-line .more {
  font-family: "IM Fell English", Georgia, serif;
  font-size: 1.125rem;
  color: var(--ink-small);
}

/* ANG-R47: the Follow button (SOC-R45) at the name line's right end, outside the book; its space stays when empty. */
.name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin: 0.25rem 0 0.75rem;
}

.name-row .name-line {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.follow form {
  display: inline;
  margin: 0;
}

.follow .following {
  margin-right: 0.5rem;
  font-family: "Pagle Display", Georgia, serif;
  color: var(--ink-small);
}

.follow button {
  font-family: "Pagle Display", Georgia, serif;
  cursor: pointer;
}

/* Before the first fold (ANG-R38): the closed leather cover with ANG-R39's text, nothing of the book inside. */
.closed-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22rem;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  background-color: var(--leather-dark);
  background-image: url("/assets/textures/grain-51b1f3c4f49881583d7ef3d4a4e9e25d.svg"), radial-gradient(ellipse at 30% 20%, var(--leather-light), var(--leather-dark) 70%);
  box-shadow: 0 0 0 2px var(--leather-edge), inset 0 0 0 3px var(--leather-trim), inset 0 0 0 5px var(--leather-inner), 0 26px 50px -18px rgba(40, 18, 4, 0.7), 0 8px 16px -8px rgba(40, 18, 4, 0.5);
  color: var(--gilt);
  font-family: "IM Fell English", Georgia, serif;
  font-size: 1.125rem;
  text-align: center;
  text-shadow: 0 1px 1px #000;
}

.closed-cover p {
  max-width: 28rem;
  margin: 0;
}

.closed-cover a {
  color: var(--gilt-light);
}

/* The owner view's marks (ANG-R6, ANG-R12): an owner-only block's "Only you" tag, "Hidden" and "left …". */
.only-you {
  display: inline-block;
  margin-left: 0.375rem;
  padding: 0 0.375rem;
  border-radius: 7px;
  background-color: var(--hand-blue);
  color: var(--parchment-light);
  font-family: "Pagle Display", Georgia, serif;
  font-size: 0.6875rem;
  vertical-align: middle;
}

.character-note {
  font-style: italic;
  color: var(--ink-small);
}

/* The leather book. */
.book {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "head head"
    "spreads ribbons"
    "plate plate";
  padding: 0.5rem 0 1rem 1.125rem;
  border-radius: 12px;
  background-color: var(--leather-dark);
  background-image: url("/assets/textures/grain-51b1f3c4f49881583d7ef3d4a4e9e25d.svg"), radial-gradient(ellipse at 30% 20%, var(--leather-light), var(--leather-dark) 70%);
  box-shadow: 0 0 0 2px var(--leather-edge), inset 0 0 0 3px var(--leather-trim), inset 0 0 0 5px var(--leather-inner), 0 26px 50px -18px rgba(40, 18, 4, 0.7), 0 8px 16px -8px rgba(40, 18, 4, 0.5);
}

.book-head {
  grid-area: head;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: 0.25rem 1.125rem 0.5rem 0.5rem;
}

.breadcrumbs {
  font-family: "Pagle Display", Georgia, serif;
  color: var(--gilt);
  text-shadow: 0 1px 1px #000;
}

.breadcrumbs .crumb {
  color: var(--gilt);
  text-decoration: none;
}

.breadcrumbs a.crumb:hover,
.breadcrumbs a.crumb:focus-visible {
  color: var(--gilt-light);
  text-decoration: underline;
}

.breadcrumbs .crumb + .crumb::before {
  content: "\2767";
  margin: 0 0.5rem;
  color: var(--gilt-fleuron);
}

.as-of {
  margin: 0 0 0 auto;
  font-family: "IM Fell English", Georgia, serif;
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--as-of);
}

/* The brass plate (ANG-R51), on the leather at the book's foot, on every spread. */
.brass-plate {
  grid-area: plate;
  justify-self: start;
  position: relative;
  z-index: 1;
  margin: -0.625rem 0 0 -0.625rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--brass-edge);
  border-radius: 3px;
  background-color: var(--gilt);
  background-image: linear-gradient(var(--brass-light), var(--gilt) 35%, var(--brass-low));
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 250, 220, 0.7);
  color: var(--brass-text);
  font-family: "Pagle Display", Georgia, serif;
  font-size: 0.875rem;
}

/* The ribbons (ANG-R50): red bookmarks at the leather's right edge, one per spread. */
.ribbons {
  grid-area: ribbons;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
  padding-top: 2.5rem;
}

.ribbon {
  writing-mode: vertical-rl;
  padding: 0.75rem 0.3125rem;
  border-radius: 0 4px 4px 0;
  background-color: var(--ribbon);
  background-image: linear-gradient(90deg, var(--ribbon-deep), var(--ribbon));
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: var(--wax-text);
  font-family: "Pagle Display", Georgia, serif;
  font-size: 0.875rem;
  text-decoration: none;
}

.ribbon:hover,
.ribbon:focus-visible,
.ribbon.on {
  background-image: linear-gradient(90deg, var(--ribbon), var(--wax-bright));
  color: var(--gilt-light);
}

.ribbon.on {
  transform: translateX(4px);
}

/* The spreads: two facing pages each. Without the script they all show; with it, only the open one. */
.spreads {
  grid-area: spreads;
  min-width: 0;
}

.spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.spread + .spread {
  margin-top: 0.75rem;
}

.journal.turning .spread:not(.open) {
  display: none;
}

.journal.turning .spread + .spread {
  margin-top: 0;
}

/*
 * From 760 px up the book keeps one size, as the prototype's book and the addon's do: every spread is as tall as
 * The Angler, and a page with more to show scrolls inside itself under a thin leather scrollbar, so turning to
 * Waters or Legends never makes the book longer.
 */
@media (min-width: 760px) {
  .spread {
    grid-template-rows: minmax(0, 1fr);
    height: 42rem;
  }

  .page {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--leather-trim) transparent;
  }
}

.page {
  min-width: 0;
  padding: 1.5rem 1.75rem 2.25rem;
  background-color: var(--parchment-light);
  background-image: url("/assets/textures/fibres-3cdcac58cc40ad4e2861aa6175521627.svg"), radial-gradient(ellipse at 50% 40%, var(--parchment-light), var(--parchment) 80%, var(--parchment-edge));
  color: var(--ink);
  font-size: 1rem;
}

.page-left {
  border-radius: 4px 0 0 4px;
  box-shadow: inset -30px 0 30px -20px var(--book-fold);
}

.page-right {
  border-radius: 0 4px 4px 0;
  box-shadow: inset 30px 0 30px -20px var(--book-fold);
}

.page h2 {
  margin: 0.125rem 0 0.375rem;
  border-bottom: 0;
  padding-bottom: 0;
  font-size: 1.625rem;
}

.page .kicker {
  margin: 0;
  font-variant: small-caps;
  letter-spacing: 2px;
  color: var(--ink-kicker-page);
  font-size: 0.875rem;
}

.page .empty-line {
  font-style: italic;
  color: var(--ink-small);
}

/* The bookplate (ANG-R70). */
.bookplate {
  margin-top: 0.25rem;
  padding: 1rem 1.125rem;
  border: 3px double var(--leather-trim);
  text-align: center;
}

.bookplate .more {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-small);
}

.bookplate > .kicker + .kicker {
  margin-top: 0.125rem;
}

.kept-since {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-small);
}

.level {
  margin-top: 0.5rem;
}

.level-number {
  margin: 0;
  font-family: "Pagle Display", Georgia, serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--ink-title);
}

.prestige {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  margin: 0.25rem 0 0;
  font-variant: small-caps;
  letter-spacing: 1px;
  color: var(--ink-kicker-page);
  font-size: 0.875rem;
}

.prestige-stars {
  display: inline-flex;
  gap: 0.125rem;
}

.prestige .glyph-star {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--brass-dark);
}

.shown-title {
  margin: 0.375rem 0 0;
}

/* The ink XP bar (ANG-R70, LED-R145), hatched as the prototype's, never with Fresh Water (ANG-R8). */
.ink-bar {
  position: relative;
  height: 0.75rem;
  margin: 0.5rem 0 0.125rem;
  border: 1.5px solid var(--sepia-ink);
  border-radius: 6px;
  overflow: hidden;
}

.ink-bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background-image: repeating-linear-gradient(45deg, var(--sepia-ink) 0 3px, #7a5224 3px 6px);
}

.xp-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-small);
}

/* A block's heading on a page: small caps over a rule, a count or value at its right. */
.page .block-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.875rem 0 0.25rem;
  padding: 0 0 0.125rem;
  border-bottom: 1px solid var(--ink-rule);
  font-family: "IM Fell English", Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  font-variant: small-caps;
  letter-spacing: 1px;
  color: var(--ink-kicker-page);
}

.page .block-head:first-child {
  margin-top: 0;
}

.page ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* A line with its value at the right after a dotted leader, as the prototype's contents lines. */
.leaders li {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  padding: 0.125rem 0;
}

.leaders li::after {
  content: "";
  order: 1;
  flex: 1;
  min-width: 1rem;
  border-bottom: 1px dotted #8a6a40;
}

.leaders li > span:last-child:not(:first-child) {
  order: 2;
  white-space: nowrap;
}

.catches {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-small);
}

/* The right page (ANG-R71): the wax seal pressed into its top right corner. */
.page-right {
  position: relative;
}

.wax-seal {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  display: grid;
  place-content: center;
  width: 4.75rem;
  height: 4.75rem;
  margin: 0;
  border-radius: 50%;
  background-color: var(--wax-mid);
  background-image: radial-gradient(circle at 40% 35%, var(--wax-bright), var(--wax-dark) 72%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 0 0 4px rgba(0, 0, 0, 0.15);
  transform: rotate(-8deg);
  color: var(--wax-text);
  font-family: "Pagle Display", Georgia, serif;
  font-size: 0.75rem;
  line-height: 1.1;
  text-align: center;
}

.wax-seal span {
  display: block;
}

.page-right > .kicker {
  min-height: 4.5rem;
  padding-right: 5.5rem;
}

.character-details {
  font-size: 0.875rem;
  color: var(--ink-small);
}

/* ANG-R23: "{realm} · {REGION}" wraps as one unit, never between the realm and its region. */
.realm-label {
  white-space: nowrap;
}

.skill-milestones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.catch-milestones {
  margin: 0.125rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-small);
}

.block-head .count {
  font-variant: normal;
  letter-spacing: 0;
}

.earned-titles .hand,
.lately .hand {
  font-size: 1.15rem;
}

.coins p {
  margin: 0;
}

/* Pagle's ink glyphs (ANG-R54), drawn in the page's ink. */
.glyph {
  display: block;
  color: var(--ink-title);
}

.glyph .glyph-cut {
  stroke: var(--parchment-light);
}

.glyph .glyph-cut-fill {
  fill: var(--parchment-light);
}

/* Below 760 px (ANG-R53): one page at a time, the ribbons a section menu above the pages, the turn bar below. */
@media (max-width: 759.98px) {
  /* ANG-R47: the Follow button moves below the page name. */
  .name-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .book {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "plate"
      "ribbons"
      "spreads";
    padding: 0.5rem 0.625rem 0.75rem;
  }

  .book-head {
    padding: 0.25rem 0.25rem 0.5rem;
  }

  .brass-plate {
    margin: 0 0 0.625rem;
  }

  /* One row of ribbons that scrolls sideways when it doesn't fit, so the pages start high on the screen. */
  .ribbons {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.375rem;
    padding: 0 0 0.625rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ribbons::-webkit-scrollbar {
    display: none;
  }

  .ribbon {
    flex: none;
  }

  .ribbon {
    writing-mode: horizontal-tb;
    padding: 0.25rem 0.75rem;
    border-radius: 0 0 4px 4px;
    background-image: linear-gradient(var(--ribbon-deep), var(--ribbon));
  }

  .ribbon:hover,
  .ribbon:focus-visible,
  .ribbon.on {
    background-image: linear-gradient(var(--ribbon), var(--wax-bright));
  }

  .ribbon.on {
    transform: translateY(3px);
  }

  /*
   * One page at a time: a spread's two pages lie side by side in a strip that scrolls sideways a page at a time,
   * the other page's edge showing at the side so the turn reads, the fold between them as on the wide book. The
   * strip keeps one height, as the wide book does, and a page with more to show scrolls inside itself, so no
   * spread makes the book longer. With the script, the turn bar below follows and turns it.
   */
  .book {
    grid-template-areas:
      "head"
      "plate"
      "ribbons"
      "spreads"
      "turn";
  }

  .spread {
    grid-template-columns: none;
    grid-template-rows: minmax(0, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: calc(100% - 1.5rem);
    height: clamp(22rem, 100svh - 20rem, 38rem);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .page {
    min-height: 0;
    padding: 1.25rem 1rem 1.5rem;
    overflow-y: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scrollbar-width: thin;
    scrollbar-color: var(--leather-trim) transparent;
  }

  .page-right {
    scroll-snap-align: end;
  }

  /* The turn bar (journal.js): the page arrows either side of "Page 1 of 2", gilt on the leather. */
  .leaf-turn {
    grid-area: turn;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 0.625rem;
    color: var(--gilt);
    font-family: "Pagle Display", Georgia, serif;
    font-size: 0.9375rem;
  }

  .leaf-turn button {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0 0 0.1875rem;
    border: 3px double var(--gilt-fleuron);
    border-radius: 50%;
    background: transparent;
    color: var(--gilt);
    font-family: "Pagle Display", Georgia, serif;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
  }

  .leaf-turn button:hover,
  .leaf-turn button:focus-visible {
    border-color: var(--gilt);
    color: var(--gilt-light);
  }

  .leaf-turn button:focus-visible {
    outline: 2px solid var(--gilt-light);
    outline-offset: 2px;
  }

  .leaf-turn button:disabled {
    opacity: 0.35;
    cursor: default;
  }

  .leaf-count {
    min-width: 6.5em;
    text-align: center;
  }
}

/* The turn bar is the narrow book's alone. */
@media (min-width: 760px) {
  .leaf-turn {
    display: none;
  }
}

/* Hunts, Board and Stats spreads (#156, #157) */

/* ANG-R82: the owner's handwritten note on Party Catches waiting on a groupmate's upload, under the title. */
.party-waiting {
  margin: 0.25rem 0 0.5rem;
}

.party-waiting .hand {
  margin: 0;
  font-size: 1.1rem;
  color: var(--hand-blue);
}

/* ANG-R77: the Hunts notebook, one row per Hunt with its trimmed stamp at the left. */
.hunt-rows li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.3125rem 0;
  border-bottom: 1px dotted var(--ink-rule);
}

.hunt-stamp {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  width: 3.5rem;
}

.glyph-hunt {
  width: 1.75rem;
  height: 1.75rem;
}

.glyph-hunt .glyph-trim {
  stroke: var(--ink-ghost);
}

.trim-1 .glyph-trim {
  stroke: #9a5a2a;
}

.trim-2 .glyph-trim {
  stroke: #8a8a8a;
}

.trim-3 .glyph-trim {
  stroke: var(--brass-low);
}

.stamp {
  font-family: "Pagle Display", Georgia, serif;
  font-size: 0.6875rem;
  font-variant: small-caps;
  letter-spacing: 1px;
  color: var(--ink-small);
}

.hunt-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hunt-name {
  color: var(--ink-title);
}

.hunt-target,
.hunt-progress,
.hunt-effort {
  font-size: 0.875rem;
  color: var(--ink-small);
}

.hunt-target {
  font-style: italic;
}

.hunt-effort {
  color: var(--hand-blue);
}

.set-title {
  font-size: 1.1rem;
}

/* ANG-R78: the Tackle Board, the Campfire's flame, the tally and the Fly Box's compartments, 6 by 5. */
.board-not-started {
  font-style: italic;
  color: var(--ink-small);
}

.campfire-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  margin: 0.25rem 0;
}

.glyph-flame {
  width: 2rem;
  height: 2rem;
  color: var(--wax-mid);
}

.campfire-days {
  font-family: "Pagle Display", Georgia, serif;
  font-size: 1.25rem;
}

.kindling,
.campfire-as-of {
  font-size: 0.875rem;
  color: var(--ink-small);
}

.longest-campfire {
  margin: 0.375rem 0 0;
  font-size: 1.2rem;
}

.tally {
  margin: 0.25rem 0 0;
}

.board-titles .hand {
  font-size: 1.15rem;
}

.flies {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.25rem;
  margin: 0.375rem 0 0;
  padding: 0;
  list-style: none;
}

.fly {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0.25rem 0.125rem;
  border: 1px solid var(--ink-rule);
  border-radius: 3px;
  background-color: rgba(58, 38, 20, 0.05);
  font-size: 0.6875rem;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.fly.rare {
  border: 2px solid var(--gilt);
  box-shadow: inset 0 0 0 1px var(--brass-low);
}

.glyph-fly {
  width: 1.5rem;
  height: 1.5rem;
}

.fly .fly-dressing {
  fill: currentColor;
}

.fly:not(.tied) .glyph-fly {
  color: var(--ink-ghost);
}

.fly:not(.tied) .fly-dressing {
  fill: none;
}

.not-tied {
  font-style: italic;
  color: var(--ink-ghost);
}

/* ANG-R79: At the water, the Bests, Got away and the owner's ruled Sessions table, which scrolls inside its page. */
.at-the-water,
.got-away {
  margin-top: 0.25rem;
}

.sessions-scroll {
  overflow-x: auto;
}

.sessions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.sessions-table th {
  font-family: "IM Fell English", Georgia, serif;
  font-weight: 400;
  font-variant: small-caps;
  text-align: left;
  color: var(--ink-kicker-page);
}

.sessions-table th,
.sessions-table td {
  padding: 0.1875rem 0.375rem 0.1875rem 0;
  border-bottom: 1px solid var(--ink-rule);
  vertical-align: top;
}

.sessions-table .session-start {
  white-space: nowrap;
}

/* ANG-R80: the owner's Your odds and Dry spells, each row's Dry spell in the margin in handwriting. */
.odds-source,
.visitors-note {
  font-style: italic;
  color: var(--ink-small);
}

.odds-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.5rem;
  margin: 0.375rem 0 0.125rem;
}

.odds-group-heading {
  font-style: italic;
  color: var(--ink-title);
}

.odds-group-note {
  font-size: 0.75rem;
  color: var(--ink-small);
}

.odds-rows li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.5rem;
  padding: 0.0625rem 0;
}

.odds-rows .odds {
  color: var(--ink-small);
}

.odds-rows .odds.hand {
  color: var(--hand-blue);
  font-size: 1.05rem;
}

.dry-spell {
  margin-left: auto;
  color: var(--hand-brown);
  font-size: 1.05rem;
}

.dry-spell .luck {
  color: var(--hand-red);
}

.odds-end {
  margin: 0.75rem 0 0;
  font-size: 1.1rem;
}

/* Waters and Legends spreads (#154, #155) */

/* Their right pages carry no wax seal, so their kickers need no room for one. */
.page-waters.page-right > .kicker,
.page-legends.page-right > .kicker {
  min-height: 0;
  padding-right: 0;
}

/* ANG-R72: the zone tiles, a grid of small ruled cards under each continent's head; they open nothing. */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.5rem;
  margin: 0.375rem 0 0.25rem;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
  padding: 0.375rem 0.5rem 0.5rem;
  border: 1px solid var(--ink-rule);
  border-radius: 3px;
  background-color: rgba(255, 250, 235, 0.35);
}

.tile .zone-name {
  font-family: "Pagle Display", Georgia, serif;
  color: var(--ink-title);
  overflow-wrap: anywhere;
}

.tile .rank {
  font-variant: small-caps;
  letter-spacing: 1px;
  font-size: 0.875rem;
  color: var(--ink-kicker-page);
}

.tile.uncharted {
  border-style: dashed;
}

.tile.uncharted .rank {
  font-style: italic;
  font-variant: normal;
  letter-spacing: 0;
  color: var(--ink-small);
}

.zone-completion {
  font-size: 0.875rem;
  color: var(--ink-small);
}

.tile .ink-bar {
  display: block;
  height: 0.5rem;
  margin: 0.125rem 0 0;
}

/* A Master tile's seal: a small wax disc pressed into the tile's corner. */
.master-seal {
  position: absolute;
  top: -0.5rem;
  right: -0.375rem;
  display: grid;
  place-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: var(--wax-mid);
  background-image: radial-gradient(circle at 40% 35%, var(--wax-bright), var(--wax-dark) 72%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 0 0 3px rgba(0, 0, 0, 0.15);
  transform: rotate(-10deg);
  color: var(--wax-text);
  font-family: "Pagle Display", Georgia, serif;
  font-size: 0.625rem;
}

/* ANG-R73, ANG-R75: index rows, a glyph beside the entry; an uncaught one is the medallion and "— unknown —". */
.species-row,
.legend-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.375rem 0;
  border-bottom: 1px dotted var(--ink-rule);
}

.species-row .glyph,
.legend-row .glyph {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--sepia-ink);
}

.species-row.uncaught,
.legend-row.unwritten {
  align-items: center;
}

.species-row .glyph-uncaught {
  color: var(--ink-ghost);
}

.species-entry,
.legend-entry {
  min-width: 0;
}

.species-entry p,
.legend-entry p {
  margin: 0;
}

.species-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.125rem 0.5rem;
}

.species-name,
.legend-name {
  font-family: "Pagle Display", Georgia, serif;
  font-size: 1.0625rem;
  color: var(--ink-title);
}

.species-count,
.first,
.record,
.removed,
.legend-first,
.legend-record,
.legends-note,
.trophy-note,
.pounds {
  font-size: 0.875rem;
  color: var(--ink-small);
}

.removed {
  font-style: italic;
}

.unknown,
.unwritten-text {
  font-style: italic;
  color: var(--ink-ghost);
}

.stars {
  display: inline-flex;
  gap: 0.0625rem;
}

.stars .glyph-star {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--brass-dark);
}

/* ANG-R74: Uncharted, handwritten lines under the index. */
.uncharted .hand {
  font-size: 1.1rem;
}

.legend-title {
  font-size: 1.1rem;
}

/* ANG-R76: the Trophy Room, a measuring board per family: a ruled strip with a tick per weight, inked where landed. */
.family {
  margin-top: 0.625rem;
}

.family .stars {
  margin: 0.125rem 0 0.25rem;
}

.measuring-board {
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  margin: 0.25rem 0 0;
  padding: 0.875rem 0.5rem 0.25rem;
  border: 1px solid var(--sepia-ink);
  border-radius: 2px;
  background-image: repeating-linear-gradient(90deg, var(--ink-rule) 0 1px, transparent 1px 8px);
  background-size: 100% 0.5rem;
  background-repeat: no-repeat;
}

.measuring-board .tick {
  position: relative;
  min-width: 1.25rem;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--ink-ghost);
}

.measuring-board .tick::before {
  content: "";
  position: absolute;
  top: -0.875rem;
  left: 50%;
  height: 0.75rem;
  border-left: 1px dashed var(--ink-ghost);
}

.measuring-board .tick.landed {
  font-weight: 700;
  color: var(--ink-title);
}

.measuring-board .tick.landed::before {
  border-left: 2px solid var(--sepia-ink);
}

.pounds {
  margin: 0.5rem 0 0;
  font-style: italic;
}

/* ===========================================================================================================
 * The v2 Ledger look (the addon's v2 Ledger kit, Pagle-design-kits/v2/pagle-ledger-kit): the book as the
 * addon's own Fish Journal draws it after its redesign. The kit's textures and parts are sliced from its atlases
 * into assets/ledger/ (WebP, from Pagle's own origin, WEB-R5): Field Leather for the binding, the page paper, the
 * likeness, the caught and uncaught Species medallions, stars, checkboxes, the wax seal and the zone tile. The
 * Prestige frames and emblems and the Legend crests are wow-fish's web export in assets/ledger/art/, drawn by
 * templates/art.html and site.css's .art; this file sizes them in the book. Kickers, group heads and ruled heads are set in the real small-capitals face the kit bundles,
 * IM Fell English SC; print is IM Fell English; handwriting Caveat; gilt, ribbons and brass Marcellus.
 * This layer comes last, so it wins over the B1 rules above where both set a property.
 * =========================================================================================================== */

@font-face {
  font-family: "IM Fell English SC";
  src: url("/assets/fonts/im-fell-english-sc-regular-4ba1becfd9ef5b8ff82d8a89447963ef.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.journal {
  --ledger-disc: radial-gradient(circle closest-side at 46% 42%, #4b6a76 0, #1b2d35 82%, transparent 84%);
  --crest: 10.5rem;
}

/* The binding: Field Leather's grain, the kit's default binding, darkened toward its edges. */
.book {
  background-color: #3b2313;
  background-image: radial-gradient(ellipse 85% 75% at 50% 45%, rgba(0, 0, 0, 0) 55%, rgba(14, 7, 2, 0.45)), url("/assets/ledger/leather-050cd12dc3dbe2a6093ce925d2a625bd.webp");
  background-size: auto, 128px 128px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px #140b05, inset 0 0 0 2px rgba(160, 112, 58, 0.5), inset 0 0 0 3px #1d1008, 0 26px 50px -18px rgba(40, 18, 4, 0.7), 0 8px 16px -8px rgba(40, 18, 4, 0.5);
}

/* The page paper, one sheet per page, shaded into the gutter. */
.page {
  background-color: #ead9b1;
  background-image: url("/assets/ledger/parchment-ad932d358146e4cd6d5861f44f3a1b68.webp");
  background-size: cover;
  background-position: center;
  font-family: "IM Fell English", Georgia, serif;
  color: var(--ink);
}

.page-left {
  box-shadow: inset -34px 0 30px -22px rgba(70, 40, 10, 0.55);
}

.page-right {
  box-shadow: inset 34px 0 30px -22px rgba(70, 40, 10, 0.55);
}

.page h2 {
  font-family: "IM Fell English", Georgia, serif;
  font-weight: 400;
  font-size: 1.875rem;
  line-height: 1.1;
  color: var(--ink-title);
}

.page .kicker,
.page .block-head {
  font-family: "IM Fell English SC", "IM Fell English", Georgia, serif;
  font-variant: normal;
  letter-spacing: 0.02em;
  color: var(--ink-kicker-page);
}

.page .kicker {
  font-size: 0.9375rem;
}

.page .block-head {
  font-size: 1.0625rem;
}

/* A head's count or value at its right, in the kit's small italic print ("81% complete · 95 of 117"). */
.page .block-head > span + span,
.block-head .count {
  font-family: "IM Fell English", Georgia, serif;
  font-style: italic;
  font-size: 0.875rem;
  letter-spacing: 0;
  color: var(--ink-small);
}

/* Lines with a value at the right: the kit's Angler page draws no leader dots, only the value set right. */
.leaders li::after {
  border-bottom-color: transparent;
}

/* ANG-R70: the bookplate as the kit's Angler page lays it out: the Prestige frame beside "Ex Libris", the name and
   "kept since"; under them the Angler Level row (the numeral, "Angler Level" over the title in hand, the
   Prestige at the right), the ink bar and the ranks. */
.bookplate {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.25rem;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: left;
}

.bookplate > * {
  grid-column: 2;
}

.bookplate > .art {
  --art: var(--crest);
  grid-column: 1;
  grid-row: 1 / span 5;
  align-self: start;
  margin: 0 0 -0.25rem;
}

.bookplate > .level,
.bookplate > .xp,
.bookplate > .ranks,
.bookplate > .shown-title {
  grid-column: 1 / -1;
}

.bookplate > .kicker {
  align-self: end;
}

.bookplate .page-name h2 {
  margin: 0;
  font-size: 1.875rem;
}

.bookplate .more {
  font-size: 0.9375rem;
}

.kept-since {
  font-style: italic;
  font-size: 0.9375rem;
}

/* The likeness in the Prestige frame's well (ANG-R70): the kit's silhouette, placed by art.html at the well. */
.art .likeness {
  background: url("/assets/ledger/crest-portrait-792f6c6ed0a1a9b7319f68493786bf33.webp") center / 100% 100% no-repeat;
}

.level {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.25rem 0.75rem;
  margin-top: 1.25rem;
}

/* Where the row is too narrow (a phone, Home's sample book), the Prestige with its emblem and stars takes its own
   line under the level; the numeral never breaks. */
.level-number {
  font-family: "IM Fell English", Georgia, serif;
  font-size: 3.25rem;
  line-height: 0.85;
  white-space: nowrap;
}

.level-label .kicker,
.level-label .shown-title {
  margin: 0;
}

.level-label .shown-title {
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--hand-blue);
}

.prestige {
  margin: 0 0 0 auto;
  justify-content: flex-end;
  font-family: "IM Fell English", Georgia, serif;
  font-style: italic;
  font-variant: normal;
  letter-spacing: 0;
  font-size: 0.9375rem;
  color: var(--ink-small);
  text-align: right;
}

.prestige .emblem {
  flex: none;
}

/* Stars: the kit's inked and ghost stars. */
.glyph-star {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  background: url("/assets/ledger/star-b1d50d8ebf68302efe0d78f4c210de41.webp") center / contain no-repeat;
}

.glyph-star-blank {
  background-image: url("/assets/ledger/star-off-d7c3639aefac958d9fdeed5c56c1ef4a.webp");
}

/* The ink XP bar: the kit's rounded track with its hatched fill. */
.ink-bar {
  height: 0.8125rem;
  border-color: #4a3014;
  border-radius: 999px;
  background-color: rgba(255, 250, 235, 0.35);
}

.ink-bar i {
  border-radius: 999px 0 0 999px;
  background-image: repeating-linear-gradient(115deg, #4a3014 0 3px, #7a5428 3px 6px);
}

/* ANG-R71's wax seal: the kit's pressed wax. */
.wax-seal {
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 0;
  background: url("/assets/ledger/book-seal-9f7093f900c34e4362d4eacf397274e3.webp") center / contain no-repeat;
  box-shadow: none;
  color: #f4dfa8;
  font-size: 0.8125rem;
  text-shadow: 0 1px 0 rgba(60, 0, 0, 0.55);
}

/* Milestones: the kit's checkboxes, ticked when credited (the ☑ or ☐ stays in the text for readers). */
.skill-milestones {
  gap: 0.375rem 1.25rem;
}

.skill-milestones li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.tick-box {
  display: inline-block;
  width: 1.0625rem;
  height: 1.0625rem;
  overflow: hidden;
  background: url("/assets/ledger/check-off-b6400d5c9b6b6880a4ed4526cfe205ff.webp") center / contain no-repeat;
  color: transparent;
  font-size: 0;
}

.skill-milestones .reached .tick-box {
  background-image: url("/assets/ledger/check-on-ad3c93a6d31079e43649eef77809d938.webp");
}

/* ANG-R72: the kit's zone tiles, three to a row on a full page (fewer where the page is narrower); the name
   over its rank and completion on one italic line ("Regular · 58%"); waters not charted are a dashed outline. */
.tile {
  display: block;
  min-height: 5.25rem;
  padding: 0.5rem 0.625rem 1.125rem;
  border: 0;
  border-radius: 3px;
  background: url("/assets/ledger/tile-2f29cc04612c60064d372365e090eb4f.webp") 0 0 / 100% 100% no-repeat;
  text-align: left;
}

.tile .zone-name {
  display: block;
  margin-bottom: 0.25rem;
  font-family: "IM Fell English", Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.1;
  overflow-wrap: break-word;
}

.tile .rank + .zone-completion::before {
  content: " \00b7  ";
}

.tile .rank,
.zone-completion {
  font-family: "IM Fell English", Georgia, serif;
  font-style: italic;
  font-variant: normal;
  letter-spacing: 0;
  font-size: 0.8125rem;
  color: var(--ink-small);
}

.tile.uncharted {
  background: none;
  border: 1.5px dashed rgba(122, 82, 38, 0.5);
}

.tile .ink-bar {
  position: absolute;
  left: 0.625rem;
  right: 0.625rem;
  bottom: 0.5rem;
  height: 0.375rem;
  margin: 0;
}

/* A Master tile: the kit's wax pressed into the tile's corner; "Master" stays for readers. */
.master-seal {
  top: 0.375rem;
  right: 0.375rem;
  width: 1.75rem;
  height: 1.75rem;
  overflow: hidden;
  border-radius: 0;
  background: url("/assets/ledger/book-seal-9f7093f900c34e4362d4eacf397274e3.webp") center / contain no-repeat;
  box-shadow: none;
  color: transparent;
  font-size: 0;
}

/* ANG-R73, ANG-R75: index rows with the kit's medallions: a caught Species inked in its ring, an uncaught one the
   dashed ring and the plain fish outline, the same for every item; a Legend's row its crest (ANG-R54). */
.species-row,
.legend-row {
  align-items: center;
  gap: 0.75rem;
  padding: 0.375rem 0;
  border-bottom: 0;
}

.species-row,
.legend-row.caught {
  align-items: flex-start;
}

.species-row.uncaught {
  align-items: center;
}

.medallion,
.species-row > .glyph,
.legend-row > .glyph {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
}

.glyph-species {
  background: url("/assets/ledger/medal-44-4ba203aaf294eeb7ea65d733d425dd1c.webp") center / 122.7% 122.7% no-repeat, url("/assets/ledger/fish-ca4afafb08fea8dc77c62f1b79dc6e82.webp") 50% 52% / 56% auto no-repeat, var(--ledger-disc);
}

/* ANG-R75: a caught Legend's crest, moving, 5.5rem wide beside its entry; an unwritten one the Unwritten crest at
   rest, 3.5rem, so the rows of Legends not yet landed stay quiet and short. */
.legend-row > .art {
  --art: 5.5rem;
  margin: -0.25rem 0 -0.5rem -0.25rem;
}

.legend-row.unwritten > .art {
  --art: 3.5rem;
  margin: -0.25rem 0;
}

.glyph-uncaught {
  background: url("/assets/ledger/medal-unk-lg-854e37a4bc2ce663111731b03579eada.webp") center / 102% 102% no-repeat;
}

.species-name,
.legend-name {
  font-family: "IM Fell English", Georgia, serif;
  font-size: 1.125rem;
}

.stars {
  gap: 0.125rem;
}

.stars .glyph-star {
  width: 0.95rem;
  height: 0.95rem;
}

/* ANG-R76: the Trophy Room's measuring board as the kit's weights ruler: a framed ruler, each weight a tick,
   tall and red where landed, short and ghosted where not, its pounds above it. */
.measuring-board {
  align-items: flex-end;
  min-height: 4.25rem;
  padding: 0.5rem 0.75rem 0;
  list-style: none;
  border: 1.5px solid #6a4a20;
  border-radius: 1px;
  background-color: rgba(255, 250, 235, 0.3);
  background-image: repeating-linear-gradient(90deg, rgba(90, 60, 20, 0.55) 0 1px, transparent 1px 0.625rem);
  background-position: 0 100%;
  background-size: 100% 0.4375rem;
}

.measuring-board .tick {
  padding-bottom: 2rem;
  font-family: "IM Fell English", Georgia, serif;
  font-size: 0.8125rem;
  line-height: 1;
  color: var(--ink-ghost);
}

.measuring-board .tick::before {
  top: auto;
  bottom: 0;
  height: 0.875rem;
  border-left: 1.5px solid rgba(120, 100, 80, 0.55);
}

.measuring-board .tick.landed {
  font-weight: 400;
  color: var(--ink-title);
}

.measuring-board .tick.landed::before {
  height: 1.625rem;
  border-left: 3px solid #9a2a1a;
}

/* ANG-R81: the zone and fish crests, wow-fish's flat shields (ANG-R54), each file 2× its CSS size (art.html).

   The shown crest is pinned on the bookplate's frame as the game pins the equipped crest (LED-R146): the shield 34%
   of the frame's width at its lower right, its right edge 12% of the width past the frame's and its foot 16% of the
   height above the frame's on a Prestige frame (4% and 2% on rank 0's plain frame), turned 6° clockwise, with a gilt
   pin through its top and a soft shadow. It shares the frame's grid cell and is moved there relatively, so it never
   widens the frame's column; it scales with --crest (the 70 file shown at 57px wide on a full page). */
.bookplate > .crest-pin {
  --pin: calc(var(--crest) * 0.34);
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1 / span 5;
  align-self: start;
  justify-self: start;
  width: var(--pin);
  left: calc(var(--crest) * 1.12 - var(--pin));
  top: calc(var(--crest) * 280 / 260 * 0.84 - var(--pin) * 140 / 120);
  transform: rotate(6deg);
  filter: drop-shadow(0 2px 2px rgba(40, 18, 4, 0.45));
}

/* On a Prestige frame the pin reaches 12% of its width past it, so the text column steps aside to keep clear. */
.bookplate:has(> .crest-pin:not(.on-plain)) {
  column-gap: calc(var(--crest) * 0.12 + 0.375rem);
}

.bookplate > .crest-pin.on-plain {
  left: calc(var(--crest) * 1.04 - var(--pin));
  top: calc(var(--crest) * 280 / 260 * 0.98 - var(--pin) * 140 / 120);
}

.crest-pin .crest-shield {
  display: block;
  width: 100%;
  height: auto;
}

.crest-pin::before {
  content: "";
  position: absolute;
  top: 2%;
  left: 50%;
  z-index: 1;
  width: 13%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 35% 30%, var(--gilt-light), var(--gilt) 40%, var(--gilt-fleuron) 75%, #5a3d12);
  box-shadow: 0 1px 1px rgba(40, 18, 4, 0.6);
}

/* ANG-R72: a Master tile's own crest is its emblem, 42px tall in the tile's top right corner, the wax seal (24px
   here) pressed over its foot, centred on the shield's point; the name and rank keep clear of it. */
.tile.crested {
  padding-right: 3.25rem;
}

.tile > .crest-shield {
  position: absolute;
  top: 0.3125rem;
  right: 0.5rem;
}

.tile > .crest-shield + .master-seal {
  top: calc(0.3125rem + 42px - 0.75rem);
  right: calc(0.5rem + 18px - 0.75rem);
  z-index: 1;
  width: 1.5rem;
  height: 1.5rem;
  filter: drop-shadow(0 1px 1px rgba(40, 18, 4, 0.4));
}

/* ANG-R73: "{c} of 10 colours" in the row's small print, the fish crest 28px tall beside it. */
.species-colours {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--ink-small);
}

.species-colours .crest-shield {
  flex: none;
  margin: -0.375rem 0;
}

/* ANG-R71: "{n} crests" closes the Titles block in the same small italic as its count. */
.titles .crest-count {
  margin: 0.25rem 0 0;
  font-style: italic;
  font-size: 0.875rem;
  color: var(--ink-small);
}

/* ANG-R71: Where the XP came from, LED-R150's "All told" column as leader lines; "All told" ruled off under them. */
.xp-sources .all-told {
  margin-top: 0.125rem;
  border-top: 1px solid var(--ink-rule);
  color: var(--ink-title);
}

/*
 * ANG-R77, HNT-R162: Pagle Wagers, the ladder as one rail across the block, in the book's own ink: the XP bar's
 * rounded track and hatch filled up to the Angler's brass token at the count, a post per mark (a third of the rail to
 * each step) pressed in wax once earned. Under the rail each mark's step and title end at its post, so the last ends
 * with the rail and none overlaps. The rail is decorative; the line and the marks say everything in words.
 */
.wagers-line {
  margin: 0.125rem 0 0;
}

.ladder {
  --post: 1rem;
  padding: 0 calc(var(--post) / 2 + 1px);
}

.ladder-rail {
  position: relative;
  height: 0.5rem;
  margin: 0.875rem 0 0.625rem;
  border: 1.5px solid #4a3014;
  border-radius: 999px;
  background-color: rgba(255, 250, 235, 0.35);
}

.ladder-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 999px;
  background-image: repeating-linear-gradient(115deg, #4a3014 0 3px, #7a5428 3px 6px);
}

.ladder-post,
.ladder-token {
  position: absolute;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ladder-post {
  width: var(--post);
  height: var(--post);
  border: 1.5px solid #4a3014;
  background-color: var(--parchment-light);
}

.ladder-post.earned {
  border-color: var(--wax-dark);
  background-color: var(--wax-mid);
  background-image: radial-gradient(circle at 40% 35%, var(--wax-bright), var(--wax-dark) 72%);
  box-shadow: 0 1px 2px rgba(40, 10, 0, 0.4), inset 0 0 0 2px rgba(0, 0, 0, 0.15);
}

.ladder-token {
  z-index: 1;
  width: 1.25rem;
  height: 1.25rem;
  border: 1.5px solid var(--brass-edge);
  background-color: var(--brass-low);
  background-image: radial-gradient(circle at 38% 32%, var(--brass-light), var(--brass-low) 68%, var(--brass-dark));
  box-shadow: 0 1px 3px rgba(40, 10, 0, 0.45), inset 0 0 0 2px rgba(255, 244, 200, 0.35);
}

.page .ladder-marks {
  display: grid;
  grid-template-columns: repeat(var(--marks, 3), minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.ladder-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  padding-left: 0.5rem;
  text-align: right;
}

.ladder-step {
  font-family: "Pagle Display", Georgia, serif;
  font-size: 0.8125rem;
  color: var(--ink-small);
}

.ladder-mark .ladder-title {
  font-size: 1.05rem;
  color: var(--ink-small);
}

.ladder-mark.earned .ladder-step {
  color: var(--wax-dark);
}

.ladder-mark.earned .ladder-title {
  color: var(--hand-blue);
}

/* "earned" is said to readers that don't see the wax. */
.ladder-earned {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Below 760 px (ANG-R53): a smaller frame. */
@media (max-width: 759.98px) {
  .journal {
    --crest: 7.5rem;
  }

  .bookplate {
    column-gap: 0.875rem;
  }
}
