/* fictionanimated.com — the house medium on a web page: cream laid paper, a warm-black pen line,
   watercolour washes (library style:core/book@1.0 mattes, recoloured here), brass split pins.
   asset(<path under site/static>) is replaced by the fingerprinted URL at build time. */

@font-face { font-family: "Alegreya SC"; src: url("/assets/fonts/alegreya-sc-900.e6cb42c0ee.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya SC"; src: url("/assets/fonts/alegreya-sc-700.b84914c785.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("/assets/fonts/alegreya-400-700.6c9cec4a72.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("/assets/fonts/alegreya-italic-400.d55dae3b88.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --desk: #EFE3CB;
  --desk-2: #E6D6B8;
  --paper: #F6ECD8;
  --paper-2: #EEDFC2;
  --ink: #2A1F1A;
  --ink-2: #4E3F35;
  --ink-3: #6E5B4C;
  --line: rgba(42, 31, 26, .2);
  --on-desk: var(--ink);
  --on-desk-2: var(--ink-2);
  --vermilion: #C8452D;
  --vermilion-text: #A1311C;
  --brass: #D7A23A;
  --brass-2: #9E6B1E;
  --shine: #FFF3CF;
  --wash-sky: #8FB6C6;
  --wash-ochre: #D6AE6A;
  --shadow-rgb: 58, 38, 22;
  --paper-tint: #FFFFFF;      /* multiplied into every paper texture: white = as painted */
  --paper-kicker: #A1311C;    /* vermilion text on paper (5.5:1) */
  /* The keyboard focus ring: the text red, at 3:1 or more against the grained desk and the paper
     in both schemes (shots.mjs counts the ring's pixels that change by 3:1). */
  --focus: var(--vermilion-text);
  --paper-focus: var(--paper-kicker);
  --slip: #FBF3E2;
  --radius: 3px;
  --serif: "Alegreya", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sc: "Alegreya SC", "Alegreya", Georgia, serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --desk: #1A1512;
    --desk-2: #231C17;
    --on-desk: #EFE2C8;
    --on-desk-2: #CDBB9D;
    --line: rgba(239, 226, 200, .18);
    --vermilion: #D9593E;
    --vermilion-text: #F08A6C;
    --shadow-rgb: 0, 0, 0;
    --paper-tint: #D9CCB2;    /* lamp-lit paper on a dark desk */
    /* Lamp-lit paper is darker than the painted page, so vermilion on it goes deeper: 4.8:1 against
       the darkest tenth of the rendered texture (shots.mjs measures the pixels, not the base colour).
       Focus rings on paper follow it through --paper-focus. */
    --paper-kicker: #7A2211;
    --slip: #E2D6BE;
    --wash-sky: #7FA6B8;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-width: 320px;
  color: var(--on-desk);
  background: var(--desk) url("/assets/img/tex/paper-grain.75d67cb881.webp") 0 0 / 384px repeat;
  background-blend-mode: soft-light;
  font: 400 1.125rem/1.6 var(--serif);
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  overflow-x: hidden;
}
/* Every paper surface: a painted page texture multiplied by --paper-tint (lamp-lit in dark mode). */
.page, .plate, .map-page, .tale, .next, .tag, .lost-page, .brand-tab {
  background-color: var(--paper-tint);
  background-image: url("/assets/img/tex/page-left.e930f8a51d.webp");
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  color: var(--ink);
}
.page-right, .plate, .tag, .lost-page { background-image: url("/assets/img/tex/page-right.a6867d1cdd.webp"); }
/* Focus rings inside a paper surface sit on the paper (the tags and the brand tab ring the desk). */
.page, .plate, .map-page, .tale, .next, .lost-page { --focus: var(--paper-focus); }
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 .9em; }
h1, h2, h3 { margin: 0; font-weight: 700; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: .5em .9em; background: var(--paper); color: var(--ink); font-family: var(--sc); font-weight: 700; border: 2px solid var(--ink); }
.skip:focus { top: 12px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------------------------------------------------------------- the header: the wordmark tab */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  width: min(1240px, 100% - 32px); margin: 14px auto 0;
}
.brand-tab {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 8px;
  border-left: 5px solid var(--vermilion);
  box-shadow: 0 1px 0 rgba(42,31,26,.25), 0 6px 14px -8px rgba(var(--shadow-rgb), .5);
  text-decoration: none;
  transform: rotate(-.6deg);
}
.wordmark { font: 900 1.02rem/1 var(--sc); letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font: 700 1rem/1.2 var(--sc); letter-spacing: .03em; }
.nav a { text-decoration: none; padding: 6px 2px; color: var(--on-desk); border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--vermilion); }

/* The brand mark: the chibi Teller (static/mark, tools/make_mark.py, from the owner's own pose set
   prop:core/teller-chibi@1.0), the whole figure compact in a square on a clear ground: the tab's paper
   and the book's cloth show round him. Nothing in it moves (the retired stick figure swung its arm). */
.mark { flex: none; display: block; }
.mark img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 1px 1.2px rgba(var(--shadow-rgb), .35)); }
.brand-tab .mark { width: 40px; height: 40px; margin: -4px 0 -3px; transform: rotate(.6deg); } /* square to the pixels: the tab is tipped */

/* ---------------------------------------------------------------- the hero: the channel's open book */
.hero { width: min(1240px, 100% - 20px); margin: 22px auto 0; }
.book {
  position: relative;
  padding: 10px;
  border-radius: 8px;
  background: var(--cover) url("/assets/img/tex/cloth.698e15eab7.webp") center / 420px auto;
  background-blend-mode: multiply;
  box-shadow: 0 2px 0 rgba(0,0,0,.25), 0 30px 50px -24px rgba(var(--shadow-rgb), .65), 0 10px 18px -12px rgba(var(--shadow-rgb), .5);
}
/* The fore-edge: the stacked page edges under the open pages. */
.book::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 7px;
  background: repeating-linear-gradient(180deg, #efe1c3 0 1px, #d9c7a2 1px 2px);
  border-radius: 0 0 4px 4px; z-index: 0;
}
.pages { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; border-radius: 3px; overflow: hidden; }
.page { position: relative; }
.page-left { padding: 34px 22px 26px; }
.title {
  font: 900 clamp(2.7rem, 11vw, 5.6rem)/.92 var(--sc);
  letter-spacing: .005em;
  color: var(--ink);
  text-wrap: balance;
}
.title-rule { width: min(330px, 78%); height: 13px; margin: 14px 0 12px; fill: var(--vermilion); }
.tagline { font: italic 400 clamp(1.35rem, 4.6vw, 1.9rem)/1.2 var(--serif); color: var(--vermilion-text); margin-bottom: .8em; }
.page .tagline { color: var(--paper-kicker); }
.lede { font-size: 1.12rem; max-width: 34em; color: var(--ink); }
.sources { font-size: 1rem; color: var(--ink-2); max-width: 34em; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; }

.ink-link {
  font: 700 1.05rem/1.3 var(--sc); letter-spacing: .02em; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 2px;
}
.ink-link:hover { background-image: linear-gradient(var(--vermilion), var(--vermilion)); background-size: 100% 3px; }
.page .ink-link { color: var(--ink); }

.page-right { min-height: 420px; display: flex; align-items: flex-end; justify-content: center; padding: 16px 12px 18px; overflow: hidden; }
/* The gutter: fold shading where the two pages meet (on the right page's inner edge). */
.page-right::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 100%; height: 26px; pointer-events: none;
  background: linear-gradient(180deg, rgba(90,60,30,.22), rgba(90,60,30,0));
}
.bloom {
  position: absolute; left: 50%; top: 50%; width: min(110%, 520px); aspect-ratio: 1; translate: -50% -52%;
  background: var(--wash-sky);
  -webkit-mask: url("/assets/img/tex/bloom.0f6df0dbd1.webp") center / contain no-repeat; mask: url("/assets/img/tex/bloom.0f6df0dbd1.webp") center / contain no-repeat;
  opacity: .5;
}
.teller { position: relative; height: min(380px, 92vw); max-width: 100%; }
.teller::after { /* the ground shadow under his boots */
  content: ""; position: absolute; left: 12%; right: 16%; bottom: -1.5%; height: 4%;
  background: radial-gradient(closest-side, rgba(58,38,22,.38), rgba(58,38,22,0));
  z-index: -1;
}
.teller .l { position: absolute; inset: 0; }
.teller .l-head, .teller .l-neck { position: absolute; inset: 0; }
.teller img { width: 100%; height: 100%; }
.l-blink { position: absolute; inset: 0; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .l-head, .l-neck { animation: t-head 9s ease-in-out infinite; }
  .l-fore { animation: t-fore 7s cubic-bezier(.45,.05,.35,1) infinite; }
  .l-blink { animation: t-blink 5.3s steps(1, end) infinite; }
  .teller { animation: t-breathe 4.6s ease-in-out infinite; transform-origin: 50% 100%; }
}
@keyframes t-head { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-2.4deg); } 62% { transform: rotate(1.6deg); } }
@keyframes t-fore {
  0%, 52%, 100% { transform: rotate(0); } 12% { transform: rotate(-9deg); } 22% { transform: rotate(3.5deg); }
  30% { transform: rotate(-1.8deg); } 38% { transform: rotate(.8deg); } 46% { transform: rotate(0); }
}
@keyframes t-blink { 0% { opacity: 0; } 94% { opacity: 1; } 96.5% { opacity: 0; } }
@keyframes t-breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.006); } }

/* The paper slip pinned to the page: his one line. */
.slip {
  position: absolute; top: 22px; right: 18px; margin: 0; z-index: 2;
  padding: 10px 16px 10px 20px;
  background: var(--slip); color: var(--ink);
  font: italic 400 1.15rem/1.2 var(--serif);
  box-shadow: 0 1px 0 rgba(42,31,26,.3), 0 8px 14px -8px rgba(58,38,22,.55);
  transform: rotate(2.2deg);
  clip-path: polygon(0 3%, 3% 0, 34% 2%, 62% 0, 100% 1%, 99% 52%, 100% 100%, 70% 98%, 38% 100%, 2% 99%, 1% 48%);
}
.slip::before { /* its brass pin */
  content: ""; position: absolute; left: 7px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--shine) 0 18%, var(--brass) 30% 62%, var(--brass-2) 78%);
  box-shadow: 0 0 0 1px var(--ink);
}

@media (min-width: 720px) {
  .book { padding: 12px 12px 16px; }
  .pages { grid-template-columns: 1.14fr 1fr; }
  .page-left { padding: clamp(36px, 6vw, 76px) clamp(26px, 5vw, 70px) 40px; display: flex; flex-direction: column; justify-content: center; }
  .title { font-size: clamp(2.9rem, 6.6vw, 5.6rem); }
  .lede { font-size: 1.08rem; }
  .page-right { min-height: clamp(520px, 50vw, 640px); padding: 30px 14px 26px; }
  .page-right::before { width: 64px; height: auto; background: linear-gradient(90deg, rgba(80,52,26,.34), rgba(80,52,26,.1) 40%, rgba(80,52,26,0)); }
  .page-left::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 56px; pointer-events: none; background: linear-gradient(270deg, rgba(80,52,26,.3), rgba(80,52,26,.08) 45%, rgba(80,52,26,0)); }
  .teller { height: min(560px, 60vw); }
  .slip { top: 30px; right: 20px; }
}
@media (min-width: 1100px) { .slip { top: 44px; right: 34px; font-size: 1.3rem; } }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(56px, 9vw, 104px) 0 0; }
.eyebrow { font: 700 .98rem/1.3 var(--sc); letter-spacing: .06em; color: var(--on-desk-2); margin-bottom: 10px; }
.section-title {
  position: relative; display: inline-block;
  font: 900 clamp(2rem, 6vw, 3.1rem)/1.02 var(--sc); letter-spacing: .005em;
  padding-bottom: 12px; margin-bottom: 14px;
}
.section-title::after { /* a vermilion wash stroke under the heading */
  content: ""; position: absolute; left: -6px; bottom: 0; width: min(280px, 90%); height: 16px;
  background: var(--vermilion); opacity: .72;
  -webkit-mask: url("/assets/img/tex/wash-stroke.55f5437fa0.webp") left center / 100% 100% no-repeat; mask: url("/assets/img/tex/wash-stroke.55f5437fa0.webp") left center / 100% 100% no-repeat;
}
.section-intro { max-width: 40em; color: var(--on-desk-2); font-size: 1.14rem; margin-bottom: 28px; }
.dot { padding: 0 .2em; }

/* A picture tipped onto a page: cream mat, ink rule, two brass pins. */
.plate {
  position: relative;
  padding: 10px;
  box-shadow: 0 1px 0 rgba(42,31,26,.3), 0 18px 30px -18px rgba(var(--shadow-rgb), .6), 0 4px 10px -6px rgba(var(--shadow-rgb), .4);
  transform: rotate(-.7deg);
}
.plate-sm { transform: rotate(.6deg); padding: 8px; }
.pin-corner {
  position: absolute; top: -6px; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, var(--shine) 0 14%, var(--brass) 28% 58%, var(--brass-2) 80%);
  box-shadow: 0 0 0 1.5px var(--ink), 2px 3px 3px rgba(42,31,26,.35);
}
.pin-a { left: 18px; } .pin-b { right: 18px; }

.yt { position: relative; display: block; aspect-ratio: 16 / 9; background: #20180f; outline-offset: 4px; box-shadow: 0 0 0 1px rgba(42,31,26,.7); }
.yt picture, .yt img { width: 100%; height: 100%; object-fit: cover; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { /* a big brass pin head with an ink play mark */
  position: absolute; left: 50%; top: 50%; width: clamp(58px, 11%, 84px); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, var(--shine) 0 9%, var(--brass) 26% 58%, var(--brass-2) 84%);
  box-shadow: 0 0 0 3px var(--ink), 0 10px 18px -6px rgba(0,0,0,.6);
  transition: transform .25s cubic-bezier(.2,.7,.3,1.4), box-shadow .25s;
}
.yt-play::after { content: ""; position: absolute; left: 39%; top: 29%; width: 32%; height: 42%; background: var(--ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.yt:hover .yt-play, .yt:focus-visible .yt-play { transform: scale(1.09) rotate(-6deg); box-shadow: 0 0 0 3px var(--ink), 0 16px 22px -8px rgba(0,0,0,.65); }
.yt.is-playing .yt-play { display: none; }
/* A playing video is not tipped: the plate squares up while its player is in it (site.js marks the
   plate too, for a browser without :has). shots.mjs checks it after click-to-play. */
.plate:has(.yt.is-playing), .plate.is-playing { transform: none; }

/* ---------------------------------------------------------------- the latest tale */
.feature { display: grid; gap: 28px; margin-top: 8px; }
.feature-text { max-width: 36em; }
.kicker { font: 700 1.05rem/1.2 var(--sc); letter-spacing: .05em; color: var(--vermilion-text); margin-bottom: 6px; }
.feature-title { font: 900 clamp(1.8rem, 4.4vw, 2.5rem)/1.06 var(--sc); margin-bottom: 12px; text-wrap: balance; }
.era { font: italic 400 1.2rem/1.35 var(--serif); color: var(--on-desk-2); margin-bottom: 12px; }
.ribbon { display: inline-flex; align-items: center; gap: 8px; font: 700 .98rem/1.3 var(--sc); letter-spacing: .03em; color: var(--on-desk-2); }
.ribbon-swatch { /* a scrap of the series' book cloth with its gilt band */
  width: 26px; height: 14px; flex: none; border-radius: 1px;
  background: linear-gradient(90deg, transparent 0 62%, var(--accent) 62% 72%, transparent 72%), var(--cover) url("/assets/img/tex/cloth.698e15eab7.webp") center / 120px auto;
  background-blend-mode: normal, multiply;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35);
}
.hook { font-size: 1.2rem; line-height: 1.55; }
.credit { font-size: .98rem; line-height: 1.5; color: var(--on-desk-2); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; }
.credit a { text-underline-offset: 2px; }
.credit-label { font: 700 .92rem/1 var(--sc); letter-spacing: .05em; color: var(--on-desk); margin-right: .25em; }
.watch { margin-top: 16px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 52px; align-items: center; }
}

/* ---------------------------------------------------------------- the map page */
.map-page {
  position: relative;
  padding: clamp(14px, 3vw, 34px) clamp(10px, 3vw, 34px) clamp(16px, 3vw, 28px);
  box-shadow: 0 1px 0 rgba(42,31,26,.3), 0 24px 40px -26px rgba(var(--shadow-rgb), .7);
  border-radius: 2px;
}
.map-frame { position: relative; overflow: hidden; aspect-ratio: 2 / 1; }
.map { position: relative; aspect-ratio: 1812 / 888.1; width: 160%; margin-left: calc(-1 * var(--map-shift, 30%)); margin-top: calc(-1 * var(--map-shift-y, 0%)); }
@media (min-width: 720px) { .map-frame { aspect-ratio: auto; } .map { width: 100%; margin: 0; } }
@media (min-width: 1024px) {
  .map-page { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 30px; align-items: center; }
  .map-page .map-key { grid-template-columns: 1fr; margin: 0; gap: 18px; }
}
.map-sea, .map-land { position: absolute; inset: 0; }
.map-sea {
  background: url("/assets/img/tex/sea.bb4d8ff59d.webp") 0 0 / 34% auto repeat;
  -webkit-mask: url("/assets/img/map/sphere.bf6ef6f8d0.svg") 0 0 / 100% 100% no-repeat; mask: url("/assets/img/map/sphere.bf6ef6f8d0.svg") 0 0 / 100% 100% no-repeat;
  opacity: .62;
}
.map-land {
  background: url("/assets/img/tex/land.d81fc105dc.webp") 0 0 / 30% auto repeat;
  -webkit-mask: url("/assets/img/map/land.38dae04618.svg") 0 0 / 100% 100% no-repeat; mask: url("/assets/img/map/land.38dae04618.svg") 0 0 / 100% 100% no-repeat;
  opacity: .8;
  filter: saturate(.82);
}
.map-ink { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; z-index: 2; display: block; width: 0; height: 0; text-decoration: none; color: var(--ink); }
.pin-head {
  position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, var(--shine) 0 14%, var(--brass) 28% 58%, var(--brass-2) 82%);
  box-shadow: 0 0 0 1.6px var(--ink), 3px 4px 4px rgba(42,31,26,.4);
  display: grid; place-items: center;
}
.pin-n { font: 900 .62rem/1 var(--sc); color: var(--ink); }
.pin-next .pin-head { background: var(--slip); box-shadow: 0 0 0 1.6px var(--ink), 0 0 0 5px rgba(247,238,221,.7); }
.pin-label { display: none; }
.pin:hover .pin-head, .pin:focus-visible .pin-head { transform: scale(1.15); }
/* A pin is a 0 x 0 anchor at its place, so an outline on it would hide under its own head: the
   focus is a ring round the head instead (and an outline on its label where the label shows). */
.pin:focus-visible { outline: 0; }
.pin::before { /* a red ring with an ink edge (3:1 on any wash of the map), a paper gap round the head */
  content: ""; position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%;
  border: 4px solid var(--focus); box-shadow: 0 0 0 1.5px var(--ink), inset 0 0 0 2px var(--slip);
  opacity: 0; pointer-events: none;
}
.pin:focus-visible::before { opacity: 1; }
.map-key { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px 26px; }
.map-key li { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; line-height: 1.35; }
.key-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.key-n {
  flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center;
  font: 900 .72rem/1 var(--sc); color: var(--ink);
  background: radial-gradient(circle at 36% 30%, var(--shine) 0 14%, var(--brass) 28% 58%, var(--brass-2) 82%);
  box-shadow: 0 0 0 1.5px var(--ink);
}
.key-next .key-n { background: var(--slip); }
.map-key a { font: 700 1.05rem/1.25 var(--sc); letter-spacing: .02em; text-decoration: none; }
.map-key a:hover { text-decoration: underline; text-decoration-color: var(--vermilion); text-underline-offset: 3px; }
.key-place { font-style: italic; color: var(--ink-2); }
@media (min-width: 720px) {
  .map-key { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .pin-n { display: none; }
  .pin-label {
    display: block; position: absolute; top: -15px; white-space: nowrap;
    padding: 5px 10px 5px; background: var(--slip);
    font: 700 .95rem/1.1 var(--sc); letter-spacing: .03em;
    box-shadow: 0 0 0 1px rgba(42,31,26,.55), 0 6px 10px -6px rgba(42,31,26,.5);
  }
  .pin-label small { font: italic 400 .88rem/1 var(--serif); letter-spacing: 0; color: var(--ink-2); margin-left: .45em; }
  .pin-right .pin-label { left: 16px; border-left: 3px solid var(--vermilion); }
  .pin-left .pin-label { right: 16px; border-right: 3px solid var(--vermilion); }
  .pin-below .pin-label, .pin-above .pin-label { left: 0; translate: -50% 0; border-top: 3px solid var(--vermilion); }
  .pin-below .pin-label { top: 14px; }
  .pin-above .pin-label { top: auto; bottom: 14px; }
  .pin-next .pin-label { border-color: var(--ink-3); border-style: dashed; }
  .pin:focus-visible .pin-label { outline: 3px solid var(--focus); outline-offset: 2px; }
}
@media (prefers-reduced-motion: no-preference) {
  .pin-head { transition: transform .2s; }
  .js .map:not(.is-seen) .pin-head { opacity: 0; }
  .map.is-seen .pin-head { animation: pin-drop .7s cubic-bezier(.3,.6,.4,1.3) both; }
  .map.is-seen .pin:nth-of-type(2) .pin-head { animation-delay: .25s; }
  .map.is-seen .pin:nth-of-type(3) .pin-head { animation-delay: .5s; }
  .map.is-seen .pin:nth-of-type(4) .pin-head { animation-delay: .75s; }
}
@keyframes pin-drop {
  0% { transform: translateY(-60px) scale(1.8); opacity: 0; box-shadow: 0 0 0 1.6px var(--ink), 20px 50px 12px rgba(42,31,26,0); }
  70% { transform: translateY(0) scale(1); opacity: 1; }
  82% { transform: rotate(6deg); } 92% { transform: rotate(-3deg); } 100% { transform: none; }
}

/* ---------------------------------------------------------------- from the book: tale cards */
/* Cards in a row share its height (a short card beside a tall one left a hole of bare paper under it,
   reviewed at 1440 px). A card alone gets one track of its own, on the section's left edge with the
   heading, instead of half a row with an empty half beside it (and not the whole row: a lone card
   1180 px wide is mostly bare paper). shots.mjs checks both at every width (tools/a11y.mjs layoutCheck). */
.tale-grid { display: grid; gap: 30px; }
@media (min-width: 900px) {
  .tale-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; align-items: stretch; }
  .tale-grid:has(> :only-child) { grid-template-columns: minmax(0, 860px); }
  /* Beside a tale card, the next card stands its closed book above the words, as a tale shows its
     plate above them, and centres the two in the height the row gives it. */
  .tale-grid:has(> :nth-child(2)) .next { grid-template-columns: minmax(0, 1fr); align-content: center; }
  .tale-grid:has(> :nth-child(2)) .next .cover { width: min(210px, 52%); justify-self: center; }
}
.tale, .next {
  position: relative;
  padding: 18px 18px 20px 30px;
  box-shadow: 0 1px 0 rgba(42,31,26,.3), 0 22px 36px -24px rgba(var(--shadow-rgb), .7);
  border-radius: 2px;
}
.spine { /* the book's cloth down the card's left edge, with gilt bands */
  position: absolute; left: 0; top: 0; bottom: 0; width: 14px;
  background:
    linear-gradient(180deg, transparent 0 10%, var(--accent) 10% calc(10% + 2px), transparent calc(10% + 2px) calc(10% + 6px), var(--accent) calc(10% + 6px) calc(10% + 8px), transparent calc(10% + 8px) calc(90% - 8px), var(--accent) calc(90% - 8px) calc(90% - 6px), transparent calc(90% - 6px) calc(90% - 2px), var(--accent) calc(90% - 2px) 90%, transparent 90%),
    var(--cover) url("/assets/img/tex/cloth.698e15eab7.webp") center / 160px auto;
  background-blend-mode: normal, multiply;
  box-shadow: inset -2px 0 3px rgba(0,0,0,.3);
}
.tale .plate { margin-bottom: 18px; }
.tale-title { font: 900 clamp(1.45rem, 3.6vw, 1.85rem)/1.08 var(--sc); margin-bottom: 8px; text-wrap: balance; }
.tale .kicker, .next .kicker { color: var(--paper-kicker); }
.tale .era, .next .era, .tale .ribbon, .next .ribbon, .tale .credit, .next .credit, .tale .meta, .next .meta, .tale .eyebrow, .next .eyebrow { color: var(--ink-2); }
.tale .credit-label, .next .credit-label { color: var(--ink); }
.meta { font-size: 1rem; margin-bottom: 10px; }
.tale .hook { font-size: 1.1rem; }
.tale .credit, .next .credit { border-top-color: rgba(42,31,26,.2); }
.next { display: grid; grid-template-columns: minmax(136px, min(34%, 190px)) minmax(0, 1fr); gap: clamp(16px, 3vw, 28px); align-items: start; }
/* On a phone the closed book stands above the words, wide enough for its title to stay large text. */
@media (max-width: 559px) { .next { grid-template-columns: minmax(0, 1fr); } .cover { width: min(160px, 58%); } }
.cover { /* the next series' book, closed: its cloth, a blind double rule, the title stamped in its accent */
  position: relative; aspect-ratio: 2 / 3; margin-top: 6px; container-type: inline-size;
  padding: 11% 10%;
  background: var(--cover) url("/assets/img/tex/cloth.698e15eab7.webp") center / 360px auto;
  background-blend-mode: multiply;
  border-radius: 3px 8px 8px 3px;
  box-shadow: inset 12px 0 10px -8px rgba(0,0,0,.45), inset -1px 0 0 rgba(255,255,255,.12), 0 16px 26px -16px rgba(var(--shadow-rgb), .75), 0 2px 0 #d9c7a2, 0 4px 0 #bda882;
  transform: rotate(-1.2deg);
}
.cover-frame {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10%;
  border: 1.5px solid color-mix(in srgb, var(--on-cover) 55%, transparent); outline: 1.5px solid color-mix(in srgb, var(--on-cover) 35%, transparent); outline-offset: 5px;
  text-align: center; padding: 6%;
}
/* Never below 18.7 px at 900: large text, which the series colours are chosen for (3:1, build test). */
.cover-title { font: 900 clamp(1.17rem, 13.5cqi, 1.45rem)/1.08 var(--sc); color: var(--on-cover); letter-spacing: .02em; text-wrap: balance; }
.cover-mark .mark { width: clamp(40px, 34cqi, 48px); height: auto; }
.next .tale-title { margin-top: 2px; }
.next-body { max-width: 40em; }
.next .when { margin-bottom: 8px; }

/* ---------------------------------------------------------------- find the tales */
.channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.tag {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 14px 16px 14px 42px; min-height: 64px; justify-content: center;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(42,31,26,.3), 0 12px 20px -14px rgba(var(--shadow-rgb), .7);
  transition: transform .2s;
}
.channels li:nth-child(odd) .tag { transform: rotate(-.8deg); }
.channels li:nth-child(even) .tag { transform: rotate(.7deg); }
.tag:hover, .tag:focus-visible { transform: translateY(-2px) rotate(0); }
.tag-pin {
  position: absolute; left: 15px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, var(--shine) 0 14%, var(--brass) 28% 58%, var(--brass-2) 82%);
  box-shadow: 0 0 0 1.5px var(--ink), 2px 3px 3px rgba(42,31,26,.35);
}
.tag-name { font: 900 1.2rem/1.1 var(--sc); letter-spacing: .02em; }
.tag-handle { font-size: 1rem; color: var(--ink-2); }
.letters { margin-top: 26px; font-size: 1.12rem; }
.letters .ink-link { font-family: var(--serif); font-weight: 700; letter-spacing: 0; }

/* ---------------------------------------------------------------- the end of the page
   No footer (owner, 2026-09-25): the page ends with "Find the tales" and a clean margin of paper. */
.find { padding-bottom: clamp(72px, 11vw, 132px); }

/* ---------------------------------------------------------------- 404 */
.lost { width: min(760px, 100% - 32px); margin: 48px auto clamp(72px, 11vw, 132px); }
.lost-page {
  position: relative; overflow: hidden;
  padding: clamp(40px, 8vw, 80px) clamp(24px, 6vw, 60px);
  box-shadow: 0 1px 0 rgba(42,31,26,.3), 0 24px 40px -26px rgba(var(--shadow-rgb), .7);
}
.lost-page .section-title { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.lost-page .ink-link { color: var(--ink); }
.blot {
  position: absolute; right: -40px; top: -30px; width: 260px; aspect-ratio: 480 / 432; opacity: .16; background: var(--ink);
  -webkit-mask: url("/assets/img/tex/wash-round.60a055695d.webp") center / contain no-repeat; mask: url("/assets/img/tex/wash-round.60a055695d.webp") center / contain no-repeat;
}

/* Print: the words and the credits, no chrome. */
@media print {
  body::before, .top, .teller, .bloom, .slip, .yt-play, .map { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Journal and reading pages reuse the book's paper and ink. */
.reading-wrap { width: min(1180px, 100% - 32px); margin: 64px auto 90px; }
.journal-heading { max-width: 780px; margin-bottom: 42px; }
.journal-heading .section-title { margin-bottom: 22px; }
.journal-lede { font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.3; }
.journal-paper, .story-paper {
  background: var(--paper-tint) url("/assets/img/tex/page-left.e930f8a51d.webp") center / 100% auto;
  background-blend-mode: multiply; color: var(--ink); --focus: var(--paper-focus);
  box-shadow: 0 2px 3px rgba(var(--shadow-rgb), .15), 0 12px 35px -16px rgba(var(--shadow-rgb), .5);
  border: 1px solid rgba(42,31,26,.22); border-radius: 2px;
}
.journal-paper { padding: 28px clamp(20px, 4vw, 48px) 34px; }
.journal-count { font: 700 .95rem var(--sc); letter-spacing: .07em; padding-bottom: 18px; border-bottom: 1px solid rgba(42,31,26,.25); }
.journal-entry { display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(220px, 32%); gap: 26px; padding: 24px 0; align-items: start; }
.journal-entry + .journal-entry { border-top: 1px solid rgba(42,31,26,.25); }
.entry-number { font: 400 2.3rem/1 var(--serif); color: var(--ink-3); }
.entry-copy h2 { font: 900 clamp(1.75rem, 3vw, 2.6rem)/1.1 var(--sc); margin-bottom: 20px; }
.entry-copy h2 a { text-decoration-thickness: 1px; text-underline-offset: .15em; }
.journal-paper .eyebrow, .story-paper .eyebrow, .story-paper .kicker { color: var(--paper-kicker); }
.story-paper .era, .story-paper .credit { color: var(--ink-2); }
.story-paper .credit-label { color: var(--ink); }
.story-paper .credit { border-top-color: rgba(42,31,26,.25); }
.entry-picture { display: block; border: 5px solid var(--paper-2); box-shadow: 0 2px 6px #2a1f1a30; margin-top: 4px; }
.entry-picture img { width: 100%; height: auto; }
.entry-meta { font-size: 1rem; color: var(--ink-2); }
.entry-links { display: flex; gap: 14px 26px; flex-wrap: wrap; margin-bottom: 0; }
.reading-breadcrumb { display: flex; gap: 14px; margin: -22px 0 24px; font-size: 1rem; }
.story-paper { max-width: 960px; margin-inline: auto; padding: clamp(26px, 6vw, 72px) clamp(22px, 7vw, 100px); }
.story-heading { text-align: center; padding-bottom: 28px; border-bottom: 1px solid rgba(42,31,26,.3); margin-bottom: 36px; }
.story-heading h1 { font: 900 clamp(2.6rem, 6vw, 4.8rem)/1.05 var(--sc); margin: 18px 0 24px; text-wrap: balance; }
.story-deck { font-size: clamp(1.3rem, 2.5vw, 1.65rem); line-height: 1.45; }
.story-prose { font-size: clamp(1.18rem, 2vw, 1.35rem); line-height: 1.8; }
.story-prose p { margin-bottom: 1.25em; }
.teller-note { font-style: italic; }
.teller-note p:first-child::first-letter { float: left; font: 900 3.4em/.86 var(--sc); margin: .1em .09em 0 0; }
.reading-note { border-left: 3px solid var(--paper-kicker); padding: 5px 0 5px 20px; margin: 34px 0; font-size: 1rem; color: var(--ink-2); }
.reading-note p:last-child { margin-bottom: 0; }
.story-contents { padding: 18px 0; border-block: 1px solid rgba(42,31,26,.3); margin: 30px 0 42px; }
.story-contents summary { cursor: pointer; font: 700 1.2rem var(--sc); padding: 5px; }
.story-contents ol { padding-left: 1.6em; margin-bottom: 0; }
.story-contents li { padding: 5px 0; }
.story-chapter { scroll-margin-top: 24px; margin-top: 42px; }
.story-chapter h2, .story-closing h2 { font: 900 clamp(1.8rem, 4vw, 2.45rem)/1.2 var(--sc); margin-bottom: 24px; }
.story-chapter .kicker { font-size: .85rem; margin-bottom: 8px; }
.story-closing { margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(42,31,26,.3); }
.teller-signature { font-style: italic; text-align: right; }
.story-source { border-top: 1px solid rgba(42,31,26,.3); margin-top: 32px; padding-top: 28px; }
.story-source h2 { font: 700 1.4rem var(--sc); margin-bottom: 14px; }
.story-source .credit { font-size: 1rem; }
.reading-return { max-width: 960px; margin: 32px auto 0; }
.nav a[aria-current="page"] { border-bottom-color: var(--vermilion); }
@media (max-width: 760px) {
  .reading-wrap { margin-top: 42px; }
  .journal-entry { grid-template-columns: 1fr; gap: 16px; }
  .entry-number { display: none; }
  .entry-picture { grid-row: 1; max-width: 480px; }
  .journal-paper { padding: 24px 22px; }
  .reading-breadcrumb { margin-top: 0; }
}
@media print {
  .reading-breadcrumb, .reading-return, .story-contents { display: none; }
  .story-paper { background: white; box-shadow: none; border: 0; padding: 0; }
  .story-chapter h2 { break-after: avoid; }
}

/* The map's existing sheet of paper and numbered key stay in their original layout. */
.paper-globe { position: relative; min-width: 0; color: var(--ink); text-align: center; }
.globe-object { position: relative; width: min(100%, 490px); aspect-ratio: 1; margin: 0 auto; isolation: isolate; overflow: hidden; border-radius: 3px; }
.globe-object::before { content: ""; position: absolute; z-index: -1; width: 68%; height: 6%; left: 16%; bottom: 1%; background: radial-gradient(ellipse, rgba(70,47,21,.24), transparent 70%); }
.globe-poster, .globe-canvas { display: block; width: 100%; height: 100%; user-select: none; }
.globe-canvas { display: none; position: absolute; inset: 0; }
.globe-ready .globe-canvas { display: block; }
.globe-ready .globe-poster { visibility: hidden; }
.globe-ready .globe-object { touch-action: none; cursor: grab; }
.globe-ready .globe-object:focus-visible { outline: 3px solid #2A1F1A; outline-offset: 4px; box-shadow: 0 0 0 2px #F6ECD8; }
.globe-ready .globe-object.is-dragging { cursor: grabbing; }
.globe-pin { position: absolute; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; transform: translate(-50%, -50%); text-decoration: none; border-radius: 50%; }
.globe-pin[hidden] { display: none; }
.globe-pin-head { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #2A1F1A; font: 900 .9rem/1 var(--sc); background: radial-gradient(circle at 34% 27%, #FFF1BF 0 10%, #D5B55E 34% 61%, #927139 92%); box-shadow: 0 0 0 1.7px #2A1F1A, 2px 3px 4px rgba(42,31,26,.45); }
.globe-pin-next .globe-pin-head { background: #F4E7CC; box-shadow: 0 0 0 1.7px #2A1F1A, 0 0 0 5px rgba(247,238,221,.55); }
.globe-pin:focus-visible { outline: 4px solid #2A1F1A; outline-offset: 2px; box-shadow: 0 0 0 2px #F6ECD8; background: rgba(246,236,216,.96); }
.globe-pin:hover .globe-pin-head { box-shadow: 0 0 0 2px #2A1F1A, 0 0 0 5px rgba(247,238,221,.75); }
.globe-hint[hidden], .globe-panel[hidden] { display: none; }
.globe-panel { position: absolute; z-index: 5; width: min(300px, calc(100% - 24px)); padding: 19px 22px 20px; text-align: left; color: #2A1F1A; background: #F6ECD8 url("/assets/img/tex/page-right.a6867d1cdd.webp") center / cover; border: 1px solid #6D5B43; border-radius: 2px; box-shadow: 0 8px 18px rgba(42,31,26,.25); }
.globe-panel h3 { color: #2A1F1A; font: 900 1.25rem/1.15 var(--sc); margin: 0 25px 8px 0; }
.globe-panel-kicker { color: #7A2211; font: 700 .78rem/1.2 var(--sc); letter-spacing: .045em; margin: 0 20px 5px 0; }
.globe-panel-place { color: #514333; font: italic 400 1rem/1.3 var(--serif); margin: 0 0 12px; }
.globe-panel-close { position: absolute; right: 1px; top: 1px; min-width: 44px; min-height: 44px; padding: 0; background: transparent; border: 0; color: #2A1F1A; font: 400 1.8rem/1 var(--serif); cursor: pointer; }
.globe-panel-links { display: flex; flex-wrap: wrap; gap: 7px 20px; }
.globe-panel-links a { color: #7A2211; font: 700 1rem/1.25 var(--serif); text-underline-offset: 3px; }
.globe-panel :is(a,button):focus-visible { outline: 3px solid #7A2211; outline-offset: 3px; }
.globe-hint { color: #514333; font: italic 400 .9rem/1.3 var(--serif); margin: 9px 0 0; }
@media (min-width: 1024px) { .paper-globe { padding-right: 10px; } }
@media print { .globe-canvas, .globe-panel, .globe-hint { display: none !important; } .globe-poster { visibility: visible !important; } }

/* generated by build.mjs: series books, the Teller's joints, map pins */
.book-default{--cover:#312e3d;--accent:#c9a24c;--on-cover:#c9a24c}
.book-water-margin-i-the-flowery-monk{--cover:#a13e2f;--accent:#dcc58e;--on-cover:#F3E6CC}
.book-greek-heroes{--cover:#3f76a4;--accent:#ece2c9;--on-cover:#F3E6CC}
.teller{aspect-ratio:552/1120}
.l-head,.l-neck{transform-origin:36.902% 23.402%}
.l-fore{transform-origin:28.641% 41.402%}
.l-front,.l-back{transform-origin:38.297% 98.393%}
.pin-at-003-jianghu-lu-da{left:74.267%;top:23.965%}
.pin-at-005-theseus-minotaur{left:53.812%;top:24.132%}
.map{--map-shift:52.46%;--map-shift-y:0.00%}
.globe-at-003-jianghu-lu-da{left:74.3902%;top:35.8423%}
.globe-at-005-theseus-minotaur{left:25.4502%;top:35.9958%}
