/*
 * Pagle's look (WEB-R22, DESIGN.md): the book kit's palette and type (parchment, ink, leather and gilt;
 * Marcellus, IM Fell English and Caveat) in an ordinary web layout. Hand-written, no framework (WEB-R2).
 * - Everything loads from Pagle's own origin: no imported stylesheets, and only the font and texture files
 *   beside this one (WEB-R5). The textures (paper, leather, the torn edge, the pencil loop) are SVG files in
 *   textures/, not data: URIs, which the CSP's img-src 'self' would refuse (WEB-R35).
 * - Every font-family ends in serif or cursive (monospace for the code face), so names in Hangul, Han or
 *   Cyrillic fall back to the system's fonts (WEB-R5).
 * - Light only: no dark-scheme media queries (WEB-R23).
 * - No sideways scroll from 360 px up; below 720 px the band's links wrap under the wordmark and the account
 *   strip's items wrap, with no menu button, and wide tables scroll inside their own .table-box (WEB-R24).
 * - Forms keep the browser's native controls (WEB-R22).
 */

/* Fonts: SIL OFL, subset to U+0000–024F, U+1E00–1EFF, U+2000–206F; licences in fonts/. The Marcellus subset
   is a Modified Version, so it may not carry its Reserved Font Name: it is renamed "Pagle Display". */
@font-face {
  font-family: "Pagle Display";
  src: url("/assets/fonts/marcellus-regular-77f6d8c2705c202013026357e58faf9c.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: "IM Fell English";
  src: url("/assets/fonts/im-fell-english-italic-8e8507618d7bc47dc6953378aa768dfc.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("/assets/fonts/caveat-medium-d418601ba6dc99f8ecfecd217245f1fd.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* DESIGN.md's colours (the book kit's, contrast-tuned by stop) and spacing. journal.css uses them too. */
:root {
  --parchment-light: #f3e5c3;
  --parchment: #dfc89a;
  --parchment-edge: #c9ab76;
  --parchment-field: #efe0bb;
  --field-paper: #fbf3df;
  --field-stroke: #a88a5a;
  --ink: #3a2614;
  --ink-title: #3e220c;
  --ink-small: #5a4028;
  --ink-kicker: #7e5024;
  --ink-kicker-page: #6e4620;
  --ink-ghost: #b8a080;
  --ink-rule: #c4a874;
  --sepia-ink: #5a3a14;
  --hand-blue: #23407a;
  --hand-red: #9a2a1a;
  --hand-green: #2a6a2a;
  --hand-brown: #7a3a10;
  --water: 52 104 168;
  --leather-light: #6a3e20;
  --leather-dark: #3a2010;
  --leather-trim: #8a5a2a;
  --leather-inner: #2a1608;
  --leather-edge: #120a04;
  --gilt: #e8c96a;
  --gilt-light: #fff4c8;
  --gilt-fleuron: #a8803a;
  --brass-light: #f3da86;
  --brass-low: #b8902c;
  --brass-dark: #9a7420;
  --brass-edge: #4a3008;
  --brass-text: #2a1a04;
  --wax-bright: #ad321e;
  --wax-mid: #922618;
  --wax-dark: #7a1810;
  --wax-text: #f4dfa8;
  --ribbon: #9a2a1c;

  --gutter: clamp(16px, 4vw, 56px);
  --column-top: clamp(28px, 5vw, 56px);
  --column-bottom: clamp(48px, 7vw, 88px);
  --width-reading: 40rem;
  --width-wide: 76rem;
  --width-book: 60rem;
  --width-home: 86rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--leather-trim) var(--parchment);
}

/* The parchment ground: a radial wash from light parchment at the top, under paper fibres that tile. */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--parchment-field);
  background-image: url("/assets/textures/fibres-3cdcac58cc40ad4e2861aa6175521627.svg"), radial-gradient(ellipse at 50% 0%, var(--parchment-light), var(--parchment-field) 60%, #e6d3a8);
  background-attachment: scroll, fixed;
  color: var(--ink);
  font-family: "IM Fell English", Georgia, serif;
  font-size: 18px;
  line-height: 1.5;
  font-variant-numeric: lining-nums;
  overflow-wrap: anywhere;
}

/* The mottle is one layer the size of the window, fixed, so it never repeats and shows no tile seams. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("/assets/textures/mottle-670638a77d9f2027ca1d4840a93631cd.svg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

::selection {
  background-color: rgb(var(--water) / 0.22);
  color: var(--ink-title);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Pagle Display", Georgia, serif;
  font-weight: 400;
  color: var(--ink-title);
  text-wrap: balance;
}

/* A working page's title (Headline), 24px above the content. */
h1 {
  margin: 0 0 24px;
  font-size: clamp(2.1rem, 3.6vw, 2.75rem);
  line-height: 1.1;
}

/* A block's head (Title). */
h2 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.2;
}

h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 21px;
  line-height: 1.2;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--hand-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink-title);
}

:focus-visible {
  outline: 2px solid var(--hand-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

pre {
  overflow-x: auto;
}

code {
  font-family: "IM Fell English", Georgia, serif;
  font-style: italic;
  background-color: rgb(var(--water) / 0.08);
  padding: 0 0.25em;
  border-radius: 3px;
}

/* A handwritten note in the margin, in the hand's blue ink. */
.hand {
  font-family: "Caveat", cursive;
  font-weight: 500;
  color: var(--hand-blue);
  font-size: 1.3em;
  line-height: 1.1;
}

/* Skip to content (WEB-R20): a parchment tab that drops in from the top on keyboard focus. */
.skip {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 20;
  padding: 8px 14px;
  border: 1px solid var(--leather-trim);
  border-radius: 0 0 4px 4px;
  background-color: var(--parchment-light);
  color: var(--ink-title);
  font-family: "Pagle Display", Georgia, serif;
  transition: top 0.2s var(--ease-out);
}

.skip:focus {
  top: 0;
}

/* The header's first tier (WEB-R20), the book's cover (DESIGN.md, Cover and Page): tooled leather with gilt
   stitching, the crest-led wordmark and the navigation tooled in gilt, a red ribbon bookmark behind the current
   section, and Sign in as a riveted brass nameplate. The grain and the stains are each one wide layer that
   never tiles, since a repeating grain shows its seams; the grain is lit, so it multiplies over the leather. */
.band {
  position: relative;
  z-index: 5;
  background-color: var(--leather-light);
  background-image: url("/assets/textures/band-stains-cb9d16f66d618164f9fe598d986db955.svg"), url("/assets/textures/band-grain-744a312fa76a37c2af3a477f46ad2633.svg"),
    radial-gradient(ellipse 60% 140% at 22% 0%, #7c4a28, transparent 70%),
    linear-gradient(180deg, #6e4122, var(--leather-light) 40%, #4a2914);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: normal, multiply, normal, normal;
  box-shadow: inset 0 1px 0 rgba(255, 214, 160, 0.18), inset 0 -3px 0 #2c170a, inset 0 -5px 4px -2px rgba(0, 0, 0, 0.45),
    0 6px 10px -4px rgba(30, 14, 4, 0.55);
}

/* The gilt stitching, dashed along both edges. */
.band::before,
.band::after {
  content: "";
  position: absolute;
  left: clamp(8px, 1.4vw, 18px);
  right: clamp(8px, 1.4vw, 18px);
  pointer-events: none;
}

.band::before {
  top: 6px;
  border-top: 1.5px dashed rgba(232, 201, 106, 0.52);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.5));
}

.band::after {
  bottom: 10px;
  border-top: 1.5px dashed rgba(232, 201, 106, 0.62);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.6));
}

.band .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  max-width: var(--width-home);
  min-height: 76px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0 6px;
  font-family: "Pagle Display", Georgia, serif;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.015em;
  color: var(--gilt);
  text-decoration: none;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 226, 170, 0.22);
  white-space: nowrap;
}

.wordmark .crest {
  flex: none;
  width: 26px;
  height: 30px;
  filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.6)) drop-shadow(0 1px 0 rgba(255, 226, 170, 0.2));
}

.wordmark:hover {
  color: var(--gilt-light);
}

.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
}

.site-nav ul,
.account-strip ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul {
  gap: 4px clamp(16px, 2.6vw, 34px);
}

.site-nav a {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 8px 0;
  font-family: "Pagle Display", Georgia, serif;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--gilt);
  text-decoration: none;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 226, 170, 0.16);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--gilt-light);
}

/* The ribbon bookmark: runs down the leather behind the current section's link and ends in a notch below the
   band, dropping in once. */
.site-nav a[aria-current]::after {
  content: "";
  position: absolute;
  left: -14px;
  right: -14px;
  top: -22px;
  z-index: -1;
  height: 96px;
  background-image: linear-gradient(90deg, #6e180f, var(--wax-bright) 18%, #b8371f 50%, var(--wax-bright) 82%, #6e180f);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 88%, 0 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.45));
  transform-origin: top;
  animation: ribbon-drop 0.5s var(--ease-out) both;
}

@keyframes ribbon-drop {
  from {
    transform: scaleY(0.2);
  }

  to {
    transform: none;
  }
}

/* Sign in: a riveted brass nameplate at the band's right end. */
.band .signin {
  position: relative;
  margin-left: auto;
  padding: 7px 22px 6px;
  border: 1px solid var(--brass-edge);
  border-radius: 3px;
  background-image: linear-gradient(var(--brass-light), var(--gilt) 35%, var(--brass-low));
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 250, 220, 0.7);
  font-family: "Pagle Display", Georgia, serif;
  font-size: 16.5px;
  color: var(--brass-text);
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 245, 210, 0.5);
  white-space: nowrap;
  transition: filter 0.18s, transform 0.18s var(--ease-out);
}

.band .signin::before,
.band .signin::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background-color: var(--brass-edge);
  box-shadow: 0 1px 0 rgba(255, 240, 200, 0.55);
}

.band .signin::before {
  left: 7px;
}

.band .signin::after {
  right: 7px;
}

.band .signin:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  color: var(--brass-text);
}

.band :focus-visible {
  outline-color: var(--gilt-light);
}

/* The header's second tier, signed in only (WEB-R20): a lighter page tucked under the cover, its lower edge torn
   (a mask) with a pale fibre rim, casting its shadow onto the content it overlaps by 12px. The links sit on the
   left, the current one circled in red pencil; the BattleTag, signed, and Sign out sit at the right end. */
.account-strip {
  position: relative;
  z-index: 4;
  margin-bottom: -12px;
  filter: drop-shadow(0 5px 4px rgba(40, 18, 4, 0.32)) drop-shadow(0 1px 1px rgba(40, 18, 4, 0.25));
}

.account-strip .paper {
  padding-bottom: 14px;
  background-color: #f4e7c9;
  background-image: url("/assets/textures/tear-rim-542820fa0f39915eebe99c96ce16e4a4.svg"), url("/assets/textures/fibres-3cdcac58cc40ad4e2861aa6175521627.svg"),
    linear-gradient(180deg, #e0c99c 0, #f7ecd2 13px, #f4e7c9 55%, #ecdcb6 100%);
  background-position: bottom left, 0 0, 0 0;
  background-size: 900px 16px, auto, auto;
  background-repeat: repeat-x, repeat, no-repeat;
  box-shadow: inset 0 10px 10px -8px rgba(40, 18, 4, 0.6);
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 16px) no-repeat,
    url("/assets/textures/tear-mask-4d9c07cdc5bac25c253254f8c98cf667.svg") bottom left / 900px 16px repeat-x;
  mask: linear-gradient(#000, #000) top / 100% calc(100% - 16px) no-repeat,
    url("/assets/textures/tear-mask-4d9c07cdc5bac25c253254f8c98cf667.svg") bottom left / 900px 16px repeat-x;
}

.account-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 26px;
  max-width: var(--width-home);
  min-height: 46px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.account-strip ul {
  gap: 2px 26px;
}

.account-strip a,
.account-strip button {
  font-family: "IM Fell English", Georgia, serif;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.account-strip a:hover,
.account-strip button:hover {
  color: var(--hand-blue);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.account-strip a[aria-current] {
  position: relative;
  color: var(--ink-title);
}

/* The red pencil loop around the current page: drawn once through a conic mask. --loop starts complete, so
   without the animation (reduced motion) the loop shows whole and still. */
@property --loop {
  syntax: "<angle>";
  inherits: false;
  initial-value: 360deg;
}

.account-strip a[aria-current]::after {
  content: "";
  position: absolute;
  left: -16px;
  right: -17px;
  top: -9px;
  bottom: -8px;
  pointer-events: none;
  transform: rotate(-2.5deg);
  background: url("/assets/textures/pencil-loop-3da218f868687f13e28d89f53abd55e2.svg") center / 100% 100% no-repeat;
  -webkit-mask-image: conic-gradient(from 200deg, #000 var(--loop), transparent 0);
  mask-image: conic-gradient(from 200deg, #000 var(--loop), transparent 0);
  animation: pencil-loop 0.7s cubic-bezier(0.5, 0.1, 0.3, 1) 0.15s both;
}

@keyframes pencil-loop {
  from {
    --loop: 0deg;
  }

  to {
    --loop: 360deg;
  }
}

.account-strip .signature {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-left: auto;
}

.account-strip .battle-tag {
  font-family: "Caveat", cursive;
  font-weight: 500;
  font-size: 25px;
  line-height: 1;
  color: var(--hand-blue);
  white-space: nowrap;
  transform: rotate(-2.5deg);
  transform-origin: right;
}

.account-strip form {
  margin: 0;
}

.account-strip button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-small);
  cursor: pointer;
}

/* The content (WEB-R20): one centred column on the parchment, the flash message first. */
.content {
  flex: 1 0 auto;
  width: 100%;
  margin: 0 auto;
  padding: var(--column-top) var(--gutter) var(--column-bottom);
}

.content:focus {
  outline: none;
}

.col-read {
  max-width: calc(var(--width-reading) + 2 * var(--gutter));
}

.col-wide {
  max-width: calc(var(--width-wide) + 2 * var(--gutter));
}

.col-book {
  max-width: calc(var(--width-book) + 2 * var(--gutter));
}

.col-full {
  padding: 0;
}

/* Blocks on a working page sit 40px apart. */
main > section,
main > .block {
  margin-top: 40px;
}

/* The flash message (WEB-R4): a parchment strip with a green dot, announced as a status message. */
.flash,
.deleted-notice {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 0 0 28px;
  padding: 12px 16px;
  border: 1px solid var(--ink-rule);
  border-radius: 4px;
  background-color: rgba(243, 229, 195, 0.8);
  box-shadow: 0 2px 6px -3px rgba(70, 40, 10, 0.3);
}

.flash::before,
.deleted-notice::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--hand-green);
  transform: translateY(-1px);
}

/* Tables: plain HTML at the column's width, scrolling inside their own box when wider than the screen. */
.table-box {
  max-width: 100%;
  overflow-x: auto;
  margin: 12px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: lining-nums tabular-nums;
  overflow-wrap: normal;
}

th {
  padding: 8px 10px 6px 0;
  border-bottom: 1px solid var(--ink-rule);
  font-weight: 400;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 14.5px;
  color: var(--ink-kicker);
  text-align: left;
  white-space: nowrap;
}

td {
  padding: 7px 10px 7px 0;
  border-bottom: 1px solid rgba(196, 168, 116, 0.55);
  font-size: 17px;
  text-align: left;
  vertical-align: baseline;
}

/* Native form controls (WEB-R22) on field paper, at the page's text size. */
input[type="text"],
input[type="search"],
select,
textarea {
  max-width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--field-stroke);
  border-radius: 3px;
  background-color: var(--field-paper);
  box-shadow: inset 0 1px 2px rgba(70, 40, 10, 0.15);
  color: var(--ink);
  font-family: "IM Fell English", Georgia, serif;
  font-size: 18px;
}

input::placeholder,
textarea::placeholder {
  color: #7a6448;
  font-style: italic;
}

input[type="text"]:focus-visible,
input[type="search"]:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--hand-blue);
  outline-offset: 1px;
}

label[for] {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 15px;
  color: var(--ink-small);
}

/* A form's submit: the ink button. */
main button {
  max-width: 100%;
  min-height: 44px;
  padding: 8px 22px;
  border: 1px solid #1d1008;
  border-radius: 4px;
  background-color: var(--ink-title);
  background-image: linear-gradient(#4e3018, var(--ink-title));
  box-shadow: inset 0 1px 0 rgba(255, 240, 210, 0.15);
  color: var(--parchment-light);
  font-family: "Pagle Display", Georgia, serif;
  font-size: 17px;
  cursor: pointer;
}

main button:hover {
  background-image: linear-gradient(#5e3a1e, #4a2a10);
}

main button:focus-visible {
  outline-color: var(--hand-blue);
}

/* Definition lists (settings, a Catch log, a Companion): small-caps labels over their values. */
main dl {
  margin: 0 0 24px;
}

main dt {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 15px;
  color: var(--ink-small);
}

main dd {
  margin: 0 0 12px;
}

/* A reading page's lede and its one link onward (error pages, the coming-soon page). */
.lede {
  max-width: 60ch;
  font-size: 20px;
  color: var(--ink-small);
}

.go {
  margin-top: 24px;
}

.go a {
  font-family: "Pagle Display", Georgia, serif;
  font-size: 18px;
}

/* The coming-soon page (WEB-R51). */
.soon {
  padding-top: clamp(40px, 10vh, 120px);
}

.soon p {
  font-size: 22px;
  line-height: 1.5;
}

.soon .deleted-notice {
  font-size: 18px;
}

/* A search box in a parchment panel, wrapping on a narrow screen. Character search itself is the Search register. */
.search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 24px;
  padding: 20px 22px;
  border: 1px solid var(--ink-rule);
  border-radius: 4px;
  background-color: rgba(243, 229, 195, 0.55);
}

/*
 * The Angler page's owner bars, above the book (ANG-R1): the owner banner (PUB-R42, WEB-R61), View as visitor's
 * bar (WEB-R62), and ANG-R15's text in place of the book. Here rather than in
 * journal.css, since View as visitor of an Angler with no visible character draws no book.
 */
.owner-banner,
.visitor-bar {
  margin: 0 0 12px;
  padding: 12px 16px;
  border: 1px solid var(--ink-rule);
  border-radius: 4px;
  background-color: rgba(243, 229, 195, 0.8);
}

.owner-banner p {
  margin: 0;
}

.owner-banner .only-you-see {
  font-family: "Pagle Display", Georgia, serif;
  color: var(--hand-blue);
}

.not-visible {
  margin: 24px 0;
  font-family: "IM Fell English", Georgia, serif;
  font-style: italic;
  color: var(--ink-small);
}

/* Owner notices (#168) */
/*
 * ANG-R35: trust.md's Excluded and Flagged blocks (TRU-R51, TRU-R52) keep journal.css's notice panel. Only the owner
 * sees them, so their heading takes the owner banner's hand, and their lines stack as sentences, unbulleted. The
 * extra class outranks journal.css, which loads after this file.
 */
.owner-notices .notice.notice-trust .notice-heading {
  font-family: "Pagle Display", Georgia, serif;
  font-weight: normal;
  color: var(--hand-blue);
}

.owner-notices .notice.notice-trust .notice-lines {
  padding-left: 0;
  list-style: none;
}

.owner-notices .notice.notice-trust .notice-lines li + li {
  margin-top: 4px;
}

/* Owner's row (#201) */
/*
 * ANG-R48: under the name line (above the closed cover before the first fold), outside the book: Angler settings and
 * View as visitor in gilt print, then, while the Angler is publicly visible, Share your Angler page with the page's
 * absolute URL as a URL chip that selects whole on one click, no script. An ink rule closes the row.
 */
.owner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  margin: 10px 0 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink-rule);
}

.owner-row > a {
  font-family: "Pagle Display", Georgia, serif;
  font-size: 17px;
  text-underline-offset: 0.3em;
}

.owner-row .share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 0 auto;
  min-width: 0;
}

.owner-row .share-label {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 15px;
  color: var(--ink-kicker);
}

.owner-row .share-url {
  min-width: 0;
  padding: 3px 8px;
  border-radius: 3px;
  background-color: rgba(196, 168, 116, 0.28);
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--ink-title);
  overflow-wrap: anywhere;
  cursor: text;
  -webkit-user-select: all;
  user-select: all;
}

@media (max-width: 719.98px) {
  .owner-row .share {
    margin-left: 0;
  }
}
/* End of the owner's row (#201) */

/* The Following page (SOC-R40): the Feed as lines between ink rules, then the followed Anglers' table, each
   Unfollow form inside its row; names set like the search results'. */
.feed {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink-rule);
}

.feed li {
  padding: 8px 0;
  border-bottom: 1px solid var(--ink-rule);
}

.feed .angler-name,
.following .angler-name {
  font-family: "Pagle Display", Georgia, serif;
  color: var(--ink-title);
}

.feed .angler-name:hover,
.following .angler-name:hover {
  color: var(--hand-blue);
}

.following .hardcore {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 15px;
  color: var(--hand-red);
}

.feed-empty,
.following-empty {
  font-style: italic;
  color: var(--ink-small);
}

.following form {
  margin: 0;
}

.following td:last-child {
  text-align: right;
}

.not-live {
  margin-top: 24px;
}

/* First-run pages (#200) ======================================================================================
 * The sign-in notice, the Companion link pages (code entry, approval, receiving) and the Keep-private screen, each
 * a <main class="first-run"> (DESIGN.md: Journey Route, Code Field, Device Plate, Margin Note, Receiving Water,
 * Closed Journal Cover, Decision Pair). The buttons are scoped to these pages, which also lifts them over the ink
 * button's `main button` rules. The code face ends in monospace, the generic family WEB-R5 allows it.
 */

/* Shared with the owner's working pages (#203), which use the same wax and quiet buttons: the wax button, the page's
 * one primary action, and the brass button, a secondary one (DESIGN.md, Buttons). The State Line is the global
 * .state-line (Leaderboards, #172), which first-run and working pages use too. */
.first-run .btn-wax,
.working .btn-wax,
.first-run .btn-brass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  font-family: "Pagle Display", Georgia, serif;
  font-size: 17.5px;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), filter 0.18s;
}

.first-run .btn-wax,
.working .btn-wax {
  border: 0;
  border-radius: 7px;
  background-color: var(--wax-mid);
  background-image: radial-gradient(ellipse at 35% 25%, var(--wax-bright), var(--wax-mid) 55%, var(--wax-dark));
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 220, 180, 0.25), 0 2px 4px rgba(40, 10, 0, 0.35);
  color: var(--wax-text);
}

.first-run .btn-wax:hover,
.working .btn-wax:hover {
  background-image: radial-gradient(ellipse at 35% 25%, var(--wax-bright), var(--wax-mid) 55%, var(--wax-dark));
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 220, 180, 0.25), 0 5px 10px -2px rgba(40, 10, 0, 0.4);
  color: #fff4dc;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.first-run .btn-wax:active,
.working .btn-wax:active {
  filter: brightness(0.92);
  transform: translateY(1px);
}

.first-run .btn-wax:focus-visible,
.working .btn-wax:focus-visible {
  outline-color: var(--ink-title);
}

.first-run .btn-brass {
  border: 1px solid var(--brass-edge);
  border-radius: 4px;
  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);
}

.first-run .btn-brass:hover {
  background-image: linear-gradient(var(--brass-light), var(--gilt) 35%, var(--brass-low));
  filter: brightness(1.07);
  transform: translateY(-1px);
}

/* The quiet button: the refusing side of a decision beside a wax action, such as Cancel; Unpublish and Sign out
   on the working pages. */
.first-run .btn-quiet,
.working .btn-quiet {
  min-height: 0;
  padding: 6px 2px;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--ink-small);
  font-family: "IM Fell English", Georgia, serif;
  font-size: 17.5px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.first-run .btn-quiet:hover,
.working .btn-quiet:hover {
  background: none;
  color: var(--hand-red);
}

/* The journey route: four medallions on a band of water under a dashed ink line. */
.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 6px 0 34px;
  padding: 0;
  list-style: none;
}

.journey::before {
  content: "";
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 21px;
  height: 14px;
  border-radius: 7px;
  background-color: rgb(var(--water) / 0.28);
  transform: translateY(-50%);
}

.journey::after {
  content: "";
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 21px;
  border-top: 1.5px dashed var(--ink-kicker);
}

.journey li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.journey-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1.5px dashed var(--ink-kicker);
  border-radius: 50%;
  background-color: var(--parchment-field);
  color: var(--ink-small);
  font-family: "Pagle Display", Georgia, serif;
  font-size: 19px;
  line-height: 1;
}

.journey-label {
  font-size: 15.5px;
  line-height: 1.25;
  color: var(--ink-small);
}

.journey .done .journey-mark {
  border: 3px double var(--parchment-light);
  background-color: var(--ink-title);
  box-shadow: 0 0 0 1.5px var(--ink-title);
  color: var(--parchment-light);
}

.journey .done .journey-label {
  color: var(--ink);
}

.journey .here .journey-mark {
  border: 3px double var(--brass-dark);
  background-color: var(--parchment-light);
  background-image: url("/assets/textures/fibres-3cdcac58cc40ad4e2861aa6175521627.svg"), radial-gradient(circle at 40% 35%, var(--parchment-light), #e9d6aa);
  box-shadow: 0 0 0 3px rgba(232, 201, 106, 0.45);
  color: var(--ink-title);
}

.journey .here .journey-label {
  color: var(--ink-title);
}

/* The code face (DESIGN.md, the Command Voice Rule): values to compare exactly with another screen. */
.code-face {
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
}

/* Code entry: the Companion code field, the publish notice between ink rules, then the button and its note. */
.code-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 0;
}

.code-field input {
  width: min(16rem, 100%);
  padding: 10px 14px;
  color: var(--ink-title);
  font: 600 28px/1.2 Consolas, "Cascadia Mono", ui-monospace, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.first-run .publish-notice {
  margin-top: 22px;
  padding: 16px 0;
  border-top: 1px solid var(--ink-rule);
  border-bottom: 1px solid var(--ink-rule);
}

.first-run .publish-notice p {
  margin: 0;
  font-size: 18.5px;
}

.first-run .publish-notice p + p {
  margin-top: 6px;
  font-size: 16.5px;
  color: var(--ink-small);
}

.first-run .form-error {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 20px 0 0;
  color: var(--hand-red);
  font-size: 18px;
}

.first-run .form-error::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: currentColor;
  transform: translateY(-1px);
}

.signin-go {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 22px;
}

.signin-go .btn-wax {
  flex: none;
  padding: 12px 26px;
  font-size: 19px;
}

.first-run .margin-note {
  max-width: 22ch;
  margin: 0;
  color: var(--hand-blue);
  font: 500 21px/1.15 "Caveat", cursive;
  transform: rotate(-1.5deg);
}

/* Approval: the device plate frames the values to verify, never a control; the warning sits above the buttons. */
.device-plate {
  margin-top: 10px;
  padding: 20px clamp(18px, 3vw, 28px) 22px;
  border: 3px double var(--leather-trim);
  border-radius: 3px;
  background-color: var(--parchment-light);
  background-image: url("/assets/textures/fibres-3cdcac58cc40ad4e2861aa6175521627.svg");
  box-shadow: 0 10px 24px -14px rgba(60, 30, 8, 0.55);
}

.device-plate .device-name {
  margin: 0;
  color: var(--ink-title);
  font-family: "Pagle Display", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  line-height: 1.15;
}

.device-plate dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 18px;
  align-items: baseline;
  margin: 14px 0 0;
}

.device-plate dd {
  margin: 0;
  color: var(--ink-title);
  font-size: 16.5px;
  line-height: 1.5;
}

.device-plate .user-code {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.12em;
}

.link-warning {
  margin: 22px 0 0;
  font-size: 17.5px;
}

/* Receiving: a bobber on a band of water, bobbing while the page waits; still once it has timed out. */
.receiving-water {
  position: relative;
  height: 150px;
  margin: 10px 0 18px;
  overflow: hidden;
}

.receiving-water .sea {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.receiving-water .wave {
  fill: rgb(var(--water) / 0.32);
}

.receiving-water .crest {
  fill: none;
  stroke: var(--ink-kicker);
  stroke-width: 1;
  stroke-dasharray: 5 5;
}

.bobber {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 40px;
  height: auto;
  margin-left: -20px;
  transform-origin: 50% 80%;
  animation: bob 2.6s ease-in-out infinite;
}

.receiving-water.still .bobber {
  animation: none;
}

.bobber path {
  fill: none;
  stroke: var(--ink);
}

.bobber .line {
  stroke: rgba(58, 38, 20, 0.6);
  stroke-width: 1;
}

.bobber .stem {
  stroke-width: 1.6;
}

.bobber .cap {
  fill: var(--wax-bright);
  stroke: none;
}

.bobber .belly {
  fill: var(--parchment-light);
  stroke-width: 1;
}

.bobber .band,
.bobber .keel {
  stroke-width: 1.2;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }

  50% {
    transform: translateY(6px) rotate(3deg);
  }
}

/* Keep private: the URL chip, the closed Journal cover beside the characters, then the decision pair. */
.url-chip {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 3px;
  border-radius: 3px;
  background-color: rgba(196, 168, 116, 0.28);
  color: var(--ink-title);
  font: 15.5px/1.4 Consolas, "Cascadia Mono", ui-monospace, monospace;
  overflow-wrap: anywhere;
}

.keep-review {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: start;
  margin-top: 26px;
}

.journal-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  padding: 26px 16px 18px;
  border-radius: 6px 10px 10px 6px;
  background-color: var(--leather-light);
  background-image: url("/assets/textures/grain-51b1f3c4f49881583d7ef3d4a4e9e25d.svg"), radial-gradient(ellipse at 30% 20%, #74462a, var(--leather-light) 35%, var(--leather-dark) 85%);
  box-shadow: 0 0 0 2px var(--leather-edge), inset 0 0 0 6px var(--leather-dark), inset 0 0 0 7px var(--gilt-fleuron), inset 10px 0 12px -6px rgba(0, 0, 0, 0.55), 0 18px 30px -16px rgba(40, 18, 4, 0.7);
  text-align: center;
}

.journal-cover p {
  margin: 0;
}

.journal-cover .page-name {
  color: var(--gilt);
  font-family: "Pagle Display", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.1;
  text-shadow: 0 1px 1px #000;
}

.journal-cover .more {
  margin-top: 6px;
  color: var(--wax-text);
  font-size: 14.5px;
  font-style: italic;
}

.journal-cover .fleuron {
  margin-top: 10px;
  color: var(--gilt-fleuron);
  font-size: 18px;
  line-height: 1;
}

.journal-cover .brass-plate {
  max-width: 100%;
  margin-top: 22px;
  padding: 5px 10px;
  overflow: hidden;
  border: 1px solid var(--brass-edge);
  border-radius: 3px;
  background-color: var(--gilt);
  background-image: linear-gradient(var(--brass-light), var(--gilt) 30%, var(--brass-low));
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 250, 220, 0.6);
  color: var(--brass-text);
  font-family: "Pagle Display", Georgia, serif;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journal-cover .preview-line {
  max-width: 12rem;
  color: var(--wax-text);
  font-size: 16px;
  font-style: italic;
  line-height: 1.35;
}

.journal-cover .missing {
  max-width: 12rem;
  margin-top: 10px;
  color: var(--wax-text);
  font-size: 14px;
  font-style: italic;
  line-height: 1.35;
}

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

.view-as-visitor {
  margin: 12px 0 0;
}

.view-as-visitor a {
  font-family: "Pagle Display", Georgia, serif;
  font-size: 17px;
  text-underline-offset: 0.3em;
}

.characters-label {
  margin: 4px 0 0;
  color: var(--ink-kicker);
  font-size: 15px;
  font-variant: small-caps;
  letter-spacing: 0.06em;
}

.characters {
  margin: 8px 0 0;
  padding: 0;
  border-top: 1px solid var(--ink-rule);
  list-style: none;
}

.characters li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ink-rule);
}

.characters .name {
  color: var(--ink-title);
  font-size: 19px;
}

.characters .realm {
  color: var(--ink-small);
  font-size: 15.5px;
}

.characters label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 16.5px;
  cursor: pointer;
}

.characters input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--leather-trim);
}

.characters .left {
  margin-left: auto;
  color: var(--ink-small);
  font-size: 15.5px;
  font-style: italic;
}

.decision-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.decision-pair .btn-wax,
.decision-pair .btn-brass {
  min-height: 52px;
  padding: 10px 16px;
  font-size: 18.5px;
}

@media (max-width: 719.98px) {
  .journey-label {
    font-size: 13.5px;
  }

  .keep-review,
  .decision-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .journal-cover {
    width: 100%;
    max-width: 15rem;
    margin: 0 auto;
  }
}

/* End of the first-run pages (#200) ========================================================================= */

/* Search register (#205) =====================================================================================
   Character search (WEB-R70 to WEB-R73), the Anglers' register, built to prototypes/site-shell/ (?page=search) and
   DESIGN.md's Character Search: the form as one sentence ending in a wax seal, Home's river once a name is given,
   then a shelf of small closed Journal covers (#200's .journal-cover, smaller) or the empty book and the line.
   Scoped to main.search-register. */
.search-register .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.search-register .lookup {
  padding-top: clamp(18px, 4vw, 48px);
}

.search-register .sentence {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin: 0;
  color: var(--ink-title);
  font-family: "Pagle Display", Georgia, serif;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.15;
}

.search-register .sentence input,
.search-register .sentence select {
  min-width: 0;
  min-height: 0;
  padding: 0 4px 4px;
  border: 0;
  border-bottom: 2px solid var(--ink-title);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--hand-blue);
  font-family: "Pagle Display", Georgia, serif;
  font-size: inherit;
  line-height: inherit;
}

.search-register .sentence input {
  flex: 1 1 9ch;
  width: auto;
  max-width: 14ch;
}

.search-register .sentence input::placeholder {
  color: rgb(35 64 122 / 0.65);
  font-style: normal;
}

.search-register .sentence input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-register .sentence select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 1.2em;
  cursor: pointer;
}

/* The select's caret, drawn on its wrapper. */
.search-register .select {
  position: relative;
  display: inline-flex;
}

.search-register .select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.2em;
  border-top: 0.26em solid var(--ink-title);
  border-right: 0.22em solid transparent;
  border-left: 0.22em solid transparent;
  pointer-events: none;
}

.search-register .sentence input:focus-visible,
.search-register .sentence select:focus-visible {
  outline: none;
  border-bottom-color: var(--hand-blue);
  box-shadow: 0 2px 0 var(--hand-blue);
}

/* Find: a red wax seal, set at -8° and straightening under the pointer. */
.search-register .seal {
  flex: none;
  align-self: center;
  width: clamp(64px, 7vw, 84px);
  height: clamp(64px, 7vw, 84px);
  margin-left: 6px;
  padding: 0;
  border: 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 3px 6px rgb(40 10 0 / 0.4), inset 0 0 0 4px rgb(0 0 0 / 0.15), inset 0 0 0 7px rgb(255 200 170 / 0.14);
  color: var(--wax-text);
  font-family: "Pagle Display", Georgia, serif;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1;
  letter-spacing: 0.04em;
  cursor: pointer;
  transform: rotate(-8deg);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.search-register .seal:hover {
  background-image: radial-gradient(circle at 40% 35%, var(--wax-bright), var(--wax-dark) 72%);
  box-shadow: 0 6px 12px rgb(40 10 0 / 0.45), inset 0 0 0 4px rgb(0 0 0 / 0.15), inset 0 0 0 7px rgb(255 200 170 / 0.14);
  transform: rotate(-2deg) scale(1.05);
}

.search-register .seal:active {
  transform: rotate(-8deg) scale(0.96);
}

.search-register .seal:focus-visible {
  outline: 2px solid var(--ink-title);
  outline-offset: 4px;
}

.search-register .hint {
  margin: 14px 0 0;
  color: var(--hand-blue);
  font-family: "Caveat", cursive;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
  transform: rotate(-1deg);
  transform-origin: left;
}

/* Home's river between looking and finding: water under a dashed ink line, faded at both ends. */
.search-register .river {
  display: block;
  width: 100%;
  height: 46px;
  margin: clamp(22px, 3vw, 34px) 0 clamp(20px, 3vw, 30px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.search-register .river path {
  fill: none;
  stroke-linecap: round;
}

.search-register .river .water {
  stroke: rgb(var(--water) / 0.32);
  stroke-width: 26;
}

.search-register .river .line {
  stroke: var(--ink-kicker);
  stroke-width: 1.5;
  stroke-dasharray: 7 7;
}

.search-register .found {
  margin: 0;
  color: var(--ink-title);
  font-family: "Pagle Display", Georgia, serif;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.search-register .found em {
  color: var(--hand-blue);
  font-style: normal;
}

/* The shelf: small closed Journals, each on its own leather ledge. */
.search-register .shelf {
  --book-h: 236px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 34px 30px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.search-register .shelf li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.search-register .shelf li::after {
  content: "";
  position: absolute;
  top: var(--book-h);
  right: -15px;
  left: -15px;
  height: 10px;
  border-radius: 2px;
  background-image: linear-gradient(var(--leather-light), var(--leather-dark));
  box-shadow: 0 4px 8px -3px rgb(40 18 4 / 0.6);
}

.search-register .shelf .journal-cover {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 190px;
  height: var(--book-h);
  margin: 0;
  padding: 22px 14px 16px;
  aspect-ratio: auto;
  border-radius: 4px 9px 9px 4px;
  box-shadow: 0 0 0 2px var(--leather-edge), inset 0 0 0 5px var(--leather-dark), inset 0 0 0 6px var(--gilt-fleuron), inset 9px 0 10px -6px rgb(0 0 0 / 0.6), 0 10px 16px -10px rgb(40 18 4 / 0.7);
  text-decoration: none;
  transform: translateY(0) rotate(0deg);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.search-register .shelf a.journal-cover:hover,
.search-register .shelf a.journal-cover:focus-visible {
  box-shadow: 0 0 0 2px var(--leather-edge), inset 0 0 0 5px var(--leather-dark), inset 0 0 0 6px var(--gilt), inset 9px 0 10px -6px rgb(0 0 0 / 0.6), 0 22px 26px -14px rgb(40 18 4 / 0.75);
  transform: translateY(-12px) rotate(-1.5deg);
}

.search-register .shelf a.journal-cover:focus-visible {
  outline: 2px solid var(--hand-blue);
  outline-offset: 3px;
}

.search-register .shelf .journal-cover > span {
  display: block;
}

.search-register .shelf .page-name {
  font-size: 22px;
  overflow-wrap: anywhere;
}

.search-register .shelf .more {
  margin-top: 5px;
  font-size: 13.5px;
}

.search-register .shelf .fleuron {
  margin-top: 8px;
  font-size: 15px;
}

/* The brass plate in two lines, "Lv · title" over "Ledger %", at the cover's foot. */
.search-register .shelf .brass-plate {
  margin-top: auto;
  padding: 4px 8px;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.45), inset 0 1px 0 rgb(255 250 220 / 0.6);
  font-size: 13px;
  line-height: 1.25;
  white-space: normal;
}

.search-register .shelf .brass-plate > span:not(.sr-only) {
  display: block;
}

/* With a Prestige, its 22px emblem is pinned over the plate's left end, half off it, so the plate's two lines keep
   their width (WEB-R73). */
.search-register .shelf .brass-plate:has(> .emblem) {
  position: relative;
  overflow: visible;
  padding-left: 13px;
}

.search-register .shelf .brass-plate > .emblem {
  position: absolute;
  top: 50%;
  left: -12px;
  transform: translateY(-50%);
  filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / 0.5));
}

.search-register .as {
  margin: 22px 0 0;
  color: var(--ink-small);
  font-size: 17px;
}

.search-register .as .character-name {
  color: var(--ink-title);
  font-family: "Pagle Display", Georgia, serif;
  font-size: 19px;
}

.search-register .as .hardcore {
  display: block;
  margin-top: 2px;
}

/* No result: an empty book, dashed, then the line with the region code upright. */
.search-register .ghost .journal-cover {
  border: 2px dashed var(--ink-kicker);
  background: none;
  box-shadow: none;
  opacity: 0.8;
}

.search-register .state-line {
  margin: 28px 0 0;
  padding: 4px 0 26px;
  border-bottom: 1px solid var(--ink-rule);
  color: var(--ink-small);
  font-size: 19px;
  font-style: italic;
}

.search-register .state-line .region {
  font-style: normal;
}

/* Narrow screens: the name takes its own line, then "in", the select and the seal at the right; two books a row. */
@media (max-width: 719.98px) {
  .search-register .sentence input {
    flex: 1 1 100%;
    order: 1;
    max-width: none;
  }

  .search-register .sentence .in {
    order: 2;
  }

  .search-register .sentence .select {
    order: 3;
  }

  .search-register .sentence .seal {
    order: 4;
    margin-left: auto;
  }

  .search-register .shelf {
    --book-h: 200px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 22px;
  }

  .search-register .shelf li::after {
    right: -11px;
    left: -11px;
  }

  .search-register .shelf .page-name {
    font-size: 19px;
  }
}

/* End of the Search register (#205) ========================================================================== */

/* Owner's working pages (#203) ================================================================================
 * My Anglers, Angler settings, Paste upload, Player settings and the three delete confirmations, each a
 * <main class="working"> (DESIGN.md: Working table, Published Panel, Status Line, Reply Panel, Danger Section,
 * Confirmation Page, the Danger Apart Rule). The wax and quiet buttons are the first-run pages' (#200), scoped to both, which
 * also lifts them over the ink button's `main button` rules; they share #200's tokens and measures.
 */

/* Hide / Show, Revoke and Allow again as small row actions; the full-size quiet button is the shared one. */
.working .btn-quiet.small {
  padding: 2px 0;
  font-size: 16px;
}

/*
 * Danger (the Danger Apart Rule): hand red and never a shadow. The outlined button lives only in the danger section
 * and opens a confirmation page; the solid one is that page's one irreversible button; a row's Delete is a red link.
 */
.working .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  border: 1.5px solid var(--hand-red);
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  color: var(--hand-red);
  font-family: "Pagle Display", Georgia, serif;
  font-size: 17.5px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-out);
}

.working .btn-danger:hover {
  background: rgba(154, 42, 26, 0.07);
  color: var(--wax-dark);
}

.working .btn-danger.solid {
  background: var(--hand-red);
  color: var(--parchment-light);
}

.working .btn-danger.solid:hover {
  border-color: var(--wax-dark);
  background: var(--wax-dark);
  color: var(--parchment-light);
}

.working .link-danger {
  color: var(--hand-red);
  text-decoration-color: rgba(154, 42, 26, 0.5);
}

.working .link-danger:hover {
  color: var(--wax-dark);
}

/* The danger section: the page's last, clamp(56px, 6vw, 80px) below the rest, under a 2px hand-red rule. */
.working .danger {
  margin-top: clamp(56px, 6vw, 80px);
  padding-top: 20px;
  border-top: 2px solid var(--hand-red);
}

.working .danger h2 {
  margin-bottom: 8px;
  font-size: 1.5rem;
  color: var(--hand-red);
}

/* State stamps (DESIGN.md, Support Stamp): an Angler's page state, Published in hand green, Not published in ink. */
.working .state-stamp {
  display: inline-block;
  padding: 4px 7px 3px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  font-family: "Pagle Display", Georgia, serif;
  font-size: 13.5px;
  line-height: 1;
  letter-spacing: 0.08em;
  font-variant: small-caps;
  transform: rotate(-4deg);
}

.working .state-stamp.on {
  color: var(--hand-green);
}

.working .state-stamp.off {
  color: var(--ink-small);
}

/* The code face (DESIGN.md, Code): a working table's dates, versions and counts, and Catch log IDs, in title ink. */
.working .figure,
.working .log-id {
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace, serif;
  color: var(--ink-title);
}

.working .figure {
  font-size: 14.5px;
}

.working .log-id {
  font-size: 15px;
}

/* The working table: the boards' plain table, its notes under a row's name and its actions at the row's end. */
.working-table td.figure {
  white-space: nowrap;
}

.working-table .count {
  text-align: right;
  padding-right: 22px;
}

.working-table .name {
  font-family: "Pagle Display", Georgia, serif;
  font-size: 19px;
  color: var(--ink-title);
}

.working-table .name.preparing {
  font-family: "IM Fell English", Georgia, serif;
  font-style: italic;
  color: var(--ink-small);
}

.working-table .more {
  font-size: 15.5px;
  color: var(--ink-small);
}

.working-table .hardcore {
  margin-left: 6px;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 14px;
  color: var(--hand-red);
}

.working .row-note {
  display: block;
  max-width: 60ch;
  margin-top: 3px;
  font-size: 15px;
  font-style: italic;
  color: var(--ink-small);
}

.working-table .row-actions {
  text-align: right;
  white-space: nowrap;
}

.working-table .row-actions > * + * {
  margin-left: 18px;
}

.working-table .row-actions a {
  font-size: 16.5px;
}

.working-table .row-actions form {
  display: inline;
  margin: 0;
}

/* An empty page's State Line (DESIGN.md) is the shared .state-line; its links follow. */
.working .link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 14px;
  font-size: 17px;
}

/* Angler settings: the name with its Angler page link, the Published panel and its status lines, the characters. */
.working-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin-bottom: 6px;
}

.working-head h1 {
  margin: 0;
}

.working-head a {
  font-family: "Pagle Display", Georgia, serif;
  font-size: 17px;
  text-underline-offset: 0.3em;
}

.published-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 18px;
  padding: 18px clamp(18px, 3vw, 26px);
  border: 3px double var(--leather-trim);
  border-radius: 3px;
  background-color: var(--parchment-light);
  background-image: url("/assets/textures/fibres-3cdcac58cc40ad4e2861aa6175521627.svg");
  box-shadow: 0 10px 24px -14px rgba(60, 30, 8, 0.55);
}

.published-panel .state-stamp {
  font-size: 16px;
}

.published-panel .what {
  flex: 1 1 18rem;
  margin: 0;
  font-size: 17px;
  color: var(--ink-small);
}

.published-panel form {
  margin: 0;
}

.published-panel .btn-wax {
  padding: 10px 22px;
  font-size: 18px;
}

.working .status-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 14px 0 0;
  font-size: 17px;
}

.working .status-line::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--hand-green);
  transform: translateY(-1px);
}

.working .status-line.warn {
  color: var(--hand-red);
}

.working .status-line.warn::before {
  background-color: var(--hand-red);
}

.working .character-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink-rule);
}

.working .character-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ink-rule);
}

.working .character-list .name {
  font-size: 19px;
  color: var(--ink-title);
}

.working .character-list .realm {
  font-size: 15.5px;
  color: var(--ink-small);
}

.working .character-list .hidden-mark {
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  font-size: 14px;
  color: var(--ink-small);
}

.working .character-list .left {
  font-size: 15px;
  font-style: italic;
  color: var(--ink-small);
}

.working .character-list form {
  margin: 0;
}

.working .row-end {
  margin-left: auto;
}

/* Paste upload: the hint, the reply panel above the box, the box in the code face, then Upload. */
.working .paste-help {
  max-width: 62ch;
  margin: 0;
  color: var(--ink-small);
}

.working .paste-reply {
  margin: 18px 0 4px;
  padding: 14px 18px;
  border: 1px solid var(--ink-rule);
  border-radius: 3px;
  background-color: rgba(243, 229, 195, 0.75);
}

.working .paste-reply p {
  margin: 0;
}

.working .paste-reply p + p {
  margin-top: 6px;
}

.working .paste-reply.bad {
  border-color: rgba(154, 42, 26, 0.5);
}

.working .paste-reply.bad p:first-child {
  color: var(--hand-red);
}

.working .paste-reply .figure {
  font-size: 15px;
}

.working .paste-form {
  margin-top: 18px;
}

.working .paste-form label {
  display: block;
  margin-bottom: 4px;
}

.working .paste-form textarea {
  display: block;
  width: 100%;
  min-height: 15rem;
  padding: 12px 14px;
  color: var(--ink-title);
  font: 13.5px/1.5 Consolas, "Cascadia Mono", ui-monospace, monospace, serif;
  resize: vertical;
  word-break: break-all;
}

.working .form-go {
  margin-top: 22px;
}

.working .form-go .btn-wax {
  padding: 12px 26px;
  font-size: 19px;
}

/* Player settings: the BattleTag and the Support code beside their labels, then Sign out. */
.working .settings {
  display: grid;
  grid-template-columns: minmax(8rem, auto) 1fr;
  gap: 8px 22px;
  align-items: baseline;
}

.working .settings dd {
  margin: 0;
  font-size: 18px;
}

.working .support-code {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  background-color: rgba(196, 168, 116, 0.28);
  color: var(--ink-title);
  font: 600 20px/1.2 Consolas, "Cascadia Mono", ui-monospace, monospace, serif;
  letter-spacing: 0.1em;
  -webkit-user-select: all;
  user-select: all;
}

.working .signout {
  margin-top: 40px;
}

/* A confirmation page: the warning and its facts in the confirm panel, then the solid danger button and Cancel. */
.working .confirm-panel {
  margin-top: 6px;
  padding: 18px 22px;
  border: 1px solid var(--ink-rule);
  border-radius: 3px;
  background-color: rgba(243, 229, 195, 0.75);
  font-size: 18px;
}

.working .confirm-panel p {
  margin: 0;
}

.working .confirm-panel dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 14px 0 0;
  font-size: 16.5px;
}

.working .confirm-panel dd {
  margin: 0;
}

.working .confirm-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 22px;
}

.working .confirm-acts a {
  font-size: 17.5px;
}

/*
 * Below 720 px (DESIGN.md, Layout) a working table drops its header row and restacks each row into a ruled block:
 * each secondary cell leads with its header as a small-caps label, counts align left, the actions take their own line.
 */
@media (max-width: 719.98px) {
  .working-table thead {
    position: absolute;
    left: -9999px;
  }

  .working-table,
  .working-table tbody,
  .working-table tr,
  .working-table td {
    display: block;
    width: auto;
  }

  .working-table tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--ink-rule);
  }

  .working-table td {
    padding: 2px 0;
    border: 0;
  }

  .working-table .count {
    text-align: left;
    padding-right: 0;
  }

  .working-table td[data-label]::before {
    content: attr(data-label) " ";
    margin-right: 6px;
    color: var(--ink-small);
    font-family: "IM Fell English", Georgia, serif;
    font-size: 14px;
    font-variant: small-caps;
    letter-spacing: 0.06em;
  }

  .working-table .row-actions {
    margin-top: 6px;
    text-align: left;
    white-space: normal;
  }

  .working .settings {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .working .settings dd {
    margin-bottom: 10px;
  }
}

/* End of the owner's working pages (#203) ================================================================== */

/* Footer (WEB-R20): an ink rule over a faint parchment-edge fade; Imprint, Privacy and the hobby line. */
.site-footer {
  border-top: 1px solid var(--ink-rule);
  background-image: linear-gradient(rgba(201, 171, 118, 0), rgba(201, 171, 118, 0.25));
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 28px;
  max-width: var(--width-home);
  margin: 0 auto;
  padding: 22px var(--gutter) 30px;
  font-size: 15.5px;
  color: var(--ink-small);
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer nav a {
  color: var(--ink);
  font-family: "Pagle Display", Georgia, serif;
  font-size: 15px;
}

.site-footer p {
  flex: 1;
  min-width: 16rem;
  max-width: 62ch;
  margin: 0;
}

/*
 * Back to top (WEB-R20): the reel. A bobber floats on a small pool at the window's bottom right. Scroll-driven CSS on
 * the root scroller, with no script (WEB-R2): once the page is past the reel point, the bobber is lowered in on its
 * line from above the window and lands with a splash; on the way back up the same scroll reels it out of the water and
 * off the top. Hover nibbles, a press is the bite that pulls it under, and letting go strikes: the line jerks taut and
 * pulls the bobber out of the water and up off the window while the page sails to #top. The strike keys off the focus
 * a pointer press gives the link, restarted by every press; where a press gives no focus (Safari), and from the
 * keyboard, the scroll alone reels it out. The box is 64 × 88 with the waterline at 66; .reel-cut clips everything below it, so the bobber sits
 * in the water. Without scroll-driven animations it isn't shown (Home and End still work); under reduced motion it
 * simply shows past the reel point, still on its pool, and the jump is instant.
 */
.reel {
  --reel-from: 60vh;
  --reel-to: calc(60vh + 200px);
  position: fixed;
  right: clamp(6px, 2.4vw, 32px);
  bottom: calc(clamp(4px, 1.6vw, 20px) + env(safe-area-inset-bottom, 0px));
  z-index: 15;
  display: none;
  width: 64px;
  height: 88px;
  border-radius: 32px;
  color: var(--ink-title);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.reel:focus-visible {
  outline-offset: 2px;
  border-radius: 32px;
}

.reel > svg,
.reel-cut {
  position: absolute;
  pointer-events: none;
}

.reel-pool,
.reel-lip {
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: 50% 75%;
}

.reel-pool stop {
  stop-color: rgb(var(--water) / 0.44);
}

.reel-pool stop:nth-child(2) {
  stop-color: rgb(var(--water) / 0.3);
}

.reel-pool stop:last-child {
  stop-color: rgb(var(--water) / 0.06);
}

.reel-pool .crest,
.reel-pool .ring,
.reel-pool .splash,
.reel-pool .bite {
  fill: none;
  stroke: var(--ink-kicker);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.reel-pool .crest {
  stroke-dasharray: 4 4;
  opacity: 0.6;
}

.reel-pool .ring,
.reel-pool .splash,
.reel-pool .bite {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.reel-pool .bite {
  scale: 0.5;
  transition: opacity 0.5s var(--ease-out), scale 0.5s var(--ease-out);
}

/* Everything above the waterline: tall, so the line and a bobber in flight are never cut, but hit-free. */
.reel-cut {
  top: -200vh;
  bottom: 22px;
  left: -40px;
  right: -40px;
  overflow: hidden;
}

.reel-cast,
.reel-hook {
  position: absolute;
  left: 40px;
  bottom: -22px;
  width: 64px;
  height: 88px;
}

.reel-hook {
  left: 0;
  bottom: 0;
}

/* The line, from the bobber's stem up towards a rod above the window, fading out as it climbs. */
.reel-hook::before {
  content: "";
  position: absolute;
  left: 31.5px;
  bottom: 55px;
  width: 1px;
  height: 46vh;
  background-image: linear-gradient(to top, rgba(58, 38, 20, 0.62), rgba(58, 38, 20, 0.28) 45%, rgba(58, 38, 20, 0));
}

/* The bobber is the receiving bobber at 40px wide, its waterline (y 29 of 44, under the cream belly's widest) on the
   pool's. */
.reel-float {
  position: absolute;
  left: 12px;
  top: 27.3px;
  width: 40px;
  transform-origin: 50% 66%;
}

.reel-bobber {
  display: block;
  width: 40px;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 2px 2px rgba(60, 30, 8, 0.32));
  transition: translate 0.55s var(--ease-out);
}

.reel-bobber path {
  fill: none;
  stroke: var(--ink);
}

.reel-bobber .stem {
  stroke-width: 1.6;
}

.reel-bobber .cap {
  fill: var(--wax-bright);
  stroke: var(--wax-dark);
  stroke-width: 0.8;
}

.reel-bobber .shine {
  stroke: var(--parchment-light);
  stroke-width: 1.3;
  stroke-linecap: round;
  opacity: 0.6;
}

.reel-bobber .belly {
  fill: var(--parchment-light);
  stroke-width: 1;
}

.reel-bobber .band,
.reel-bobber .keel {
  stroke-width: 1.2;
}

/* A glint where the water meets the bobber, in front of it. */
.reel-lip path {
  fill: none;
  stroke: #fffaf0;
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.8;
  vector-effect: non-scaling-stroke;
}

/* The label, shown on hover and keyboard focus: a parchment tab like the skip link's, its counterpart at the top. */
.reel-label {
  position: absolute;
  right: calc(100% - 6px);
  bottom: 52px;
  padding: 6px 12px 5px;
  border: 1px solid var(--leather-trim);
  border-radius: 4px;
  background-color: var(--parchment-light);
  box-shadow: 0 2px 6px -3px rgba(70, 40, 10, 0.3);
  font-family: "Pagle Display", Georgia, serif;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  translate: 8px 0;
  transition: opacity 0.2s var(--ease-out), translate 0.35s var(--ease-out);
}

.reel:hover .reel-label,
.reel:focus-visible .reel-label {
  opacity: 1;
  translate: 0 0;
}

/* The bite: a press pulls the bobber under and rings the water. */
.reel:active .reel-bobber {
  translate: 0 15px;
  transition-duration: 0.09s;
  transition-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
}

.reel:active .reel-pool .bite {
  opacity: 0.9;
  scale: 1.3;
  transition-duration: 0.12s;
}

@supports (animation-timeline: scroll()) {
  /* Hidden unless reel-show says otherwise: a page too short to scroll has an inactive timeline, which applies no fill. */
  .reel {
    display: block;
    visibility: hidden;
    animation: reel-show linear both;
    animation-timeline: scroll(root block);
    animation-range: var(--reel-from) var(--reel-to);
  }

  @media (prefers-reduced-motion: no-preference) {
    html:has(.reel:is(:hover, :focus-visible, :active)) {
      scroll-behavior: smooth;
    }

    .reel-cast,
    .reel-pool,
    .reel-lip,
    .reel-pool .splash {
      animation: reel-cast linear both;
      animation-timeline: scroll(root block);
      animation-range: var(--reel-from) var(--reel-to);
    }

    .reel-pool,
    .reel-lip {
      animation-name: reel-pool;
    }

    .reel-pool .splash {
      animation-name: reel-splash;
    }

    .reel-float {
      animation: reel-bob 3.2s ease-in-out infinite;
    }

    .reel:hover .reel-float {
      animation: reel-nibble 1.3s ease-in-out infinite;
    }

    .reel-pool .ring {
      animation: reel-ring 3.6s var(--ease-out) infinite;
    }

    .reel-pool .ring.later {
      animation-delay: 1.8s;
    }

    /* none while pressed, so letting go starts the strike afresh. */
    .reel:focus:not(:focus-visible) .reel-hook {
      animation: reel-strike 0.5s backwards;
    }

    .reel:active .reel-hook {
      animation: none;
    }
  }
}

@keyframes reel-show {
  from {
    visibility: hidden;
  }

  to {
    visibility: visible;
  }
}

/* Lowered in from above the window, falling faster as it comes, dipping under on landing and bobbing back up. */
@keyframes reel-cast {
  from {
    translate: 0 calc(-100vh - 120px);
    animation-timing-function: cubic-bezier(0.55, 0, 0.9, 0.5);
  }

  72% {
    translate: 0 10px;
    animation-timing-function: ease-out;
  }

  86% {
    translate: 0 -3px;
  }

  to {
    translate: 0 0;
  }
}

/* The strike: a moment's tension, then the line pulls the bobber out of the water and away, faster as it goes. */
@keyframes reel-strike {
  from {
    translate: 0 0;
    animation-timing-function: ease-out;
  }

  12% {
    translate: 0 4px;
    animation-timing-function: cubic-bezier(0.4, 0, 0.7, 0.5);
  }

  to {
    translate: 0 calc(-100vh - 160px);
  }
}

/* The pool opens under the bobber as it comes down, and closes as it is reeled out. */
@keyframes reel-pool {
  0%,
  45% {
    opacity: 0;
    scale: 0.3 1;
  }

  72%,
  100% {
    opacity: 1;
    scale: 1;
  }
}

@keyframes reel-splash {
  0%,
  66% {
    opacity: 0;
    scale: 0.4;
  }

  74% {
    opacity: 0.95;
  }

  100% {
    opacity: 0;
    scale: 1.8;
  }
}

@keyframes reel-bob {
  0%,
  100% {
    translate: 0 0;
    rotate: -2deg;
  }

  50% {
    translate: 0 2px;
    rotate: 2deg;
  }
}

/* A fish at the bait: two quick tugs, then a pause. */
@keyframes reel-nibble {
  0%,
  46%,
  100% {
    translate: 0 0;
    rotate: 0deg;
  }

  8% {
    translate: 0 5px;
    rotate: 5deg;
  }

  16% {
    translate: 0 -1px;
    rotate: -3deg;
  }

  26% {
    translate: 0 4px;
    rotate: -4deg;
  }

  36% {
    translate: 0 -1px;
    rotate: 2deg;
  }
}

@keyframes reel-ring {
  0% {
    opacity: 0;
    scale: 0.5;
  }

  12% {
    opacity: 0.75;
  }

  100% {
    opacity: 0;
    scale: 2;
  }
}

/* Below the narrow breakpoint the column reaches the window's edge, so the line is a short tether over it. */
@media (max-width: 719.98px) {
  .reel-hook::before {
    height: 120px;
  }
}

@media print {
  .reel {
    display: none;
  }
}

/* Below the narrow breakpoint (720 px, WEB-R24): the wordmark and Sign in share the band's first row, its five
   links sit in a grid of three columns below them, and the current one is underlined in wax red instead of ribboned; the
   strip's links take one line, the BattleTag and Sign out a right-aligned row below. No menu button. */
@media (max-width: 719.98px) {
  .band .wrap {
    flex-wrap: wrap;
    row-gap: 0;
    padding-top: 14px;
    padding-bottom: 18px;
  }

  .wordmark {
    flex: 1 0 auto;
    font-size: 30px;
  }

  .band .signin {
    order: 2;
    margin-left: auto;
  }

  .site-nav {
    order: 3;
    flex: 1 0 100%;
  }

  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 0 20px;
  }

  .site-nav a[aria-current]::after {
    display: none;
  }

  .site-nav a[aria-current] {
    text-decoration: underline;
    text-decoration-color: var(--wax-bright);
    text-decoration-thickness: 3px;
    text-underline-offset: 0.35em;
  }

  .account-strip .wrap {
    padding-top: 6px;
    padding-bottom: 4px;
    gap: 0 18px;
  }

  .account-strip ul {
    gap: 0 18px;
  }

  .account-strip a[aria-current]::after {
    left: -10px;
    right: -11px;
    top: -6px;
    bottom: -6px;
  }

  .account-strip .signature {
    flex: 1 0 100%;
    justify-content: flex-end;
  }

  .search {
    padding: 16px;
  }
}

/* Leaderboards (#172, #190) ------------------------------------------------------------------------------------
   Boards, their Following view, Region firsts and the region lists (LB UI; DESIGN.md's board tabs, board table,
   rank ring, "yours" mark, Region firsts table, state line and region list). */
.board-title {
  margin-bottom: 8px;
}

.board-nav {
  margin: 6px 0 26px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tabs a {
  display: inline-block;
  padding: 6px 0 5px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.tabs a:hover {
  color: var(--hand-blue);
  border-bottom-color: var(--ink-rule);
}

/* The Current Bar Rule: the current tab is title ink over a 2px leather-trim bar, never a text underline. */
.tabs a[aria-current] {
  color: var(--ink-title);
  border-bottom-color: var(--leather-trim);
}

.tabs.measures {
  border-bottom: 1px solid var(--ink-rule);
}

.tabs.measures a {
  margin-bottom: -1px;
  font-family: "Pagle Display", Georgia, serif;
  font-size: 19px;
}

/* LB-R64: a monthly measure's second row, "All time" and the shown months, under the measures. */
.tabs.months {
  gap: 2px 18px;
  margin-top: 10px;
}

.tabs.months a {
  padding: 3px 0 2px;
  font-size: 16px;
}

/* LB-R64: "Open until <date>" under the tabs while the month is open. */
.open-until {
  margin: -12px 0 18px;
  font-variant: small-caps;
  letter-spacing: 0.04em;
  color: var(--ink-kicker);
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 34px;
  margin-top: 12px;
}

.tab-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}

.tab-group .lbl {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 14.5px;
  color: var(--ink-kicker);
}

.tab-group .tabs {
  gap: 2px 16px;
}

.tab-group .tabs a {
  padding: 3px 0 2px;
  font-size: 17px;
}

.follow-link {
  margin-left: auto;
  font-family: "Pagle Display", Georgia, serif;
  font-size: 17px;
  text-underline-offset: 0.3em;
}

.follow-link[aria-current] {
  padding: 3px 0 2px;
  color: var(--ink-title);
  text-decoration: none;
  border-bottom: 2px solid var(--leather-trim);
}

.full-board {
  display: inline-block;
  margin: 0 0 18px;
  font-family: "Pagle Display", Georgia, serif;
  font-size: 17px;
  text-underline-offset: 0.3em;
}

.board-table td {
  padding: 8px 12px 8px 0;
  font-size: 17.5px;
}

.board-table td.n,
.board-table th.n {
  width: 4.4rem;
  padding-right: 14px;
  text-align: center;
}

.board-table .angler-name,
.firsts-table .angler-name {
  color: var(--ink-title);
}

.board-table .angler-name:hover,
.firsts-table .angler-name:hover {
  color: var(--hand-blue);
}

.board-table .hardcore,
.firsts-table .hardcore {
  margin-left: 2px;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 14px;
  color: var(--hand-red);
}

.board-table .rr {
  color: var(--ink-small);
}

/* The rank ring: ranks 1 to 3 in the double-ring medallion, gilt, silver and bronze; every other rank plain. */
.rank {
  display: inline-grid;
  place-items: center;
  min-width: 2em;
}

.rank.top {
  width: 34px;
  height: 34px;
  border: 3px double var(--leather-trim);
  border-radius: 50%;
  font-family: "Pagle Display", Georgia, serif;
  font-size: 16px;
  color: var(--ink-title);
  background-image: url("/assets/textures/fibres-3cdcac58cc40ad4e2861aa6175521627.svg"), radial-gradient(circle at 40% 35%, var(--parchment-light), #e9d6aa);
}

.rank.r1 {
  border-color: #b08a1e;
}

.rank.r2 {
  border-color: #a29a8a;
}

.rank.r3 {
  border-color: #a0602a;
}

/* The "yours" mark: a parchment-light highlight closed by a hairline, and the hand's "yours" after the name. */
.yours {
  margin-left: 4px;
  font-family: "Caveat", cursive;
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  color: var(--hand-blue);
}

tr.mine td {
  background-color: rgba(243, 229, 195, 0.92);
}

tr.mine td:first-child {
  box-shadow: inset 1px 0 0 var(--ink-rule);
}

.firsts-table td {
  padding: 9px 12px 9px 0;
}

.firsts-table td.legend {
  vertical-align: middle;
  border-bottom: 1px solid var(--ink-rule);
}

.legend-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  color: var(--ink-title);
}

/* The Legend's crest at rest (LB-R63, ANG-R54): 44px wide, its well about the size of the name's capitals. */
.legend-cell .art {
  --art: 44px;
}

/* An Angler Level's Prestige emblem before its value (LB-R60), 22px, centred on the line. */
.board-table .value {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.board-table .emblem {
  flex: none;
  margin: -4px 0;
}

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

/* LB-R61's note: one line under a table, only with a table. */
.unverified {
  margin: 16px 0 0;
  font-size: 15.5px;
  font-style: italic;
  color: var(--ink-small);
}

/* LB-R61's second sentence under the note on a Total Catches board, set close under it. */
.unverified + .unverified {
  margin-top: 4px;
}

/* An empty or unavailable state: one italic line between two ink rules. */
.state-line {
  margin: 0;
  padding: 26px 0;
  font-size: 19px;
  font-style: italic;
  color: var(--ink-small);
  border-top: 1px solid var(--ink-rule);
  border-bottom: 1px solid var(--ink-rule);
}

/* The region list: a 2 x 2 grid of chart plates, each a whole link. */
.regionlist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2.4vw, 28px);
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.regionlist a {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: clamp(150px, 22vw, 250px);
  padding: clamp(16px, 2.6vw, 30px) clamp(16px, 2.8vw, 34px);
  color: var(--ink-title);
  text-decoration: none;
  background-image: url("/assets/textures/fibres-3cdcac58cc40ad4e2861aa6175521627.svg"), radial-gradient(ellipse at 30% 20%, var(--parchment-light), #ead9b0 85%);
  border: 3px double var(--leather-trim);
  border-radius: 3px;
  box-shadow: 0 10px 24px -14px rgba(60, 30, 8, 0.55);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}

.regionlist .code {
  display: block;
  font-family: "Pagle Display", Georgia, serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.regionlist .name {
  display: block;
  margin-top: clamp(6px, 1vw, 12px);
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: clamp(14px, 1.6vw, 18px);
  color: var(--ink-kicker);
}

.regionlist .rose {
  position: absolute;
  top: clamp(10px, 2vw, 24px);
  right: clamp(10px, 2.4vw, 30px);
  width: clamp(64px, 11vw, 128px);
  height: auto;
  color: var(--sepia-ink);
  opacity: 0.55;
  transition: transform 0.6s var(--ease-out), opacity 0.35s;
}

.regionlist .sea {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(26px, 4vw, 44px);
}

.regionlist a:hover,
.regionlist a:focus-visible {
  transform: translateY(-3px);
  border-color: var(--brass-dark);
  box-shadow: 0 18px 30px -16px rgba(60, 30, 8, 0.6);
}

.regionlist a:hover .rose,
.regionlist a:focus-visible .rose {
  transform: rotate(22.5deg);
  opacity: 0.8;
}

/* From 720px up the Angler column is fixed, so each value sits by its name, and the header row stays in view. */
@media (min-width: 720px) {
  .board-table th:nth-child(2),
  .board-table td:nth-child(2) {
    width: 24rem;
  }

  .board-page .table-box {
    overflow: visible;
  }

  .board-page thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background-image: url("/assets/textures/fibres-3cdcac58cc40ad4e2861aa6175521627.svg"), linear-gradient(var(--parchment-field), var(--parchment-field));
  }
}

/* Below 720px the tab rows wrap, the Following link takes its own row, and the tables scroll in their box. */
@media (max-width: 719.98px) {
  .nav-row {
    gap: 8px 22px;
  }

  .follow-link {
    flex-basis: 100%;
    margin-left: 0;
  }

  .board-table td.n,
  .board-table th.n {
    width: 3rem;
    padding-right: 8px;
  }

  .board-table td.v {
    white-space: normal;
  }

  .firsts-table {
    min-width: 34rem;
  }

  .regionlist .rose {
    top: auto;
    bottom: clamp(30px, 8vw, 40px);
    width: 40px;
  }
}
/* End of Leaderboards (#172, #190) */

/* The Prestige and Legend art (#237) ===========================================================================
   wow-fish's web export in assets/ledger/art/ (ANG-R54), drawn by templates/art.html: a piece is a box of the
   export's 260 × 280 units, --art wide, each layer placed in percent of it and stacked by its z. The box isolates
   its layers, so an add layer (plus-lighter) lights only the layers under it, as the export composes them. Its
   motion is its own stylesheet, linked for prefers-reduced-motion: no-preference only; otherwise the layers stand
   in the rest pose. The plaque's text is sized in cqw from the box's width, and left out below 150px, where it
   can't be read. */
.art {
  position: relative;
  display: block;
  flex: none;
  width: var(--art, 64px);
  aspect-ratio: 260 / 280;
  isolation: isolate;
  container-type: inline-size;
}

.art-layer {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.art .likeness {
  position: absolute;
  border-radius: 50%;
}

.art-label {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 9;
  margin: 0;
  overflow: hidden;
  font-family: "Pagle Display", Georgia, serif;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

@container (max-width: 149.98px) {
  .art-label {
    display: none;
  }
}

/* A Prestige emblem (ANG-R70, LB-R60, WEB-R73): its numeral is drawn in; the file is 2× its size. */
.emblem {
  display: inline-block;
  vertical-align: middle;
}
/* End of the Prestige and Legend art (#237) */

/* Angler page ranks (#174) ------------------------------------------------------------------------------------
   Provisional, as the prototype's Angler page is: the bookplate's rank lines in title ink under the XP bar
   (ANG-R45), LB-R61's note in small print under them (ANG-R44), and a Legend row's Region-first badges as small
   hand-red stamps (ANG-R46). */
.bookplate .ranks {
  margin-top: 8px;
}

.bookplate .rank-line {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-title);
}

.bookplate .ranks .unverified {
  margin-top: 6px;
  font-size: 0.8125rem;
}

.region-first {
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 4px 7px 3px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  color: var(--hand-red);
  font-family: "Pagle Display", Georgia, serif;
  font-size: 0.75rem;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  line-height: 1;
  transform: rotate(-4deg);
}
/* End of Angler page ranks (#174) */

/* Under reduced motion nothing moves: the ribbon hangs and the pencil loop shows complete (--loop's initial
   value), both still. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .site-nav a[aria-current]::after,
  .account-strip a[aria-current]::after {
    animation: none;
  }
}

/*
 * The Download page (WEB-R120 to WEB-R126), built to DESIGN.md. Under the intro, a route of two numbered stations
 * (WEB-R121), the addon and then Pagle Companion, their medallions on a river in the left bank as on Home's route.
 * Its text keeps the 46rem column (column='download'), so the Windows sketches sit two across; the bank sits left of
 * it. Below 720px the bank folds away and each medallion leads its heading. Its rules are scoped to main.download
 * and its download-* classes. Commands, paths and version numbers are set in DESIGN.md's code face, the one
 * font-family that ends in monospace (WEB-R5).
 */
.col-download {
  max-width: calc(46rem + 76px + 2 * var(--gutter));
}

main.download {
  --bank: 76px;
  --station-gap: clamp(56px, 7vw, 88px);
}

/* The page's resets weigh no more than an element, so its classes below set what they need. */
:where(main.download) p {
  margin: 0;
}

:where(main.download) :is(h2, h3, h4, h5) {
  margin: 0;
  line-height: 1.1;
}

main.download h1 {
  margin-bottom: 12px;
}

/* What the reader types in a shell, or a path, is set in the code face (DESIGN.md, Command Voice); what they
   type in the game keeps the site's italic print on a water tint. */
main.download .download-shell {
  padding: 1px 4px;
  background-color: rgb(90 58 20 / 0.08);
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
  font-size: 0.86em;
  font-style: normal;
  line-height: 1.4;
}

.download-intro {
  max-width: 60ch;
  font-size: 1.25rem;
  color: var(--ink-small);
}

.download-everywhere {
  margin-top: 30px;
  font-size: 1.25rem;
}

/* The route (WEB-R121): each station hangs a 56px parchment medallion in the bank, and a river runs between them
   from the first medallion's centre to the second's: an inline SVG reach on a gentle wave, as Home's, a 16px stroke
   of translucent water under a 1.5px kicker-ink line dashed 7 7, both non-scaling, faded in and out at its ends as
   Character search's river is. */
.download-route {
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: station;
}

.download-route > li {
  position: relative;
  padding-left: var(--bank);
  counter-increment: station;
}

.download-route > li + li {
  margin-top: var(--station-gap);
}

.download-route > li::before {
  content: counter(station);
  position: absolute;
  z-index: 1;
  top: -7px;
  left: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  box-sizing: border-box;
  border: 3px double var(--leather-trim);
  border-radius: 50%;
  background: url("/assets/textures/fibres-3cdcac58cc40ad4e2861aa6175521627.svg"), radial-gradient(circle at 40% 35%, var(--parchment-light), #e9d6aa);
  box-shadow: 0 4px 10px -4px rgb(60 30 8 / 0.5);
  color: var(--ink-title);
  font-family: "Pagle Display", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1;
}

.download-river {
  position: absolute;
  top: 21px;
  left: 8px;
  width: 40px;
  height: calc(100% + var(--station-gap)); /* down to the next medallion's centre */
  overflow: visible;
  mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent);
}

.download-river path {
  fill: none;
  stroke-linecap: round;
}

.download-river .water {
  stroke: rgb(var(--water) / 0.32);
  stroke-width: 16px;
}

.download-river .line {
  stroke: var(--ink-kicker);
  stroke-width: 1.5px;
  stroke-dasharray: 7 7;
}

main.download .download-route section > h2 {
  font-size: clamp(1.6rem, 2.3vw, 2rem);
}

.download-station-line {
  margin-top: 10px;
  max-width: 58ch;
  font-size: 1.1875rem;
  color: var(--ink-small);
}

/* The addon apps: each a whole-link plate in the double-ruled frame, as the region list's. The app's own mark is
   struck as an enamel badge in a brass bezel, pinned over the plate's top edge and turned, as the Journal pins a
   crest on its bookplate; a reel drawn in sepia ink sits in the other corner. Hover and focus lift the plate, warm
   its frame to brass, straighten the badge as a glint runs across it, and wind the reel once. */
.download-sources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 40px clamp(14px, 2vw, 22px);
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}

.download-source {
  position: relative;
  display: block;
  padding: 68px clamp(16px, 2.4vw, 24px) 22px;
  border: 3px double var(--leather-trim);
  border-radius: 3px;
  background-image: url("/assets/textures/fibres-3cdcac58cc40ad4e2861aa6175521627.svg"), radial-gradient(ellipse at 30% 20%, var(--parchment-light), #ead9b0 85%);
  box-shadow: 0 10px 24px -14px rgb(60 30 8 / 0.55);
  color: var(--ink-title);
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}

.download-source:hover,
.download-source:focus-visible {
  color: var(--ink-title);
  transform: translateY(-3px);
  border-color: var(--brass-dark);
  box-shadow: 0 18px 30px -16px rgb(60 30 8 / 0.6);
}

.download-source-name {
  display: block;
  font-family: "Pagle Display", Georgia, serif;
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  line-height: 1.1;
}

.download-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.download-source-how {
  display: block;
  margin-top: 12px;
  max-width: 26ch;
  font-size: 1.03125rem;
  line-height: 1.4;
  color: var(--ink-small);
}

/* The app badge, shared with Home's addon buttons: an addon app's own mark on enamel (leather-inner to
   leather-edge, the only dark the kit has) in a bevelled brass bezel, a gilt pin through its top, turned -7deg as the
   Journal turns a pinned crest. --badge sets its size. Hovered or focused, its plate or button straightens it and a
   glint runs across it. */
.app-badge {
  --badge: 80px;
  --bezel: 4px;
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: var(--badge);
  height: var(--badge);
  box-sizing: border-box;
  border: var(--bezel) solid transparent;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, #3d2414, var(--leather-inner) 55%, var(--leather-edge)) padding-box,
    linear-gradient(150deg, var(--gilt-light), var(--brass-light) 22%, var(--gilt) 45%, var(--brass-low) 72%, var(--brass-light)) border-box;
  box-shadow:
    0 0 0 1px var(--brass-edge),
    inset 0 0 0 1px rgb(0 0 0 / 0.55),
    inset 0 3px 8px rgb(0 0 0 / 0.6),
    0 7px 12px -4px rgb(40 18 4 / 0.6);
  transform: rotate(-7deg);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.app-badge img {
  display: block;
  width: 58%;
  height: auto;
  filter: drop-shadow(0 1px 0 rgb(0 0 0 / 0.5));
}

/* The gilt pin through the badge's top. */
.app-badge::before {
  --pin: max(6px, calc(var(--badge) / 8));
  content: "";
  position: absolute;
  z-index: 1;
  top: calc(var(--pin) * -0.7);
  left: calc(50% - var(--pin) / 2);
  width: var(--pin);
  height: var(--pin);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gilt-light), var(--gilt) 45%, var(--brass-dark));
  box-shadow: 0 0 0 1px var(--brass-edge), 0 2px 3px rgb(0 0 0 / 0.45);
}

/* The glint: a band of light across the enamel and brass, parked off the badge, that sweeps across it as the badge
   is hovered or focused. */
.app-badge::after {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--bezel));
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 38%, rgb(255 244 200 / 0.5) 48%, rgb(255 250 230 / 0.15) 54%, transparent 62%) no-repeat;
  background-size: 260% 100%;
  background-position: 130% 0;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: background-position 0.9s var(--ease-out);
}

:is(.download-source, .btn-app):is(:hover, :focus-visible) .app-badge {
  transform: rotate(0deg) scale(1.05);
  box-shadow:
    0 0 0 1px var(--brass-edge),
    inset 0 0 0 1px rgb(0 0 0 / 0.55),
    inset 0 3px 8px rgb(0 0 0 / 0.6),
    0 12px 18px -6px rgb(40 18 4 / 0.6);
}

:is(.download-source, .btn-app):is(:hover, :focus-visible) .app-badge::after {
  background-position: -30% 0;
}

/* On a plate the badge is pinned over its top edge. */
.download-source .app-badge {
  position: absolute;
  top: -26px;
  left: clamp(14px, 2.2vw, 22px);
}

.download-reel {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 58px;
  height: auto;
  color: var(--sepia-ink);
  opacity: 0.6;
  transition: opacity 0.35s;
}

.download-reel-spool {
  transform-box: view-box;
  transform-origin: 50px 48px;
  transition: transform 1.1s var(--ease-out);
}

.download-source:hover .download-reel,
.download-source:focus-visible .download-reel {
  opacity: 0.85;
}

.download-source:hover .download-reel-spool,
.download-source:focus-visible .download-reel-spool {
  transform: rotate(-360deg);
}

/* By hand, from GitHub: the words and the brass button beside an ink sketch of where the six folders go. */
.download-by-hand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  gap: 18px clamp(20px, 3vw, 36px);
  align-items: center;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--ink-rule);
}

.download-sources + .download-by-hand {
  margin-top: 36px;
}

main.download .download-by-hand h3 {
  font-size: clamp(1.3rem, 1.8vw, 1.5rem);
}

.download-by-hand p {
  margin-top: 10px;
}

main.download .download-by-hand .download-brass {
  margin-top: 18px;
}

.download-folders {
  margin: 0;
}

.download-folders svg {
  display: block;
  width: 100%;
  height: auto;
}

/* The ink's offset echo, a bleed as on the Windows sketch: its clone takes fill and stroke from here. */
.download-folders .bleed {
  fill: none;
  stroke: var(--sepia-ink);
  opacity: 0.3;
}

.download-folders .folder {
  font-size: 15px;
}

main.download .download-folders .hand {
  font-size: 21px;
}

.download-in-game {
  margin-top: 28px;
  font-size: 1.0625rem;
  color: var(--ink-small);
}

/* No source set yet: the state line, one italic sentence between two ink rules. */
.download-unreleased {
  margin-top: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--ink-rule);
  border-bottom: 1px solid var(--ink-rule);
  font-size: 1.1875rem;
  font-style: italic;
  color: var(--ink-small);
}

/* The window itself (WEB-R128): two screenshots side by side, stacked on a narrow screen. They are the app's own
   dark theme, so each sits in a thin frame like a print pasted onto the page. */
.download-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.download-shots figure {
  margin: 0;
}

.download-shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgb(90 58 20 / 0.35);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgb(60 36 12 / 0.18);
}

.download-shots figcaption {
  margin-top: 8px;
  color: var(--ink-small);
}

@media (max-width: 520px) {
  .download-shots {
    grid-template-columns: minmax(0, 22rem);
    justify-content: center;
  }
}

/* Sections */
.download-platform {
  margin-top: clamp(40px, 5vw, 56px);
}

.download-platform > h3 {
  font-size: clamp(1.45rem, 2vw, 1.75rem);
}

.download-platform > h4 {
  font-size: clamp(1.3rem, 1.7vw, 1.45rem);
}

.download-platform > p {
  margin-top: 12px;
  max-width: 62ch;
}

/* The detected system's section: the double-ruled box around the page's one primary action. */
.download-detected > .download-platform {
  margin-top: 30px;
  padding: 22px clamp(18px, 3vw, 28px) 26px;
  border: 3px double var(--leather-trim);
  border-radius: 3px;
  background-color: var(--parchment-light);
  background-image: url("/assets/textures/fibres-3cdcac58cc40ad4e2861aa6175521627.svg");
  box-shadow: 0 10px 24px -14px rgb(60 30 8 / 0.55);
}

main.download h3.download-others-heading {
  margin-top: clamp(48px, 5.5vw, 68px);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink-rule);
  font-size: clamp(1.45rem, 2vw, 1.75rem);
}

.download-others > .download-platform {
  margin-top: clamp(28px, 3.5vw, 40px);
}

/* winget */
.download-winget {
  margin-top: 14px;
}

.download-winget p {
  font-size: 1.0625rem;
}

.download-command {
  margin: 6px 0 0;
  padding: 10px 14px;
  overflow: visible;
  border: 1px solid var(--field-stroke);
  border-radius: 3px;
  background-color: var(--field-paper);
  box-shadow: inset 0 1px 2px rgb(70 40 10 / 0.15);
  color: var(--ink-title);
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
  font-size: 0.96875rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  cursor: text;
  -webkit-user-select: all;
  user-select: all;
}

main.download .download-command code {
  padding: 0;
  background: none;
  color: inherit;
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
  font-size: 1em;
  font-style: normal;
}

/* The button and its version */
.download-get {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 16px;
}

main.download .download-wax,
main.download .download-brass,
main.feedback .feedback-route {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Pagle Display", Georgia, serif;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), filter 0.18s;
}

/* Wax: the detected system's button, the page's one primary action. */
main.download .download-wax {
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 7px;
  background: radial-gradient(ellipse at 35% 25%, var(--wax-bright), var(--wax-mid) 55%, var(--wax-dark));
  box-shadow: inset 0 0 0 2px rgb(0 0 0 / 0.14), inset 0 1px 0 rgb(255 220 180 / 0.25), 0 2px 4px rgb(40 10 0 / 0.35);
  color: var(--wax-text);
  font-size: 1.1875rem;
}

main.download .download-wax:hover {
  color: #fff4dc;
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 2px rgb(0 0 0 / 0.14), inset 0 1px 0 rgb(255 220 180 / 0.25),
    0 5px 10px -2px rgb(40 10 0 / 0.4);
}

main.download .download-wax:active {
  filter: brightness(0.92);
  transform: translateY(1px);
}

main.download .download-wax:focus-visible {
  outline-color: var(--ink-title);
}

/* Brass: every other button, compact; and Feedback's three routes, none of them the page's one primary action. */
main.download .download-brass,
main.feedback .feedback-route {
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid var(--brass-edge);
  border-radius: 4px;
  background: linear-gradient(var(--brass-light), var(--gilt) 35%, var(--brass-low));
  box-shadow: 0 3px 7px rgb(0 0 0 / 0.3), inset 0 1px 0 rgb(255 250 220 / 0.7);
  color: var(--brass-text);
  font-size: 1.03125rem;
}

main.download .download-brass:hover,
main.feedback .feedback-route:hover {
  color: var(--brass-text);
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.download-version {
  font-size: 1rem;
  color: var(--ink-small);
}

.download-version-number {
  color: var(--ink);
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
  font-size: 0.90625rem;
}

/* The ink sketch of Windows' warning: sepia line work, hand-red marks, straight on the page. */
.download-sketch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 16px 0 0;
}

.download-sketch svg {
  display: block;
  width: 100%;
  height: auto;
}

:is(.download-sketch, .download-folders) .ink {
  fill: none;
  stroke: var(--sepia-ink);
  stroke-linecap: round;
  stroke-linejoin: round;
}

:is(.download-sketch, .download-folders) .mark {
  fill: none;
  stroke: var(--hand-red);
  stroke-width: 1.7;
  stroke-linecap: round;
}

:is(.download-sketch, .download-folders) .print {
  fill: var(--ink-title);
  font-family: "IM Fell English", Georgia, serif;
}

:is(.download-sketch, .download-folders) .title {
  font-size: 17px;
}

.download-sketch .link {
  fill: var(--hand-blue);
  font-size: 14px;
  text-decoration: underline;
}

.download-sketch .detail {
  font-size: 12px;
}

.download-sketch .button {
  font-size: 11.5px;
}

:is(.download-sketch, .download-folders) .hand {
  fill: var(--hand-red);
  font-family: "Caveat", cursive;
  font-size: 28px;
  font-weight: 500;
}

/* Support stamps (Beta, Experimental): set after their heading or sentence. */
.download-stamp {
  display: inline-block;
  margin-left: 6px; /* after a space, so a screen reader reads "Steam Deck Beta" */
  padding: 4px 7px 3px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  color: var(--hand-red);
  font-family: "Pagle Display", Georgia, serif;
  font-size: 0.84375rem;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  line-height: 1;
  vertical-align: 0.3em;
  transform: rotate(-4deg);
}

/* Steam Deck */
.download-deck {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-rule);
}

.download-deck > h4 {
  font-size: 1.375rem;
}

.download-deck > h5 {
  font-size: 1.2rem;
}

.download-deck > p {
  margin-top: 12px;
}

.download-fuse {
  font-size: 1.03125rem;
  color: var(--ink-small);
}

/* The steps: numbered medallions on a dashed ink line, as Home's route. */
.download-steps {
  position: relative;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.download-steps::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 21px;
  border-left: 1.5px dashed var(--ink-kicker);
}

/* Two grid items, the medallion and the step's one span, so its code and bold stay inline in the text. */
.download-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 6px 0;
  counter-increment: step;
}

.download-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px double var(--leather-trim);
  border-radius: 50%;
  background: url("/assets/textures/fibres-3cdcac58cc40ad4e2861aa6175521627.svg"), radial-gradient(circle at 40% 35%, var(--parchment-light), #e9d6aa);
  color: var(--ink-title);
  font-family: "Pagle Display", Georgia, serif;
  font-size: 1.25rem;
}

/* No Companion? and If WoW crashes, each below an ink rule. */
.download-end {
  margin-left: var(--bank);
  margin-top: clamp(52px, 6vw, 76px);
  padding-top: 26px;
  border-top: 1px solid var(--ink-rule);
}

.download-end + .download-end {
  margin-top: clamp(36px, 4vw, 48px);
}

main.download .download-end h2 {
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 2.3vw, 2rem);
}

@media (max-width: 719.98px) {
  main.download {
    --bank: 0px;
  }

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

  /* The bank folds away: each station's medallion, at 42px, leads its heading, and the river between them goes. */
  .download-route > li::before {
    top: -3px;
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
  }

  .download-river {
    display: none;
  }

  main.download .download-route section > h2 {
    min-height: 36px;
    padding-left: 56px;
  }

  .download-by-hand {
    grid-template-columns: minmax(0, 1fr);
  }

  .download-folders {
    max-width: 22rem;
  }
}

/* The buttons don't lift or press under reduced motion; the shared rule above already drops the transitions. */
@media (prefers-reduced-motion: reduce) {
  main.download .download-wax:hover,
  main.download .download-wax:active,
  main.download .download-brass:hover,
  main.feedback .feedback-route:hover,
  .download-source:hover,
  .download-source:focus-visible,
  .download-source:hover .download-reel-spool,
  .download-source:focus-visible .download-reel-spool {
    transform: none;
  }

  :is(.download-source, .btn-app):is(:hover, :focus-visible) .app-badge {
    transform: rotate(-7deg);
  }

  .app-badge::after {
    display: none;
  }
}

/* Home (#173, #208) ==========================================================================================
 * The addon's landing page (WEB-R80 to WEB-R85). The opening: the pitch and the addon box beside the promo video,
 * the largest object, a framed plate; See it in game under it, its mirror. Then the river runs down the page: Inside
 * the addon's stations, each a tipped-in screenshot plate rising from a bobber on the water, alternating sides, then
 * down the left bank through Already fishing?'s four stations, with the live sample Journal (ANG-R61) beside them.
 * Last, the FAQ. Below 1180 px the opening stacks and the last leg's book moves under its stations; below 720 px
 * (WEB-R24) the river runs straight down the left. No script (WEB-R2): the plates' rise is a scroll-driven animation,
 * only where it is supported and motion is welcome.
 */
.home {
  max-width: calc(var(--width-home) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main.home-page > section {
  margin-top: 0;
}

/* A reset with no weight, so each paragraph's own margin (the kicker line's, the creed's, the caption's, the book's) wins. */
:where(.home-page) p {
  margin: 0;
}

.home-page .deleted-notice {
  margin: 24px 0 0;
}

.opening {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas:
    "pitch promo"
    "start promo";
  column-gap: clamp(32px, 4vw, 64px);
  padding-top: clamp(20px, 2.2vw, 30px);
}

.opening .pitch {
  grid-area: pitch;
  align-self: start;
  padding-top: 6px;
}

.opening h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
}

.kicker-line {
  margin-top: 18px;
  font-variant: small-caps;
  letter-spacing: 0.09em;
  font-size: 19px;
  color: var(--ink-kicker);
}

.creed {
  margin-top: 10px;
  max-width: 40ch;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-small);
}

/* The addon box: the route's source, a double-ruled parchment box around the page's one primary action. */
.addon-box {
  grid-area: start;
  align-self: end;
  position: relative;
  z-index: 2;
  max-width: 25rem;
  margin: 24px 0 6px;
  padding: 16px 20px;
  border: 3px double var(--leather-trim);
  border-radius: 3px;
  background-color: var(--parchment-light);
  background-image: url("/assets/textures/fibres-3cdcac58cc40ad4e2861aa6175521627.svg");
  box-shadow: 0 10px 24px -14px rgba(60, 30, 8, 0.55);
}

.addon-box h2 {
  margin: 0 0 10px;
  font-size: 21px;
}

.addon-box .get {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-page .btn-wax,
.home-page .btn-brass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  font-family: "Pagle Display", Georgia, serif;
  font-size: 17.5px;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), filter 0.18s;
}

.home-page .btn-wax {
  flex: 1 1 9.5rem;
  border-radius: 7px;
  background-color: var(--wax-mid);
  background-image: radial-gradient(ellipse at 35% 25%, var(--wax-bright), var(--wax-mid) 55%, var(--wax-dark));
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 220, 180, 0.25), 0 2px 4px rgba(40, 10, 0, 0.35);
  color: var(--wax-text);
}

.home-page .btn-wax:hover {
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 220, 180, 0.25), 0 5px 10px -2px rgba(40, 10, 0, 0.4);
  color: #fff4dc;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.home-page .btn-wax:active {
  filter: brightness(0.92);
  transform: translateY(1px);
}

.home-page .btn-wax:focus-visible {
  outline-color: var(--ink-title);
}

/* An addon app's wax button wears the app's badge (see the Download page's app badge) before its label, which sits
   left beside it. */
.home-page .btn-app {
  justify-content: flex-start;
  gap: 9px;
  padding: 8px 10px 8px 9px;
  text-align: left;
}

.btn-app .app-badge {
  --badge: 42px;
  --bezel: 3px;
}

/* The label as two lines, like a maker's label: "Get Pagle on" small over the app's name. */
.btn-app .app-label {
  font-size: 14.5px;
  line-height: 1.15;
  color: rgb(244 223 168 / 0.88);
}

.btn-app .app-name {
  display: block;
  font-size: 18px;
  white-space: nowrap;
  line-height: 1.1;
  color: var(--wax-text);
}

.btn-app:hover .app-name {
  color: #fff4dc;
}

.home-page .btn-brass {
  min-height: 46px;
  padding: 9px 20px;
  border: 1px solid var(--brass-edge);
  border-radius: 4px;
  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);
}

.home-page .btn-brass:hover {
  color: var(--brass-text);
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.addon-box .free {
  margin-top: 8px;
  font-size: 16px;
  color: var(--ink-small);
}

.addon-box .unreleased {
  font-family: "Pagle Display", Georgia, serif;
  font-size: 18px;
  color: var(--ink-title);
}

.addon-box .already {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ink-rule);
  font-size: 17px;
  line-height: 1.45;
}

.addon-box .already a {
  font-family: "Pagle Display", Georgia, serif;
  white-space: nowrap;
}

.addon-box .already .paste {
  display: inline-block;
  margin-top: 4px;
  font-family: "IM Fell English", Georgia, serif;
  font-size: 16.5px;
}

/* The river on Character search (search.html) is drawn by these and by .search-register .river. */
.river {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 142px;
  overflow: visible;
  pointer-events: none;
}

.river path {
  fill: none;
  stroke-linecap: round;
}

.river .water {
  stroke: rgb(var(--water) / 0.32);
  stroke-width: 28;
}

.river .line {
  stroke: var(--ink-kicker);
  stroke-width: 1.5;
  stroke-dasharray: 7 7;
}

/* The promo video (WEB-R84): the opening's largest object, a framed plate on the same mat as every screenshot. */
.promo {
  grid-area: promo;
  align-self: start;
  min-width: 0;
  margin: 6px 0 0;
}

/* A tipped-in plate: the picture on a parchment mat under a hairline, held by four leather photo corners. */
.promo-frame,
.plate {
  position: relative;
  display: block;
  padding: clamp(8px, 0.9vw, 12px);
  border-radius: 2px;
  background-color: var(--parchment-light);
  background-image: url("/assets/textures/fibres-3cdcac58cc40ad4e2861aa6175521627.svg");
  box-shadow: 0 0 0 1px rgba(138, 90, 42, 0.35), 0 18px 32px -16px rgba(60, 30, 8, 0.62), 0 3px 6px -2px rgba(60, 30, 8, 0.3);
}

.promo-frame::after,
.plate::after,
.lightbox figure::after {
  --corner: clamp(22px, 2.3vw, 34px);
  content: "";
  position: absolute;
  inset: 3px;
  pointer-events: none;
  background:
    linear-gradient(to bottom right, var(--leather-light), var(--leather-dark) 49%, transparent 50%) top left / var(--corner) var(--corner) no-repeat,
    linear-gradient(to bottom left, var(--leather-light), var(--leather-dark) 49%, transparent 50%) top right / var(--corner) var(--corner) no-repeat,
    linear-gradient(to top right, var(--leather-light), var(--leather-dark) 49%, transparent 50%) bottom left / var(--corner) var(--corner) no-repeat,
    linear-gradient(to top left, var(--leather-light), var(--leather-dark) 49%, transparent 50%) bottom right / var(--corner) var(--corner) no-repeat;
  filter: drop-shadow(0 1px 1px rgba(40, 20, 4, 0.45));
}

/* WEB-R84: a poster that links to the video's YouTube page carries a play mark, a dark disc with a light triangle. */
.video-link {
  position: relative;
  display: block;
}

.video-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: clamp(56px, 9vw, 88px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background-color: rgba(28, 16, 6, 0.72);
  box-shadow: 0 0 0 2px rgba(244, 233, 210, 0.85), 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 150ms ease-out;
  pointer-events: none;
}

.video-link::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: clamp(20px, 3.2vw, 32px);
  aspect-ratio: 1;
  translate: -38% -50%;
  background-color: var(--parchment-light);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  pointer-events: none;
}

.video-link:hover::before,
.video-link:focus-visible::before {
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .video-link::before {
    transition: none;
  }
}

.promo-frame video,
.promo-frame img,
.plate img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background-color: var(--leather-inner);
  box-shadow: 0 0 0 1px rgba(58, 38, 20, 0.5);
}

.promo-caption {
  margin: 14px 0 0 18px;
  font-family: "Caveat", cursive;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--hand-red);
}

/*
 * The river (WEB-R80): one station per Module, the plate on alternate sides. Each station draws its own reach, in
 * from the middle, straight down under its plate (at 27%, the centre of the 13fr column) and out to the middle
 * again, so the reaches join; the last one runs out to the left bank (--bank), where the last leg flows on.
 */
.home-section.addon,
.home-section.companion {
  --bank: 3cqw;
  container-type: inline-size;
}

.river-stations {
  margin: clamp(28px, 3vw, 44px) 0 0;
  padding: 0;
  list-style: none;
}

.reach {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 13fr) minmax(0, 10fr);
  grid-template-areas: "float words";
  column-gap: clamp(32px, 4.5vw, 72px);
  align-items: center;
  padding: clamp(36px, 4vw, 56px) 0;
  view-timeline: --reach block;
}

.reach:nth-child(even) {
  grid-template-columns: minmax(0, 10fr) minmax(0, 13fr);
  grid-template-areas: "words float";
}

.reach-river {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.reach:nth-child(even) .reach-river {
  transform: scaleX(-1);
}

/*
 * The source: the river rises under the promo video's caption, in the opening's empty corner, and comes down past
 * the intro into the first station. Its height is the gap from the caption to the first station (measured).
 */
.reach-source {
  position: absolute;
  left: 0;
  bottom: 100%;
  width: 100%;
  height: 400px;
  overflow: visible;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 22%);
  mask-image: linear-gradient(transparent, #000 22%);
}

/* Under See it in game, the river rises below its words instead, in the right column the film leaves free. */
.showcase + .addon .reach-source {
  height: 360px;
}

/* The Home river is a wash of --water strong enough to read blue on parchment; the shared .32 reads grey here. */
.reach-river path,
.reach-source path {
  fill: none;
}

.reach-river .water,
.reach-source .water {
  stroke: rgb(var(--water) / 0.5);
  stroke-width: 28;
}

.reach-river .line,
.reach-source .line {
  stroke: var(--ink-kicker);
  stroke-width: 1.5;
  stroke-dasharray: 7 7;
}

.reach .float {
  grid-area: float;
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(100%, 44rem);
  padding-bottom: 74px;
}

/* The bobber floats on the river under its plate, its line running up behind the plate. */
.reach .bobber {
  left: 50%;
  bottom: 0;
  z-index: -1;
  width: 64px;
  margin-left: -32px;
  animation: none;
}

.reach .bobber .ripple {
  fill: none;
  stroke: var(--ink-kicker);
  stroke-width: 1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

/* A plate or a deck's shot is a button that opens its lightbox (WEB-R84); it keeps the plate's look, not a button's. */
button.plate,
.deck .shot {
  width: 100%;
  margin: 0;
  border: 0;
  cursor: zoom-in;
}

button.plate {
  appearance: none;
}

.deck .shot {
  appearance: none;
  padding: 0;
  background: none;
}

.plate {
  rotate: var(--tilt, -2deg);
  transition: rotate 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.reach:nth-child(2) .plate {
  --tilt: 1.6deg;
}

.reach:nth-child(3) .plate {
  --tilt: -1.4deg;
}

.reach:nth-child(4) .plate {
  --tilt: 2.2deg;
}

.reach:nth-child(5) .plate {
  --tilt: -1.8deg;
}

.reach:nth-child(6) .plate {
  --tilt: 1.4deg;
}

.reach:nth-child(7) .plate {
  --tilt: -2.2deg;
}

.plate:hover,
.plate:focus-visible {
  rotate: 0deg;
  box-shadow: 0 0 0 1px rgba(138, 90, 42, 0.35), 0 26px 40px -18px rgba(60, 30, 8, 0.68), 0 4px 8px -2px rgba(60, 30, 8, 0.3);
}

.plate:focus-visible {
  outline: 2px solid var(--hand-blue);
  outline-offset: 5px;
}

/*
 * A deck (WEB-R84): a station with several screenshots stacks them on one plate and shows one at a time. Numbered
 * ribbons hang from under the plate's foot, right of the bobber's line, one per shot: the shown one longer and in
 * ribbon red, as the Journal marks its open spread. Each ribbon labels a hidden radio ahead of the shots, so CSS alone
 * shows the picked shot; while none is picked the deck turns by itself (below). --shown runs 0 to 1 on a ribbon.
 */
@property --shown {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.deck:focus-within {
  rotate: 0deg;
  box-shadow: 0 0 0 1px rgba(138, 90, 42, 0.35), 0 26px 40px -18px rgba(60, 30, 8, 0.68), 0 4px 8px -2px rgba(60, 30, 8, 0.3);
}

.deck .shots {
  display: grid;
}

.deck .shot {
  grid-area: 1 / 1;
  display: block;
  transition: opacity 0.45s ease-in-out, visibility 0.45s;
}

.deck .shot:not(:first-child) {
  opacity: 0;
  visibility: hidden;
}

.deck .shot:focus-visible {
  outline: 2px solid var(--hand-blue);
  outline-offset: 3px;
}

.deck .pick {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.deck .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The ribbons come out from under the mat: the strip clips them at the plate's foot. */
.deck-ribbons {
  position: absolute;
  top: 100%;
  left: calc(50% + 42px);
  display: flex;
  gap: 6px;
  height: 58px;
  padding: 0 4px;
  overflow: hidden;
  filter: drop-shadow(1px 2px 1.5px rgba(40, 20, 4, 0.45));
}

/* Scoped to the deck so it outranks the form labels' label[for]. */
.deck .deck-ribbon {
  --shown: 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 30px;
  height: 50px;
  padding-bottom: 13px;
  color: color-mix(in srgb, var(--wax-text) calc(var(--shown) * 100%), var(--parchment-light));
  font-family: "Pagle Display", Georgia, serif;
  font-size: 15px;
  font-variant: normal;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
  translate: 0 calc((1 - var(--shown)) * -14px + var(--peek, 0px));
  transition: --shown 0.35s var(--ease-out), translate 0.35s var(--ease-out);
}

.deck .deck-ribbon:first-child {
  --shown: 1;
}

/* The ribbon's cloth, its tail cut in a V; the numeral sits on it. */
.deck-ribbon::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: color-mix(in srgb, var(--ribbon) calc(var(--shown) * 100%), var(--leather-trim));
  background-image: linear-gradient(90deg, rgba(30, 12, 4, 0.28), transparent 45%, rgba(255, 240, 200, 0.1));
  box-shadow: inset 0 8px 6px -5px rgba(30, 14, 4, 0.6);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 8px), 0 100%);
}

.deck-ribbon > span {
  position: relative;
}

.deck .deck-ribbon:hover {
  --peek: 5px;
}

.pick:checked ~ .shots .shot {
  animation: none;
  opacity: 0;
  visibility: hidden;
}

.pick:nth-of-type(1):checked ~ .shots .shot:nth-child(1),
.pick:nth-of-type(2):checked ~ .shots .shot:nth-child(2),
.pick:nth-of-type(3):checked ~ .shots .shot:nth-child(3),
.pick:nth-of-type(4):checked ~ .shots .shot:nth-child(4),
.pick:nth-of-type(5):checked ~ .shots .shot:nth-child(5) {
  opacity: 1;
  visibility: visible;
}

.pick:checked ~ .deck-ribbons .deck-ribbon {
  --shown: 0;
  animation: none;
}

.pick:nth-of-type(1):checked ~ .deck-ribbons .deck-ribbon:nth-child(1),
.pick:nth-of-type(2):checked ~ .deck-ribbons .deck-ribbon:nth-child(2),
.pick:nth-of-type(3):checked ~ .deck-ribbons .deck-ribbon:nth-child(3),
.pick:nth-of-type(4):checked ~ .deck-ribbons .deck-ribbon:nth-child(4),
.pick:nth-of-type(5):checked ~ .deck-ribbons .deck-ribbon:nth-child(5) {
  --shown: 1;
}

.pick:nth-of-type(1):focus-visible ~ .deck-ribbons .deck-ribbon:nth-child(1),
.pick:nth-of-type(2):focus-visible ~ .deck-ribbons .deck-ribbon:nth-child(2),
.pick:nth-of-type(3):focus-visible ~ .deck-ribbons .deck-ribbon:nth-child(3),
.pick:nth-of-type(4):focus-visible ~ .deck-ribbons .deck-ribbon:nth-child(4),
.pick:nth-of-type(5):focus-visible ~ .deck-ribbons .deck-ribbon:nth-child(5) {
  outline: 2px solid var(--hand-blue);
  outline-offset: 2px;
}

/*
 * The turn: while nothing is picked and motion is welcome, each shot holds for the deck turn (website.md Tunables:
 * 5 s) and crossfades over 0.8 s into the next, its ribbon with it; the last turns back to the first. A shot's
 * delay, (--i - --n) turns, starts the first shown. The deck holds while the pointer is over it or focus is in it.
 */
.deck-2 {
  --n: 2;
}

.deck-3 {
  --n: 3;
}

.deck-4 {
  --n: 4;
}

.deck-5 {
  --n: 5;
}

@media (prefers-reduced-motion: no-preference) {
  .deck .shot,
  .deck .deck-ribbon {
    animation-duration: calc(var(--n) * 5s);
    animation-delay: calc((var(--i) - var(--n)) * 5s);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
  }

  .deck-2 .shot {
    animation-name: deck-shot-2;
  }

  .deck-3 .shot {
    animation-name: deck-shot-3;
  }

  .deck-4 .shot {
    animation-name: deck-shot-4;
  }

  .deck-5 .shot {
    animation-name: deck-shot-5;
  }

  .deck-2 .deck-ribbon {
    animation-name: deck-ribbon-2;
  }

  .deck-3 .deck-ribbon {
    animation-name: deck-ribbon-3;
  }

  .deck-4 .deck-ribbon {
    animation-name: deck-ribbon-4;
  }

  .deck-5 .deck-ribbon {
    animation-name: deck-ribbon-5;
  }

  .deck:hover .shot,
  .deck:hover .deck-ribbon,
  .deck:focus-within .shot,
  .deck:focus-within .deck-ribbon {
    animation-play-state: paused;
  }
}

/* Per deck size n: shown to 1/n - f, gone by 1/n, back from 1 - f, with f the 0.8 s fade as a share of n turns. */
@keyframes deck-shot-2 {
  0%,
  42% {
    opacity: 1;
    visibility: visible;
  }

  50%,
  92% {
    opacity: 0;
    visibility: hidden;
  }

  100% {
    opacity: 1;
    visibility: visible;
  }
}

@keyframes deck-shot-3 {
  0%,
  28% {
    opacity: 1;
    visibility: visible;
  }

  33.333%,
  94.667% {
    opacity: 0;
    visibility: hidden;
  }

  100% {
    opacity: 1;
    visibility: visible;
  }
}

@keyframes deck-shot-4 {
  0%,
  21% {
    opacity: 1;
    visibility: visible;
  }

  25%,
  96% {
    opacity: 0;
    visibility: hidden;
  }

  100% {
    opacity: 1;
    visibility: visible;
  }
}

@keyframes deck-shot-5 {
  0%,
  16.8% {
    opacity: 1;
    visibility: visible;
  }

  20%,
  96.8% {
    opacity: 0;
    visibility: hidden;
  }

  100% {
    opacity: 1;
    visibility: visible;
  }
}

@keyframes deck-ribbon-2 {
  0%,
  42% {
    --shown: 1;
  }

  50%,
  92% {
    --shown: 0;
  }

  100% {
    --shown: 1;
  }
}

@keyframes deck-ribbon-3 {
  0%,
  28% {
    --shown: 1;
  }

  33.333%,
  94.667% {
    --shown: 0;
  }

  100% {
    --shown: 1;
  }
}

@keyframes deck-ribbon-4 {
  0%,
  21% {
    --shown: 1;
  }

  25%,
  96% {
    --shown: 0;
  }

  100% {
    --shown: 1;
  }
}

@keyframes deck-ribbon-5 {
  0%,
  16.8% {
    --shown: 1;
  }

  20%,
  96.8% {
    --shown: 0;
  }

  100% {
    --shown: 1;
  }
}

.reach .words {
  grid-area: words;
  position: relative;
  z-index: 1;
  max-width: 30rem;
}

.reach:nth-child(even) .words {
  justify-self: end;
}

.reach h3 {
  margin: 0;
  font-family: "Pagle Display", Georgia, serif;
  font-size: clamp(1.75rem, 2.6vw, 2.3rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink-title);
}

.reach .module-line {
  margin-top: 10px;
  font-size: 19.5px;
  line-height: 1.5;
}

.reach .seen {
  margin-top: 14px;
  font-family: "Caveat", cursive;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--hand-blue);
  rotate: -1deg;
  transform-origin: left;
}

/* The left bank: the river runs straight down beside the last leg, at --bank. */
.companion-words,
.companion .route {
  position: relative;
}

.companion-words::before,
.companion .route::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--bank, 28px);
  width: 28px;
  margin-left: -14px;
  background-color: rgb(var(--water) / 0.5);
}

.companion-words::after,
.companion .route::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--bank, 28px);
  width: 1.5px;
  margin-left: -0.75px;
  background-image: repeating-linear-gradient(var(--ink-kicker) 0 7px, transparent 7px 14px);
}

/* The route: four stations down the left bank, each medallion's centre on the river, where it ends. */
.companion .route {
  grid-area: route;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-left: calc(var(--bank) - 28px);
  padding-top: clamp(28px, 3vw, 40px);
}

.companion .route::before,
.companion .route::after {
  bottom: 28px;
  left: 28px;
}

/*
 * The mouth: with the sample Journal beside the stations, the river runs on past the last medallion, curves right
 * (.mouth, a fixed-size bend) and runs along under the stations into the book, passing under its foot.
 */
.companion .mouth {
  display: none;
}

@media (min-width: 1180px) {
  .home-section.companion:not(.no-sample) .route {
    padding-bottom: 100px;
  }

  .home-section.companion:not(.no-sample) .route::before,
  .home-section.companion:not(.no-sample) .route::after {
    bottom: 100px;
  }

  .companion .mouth {
    position: absolute;
    left: 0;
    bottom: 0;
    display: block;
    width: 70px;
    height: 100px;
    overflow: visible;
  }

  .companion .mouth path {
    fill: none;
  }

  .companion .mouth .water {
    stroke: rgb(var(--water) / 0.5);
    stroke-width: 28;
  }

  .companion .mouth .line {
    stroke: var(--ink-kicker);
    stroke-width: 1.5;
    stroke-dasharray: 7 7;
  }

  .home-section.companion:not(.no-sample) .stations::before,
  .home-section.companion:not(.no-sample) .stations::after {
    content: "";
    position: absolute;
    left: 70px;
    right: calc(-1 * clamp(32px, 4vw, 64px) - 160px);
  }

  .home-section.companion:not(.no-sample) .stations::before {
    bottom: -54px;
    height: 28px;
    background-color: rgb(var(--water) / 0.5);
  }

  .home-section.companion:not(.no-sample) .stations::after {
    bottom: -40.75px;
    height: 1.5px;
    background-image: repeating-linear-gradient(90deg, var(--ink-kicker) 0 7px, transparent 7px 14px);
  }

  /* The book stands over the river's end. */
  .home-section.companion:not(.no-sample) .sample {
    position: relative;
    z-index: 2;
    align-self: end;
  }
}

/* Up through the gap above the heading (.home-section's padding), so the river joins the last station's. */
.companion-words::before,
.companion-words::after {
  top: calc(-1 * clamp(56px, 7vw, 96px));
}

.stations {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stations li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 20px;
  padding: 0 0 22px;
}

.stations li:last-child {
  padding-bottom: 0;
}

.stations .mark {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 3px double var(--leather-trim);
  border-radius: 50%;
  background-color: var(--parchment-light);
  background-image: url("/assets/textures/fibres-3cdcac58cc40ad4e2861aa6175521627.svg"), radial-gradient(circle at 40% 35%, var(--parchment-light), #e9d6aa);
  box-shadow: 0 4px 10px -4px rgba(60, 30, 8, 0.5);
  color: var(--ink-title);
  font-family: "Pagle Display", Georgia, serif;
  font-size: 24px;
}

.stations li:last-child .mark {
  border-color: var(--brass-dark);
  box-shadow: 0 0 0 3px rgba(232, 201, 106, 0.45), 0 4px 10px -4px rgba(60, 30, 8, 0.5);
}

.stations b {
  align-self: end;
  font-family: "Pagle Display", Georgia, serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink-title);
}

.stations b code {
  padding: 0;
  background: none;
  font-family: "Pagle Display", Georgia, serif;
  font-style: normal;
}

.stations .caption-line {
  margin-top: 3px;
  font-family: "Caveat", cursive;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--hand-blue);
}

/* The sample Journal at the river's mouth (ANG-R61), drawn by journal.css, with its caption in the hand's red. */
.home-page .sample {
  grid-area: sample;
  align-self: center;
  min-width: 0;
}

.home-page .sample .name-line {
  margin: 0 0 4px;
  font-size: 18px;
}

.home-page .sample .name-line .more {
  font-size: 15.5px;
}

/*
 * The compact sample book, as the prototype's Home Journal: smaller type and tighter parts than the Angler page's
 * book (journal.css, which these override only inside .home-page .sample), so the book stays under 540 px and
 * sits beside the last leg's four stations.
 */
.home-page .sample .page {
  font-size: 14.5px;
  line-height: 1.42;
}

.home-page .sample .page .kicker,
.home-page .sample .page .block-head {
  font-size: 13.5px;
}

.home-page .sample .page .block-head {
  margin-bottom: 3px;
}

.home-page .sample .page h2 {
  margin: 1px 0 0;
  font-size: 25px;
  line-height: 1.05;
}

.home-page .sample .bookplate {
  margin-top: 0;
  padding: 8px 14px 10px;
}

/* The Prestige frame, smaller: its frame and likeness are measured from --crest (journal.css). */
.home-page .sample .bookplate {
  --crest: 6.25rem;
  column-gap: 0.875rem;
}

.home-page .sample .bookplate .more,
.home-page .sample .kept-since,
.home-page .sample .prestige,
.home-page .sample .xp-text,
.home-page .sample .catches,
.home-page .sample .catch-milestones,
.home-page .sample .character-details {
  font-size: 13px;
}

.home-page .sample .kept-since {
  margin-top: 0;
}

.home-page .sample .level {
  margin-top: 2px;
}

.home-page .sample .level-number {
  font-size: 40px;
  line-height: 0.95;
}

.home-page .sample .prestige {
  margin-top: 2px;
}

.home-page .sample .shown-title {
  margin-top: 2px;
  font-size: 19px;
}

.home-page .sample .ink-bar {
  height: 10px;
  margin: 6px 4px 2px;
}

.home-page .sample .leaders li {
  padding: 0;
}

.home-page .sample .catches {
  margin-top: 6px;
}

.home-page .sample .earned-titles .hand,
.home-page .sample .lately .hand {
  font-size: 17.5px;
  line-height: 1.12;
}

/* The earned titles on one line, as the prototype writes them: "Minnow · Dabbler · Line-Caster". */
.home-page .sample .earned-titles li {
  display: inline;
}

.home-page .sample .earned-titles li + li::before {
  content: " \00b7  ";
}

/* The wax seal at the prototype's size, its "13% Ledger" at 13.5 px; Hands on the Rod starts below it. */
.home-page .sample .wax-seal {
  top: 14px;
  right: 18px;
  width: 70px;
  height: 70px;
  font-size: 13.5px;
  line-height: 1.05;
}

.home-page .sample .page-right > .kicker {
  min-height: 52px;
  padding-right: 80px;
}

/* Waters and Legends carry no wax seal, so their kickers keep no room for one (journal.css). */
.home-page .sample .page-waters.page-right > .kicker,
.home-page .sample .page-legends.page-right > .kicker {
  min-height: 0;
  padding-right: 0;
}

.home-page .sample .brass-plate {
  font-size: 13.5px;
}

@media (min-width: 760px) {
  .home-page .sample .book {
    padding: 0.25rem 0 0.875rem 1rem;
  }

  .home-page .sample .book-head {
    padding: 0.125rem 1rem 0.375rem 0.5rem;
  }

  .home-page .sample .breadcrumbs {
    font-size: 15px;
  }

  .home-page .sample .as-of {
    font-size: 13.5px;
  }

  /* The ribbons' column is no taller than the pages, so it never sets the book's height. */
  .home-page .sample .ribbons {
    gap: 4px;
    padding-top: 12px;
  }

  .home-page .sample .ribbon {
    padding: 8px 4px;
    font-size: 12.5px;
  }

  /* As tall as the sample's Angler spread; every other spread scrolls inside its pages (journal.css). */
  .home-page .sample .spread {
    height: 470px;
  }

  .home-page .sample .page {
    min-height: 0;
    padding: 18px 24px 26px;
  }
}

.sample-caption {
  margin: 14px 0 0 18px;
  font-family: "Caveat", cursive;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--hand-red);
}

/* The sections below the opening. */
.home-section {
  padding-top: clamp(56px, 7vw, 96px);
}

.home-section > h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.8vw, 2.4rem);
  line-height: 1.1;
}

.addon-intro {
  max-width: 44rem;
}

.addon-intro h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.8vw, 2.4rem);
  line-height: 1.1;
}

.addon-intro p {
  max-width: 46ch;
  margin-top: 14px;
  font-size: 19px;
  color: var(--ink-small);
}

/* Already fishing?: the river's last leg, its words and stations on the left bank, the sample Journal beside them. */
.home-section.companion {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas:
    "words sample"
    "route sample";
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 4vw, 64px);
}

.home-section.companion.no-sample {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "words"
    "route";
}

.companion-words {
  grid-area: words;
  padding-left: calc(var(--bank) + 52px);
}

.companion h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.8vw, 2.4rem);
  line-height: 1.1;
}

.companion-words p {
  max-width: 46ch;
  margin-top: 14px;
  font-size: 19.5px;
  line-height: 1.5;
}

.companion-words .acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 22px;
}

.companion-words .paste {
  font-family: "Pagle Display", Georgia, serif;
  font-size: 17.5px;
}

/*
 * The FAQ (WEB-R85), Home's last section, which the band's FAQ link opens at. From 960 px the heading, its line and
 * the topics stand in a sticky column on the left, the questions on the right; below, they stack. Each question is
 * a native <details>, so it opens without a script (WEB-R2): its mark is a route medallion whose plus folds to a minus,
 * ringed in brass like the route's current station while it is open. Where the browser can animate to auto height,
 * an answer unfolds; everywhere else it simply shows.
 */
.home-section.faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding-bottom: clamp(56px, 7vw, 96px);
  scroll-margin-top: 8px;
}

.faq-head {
  position: sticky;
  top: 28px;
}

.faq-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.8vw, 2.4rem);
  line-height: 1.1;
}

.faq-head > p {
  max-width: 24rem;
  margin-top: 14px;
}

.faq-topics {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.faq-topics li + li {
  margin-top: 6px;
}

.faq-topics a {
  font-family: "Pagle Display", Georgia, serif;
  font-size: 18px;
  text-underline-offset: 0.3em;
}

.faq-group + .faq-group {
  margin-top: 44px;
}

.faq-group h3 {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink-rule);
  font-family: "Pagle Display", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-title);
  scroll-margin-top: 8px;
}

.faq-item {
  border-bottom: 1px solid rgba(196, 168, 116, 0.6);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  list-style: none;
  cursor: pointer;
  font-family: "Pagle Display", Georgia, serif;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink-title);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--hand-blue);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--hand-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.faq-mark {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 3px double var(--leather-trim);
  border-radius: 50%;
  background-color: var(--parchment-light);
  background-image: url("/assets/textures/fibres-3cdcac58cc40ad4e2861aa6175521627.svg"), radial-gradient(circle at 40% 35%, var(--parchment-light), #e9d6aa);
  box-shadow: 0 3px 7px -3px rgba(60, 30, 8, 0.5);
  transition: border-color 0.25s ease-out, box-shadow 0.25s ease-out;
}

.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  margin: -0.75px 0 0 -5px;
  background-color: var(--sepia-ink);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-mark::after {
  transform: rotate(90deg);
}

.faq-item summary:hover .faq-mark,
.faq-item[open] .faq-mark {
  border-color: var(--brass-dark);
}

.faq-item[open] .faq-mark {
  box-shadow: 0 0 0 3px rgba(232, 201, 106, 0.45), 0 3px 7px -3px rgba(60, 30, 8, 0.5);
}

.faq-item[open] .faq-mark::after {
  transform: rotate(0deg);
}

.faq-answer {
  max-width: 62ch;
  padding: 0 0 20px 48px;
}

.faq-answer p + p {
  margin-top: 10px;
}

@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq {
      interpolate-size: allow-keywords;
    }

    .faq-item::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), content-visibility 0.35s allow-discrete;
    }

    .faq-item[open]::details-content {
      block-size: auto;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-mark,
  .faq-mark::before,
  .faq-mark::after {
    transition: none;
  }
}

/* Below 960 px the head stacks over the questions and stops sticking. */
@media (max-width: 959.98px) {
  .home-section.faq {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }

  .faq-head {
    position: static;
  }

  .faq-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    margin-top: 16px;
  }

  .faq-topics li + li {
    margin-top: 0;
  }
}

@media (max-width: 719.98px) {
  .faq-item summary {
    gap: 12px;
    font-size: 18px;
  }

  .faq-mark {
    width: 28px;
    height: 28px;
  }

  .faq-answer {
    padding-left: 0;
  }
}

/*
 * See it in game (WEB-R80 item 3): right under the opening, and its mirror. The showcase stands on the left on the
 * promo's mat, as large as the promo; the heading and its line sit on the right, centred on the video (the bottom
 * padding offsets the caption under it), and the river rises under them in the room the film leaves (the first
 * station's source, below).
 */
.home-section.showcase {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "film words";
  column-gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.showcase-words {
  grid-area: words;
  align-self: center;
  padding-bottom: 33px;
}

.showcase-words h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.8vw, 2.4rem);
  line-height: 1.1;
}

.showcase-words > p {
  max-width: 34rem;
  margin-top: 14px;
}

.showcase-film {
  grid-area: film;
  min-width: 0;
  margin: 6px 0 0;
}

/* Below 1180 px, as the opening stacks: the words, then the showcase at full width. */
@media (max-width: 1179.98px) {
  .home-section.showcase {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "words"
      "film";
    row-gap: 24px;
  }

  .showcase-words {
    padding-bottom: 0;
  }
}

/*
 * The deck's timer: a thin ribbon-red line across the mat under the picture fills over each turn (5 s) and starts
 * again as the next shot comes in, so a visitor sees when the deck will turn. It runs only while the deck turns:
 * paused with it under the pointer or focus, gone once a ribbon is picked, and absent under reduced motion.
 */
.deck-timer {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .deck-timer {
    position: absolute;
    right: clamp(26px, 2.7vw, 38px);
    bottom: calc(clamp(8px, 0.9vw, 12px) / 2 - 1.5px);
    left: clamp(26px, 2.7vw, 38px);
    display: block;
    height: 3px;
    border-radius: 2px;
    background-color: rgba(196, 168, 116, 0.45);
    overflow: hidden;
    pointer-events: none;
  }

  .deck-timer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--ribbon);
    transform-origin: left center;
    animation: deck-timer 5s linear infinite;
  }

  .deck:hover .deck-timer::before,
  .deck:focus-within .deck-timer::before {
    animation-play-state: paused;
  }

  .pick:checked ~ .deck-timer {
    display: none;
  }
}

@keyframes deck-timer {
  from {
    scale: 0 1;
  }

  to {
    scale: 1 1;
  }
}

/*
 * A screenshot's lightbox (WEB-R84): a popover in the top layer, so it opens and closes with no script. The picture
 * on the plate's mat with its photo corners, as large as the viewport allows at 16:9, its station and place on the
 * mat's foot, over the page dimmed in warm dark and softly blurred. Close is a round parchment medallion with a drawn
 * cross, hanging over the mat's top right corner.
 */
.lightbox {
  width: min(94vw, calc((92dvh - 56px) * 16 / 9));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  overflow: visible;
  background: none;
  color: var(--ink);
  opacity: 0;
  scale: 0.97;
  transition: opacity 0.28s var(--ease-out), scale 0.28s var(--ease-out), overlay 0.28s allow-discrete,
    display 0.28s allow-discrete;
}

.lightbox:popover-open {
  opacity: 1;
  scale: 1;
}

@starting-style {
  .lightbox:popover-open {
    opacity: 0;
    scale: 0.97;
  }
}

.lightbox::backdrop {
  background-color: rgb(18 10 4 / 0);
  backdrop-filter: blur(0);
  transition: background-color 0.28s var(--ease-out), backdrop-filter 0.28s var(--ease-out),
    overlay 0.28s allow-discrete, display 0.28s allow-discrete;
}

.lightbox:popover-open::backdrop {
  background-color: rgb(18 10 4 / 0.74);
  backdrop-filter: blur(6px);
}

@starting-style {
  .lightbox:popover-open::backdrop {
    background-color: rgb(18 10 4 / 0);
    backdrop-filter: blur(0);
  }
}

.lightbox figure {
  position: relative;
  margin: 0;
  padding: clamp(8px, 1vw, 14px) clamp(8px, 1vw, 14px) 0;
  border-radius: 2px;
  background-color: var(--parchment-light);
  background-image: url("/assets/textures/fibres-3cdcac58cc40ad4e2861aa6175521627.svg");
  box-shadow: 0 0 0 1px rgba(138, 90, 42, 0.35), 0 30px 60px -24px rgba(0, 0, 0, 0.75);
}

.lightbox img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background-color: var(--leather-inner);
  box-shadow: 0 0 0 1px rgba(58, 38, 20, 0.5);
}

.lightbox figcaption {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 12px;
  padding: 10px 48px 12px;
  font-family: "Pagle Display", Georgia, serif;
  font-size: 17px;
  color: var(--ink-title);
}

.lightbox-count {
  color: var(--ink-kicker);
  font-size: 15px;
  font-variant-numeric: lining-nums tabular-nums;
}

.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 1;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 3px double var(--leather-trim);
  border-radius: 50%;
  background-color: var(--parchment-light);
  background-image: url("/assets/textures/fibres-3cdcac58cc40ad4e2861aa6175521627.svg"), radial-gradient(circle at 40% 35%, var(--parchment-light), #e9d6aa);
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.lightbox-close::before,
.lightbox-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  margin: -0.75px 0 0 -7px;
  background-color: var(--sepia-ink);
  rotate: 45deg;
}

.lightbox-close::after {
  rotate: -45deg;
}

.lightbox-close:hover {
  border-color: var(--brass-dark);
  box-shadow: 0 0 0 3px rgba(232, 201, 106, 0.45), 0 4px 10px -4px rgba(0, 0, 0, 0.6);
}

.lightbox-close:focus-visible {
  outline: 2px solid var(--gilt-light);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox::backdrop {
    transition: none;
  }
}

@media (max-width: 719.98px) {
  .lightbox-close {
    top: -12px;
    right: -6px;
  }
}

/*
 * The bobber rise (#208): as a station scrolls in, its bobber dips and rings the water, the plate grows up out of it,
 * and the words follow from the far side. Scroll-driven CSS only, where supported and motion is welcome; everywhere
 * else every part simply shows, and reduced motion drops every animation (above).
 */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reach .plate {
      transform-origin: 50% calc(100% + 44px);
      animation: plate-rise var(--ease-out) both;
      animation-timeline: --reach;
      animation-range: entry 20% cover 42%;
    }

    .reach .bobber {
      animation: bobber-dip linear both;
      animation-timeline: --reach;
      animation-range: entry 12% cover 40%;
    }

    .reach .bobber .ripple {
      animation: bobber-ripple linear both;
      animation-timeline: --reach;
      animation-range: entry 16% cover 44%;
    }

    .reach .words {
      animation: words-in var(--ease-out) both;
      animation-timeline: --reach;
      animation-range: entry 34% cover 46%;
    }

    .reach:nth-child(even) .words {
      animation-name: words-in-left;
    }
  }
}

@keyframes plate-rise {
  from {
    opacity: 0;
    scale: 0.1;
    translate: 0 6%;
    filter: blur(4px);
  }

  55% {
    opacity: 1;
    filter: blur(0);
  }

  to {
    opacity: 1;
    scale: 1;
    translate: 0 0;
    filter: none;
  }
}

@keyframes bobber-dip {
  0%,
  100% {
    translate: 0 0;
  }

  30% {
    translate: 0 7px;
  }

  55% {
    translate: 0 -2px;
  }
}

@keyframes bobber-ripple {
  0% {
    opacity: 0;
    scale: 0.4;
  }

  20% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    scale: 1.9;
  }
}

@keyframes words-in {
  from {
    opacity: 0;
    translate: 28px 0;
  }
}

@keyframes words-in-left {
  from {
    opacity: 0;
    translate: -28px 0;
  }
}

@media (max-width: 1179.98px) {
  .opening {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "pitch start"
      "promo promo";
    column-gap: 40px;
  }

  .addon-box {
    justify-self: end;
    width: 100%;
  }

  .promo {
    margin-top: 34px;
  }

  .home-section.companion {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "words"
      "route"
      "sample";
    grid-template-rows: auto;
  }

  .home-page .sample {
    margin-top: 40px;
  }

  .reach-source,
  .showcase + .addon .reach-source {
    height: 210px;
  }
}

/* Below 720 px the river runs straight down the left bank past every station. */
@media (max-width: 719.98px) {
  .home-section.addon,
  .home-section.companion {
    --bank: 28px;
  }

  .opening {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "pitch"
      "start"
      "promo";
  }

  .opening h1 {
    font-size: clamp(2.3rem, 10vw, 2.9rem);
  }

  .addon-box {
    max-width: none;
    margin-top: 26px;
  }

  .promo-caption {
    margin-left: 8px;
  }

  /* A station's words wait 28px to the side before they rise in; clip that, so the page never scrolls sideways. */
  .river-stations {
    overflow-x: clip;
  }

  .reach,
  .reach:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "float"
      "words";
    row-gap: 18px;
    padding: 24px 0 30px calc(var(--bank) + 30px);
  }

  .reach-river,
  .reach-source {
    display: none;
  }

  .deck-ribbons {
    left: auto;
    right: 6%;
  }

  .deck {
    margin-bottom: 46px;
  }

  .reach::before,
  .reach::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--bank);
  }

  .reach::before {
    width: 28px;
    margin-left: -14px;
    background-color: rgb(var(--water) / 0.5);
  }

  .reach::after {
    width: 1.5px;
    margin-left: -0.75px;
    background-image: repeating-linear-gradient(var(--ink-kicker) 0 7px, transparent 7px 14px);
  }

  .reach:first-child::before,
  .reach:first-child::after {
    -webkit-mask-image: linear-gradient(transparent, #000 40px);
    mask-image: linear-gradient(transparent, #000 40px);
  }

  /*
   * The plate spans the content's width over the river, back past the bank to the gutter, and crops its screenshot
   * to 4:3 around the shot's --focus (WEB-R84), so the addon's frames read on a phone. The bobber floats on the
   * bank just below it, where the river comes out from under the plate, without its line.
   */
  .reach .float {
    width: calc(100% + var(--bank) + 30px);
    margin-left: calc(-1 * (var(--bank) + 30px));
    padding-bottom: 0;
  }

  .reach .plate img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: var(--focus, 50% 50%);
  }

  .reach .bobber {
    top: auto;
    bottom: -48px;
    left: var(--bank);
    z-index: 2;
    width: 36px;
    margin: 0 0 0 -18px;
  }

  .reach .bobber .line {
    display: none;
  }

  .plate {
    rotate: calc(var(--tilt, -2deg) / 3);
  }

  .reach .words,
  .reach:nth-child(even) .words {
    justify-self: start;
    max-width: none;
  }

  .companion-words {
    padding-left: calc(var(--bank) + 30px);
  }

  .stations li {
    column-gap: 16px;
  }

  .stations .mark {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .btn-wax:hover,
  .home-page .btn-wax:active,
  .home-page .btn-brass:hover {
    transform: none;
  }
}

/* End of Home (#173, #208) ====================================================================================== */
