/* The Raventhorn Chronicle — raventhorn site (v3: full width, like litmancer.com).
   One world on purpose (no dark theme): parchment bands edge to edge; the header bar is the
   candle-lit stone of the office's pillars, and so is the footer; the invitation card runs edge
   to edge like the masthead.
   Fonts: Cormorant Garamond + Cinzel, self-hosted (OFL, same files as litmancer.com).
   The blackletter titles, masthead, seal and frames are the approved art, lifted off its
   parchment so it sits on this page's paper. */

@font-face {
  font-family: "Cinzel";
  src: url("assets/fonts/cinzel-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* how tall the Archives scroll's torn top/bottom edges are drawn (the berries sit just above it) */
  --edge-y: clamp(18px, 2.9vw, 48px);
  /* paper */
  --paper: #efdcba;
  --paper-light: #f4e6c9;
  --paper-deep: #e2c697;
  /* ink */
  --ink: #2f1d14;
  --ink-soft: #5b3f2e;
  --crimson: #6c111a;
  --crimson-deep: #4b0a11;
  --rule: #7b2a24;
  /* gold */
  --gold: #c8963c;
  --gold-light: #f2d38e;
  --gold-dark: #7d5519;
  --gold-line: #b8893d;
  /* header bar + footer colour, and the text on it (the top bar crest follows the text colour).
     Trying out (4 Dec): #302b36 with #ecdcb8 text (10:1), the same colour as the buttons' plate and
     the Previous Editions ribbon. Tried: #56445c (6.5:1), #423a4a, #5c3c44, #756748 (#ecdcb8 only
     reaches 4.1:1 there, so #f8eed8); the candle-lit pillar stone #bc724c with #1f0a08 text. */
  --stone: #302b36;
  --on-stone: #ecdcb8;
  /* dark wood (behind the office picture) */
  --wood: #2a0f0e;

  --serif: "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif;
  --caps: "Cinzel", "Trajan Pro", "Cormorant Garamond", Georgia, serif;

  /* paper grain + stains, drawn (seamless tiles). 5 Dec: each filter's area is set to exactly the tile
     (x/y 0, width/height 1) - SVG's default area is 10% bigger on every side, so the stitched noise
     repeated at 840 px, not 700, and the stains showed a straight join every 700 px (the user saw two
     behind the masthead). Measured: the join jumped 22.3 vs 0.7 elsewhere; now 0.8. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .22 0 0 0 0 .1 .55 0 0 0 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='m' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .36 0 0 0 0 .16 1 0 0 0 -.44'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");

  --frame-w: 50px;
  --gutter: clamp(14px, 4vw, 48px);
  --wide: 1240px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.5;
  font-variant-numeric: lining-nums; /* Cormorant's old-style 001 reads as "ooı" */
  background-color: var(--paper);
  background-image:
    var(--grain),
    var(--mottle),
    linear-gradient(180deg, var(--paper-light) 0%, var(--paper) 30%, var(--paper-deep) 100%);
  background-size: 300px 300px, 700px 700px, 100% 100%;
  min-height: 100vh;
}

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

a { color: var(--crimson); }

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  padding: .5rem 1rem;
  background: var(--paper-light);
  color: var(--crimson);
  font-family: var(--caps);
  font-size: .9rem;
  border: 1px solid var(--rule);
}
.skip:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 4px;
}

/* ---------- header bar (dark wood, gold hairline) ---------- */

.topbar {
  /* 5 Dec (user): its words, crest, underline and focus ring are white like the Archives issue box
     (they were the cream --on-stone #ecdcb8, which read as yellow) */
  --on-stone: #fff;
  position: relative;
  z-index: 3;
  background: var(--grain) 0 0 / 300px 300px, var(--stone);
  border-bottom: 1px solid var(--gold-dark);
  box-shadow: 0 1px 0 rgb(60 20 8 / .45), 0 6px 16px -4px rgb(40 14 6 / .45);
}
.topbar :focus-visible,
.colophon :focus-visible { outline-color: var(--on-stone); }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px var(--gutter);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--on-stone);
  text-decoration: none;
}
/* 5 Dec (user): the crest = their base logo (CANON-Inkstamp) in white with its dark lines kept, so the
   raven and windows show (was the masthead crest's shape as one white mask, assets/crest-ink.webp).
   46 px tall (5 Dec, user: a little smaller than the first 52 px). */
.brand-crest {
  flex: none;
  height: 46px;
  aspect-ratio: 1172 / 1212;
  background: url("assets/crest-white.webp") center / contain no-repeat;
}
.brand-name {
  font-family: var(--caps);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.15;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-align: center;
}
.brand-name span { display: block; }
.topnav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center; /* the LM icon makes LitMancer taller; keeps Contact Us level with its word */
  gap: 4px clamp(16px, 3.4vw, 46px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.topnav a {
  display: block;
  padding: 8px 2px 6px;
  font-family: var(--caps);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-stone);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color .15s ease;
}
.topnav a:hover,
.topnav a[aria-current="page"] { border-bottom-color: var(--on-stone); }
/* 5 Dec (user picked mockup 1): the LM monogram before "LitMancer", white like the words (its shape is
   the mask); the underline sits under the word only */
.topnav a.lm-link { display: flex; align-items: center; gap: 12px; padding-block: 0; border-bottom: 0; }
.lm-link .lm-word { padding: 8px 2px 6px; border-bottom: 1.5px solid transparent; transition: border-color .15s ease; }
.lm-link:hover .lm-word { border-bottom-color: var(--on-stone); }
.lm-icon {
  flex: none;
  display: block;
  width: 40px;
  aspect-ratio: 1039 / 1167;
  background-color: currentColor;
  -webkit-mask: url("assets/lm-mono.webp") center / contain no-repeat;
  mask: url("assets/lm-mono.webp") center / contain no-repeat;
}

/* ---------- masthead band ---------- */

.masthead { padding: clamp(8px, 1.6vw, 22px) 0 clamp(4px, 1vw, 12px); }
.masthead h1 { margin: 0; }
.masthead a { display: block; }
.masthead img { width: 100%; }

/* ---------- the office painting (First Frost), edge to edge, uncropped ---------- */

.hero {
  position: relative;
  margin: 0;
  border-block: 3px double var(--gold-line);
  background: var(--wood);
}
.hero img { width: 100%; aspect-ratio: 1671 / 941; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(25 9 4 / .22) 0%, transparent 7%, transparent 93%, rgb(25 9 4 / .22) 100%);
}

/* ---------- framed cards (approved archive-card frame, 9-slice) ---------- */

.panel {
  position: relative;
  border: var(--frame-w) solid transparent;
  border-image: url("assets/frame.webp") 100 / var(--frame-w) stretch;
  padding: 6px clamp(4px, 3vw, 36px) 14px;
  text-align: center;
}
.card {
  background-color: var(--paper-light);
  background-image:
    var(--grain),
    radial-gradient(ellipse 90% 80% at 50% 40%, #f8edd6 0%, var(--paper) 70%, var(--paper-deep) 100%);
  background-size: 300px 300px, 100% 100%;
  background-origin: border-box; /* paint the paper under the frame too, not a repeat of it */
  box-shadow:
    0 0 0 1px rgb(90 50 20 / .35),
    0 26px 46px -18px rgb(30 12 4 / .65),
    0 5px 14px rgb(30 12 4 / .25);
}

.art-title { margin: 0; line-height: 0; }
.art-title img { margin-inline: auto; }

/* line – diamond – line */
.rule {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(520px, 80%);
  margin: 14px auto 18px;
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, rgb(123 42 36 / 0), var(--rule) 70%);
}
.rule::after { transform: scaleX(-1); }
.rule span {
  flex: none;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: var(--crimson);
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--gold);
}
/* the same rule run edge to edge between two bands (not used since 4 Dec: the Archives scroll covers
   that spot; it was <div class="rule rule-wide" aria-hidden="true"><span></span></div> after the Latest) */
.rule-wide { width: 100%; margin: 0; padding-inline: var(--gutter); gap: 14px; }
.rule-wide::before, .rule-wide::after { background: linear-gradient(90deg, rgb(123 42 36 / 0), var(--rule) 40%); }
.rule-wide span { width: 11px; height: 11px; }

.ornament { margin: 26px auto 0; width: min(70%, 460px); }

/* small caps label with short rules either side */
.ruled {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.ruled::before, .ruled::after {
  content: "";
  width: clamp(28px, 6vw, 64px);
  height: 1.5px;
  background: var(--ink-soft);
}

/* a title art with long rules running out toward the page edges */
.ruled-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 26px);
}
.ruled-title::before, .ruled-title::after {
  content: "";
  flex: 1 1 0;
  height: 1.5px;
  background: linear-gradient(90deg, rgb(123 42 36 / 0), var(--rule));
}
.ruled-title::after { transform: scaleX(-1); }
.ruled-title img { flex: 0 1 auto; min-width: 0; margin: 0; }

.issue-no {
  margin: 0;
  font-family: var(--caps);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}

.edition {
  margin: 0;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  color: var(--crimson);
  text-wrap: balance;
}

/* ---------- buttons: the approved button art as a 9-slice, real text on top ----------
   btn-plaque.webp (140 x 130): left cap 48 | clean strip 36 | right cap 56, top/bottom 64.
   btn-arrow.webp (293 x 132, "Discover LitMancer", stars in the caps): 135 | 20 | 138, 65.
   --bh is the plate height; the borders keep the art's corners in proportion to it.
   Trying out (4 Dec): the plate recoloured to #450a0f (btn-plaque-450a0f.webp / btn-arrow-450a0f.webp,
   made by the scratchpad rt-btn-recolor.cjs <hex> buttons; #302b36 and #56445c copies also there);
   the approved red art is btn-plaque.webp / btn-arrow.webp. */

.btn {
  --bh: 2.6em;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: var(--bh);
  padding: .3em 1.75em .36em; /* the art's icon sits ~0.67 plate-heights in */
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.1;
  color: #fcf1d8;
  text-decoration: none;
  text-shadow: 0 1px 2px rgb(40 0 4 / .85);
  filter: drop-shadow(0 3px 3px rgb(70 30 10 / .38));
  transition: transform .18s ease, filter .18s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-style: solid;
  border-color: transparent;
  border-width: calc(var(--bh) * 64 / 130) calc(var(--bh) * 56 / 130) calc(var(--bh) * 64 / 130) calc(var(--bh) * 48 / 130);
  border-image: url("assets/btn-plaque-450a0f.webp") 64 56 64 48 fill round stretch;
}
.btn-arrow { padding-inline: calc(var(--bh) * 1.2); } /* clear the stars drawn in the caps */
.btn-arrow::before {
  border-width: calc(var(--bh) * 65 / 132) calc(var(--bh) * 138 / 132) calc(var(--bh) * 65 / 132) calc(var(--bh) * 135 / 132);
  border-image: url("assets/btn-arrow-450a0f.webp") 65 138 65 135 fill round stretch;
}
.btn:hover { transform: translateY(-1px); filter: drop-shadow(0 5px 5px rgb(70 30 10 / .42)) brightness(1.08); }
.btn:active { transform: translateY(1px); }

.ico {
  width: 1.35em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.btn-small { font-size: 1.2rem; padding-inline: 1.6em; }

/* ---------- Welcome: a framed card below the painting, edge to edge like the masthead ---------- */

.welcome {
  z-index: 2;
  /* 5 Dec (user): in from the window's edges so the room picture shows either side: 180px on very wide
     windows (1900+), less on narrower ones (132 at 1500, 84 at 1100; phones 12px, below). Earlier 5 Dec:
     clamp(14px, 8vw, 120px). Before: width: 100%, edge to edge (4 Dec); before that
     min(1040px, 100% - 2 * var(--gutter)). */
  margin: clamp(30px, 4.5vw, 64px) clamp(14px, 12vw - 48px, 180px) 0;
  padding-bottom: 6px;
}
.welcome .art-title img { width: min(100%, 860px); }
.lede {
  max-width: 44rem;
  margin: 0 auto;
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  line-height: 1.45;
  text-wrap: pretty;
}
/* 5 Dec (user): the two buttons under the line are gone and the card is shorter - tighter gaps around the
   line and the bottom ornament (before: .rule 14px/18px, .lede bottom 26px, .ornament top 26px, the
   .actions button row) */
.welcome .rule { margin: 8px auto 12px; }
.welcome .ornament { margin-top: 12px; }

/* ---------- full-width bands ---------- */

.band {
  position: relative;
  padding: clamp(44px, 6vw, 84px) var(--gutter);
}
.band-inner {
  position: relative;
  z-index: 1;
  max-width: var(--wide);
  margin: 0 auto;
}

/* ---------- The Latest Edition ---------- */

.latest {
  /* 5 Dec (user): more room between the issue and the Archives scroll's torn top - the band's usual
     bottom padding plus 24-44px (the scroll overlaps it by --edge-y, so the gap was only about 40px) */
  padding-bottom: calc(clamp(44px, 6vw, 84px) + clamp(24px, 3vw, 44px));
  background: radial-gradient(ellipse 60% 70% at 50% 55%, rgb(255 247 228 / .6) 0%, rgb(255 247 228 / 0) 100%);
}
.kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 6px;
  font-style: italic;
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--ink);
}
.kicker::before, .kicker::after {
  content: "";
  width: clamp(28px, 6vw, 90px);
  height: 1.5px;
  background: var(--ink-soft);
}
.latest .art-title img { width: min(100%, 470px); }
.latest-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  max-width: 1120px;
  margin: clamp(22px, 3.4vw, 44px) auto 0;
}
.cover {
  display: block;
  justify-self: center;
  width: min(100%, 440px);
  box-shadow:
    3px 4px 0 -1px #e7d1a6,
    6px 8px 0 -2px #d8bf91,
    0 24px 36px -10px rgb(60 30 10 / .55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cover img { width: 100%; }
.cover:hover { transform: translateY(-3px); }

.latest-text { display: grid; justify-items: center; gap: 10px; text-align: center; }
.latest .edition { font-size: clamp(2.2rem, 4vw, 3.3rem); }
.latest-text .rule { margin: 6px auto 4px; width: min(320px, 70%); }
.summary {
  max-width: 32rem;
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.42;
  text-wrap: pretty;
}

/* berries: one sprig in each bottom corner of the section (the left one came back on 4 Dec in place
   of the candle), lying on top of the Archives scroll's torn top edge (the scroll overlaps the
   section by --edge-y; z-index 2 puts the berries over its 1): the picture's bottom 30 of 320 rows
   lie over the paper. The two pictures are the same size with mirrored see-through notches. (Tried on 4 Dec: the same spot tucked BEHIND the paper (z-index 0);
   10 px clear above the scroll - looked like a gap; and level with "Read the Chronicle",
   inside .latest-text, right: calc((min(1120px, 100vw - 2 * var(--gutter)) - 100vw) / 2).) */
.sprig {
  --sw: clamp(110px, 12vw, 200px);
  position: absolute;
  z-index: 0;
  width: var(--sw);
  pointer-events: none;
}
.sprig-left,
.sprig-right {
  bottom: calc(var(--edge-y) - var(--sw) * 30 / 340);
  z-index: 2;
}
.sprig-left { left: 0; }
.sprig-right { right: 0; }
/* (4 Dec, tried and taken out the same day: the user's candle + quill + inkpot picture,
   assets/candle-quill.webp, in the bottom-left in place of the left berries.) */

/* ---------- trying out (4 Dec): the "dusk" area ----------
   Around the Welcome card and the whole Latest Edition section, the page takes the bar colour.
   The card keeps its parchment; the Latest Edition's words (title art included) and the little lines
   beside them turn a clear warm white (the bar's cream read golden here).
   To undo: remove the .dusk wrapper in index.html and this block. */

.dusk {
  --dusk-ink: #f7f1e3;
  /* 4 Dec, trying out: the user's room picture (assets/background-01.webp, 1774 x 887, from
     READINGAPPImages/Website/Raventhorn/background_01.png) instead of the purple-grey
     (was: var(--grain) 0 0 / 300px 300px, var(--stone)). Full width (at least 900 px, so phones see
     the wall, not a thin strip), standing on the bottom where the scroll starts; above it the
     picture's own top colour, fading in over the picture's top fifth. --room-h = its drawn height. */
  /* (4 Dec, later: the picture itself is now .room-pin, further down - it starts here, at the bottom of
     this area, then stays in the middle of the window. Before, this background drew it:
     fade gradient, var(--room-img) 50% 100% / max(100%, 900px) auto no-repeat, var(--room-top).)
     Here only the flat colour above it. */
  display: flow-root; /* keep the Welcome card's top margin inside the dark area */
  /* 5 Dec (user): no colour of its own any more - the room picture (.room-stage) shows behind the Welcome
     card and the Latest Edition too. Was: linear-gradient(to bottom, var(--room-top) calc(100% -
     var(--room-h)), transparent calc(100% - var(--room-h))) = flat colour down to where the picture began. */
}
/* the room picture: the user's pick (4 Dec) = trial Room 10, assets/background-11.webp - the CHAT COPY
   (1774 x 887, not re-encoded); swap in a web copy of the master PNG once it's in READINGAPPImages.
   --room-top = its top-row colour, --room-wall = its middle wall, --room-h = its drawn height. On html so
   the picture layer (outside .dusk) and the trial pages' classes (on <html>) both reach them. */
html {
  --room-img: url("assets/background-11.webp");
  --room-top: #100a09;
  --room-wall: #131113;
  --room-h: max(50vw, 450px);
}
/* trying out (4 Dec): the user's 4 other rooms (READINGAPPImages/Website/Raventhorn/Background_02..05.png,
   1774 x 887, web copies q94), one per trial page try-room-1..4.html, which put the class on <html>.
   --room-top = the picture's top-row colour, --room-wall = its middle wall. Remove once one is picked.
   (They were ".room-NN .dusk"; now on <html> itself, like the defaults.) */
.room-01 { --room-img: url("assets/background-01.webp"); --room-top: #0e0909; --room-wall: #150c0c; } /* the first one (trial "Now") */
.room-05 { --room-img: url("assets/background-05.webp"); --room-top: #0f0807; --room-wall: #190e0e; } /* clear window */
.room-02 { --room-img: url("assets/background-02.webp"); --room-top: #100808; --room-wall: #170c0c; } /* tall stained glass, ladder */
.room-03 { --room-img: url("assets/background-03.webp"); --room-top: #0f0808; --room-wall: #180e0e; } /* rose window, lamp */
.room-04 { --room-img: url("assets/background-04.webp"); --room-top: #0c0706; --room-wall: #140b0b; } /* wide stained glass, window seat */
.room-06 { --room-img: url("assets/background-06.webp"); --room-top: #100606; --room-wall: #130808; } /* shelves both sides, plain wall (chat copy, 4 Dec) */
.room-07 { --room-img: url("assets/background-07.webp"); --room-top: #1b1414; --room-wall: #45403f; } /* grey stone arches, purple window right (chat copy, 4 Dec) */
.room-08 { --room-img: url("assets/background-08.webp"); --room-top: #170f0e; --room-wall: #413937; } /* grey brick wall, purple window right (chat copy, 4 Dec) */
.room-09 { --room-img: url("assets/background-09.webp"); --room-top: #150e0e; --room-wall: #373330; } /* grey stone wall, clear window right (chat copy, 4 Dec) */
.room-10 { --room-img: url("assets/background-10.webp"); --room-top: #1a1211; --room-wall: #2f2d2f; } /* dark stone wall, clear window right (chat copy, 4 Dec) */
.room-11 { --room-img: url("assets/background-11.webp"); --room-top: #100a09; --room-wall: #131113; } /* near-black stone wall, lamps + candles lit (chat copy, 4 Dec) */
.dusk .latest {
  color: var(--dusk-ink);
  background: radial-gradient(ellipse 60% 70% at 50% 55%, rgb(236 154 62 / .1) 0%, rgb(236 154 62 / 0) 100%);
}
.dusk .latest :focus-visible { outline-color: var(--gold-light); }
.dusk .kicker { color: var(--dusk-ink); }
.dusk .kicker::before, .dusk .kicker::after,
.dusk .ruled::before, .dusk .ruled::after { background: color-mix(in srgb, var(--dusk-ink) 70%, transparent); }
/* the title art's letter shapes, filled with the white (the drawn colours are hidden, the alt text stays) */
.dusk .latest .art-title img {
  object-position: -99999px 0;
  background-color: var(--dusk-ink);
  -webkit-mask: url("assets/title-latest.webp") center / 100% 100% no-repeat;
  mask: url("assets/title-latest.webp") center / 100% 100% no-repeat;
}
.dusk .ruled-title::before, .dusk .ruled-title::after { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--dusk-ink) 70%, transparent)); }
.dusk .issue-no { color: var(--dusk-ink); }
.dusk .latest .edition { color: var(--dusk-ink); }
.dusk .latest .rule::before, .dusk .latest .rule::after { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--dusk-ink) 70%, transparent) 70%); }
.dusk .latest .rule span { box-shadow: 0 0 0 2px var(--room-wall), 0 0 0 3px var(--dusk-ink); }

/* trying out (4 Dec): behind the Archives scroll (its see-through torn edges and curls) and around the
   Beyond the Chronicle box, the page takes the bar colour too; the scroll and the box keep their paper.
   To undo: remove this rule. */
/* (4 Dec, later: no colour any more behind the scroll and around the invitation - the room picture
   shows there. Was: .beyond { background: var(--grain) 0 0 / 300px 300px, var(--stone); } and
   .archives { background: linear-gradient(transparent var(--edge-y), var(--stone) var(--edge-y)); }) */

/* the room picture stays put: .room-stage (right after the office painting) wraps <main> - the Welcome card,
   the Latest Edition, the Archives, the invitation - and the footer; its .room-track runs from its top
   (5 Dec; before, --room-h above the Archives) to the end of the page; .room-pin (the picture) scrolls up
   with the page until it is in the middle of the window, then sticks there while everything passes over it. z-index -1: under every
   section, over the page's paper. The track's own colour fills the window above and below the picture.
   (5 Dec: that used to be 100vh bands on the pin - ::before/::after inside overflow: clip. In Chrome, with
   the window smaller than full screen, the band above the stuck picture dropped out and the page's light
   paper showed through for a moment.) */
.room-stage { position: relative; display: flow-root; }
.room-track {
  position: absolute;
  top: 0; /* 5 Dec: was calc(-1 * var(--room-h)), when the stage began at the Archives */
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--room-top);
}
.room-pin {
  position: sticky;
  top: calc((100vh - var(--room-h)) / 2);
  height: var(--room-h);
  background:
    linear-gradient(to bottom, var(--room-top), transparent 20%, transparent 95%, var(--room-top)),
    var(--room-img) 50% 100% / max(100%, 900px) auto no-repeat,
    var(--room-top);
}
/* 5 Dec (user): the footer sits on the picture too - on the issue pages as well since 5 Dec (later).
   Its rule's diamond keeps a ring of the room's colour (on the stone footer it is the stone). */
.room-stage .colophon { background: none; }
.room-stage .colophon .rule span { box-shadow: 0 0 0 2px var(--room-top), 0 0 0 3px var(--on-stone); }
/* the Beyond box's drop shadow made the strip between it and the footer darker than the bar colour:
   only its thin ring stays (the .card shadow was: 0 0 0 1px rgb(90 50 20 / .35),
   0 26px 46px -18px rgb(30 12 4 / .65), 0 5px 14px rgb(30 12 4 / .25)) */
.beyond .invitation { box-shadow: 0 0 0 1px rgb(90 50 20 / .35); }

/* ---------- The Chronicle Archives ---------- */

/* Trying out (4 Dec): the user's torn parchment picture (assets/archives-paper.webp, 1672 x 941).
   A 9-slice: the curled sides (left 112, right 118 px of the picture) and the torn top and bottom
   (48 / 52 px) keep their shape; only the middle stretches. --edge-x / --edge-y are how big those
   edges are drawn; the content keeps clear of the curls. Before: a drawn weathered paper, and
   before that: linear-gradient(180deg, rgb(214 182 128 / .34) 0%, rgb(214 182 128 / .14) 100%). */
.archives {
  --edge-x: clamp(28px, 6.6vw, 112px);
  /* --edge-y is set in :root */
  border: 0 solid transparent;
  border-image: url("assets/archives-paper.webp") 48 118 52 112 fill / var(--edge-y) var(--edge-x) / 0 stretch;
  padding-inline: calc(var(--edge-x) + 8px);
  /* the torn top edge lies over the bottom of the dark section (the picture's backdrop is see-through) */
  margin-top: calc(-1 * var(--edge-y));
  z-index: 1;
}
.archives .art-title img { width: min(100%, 640px); }
.ribbon { margin: 8px auto 26px; width: min(84%, 420px); }

/* 5 Dec (user): the box is only as wide as its widest row needs (every row the same width), so the gap
   between the cover and the words is just the grid gap. Before: always 920px wide, the words column
   took the spare room and left a wide gap either side of them. */
.issues {
  list-style: none;
  width: fit-content;
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 18px;
}
.issue-row {
  display: grid;
  /* cover | words | button (5 Dec, user: the vertical line with the diamond after the cover is gone;
     it was <span class="vrule"> - 1.5px line, crimson/gold diamond - in its own column) */
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.5vw, 30px);
  border: 26px solid transparent;
  border-image: url("assets/row-frame.webp") 36 / 26px stretch;
  padding: 0 clamp(0px, 1.5vw, 16px);
  text-align: center;
  position: relative;
}
/* inside the frame: the top bar's grey-purple (user, 5 Dec). Before that (4 Dec) the Welcome card's parchment:
   background-color: var(--paper-light); background-image: var(--grain), radial-gradient(ellipse 90% 80% at
   50% 40%, #f8edd6 0%, var(--paper) 70%, var(--paper-deep) 100%); background-size: 300px 300px, 100% 100%; */
.issue-row::before {
  content: "";
  position: absolute;
  inset: -17px -15px; /* out from the padding box to just under the frame's inner line */
  z-index: -1;
  background: var(--grain) 0 0 / 300px 300px, var(--stone);
}
/* ...so its words and lines are white (5 Dec, user: the top bar's cream #ecdcb8 read as yellow here;
   before that they were dark ink and crimson) */
.issue-row .issue-no,
.issue-row .edition,
.issue-row .published { color: #fff; }
.issue-row .ruled::before, .issue-row .ruled::after { background: rgb(255 255 255 / .7); }
.issue-row :focus-visible { outline-color: #fff; }
.thumb {
  display: block;
  width: 108px;
  box-shadow: 2px 3px 0 -1px #dcc597, 0 10px 16px -6px rgb(60 30 10 / .5);
}
.issue-meta { display: grid; justify-items: center; gap: 4px; }
.issue-meta .edition { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.published { margin: 0; font-size: 1.25rem; }

/* ---------- Beyond the Chronicle: the invitation card, edge to edge like the masthead ---------- */

.beyond {
  /* room above for the seal; below, the same small gap as between the header bar and the masthead */
  padding: clamp(44px, 5.5vw, 76px) 0 clamp(8px, 1.6vw, 22px);
}
/* 5 Dec (user): no Archives scroll at the first release, so the invitation card moves up right under the
   berries and covers their cut-off bottom edge (the scroll's torn top used to). The berries now end at the
   Latest Edition's bottom (about 20px lower than before) and the card overlaps it by 6px, drawn over them.
   (Tried and dropped: also trimming the Latest's bottom padding - that pulled the berries further over the
   cover's corner on 1000-1450px windows.) Wide windows only: at 1000px and under the berries are hidden and
   the spacing stays as it was. When the Archives come back, remove this block. */
@media (min-width: 1001px) {
  .sprig-left, .sprig-right { bottom: 0; }
  .beyond { padding-top: 0; margin-top: -6px; }
  .beyond .invitation { z-index: 3; }
}
.invitation {
  width: 100%;
  padding-block: 10px 20px;
}
/* 5 Dec (user): the card's background is the Beyond picture - READINGAPPImages/Website/Raventhorn/
   Beyond_01.png without its own drawn border lines and corner curls (scratchpad beyond-clean.cjs), so the
   card keeps its own edges, words and wax seal. On wide windows the card takes the picture's shape, so all
   of it shows; when the words need more height (narrower windows) the card grows and the picture fills it,
   losing a little at the sides. The words sit in the middle. (Before: the plain .card parchment.) */
.beyond .invitation {
  aspect-ratio: 2138 / 690;
  display: grid;
  align-content: center;
  background-image: url("assets/beyond.webp");
  background-size: cover;
  background-position: 50% 100%;
}
.invitation-body {
  display: grid;
  justify-items: center;
  gap: 8px;
}
/* narrower windows: the seal comes nearer the words, so they step left of it */
@media (max-width: 1240px) {
  .invitation-body { padding-right: clamp(0px, 14%, 170px); }
}
.label {
  margin: 0 0 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgb(123 42 36 / .55);
  font-family: var(--caps);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--crimson-deep);
}
.invitation .art-title img { width: min(100%, 600px); }
.invitation .ornament { margin: 2px auto 4px; width: min(80%, 400px); }
.invite-text {
  max-width: 36rem;
  margin: 0 0 18px;
  font-style: italic;
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  line-height: 1.42;
  text-wrap: pretty;
}
.invite-text cite { font-style: italic; }
.seal {
  position: absolute;
  /* 5 Dec (user): the ribbon's cut end (the picture's top row) sits on the paper's top edge, not above it
     (was: calc(-1 * var(--frame-w) - 18px), 18 px above the card) */
  top: calc(-1 * var(--frame-w));
  /* 5 Dec (user, later): up a little more, so the ribbon's small gold fold (top-left, about row 8 of the
     picture's 510) is level with the paper's top edge - 1.6% of the seal's own height (about 4 px at full size) */
  translate: 0 -1.6%;
  right: calc(-1 * var(--frame-w) + 2%);
  width: clamp(96px, 23%, 250px);
  filter: drop-shadow(0 8px 8px rgb(20 6 2 / .5));
  pointer-events: none;
}

/* ---------- footer (candle-lit pillar stone, like the header bar) ---------- */

.colophon {
  /* 4 Dec: the footer's words and lines in the Latest section's warm white (the top bar keeps #ecdcb8) */
  --on-stone: #fff; /* 5 Dec (user): white like the top bar and the Archives issue box (was #f7f1e3) */
  position: relative;
  background: var(--grain) 0 0 / 300px 300px, var(--stone);
  /* no top line since 4 Dec (the page above is the same colour now). It was
     border-top: 1px solid var(--gold-dark); box-shadow: 0 -1px 0 rgb(60 20 8 / .45);
     white and black were tried too. */
  color: var(--on-stone);
  text-align: center;
  padding: 26px var(--gutter) 30px;
}
.colophon-inner { max-width: var(--wide); margin: 0 auto; }
.colophon .rule { margin-top: 0; }
.colophon .rule::before, .colophon .rule::after { background: linear-gradient(90deg, transparent, var(--on-stone) 70%); }
.colophon .rule span { background: var(--gold); box-shadow: 0 0 0 2px var(--stone), 0 0 0 3px var(--on-stone); }
.colophon-line {
  margin: 0 0 8px;
  font-style: italic;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--on-stone);
  text-wrap: balance;
}
.colophon ul {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.colophon li + li { border-left: 1px solid color-mix(in srgb, var(--on-stone) 50%, transparent); }
.colophon a {
  display: block;
  padding: 4px 22px;
  font-family: var(--caps);
  font-size: .92rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-stone);
  text-decoration: none;
}
.colophon a:hover { text-decoration: underline; text-underline-offset: 5px; }
.copyright { margin: 0; font-size: 1.05rem; color: var(--on-stone); }

/* ---------- issue reader ---------- */

.reader-band { padding-top: clamp(18px, 3vw, 36px); border-top: 3px double var(--gold-line); }
.reader { max-width: 1000px; margin: 0 auto; }
.reader-title { display: grid; justify-items: center; gap: 6px; text-align: center; margin-bottom: 22px; }
.reader-title h1 { margin: 0; }

.view-toggle {
  display: flex;
  justify-content: center;
  margin: 0 auto 26px;
  padding: 0;
  border: 0;
}
.view-toggle legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.view-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.view-toggle label {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .55em 1.3em;
  font-family: var(--caps);
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgb(255 246 225 / .5);
  border: 1px solid var(--gold-dark);
  cursor: pointer;
}
.view-toggle label + input + label { border-left: 0; }
.view-toggle label .ico { stroke: currentColor; }
.view-toggle input:checked + label {
  color: #fcefd2;
  background: linear-gradient(180deg, #8f1d28, #5a0c15);
  border-color: var(--gold-dark);
}
.view-toggle input:focus-visible + label { outline: 2px solid var(--gold-dark); outline-offset: 3px; }

.reader:has(#view-reading:checked) .paper-view,
.reader:has(#view-paper:checked) .reading-view { display: none; }

.pages { display: grid; gap: 28px; justify-items: center; margin: 0; padding: 0; list-style: none; }
.page { margin: 0; width: min(100%, 820px); }
.page a { display: block; box-shadow: 0 18px 34px -10px rgb(60 30 10 / .55); }
.page img { width: 100%; }
.page figcaption {
  margin-top: 10px;
  font-family: var(--caps);
  font-size: .9rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}
.reading-view { max-width: 800px; margin: 0 auto; } /* 5 Dec: was 40rem (for the placeholder); the framed cards need the room */
.issue-end { display: block; height: 1px; } /* "reached the end" marker for assets/track.js */
.placeholder {
  padding: 18px 22px;
  border: 1px dashed var(--rule);
  font-style: italic;
  text-align: center;
  color: var(--ink-soft);
}

/* 5 Dec (user): the issue page sits on the room picture (.room-stage in issues/NNN/index.html), so its words
   are white like the Archives issue box, and the two view buttons get a dark see-through fill (they were
   half-see-through cream with dark words, which went muddy on the picture). The chosen one stays red. */
.reader-band { color: #fff; }
.reader-band .page figcaption { color: #fff; }
.reader-band :focus-visible { outline-color: #fff; }
/* the title block straight on the picture (no card): white words and lines */
.reader-band .reader-title:not(.card) .issue-no,
.reader-band .reader-title:not(.card) .edition,
.reader-band .reader-title:not(.card) .published { color: #fff; }
.reader-band .reader-title:not(.card) .ruled::before,
.reader-band .reader-title:not(.card) .ruled::after { background: rgb(255 255 255 / .7); }
/* 5 Dec (user, later): the issue number, title and date sit in a small framed parchment card like the
   Welcome card (same frame, thinner), so they're back in the paper's ink and red. (Before: white on the
   picture - .reader-band .issue-no/.edition/.published #fff and the little lines 70% white.) */
.reader-title.card {
  --frame-w: 34px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 26px;
  padding: 6px clamp(28px, 6vw, 72px) 10px;
  gap: 4px;
  color: var(--ink);
}
@media (max-width: 600px) {
  .reader-title.card { --frame-w: 26px; padding-inline: 16px; }
}
.reader-band .view-toggle label { color: #fff; background: rgb(16 10 9 / .6); }
.reader-band .view-toggle input:focus-visible + label { outline-color: #fff; }
.reader-band .placeholder { color: #fff; border-color: rgb(255 255 255 / .55); }
/* 5 Dec (user): the Newspaper View as a pile of pages - assets/flipbook.js adds .flipbook and the bar.
   Page 1 on top, the next ones peeking out behind it (a little lower and to the right, each tilted a hair);
   tap the page and it turns over to the left like a newspaper page, showing the next one. --d = how deep a
   page is (0 = on top, negative = already turned). Without the script: the pages stand one under another. */
.flipbook { position: relative; --step: 10px; } /* how far each page behind sticks out */
.flipbook .pages {
  gap: 0;
  perspective: 3000px;
  cursor: pointer;
  touch-action: pan-y pinch-zoom; /* sideways swipes turn pages */
  -webkit-user-select: none;
  user-select: none;
  padding-bottom: calc(3 * var(--step) + 6px); /* room for the pile's edges */
}
.flipbook .pages > li {
  grid-area: 1 / 1;
  align-self: start;
  width: min(100%, 820px);
  justify-self: center;
  z-index: calc(100 - var(--d, 0));
  transform-origin: 0 50%;
  transition: transform .6s cubic-bezier(.3, .6, .25, 1), opacity .45s ease, filter .6s ease, visibility 0s linear 0s;
}
.flipbook .pages > li:nth-child(odd) { --tilt: 1.1deg; }
.flipbook .pages > li:nth-child(even) { --tilt: -.9deg; }
/* the pages behind: each one further out and a little darker, so the sheets stand apart */
.flipbook .pages > li[data-at="under"] {
  transform: translate(calc(var(--d) * var(--step)), calc(var(--d) * var(--step) * .8)) rotate(var(--tilt));
  filter: brightness(calc(1 - var(--d) * .1)); /* 5 Dec: was .13 a step - the 3rd page down went grey-brown */
}
.flipbook .pages > li[data-at="deep"] { transform: translate(calc(3 * var(--step)), calc(2.4 * var(--step))); opacity: 0; }
@media (max-width: 600px) { .flipbook { --step: 6px; } }
.flipbook .pages > li[data-at="gone"] {
  transform: rotateY(-100deg);
  opacity: 0;
  visibility: hidden;
  /* fade only near the end of the turn; hide once it's over */
  transition: transform .6s cubic-bezier(.45, 0, .55, 1), opacity .25s ease .35s, visibility 0s linear .6s;
}
.flipbook .page { width: 100%; }
.flipbook .page a { aspect-ratio: var(--ar); background: #d9bd88; } /* warm parchment while a page is still loading (was #e8d9b8, which darkened to grey) */
.flipbook .page img { height: 100%; object-fit: cover; }
.flipbook .pages > li[data-show="no"] img { display: none; } /* not loaded until it's near the top */
.flipbook .page figcaption { display: none; } /* the bar says which page it is */
.reader-band { overflow-x: clip; } /* a turning page never makes the window scroll sideways */

/* the bar above the pile: Previous | Page N of M | Next | Full size (white on the room picture) */
.flip-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  margin: 0 auto 18px;
  scroll-margin-top: 12px;
}
.flip-btn {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .5em 1.1em;
  font: 500 .9rem/1 var(--caps);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: rgb(16 10 9 / .6);
  border: 1px solid var(--gold-dark);
  cursor: pointer;
}
.flip-btn span { font-size: 1.3em; line-height: .7; }
.flip-btn:hover:not(:disabled) { border-color: var(--gold); }
.flip-btn:disabled { opacity: .4; cursor: default; }
.flip-count {
  margin: 0;
  min-width: 8.5em;
  text-align: center;
  font-family: var(--caps);
  font-size: .95rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
}
.flip-full {
  font-family: var(--caps);
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  text-underline-offset: 4px;
}
.flip-btn:focus-visible, .flip-full:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* "Full size": the page over the view (assets/flipbook.js); a click outside the page closes it */
.flip-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 56px clamp(8px, 3vw, 40px) 32px;
  border: 0;
  background: rgb(12 6 4 / .9);
  overflow: auto;
  overscroll-behavior: contain;
  cursor: zoom-out;
}
.flip-lightbox::backdrop { background: transparent; }
.flip-big {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  cursor: default;
  box-shadow: 0 18px 40px rgb(0 0 0 / .6);
}
.flip-close {
  position: fixed;
  top: 10px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: rgb(16 10 9 / .7);
  border: 1px solid var(--gold-dark);
  border-radius: 50%;
  cursor: pointer;
}
.flip-close svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.flip-close:hover { border-color: var(--gold); }
.flip-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
html.flip-lock { overflow: hidden; } /* the page behind stays put */
/* phones: Previous | Page N of M | Next on one line, Full size under it */
@media (max-width: 600px) {
  .flip-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 8px; }
  .flip-btn { font-size: .78rem; padding: .6em .8em; }
  .flip-count { min-width: 0; font-size: .82rem; letter-spacing: .06em; }
  .flip-full { grid-column: 1 / -1; justify-self: center; }
}
.flipbook .issue-end { position: absolute; top: 0; left: 0; width: 1px; }
.issue-end[hidden] { display: none; }

/* when the issue is shorter than the window (the Reading View), the picture still reaches the bottom of
   the window - before, a strip of the light paper showed under the footer */
body:has(.reader-band), body:has(.contact-band) { display: flex; flex-direction: column; }
body:has(.reader-band) > .room-stage, body:has(.contact-band) > .room-stage { flex: 1 0 auto; }

/* ---------- Reading View (issues/NNN/index.html, 5 Dec) ----------
   The issue as plain articles: a contents card, then one framed parchment card per printed page.
   The band's words are white (they sit on the room picture), so the cards set the paper's ink again. */
.reading-view .card { color: var(--ink); margin-bottom: 28px; }
.reading-view .card :focus-visible { outline-color: var(--gold-dark); }
.reading-view a { color: var(--crimson); }

/* "In This Issue" */
.rv-contents { padding: 8px clamp(10px, 4vw, 44px) 18px; }
.rv-contents-title {
  margin: 0 auto 10px;
  width: fit-content;
  padding: 0 .4em 8px;
  border-bottom: 1px solid rgb(123 42 36 / .55);
  font-family: var(--caps);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--crimson-deep);
}
.rv-contents ol { margin: 0; padding: 0; list-style: none; text-align: left; }
.rv-contents li + li { border-top: 1px dotted rgb(91 63 46 / .45); }
.rv-contents a {
  display: grid;
  grid-template-columns: 5.2em minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding: 7px 4px;
  color: var(--ink);
  text-decoration: none;
}
.rv-cpage {
  font-family: var(--caps);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--crimson);
  white-space: nowrap;
}
.rv-ctitle { font-weight: 600; line-height: 1.3; text-wrap: pretty; }
.rv-contents a:hover .rv-ctitle { color: var(--crimson); text-decoration: underline; text-underline-offset: 4px; }

/* One page at a time (6 Dec, user) - assets/reading-pages.js adds .rv-paged and a bar above and under the
   page, in the Newspaper View bar's look. The middle button is a menu of every page: a see-through select
   laid over the words, so it opens the phone's own list. */
.rv-paged .rv-page[hidden] { display: none; }
.rv-paged .rv-page { cursor: pointer; } /* click the page: the next one (6 Dec, user) */
.rv-paged .rv-page:focus { outline: none; } /* focused only so the keyboard carries on from the new page */
.rv-bar-bottom { margin-bottom: 0; }
.rv-jump { position: relative; min-width: 10em; justify-content: center; }
.rv-jump-caret { font-size: .85em; }
.rv-jump select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 16px; /* 16px or more: iPhones don't zoom in when it opens */
}
.rv-jump:hover { border-color: var(--gold); }
.rv-jump:has(select:focus-visible) { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 600px) {
  .rv-jump { min-width: 0; }
}

/* one printed page */
.rv-page {
  padding: 8px clamp(10px, 4vw, 44px) 24px;
  text-align: left;
  scroll-margin-top: 16px;
}
.rv-pageno {
  margin: 0 0 4px;
  font-family: var(--caps);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.rv-article { font-size: 1.3rem; line-height: 1.55; }
.rv-article p { margin: 0 0 .7em; text-wrap: pretty; }
.rv-article + .rv-article { margin-top: 30px; padding-top: 20px; border-top: 3px double var(--gold-line); }

.rv-head { text-align: center; }
.rv-head h2 {
  margin: 2px 0 6px;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.75rem, 3.4vw, 2.4rem);
  line-height: 1.12;
  color: var(--crimson);
  text-wrap: balance;
}
.rv-head p { margin: 0 0 4px; }
.rv-kicker {
  font-family: var(--caps);
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--crimson-deep);
  line-height: 1.4;
}
.rv-subkicker { font-style: italic; color: var(--ink-soft); }
.rv-subhead {
  font-family: var(--caps);
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
.rv-head .rv-deck { font-style: italic; font-size: 1.3rem; line-height: 1.35; color: var(--ink-soft); text-wrap: balance; }
.rv-byline {
  font-family: var(--caps);
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.rv-head .rv-by { font-style: italic; color: var(--ink-soft); }
.rv-head .rule { margin: 12px auto 18px; }

/* the first letter of an article, large and red */
.rv-drop::first-letter {
  float: left;
  margin: .06em .08em 0 0;
  font-weight: 600;
  font-size: 3.3em;
  line-height: .8;
  color: var(--crimson);
}
.rv-salute { font-style: italic; }
.rv-red { color: var(--crimson); font-weight: 600; }

/* a quote set apart (the note, the Headmistress, Harrow) */
.rv-quote {
  margin: 20px auto;
  max-width: 32rem;
  padding: 12px 8px;
  border-block: 1px solid rgb(123 42 36 / .45);
  text-align: center;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--crimson-deep);
}
.rv-quote p { margin: 0; text-wrap: balance; }
.rv-quote footer {
  margin-top: 8px;
  font-family: var(--caps);
  font-style: normal;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
/* page 5: the Headmistress's quote in the page's own box. The frame is cut from the page (text gone, 7 px of
   see-through margin); the slices hold its notched corners, the edges stretch. The words stay live text. */
.rv-quote-framed {
  max-width: 37rem;
  padding: 0 6px;
  border: solid transparent;
  border-width: 31px 42px;
  border-image: url("assets/issues/001/rv/p5-qframe.webp") 31 42 stretch;
}
/* page 8: Gideon's quote in that page's own frame (round 5; slices hold the corner ornaments) */
.rv-quote-framed-p8 {
  max-width: 31rem;
  padding: 0 8px;
  border-width: 36px 44px 36px 42px;
  border-image: url("assets/issues/001/rv/p8-qframe.webp") 36 44 36 42 stretch;
}
/* page 4: Vargan's last word in the page's own banner (a picture; the quote is its alt text) */
.rv-banner { margin: 1.1em 0; }
.rv-banner img { display: block; max-width: 100%; height: auto; margin: 0 auto; }

/* the pages' own pictures, cut from the page pictures (5 Dec, scratchpad rv-crops.cjs). The img tags carry
   the shown size; on narrow screens they shrink to fit. */
.rv-fig { margin: 6px 0 24px; }
.rv-fig img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 3px 6px rgb(47 29 20 / .3));
}
.rv-fig figcaption {
  max-width: 30rem;
  margin: 12px auto 0;
  text-align: center;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--ink-soft);
  text-wrap: balance;
}

/* the illuminated capitals: the real letter stays in the text (for copying and screen readers), see-through,
   with the page's capital drawn behind it; about three lines tall */
.rv-capped > .rv-cap {
  float: left;
  height: 3.85em;
  margin: .3em .45em 0 0;
  overflow: hidden;
  background-position: center; /* longhands: a shorthand here would wipe the .rv-cap-pN picture */
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: transparent;
  font-style: normal;
  line-height: 1;
}
.rv-cap-p1 { aspect-ratio: 79 / 67; background-image: url("assets/issues/001/rv/cap-p1.webp"); }
.rv-cap-p2 { aspect-ratio: 82 / 72; background-image: url("assets/issues/001/rv/cap-p2.webp"); }
.rv-cap-p3 { aspect-ratio: 78 / 68; background-image: url("assets/issues/001/rv/cap-p3.webp"); }
.rv-cap-p4 { aspect-ratio: 75 / 77; background-image: url("assets/issues/001/rv/cap-p4.webp"); }
.rv-cap-p5 { aspect-ratio: 82 / 63; background-image: url("assets/issues/001/rv/cap-p5.webp"); }
.rv-cap-p6 { aspect-ratio: 71 / 70; background-image: url("assets/issues/001/rv/cap-p6.webp"); }
.rv-cap-p9 { aspect-ratio: 69 / 64; background-image: url("assets/issues/001/rv/cap-p9.webp"); }
@media (forced-colors: active) {
  .rv-capped > .rv-cap { float: none; height: auto; margin: 0; background: none; color: inherit; }
}

/* small drawings from the pages, in full colour: see-through where the page was bare parchment (5 Dec; before
   that their parchment was turned white and mix-blend-mode: multiply laid them on the card) */
.rv-orn img, .rv-cal-pic, .rv-finale-pic { max-width: 100%; height: auto; }
.rv-orn { display: flex; justify-content: center; align-items: flex-end; gap: 16px; margin: 20px 0 4px; }
.rv-orn img { display: block; min-width: 0; }
.rv-orn-band { margin-top: 26px; }
.rv-cal-pic { float: left; margin: 2px 12px 4px 0; }
/* page 10's ending (5 Dec): the closing exchange in the page's own scrolled box (a picture; phones keep the
   typed box, as the picture's words would be too small there), then the lantern and the quill either side
   of the end line */
.rv-finale { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 6px 12px; margin: 22px 0 0; }
.rv-finale-box { grid-column: 1 / -1; justify-self: center; display: block; max-width: 100%; height: auto; }
.rv-finale .rv-box { display: none; margin: 0; }
.rv-article .rv-finale .rv-end { margin: 0; align-self: center; }
.rv-finale .rv-end::before, .rv-finale .rv-end::after { width: auto; flex: 1 1 0; max-width: 64px; }
/* under 760px wide the picture would be under 0.8 of its size and its words too small: the typed box instead */
@media (max-width: 759px) {
  .rv-finale-box { display: none; }
  .rv-finale .rv-box { display: block; grid-column: 1 / -1; grid-row: 1; }
}

/* page 1's two "turn to page" boxes: the page's own framed boxes as pictures (5 Dec, round 2) */
.rv-teasers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 3px double var(--gold-line);
}
.rv-teaser {
  display: block;
  filter: drop-shadow(0 2px 4px rgb(47 29 20 / .28));
  transition: transform .15s ease, filter .15s ease;
}
.rv-teaser img { display: block; width: 100%; height: auto; }
.rv-teaser:hover { transform: translateY(-2px); filter: drop-shadow(0 5px 9px rgb(47 29 20 / .35)); }
.rv-teaser:focus-visible { outline: 2px solid var(--crimson); outline-offset: 4px; }

/* the Headmistress's closing line */
.rv-close { margin-top: 1em; font-style: italic; font-weight: 600; color: var(--crimson); }
/* pages 2 and 3 sign-offs: the page's own signature or name with its seal / still life, in full colour
   (see-through where the page was bare parchment, so no blend mode); widths keep the page's proportions */
.rv-signoff { display: flex; align-items: center; justify-content: space-between; gap: 2%; margin: 1.1em 0 0; }
.rv-signoff img { display: block; min-width: 0; height: auto; }
.rv-so-p2books { width: 42%; }
.rv-so-p2sig { width: 35%; }
.rv-so-p2seal { width: 19%; }
.rv-so-p3books { width: 38%; }
.rv-so-p3name { width: 58%; }

/* boxed notes: the schedule excerpt, the replies, the callout, the last three lines of the script */
.rv-box {
  margin: 22px 0;
  padding: 14px 18px;
  text-align: center;
  background: rgb(255 248 230 / .5);
  border: 1px solid rgb(123 42 36 / .45);
  box-shadow: inset 0 0 0 3px rgb(255 248 230 / .6), inset 0 0 0 4px rgb(123 42 36 / .22);
}
.rv-article .rv-box p { margin: 0 0 .35em; }
.rv-article .rv-box p:last-child { margin-bottom: 0; }
.rv-box-label {
  font-family: var(--caps);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.rv-box-title { font-style: italic; font-weight: 600; font-size: 1.45rem; color: var(--crimson); }
.rv-callout { font-style: italic; font-size: 1.4rem; line-height: 1.4; color: var(--crimson-deep); } /* not used since round 5 (page 8's callout is the page's own box) */
/* page 6: the page's book stack and fern beside the schedule box, over its left edge (round 5) */
.rv-books-box { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: end; margin: 22px 0; } /* 5 Dec: was 104px (books over 46px of the box; now 80px) */
.rv-books-box .rv-books { grid-area: 1 / 1; position: relative; z-index: 1; width: 150px; max-width: none; height: auto; }
.rv-books-box .rv-box { grid-area: 1 / 2; margin: 0 0 16px; padding-inline: 92px; } /* the same both sides: words centred in the box, clear of the books (was padding-left only) */

/* page 7's letters. 5 Dec (user: "make it look like a letter"): each letter on its own sheet of writing paper,
   the Editor's response in a box of the same paper under it. Round 5 (user: the overlap made the replies look
   crooked; three colours): no tilt, no overlap, no fold creases / shading - one paper colour. Before that: the
   sheet folded in three (creases + banded shading), tilted -.35/.3deg, the response a smaller #f7ecd3 card
   laid 16px over the sheet's foot, tilted .6deg. Before that: the letters were split by a thin rule only.
   5 Dec, later (user: "use this for the student letters"): the sheet is the user's student letter paper
   (READINGAPPImages/Website/Raventhorn/Student_letter_01.png; scratchpad rt-student-letter.cjs) - torn edge,
   double red frame, thorn-and-arch corners, the quill at the foot - instead of plain #fcf5e6 paper with a thin
   red edge. A 9-slice drawn over the whole sheet (slices 250 hold the corners); --k = shown px per px of the
   1254 px picture; the quill is laid back at the foot's centre at its own size. */
.rv-letter { --k: .36; margin-top: 38px; }
.rv-head + .rv-letter { margin-top: 0; }
.rv-letter-sheet {
  position: relative;
  margin-top: 8px;
  /* the words inside the frame and clear of the corners (their flourishes keep within ~110 px of the edges
     beside the words) and of the quill */
  padding: calc(var(--k) * 120px + 6px) calc(var(--k) * 120px + 8px) calc(var(--k) * 128px + 6px);
  border: 0 solid transparent;
  border-image: url("assets/issues/001/rv/p7-letter-sheet.webp") 250 fill / calc(var(--k) * 250px) stretch;
  box-shadow: 0 1px 2px rgb(47 29 20 / .16), 0 10px 16px -10px rgb(47 29 20 / .4);
}
/* the quill and thorns at the foot's centre (the sheet's foot lines run on behind; this holds their gap) */
.rv-letter-sheet::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(var(--k) * 22px);
  width: calc(var(--k) * 396px);
  height: calc(var(--k) * 82px);
  transform: translateX(-50%);
  background: url("assets/issues/001/rv/p7-letter-feather.webp") 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}
.rv-article .rv-letter-sheet p:last-child { margin-bottom: 0; }
/* the response laid over the letter's foot, the letter's width, shifted right by --shift: in from the left edge
   by as much as it sticks out on the right (5 Dec, user: "so the overlap looks deliberate"). Over the paper's
   margin below the frame lines only (28 px of the picture; was 16px over the plain sheet) */
.rv-letter .rv-reply {
  --shift: 28px;
  position: relative;
  margin: calc(var(--k) * -28px) calc(-1 * var(--shift)) 0 var(--shift);
  background: #fbf3e2; /* lighter than the letter paper (user, with the new paper); was a darker #efdfbe */
  border-color: rgb(110 36 30 / .9); /* a darker outline (user); was the .rv-box red at .45 */
  box-shadow: inset 0 0 0 3px #fbf3e2, inset 0 0 0 4px rgb(123 42 36 / .4), 0 1px 2px rgb(47 29 20 / .16), 0 10px 16px -10px rgb(47 29 20 / .4);
}
.rv-letter .rv-kicker { margin: 0 0 2px; text-align: center; }
.rv-letter h3 {
  margin: 0 0 12px;
  text-align: center;
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--crimson);
  text-wrap: balance;
}
.rv-article .rv-from { text-align: right; font-style: italic; }
.rv-reply { text-align: left; }
.rv-reply-title {
  font-family: var(--caps);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--crimson-deep);
}
.rv-reply p:not(.rv-reply-title) { font-style: italic; }

/* page 8's lost and found list */
.rv-article ul { margin: 0 0 .9em; padding-left: 1.3em; }
.rv-article li { margin-bottom: .35em; }
.rv-article li::marker { color: var(--crimson); }

/* page 9: the question, and the calendar's four notices */
.rv-article .rv-question {
  max-width: 30rem;
  margin: 1em auto;
  text-align: center;
  font-style: italic;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.35;
  color: var(--crimson);
  text-wrap: balance;
}
.rv-cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 14px; }
.rv-cal section { padding: 12px 16px; background: rgb(255 248 230 / .4); border: 1px solid rgb(123 42 36 / .3); }
.rv-cal h3 {
  margin: 0 0 6px;
  font-family: var(--caps);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--crimson-deep);
}
.rv-cal p { font-style: italic; font-size: 1.15rem; line-height: 1.45; }
.rv-cal p:last-child { margin-bottom: 0; }
/* page 9's four notices as the page's own notices (5 Dec): pictures in a column with the rule between;
   on phones the typed .rv-cal shows instead (the pictures' small print would be too small to read there) */
.rv-notes { display: grid; justify-items: center; margin-top: 4px; }
.rv-notes img { display: block; max-width: 100%; height: auto; }
.rv-notes .rule { margin: 12px auto; }
.rv-notes + .rv-cal { display: none; }

/* page 10's script: the speaker in red caps, later lines hang under the first word */
.rv-script p { margin: 0 0 .55em; padding-left: 1.4em; text-indent: -1.4em; }
.rv-who {
  margin-right: .3em;
  font-family: var(--caps);
  font-weight: 600;
  font-size: .8em;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--crimson-deep);
}
.rv-box.rv-script { text-align: left; }
.rv-article .rv-end { margin: 24px 0 0; font-style: italic; color: var(--ink-soft); }

/* ---------- Contact page (contact/index.html, 5 Dec, user) ----------
   Like the issue page: paper top bar + masthead, then the room picture. Redone the same day as the user's
   mock-up, then (round 2, user) on the Gothic Raven parchment letterhead from Journal/Mail: torn edge, its own
   double-line frame, corner fleurs, side stars and the raven crest at the top; the ribbon with the real seal over
   the top-right corner; his address as a framed plaque; the permission text in its own framed box; the raven on
   the letter at the foot. The letterhead is a 9-slice (letterhead-sheet.webp, crest + stars painted out; slices
   300 300 320 300 hold the corners, the rest stretches), the crest and stars laid back on at their own size;
   --sb = the shown size of a 300 px slice. Two more sheets of it peek out behind.
   Before round 2: plain parchment (.card) with a thin red row-frame inside the edge, the academy crest as a
   faint mark top-left with "Raventhorn Academy" typed on its banner (crest-mark.webp), the address plaque
   with a lighter box inside. Before the mock-up: one card in the gold archive frame (.panel).
   Art: assets/contact/ (scratchpad rt-contact-art.cjs, rt-contact-sheet.cjs, from the user's pictures). */
.contact-band {
  padding-top: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(40px, 6vw, 84px);
  border-top: 3px double var(--gold-line);
}
.contact-pile { --sb: 150px; --gap: 30px; position: relative; max-width: 780px; margin: 0 auto; isolation: isolate; }
/* the letterhead (the top sheet) and the two sheets peeking out behind it */
.contact-pile::before, .contact-pile::after, .contact-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  box-sizing: border-box;
  border: solid transparent;
  border-width: var(--sb) var(--sb) calc(var(--sb) * 16 / 15) var(--sb);
  border-image: url("assets/contact/letterhead-sheet.webp") 300 300 320 300 fill / var(--sb) var(--sb) calc(var(--sb) * 16 / 15) var(--sb) stretch;
  filter: drop-shadow(0 12px 14px rgb(20 8 2 / .5));
  pointer-events: none;
}
.contact-pile::before { inset: -8px -5px 6px 9px; transform: rotate(.6deg); }
.contact-pile::after { inset: 7px 8px -12px -9px; transform: rotate(-.5deg); }
.contact-card {
  position: relative;
  z-index: 0;
  /* inside the letterhead's frame (inner lines at .403 / .457 / .51 of a slice), below its crest */
  padding: calc(var(--sb) * 1.857 + 12px) calc(var(--sb) * .403 + var(--gap)) calc(var(--sb) * .51 + 24px);
  text-align: center;
}
.contact-card::before { inset: 0; }
/* the letterhead's side stars, at the middle of its side lines */
.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/contact/letterhead-star.webp") no-repeat, url("assets/contact/letterhead-star.webp") no-repeat;
  background-size: calc(var(--sb) * .297) auto;
  background-position: left calc(var(--sb) * .233) top 50%, right calc(var(--sb) * .227) top 50%;
  pointer-events: none;
}
/* the letterhead's crest, at its own size */
.contact-crest {
  position: absolute;
  top: calc(var(--sb) * .2);
  left: 50%;
  width: calc(var(--sb) * 1.33);
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
}
/* the ribbon over the top-right corner: its top end on the paper's top edge, its far end on the right edge */
.contact-ribbon {
  position: absolute;
  top: calc(var(--sb) * .13);
  right: calc(var(--sb) * .13);
  z-index: 1;
  width: clamp(96px, 19%, 150px);
  height: auto;
  filter: drop-shadow(0 3px 3px rgb(30 12 4 / .35));
  pointer-events: none;
}
.contact-card .label { display: inline-block; padding: 0 .4em; border-bottom: 0; }
.contact-card h1 { margin: 8px 0 0; }
.contact-card .rule { margin: 10px auto 14px; }
.contact-intro {
  max-width: 30rem;
  margin: 0 auto 18px;
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  line-height: 1.45;
  text-wrap: pretty;
}
.contact-intro p { margin: 0 0 10px; }
.contact-intro p:last-child, .contact-note p:last-child { margin-bottom: 0; }
/* his address as a framed plaque: envelope | "Write to Gideon Harrow" over the address; inside, the sheet's
   own paper (round 2, user: no lighter box inside) */
.contact-email { margin: 0 0 12px; }
.contact-email a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 20px solid transparent;
  border-image: url("assets/row-frame.webp") 36 / 20px stretch;
  padding: 0 8px;
  color: var(--crimson);
  text-decoration: none;
  overflow-wrap: break-word; /* the long address breaks after the @ (a <wbr> there) on narrow phones */
}
.contact-email a:hover .contact-email-address { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contact-email a:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }
.contact-email .ico {
  flex: none;
  width: 1.75em;
  margin-right: .75em;
  padding-right: .75em;
  border-right: 1px solid rgb(123 42 36 / .5);
  box-sizing: content-box;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.contact-email-text { display: grid; gap: 1px; text-align: left; min-width: 0; }
.contact-email-label {
  font-family: var(--caps);
  font-weight: 600;
  font-size: clamp(.98rem, 1.7vw, 1.12rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--crimson-deep);
}
.contact-email-address { font-weight: 600; font-size: clamp(1.08rem, 1.9vw, 1.28rem); line-height: 1.2; }
.contact-note { max-width: 34rem; margin: 0 auto; font-style: italic; color: var(--ink-soft); text-wrap: pretty; }
.contact-note p { margin: 0 0 8px; }
.contact-card .ornament { margin: 18px auto 14px; width: min(70%, 380px); }
/* the permission text in its own framed box, a shade darker than the sheet */
.permission {
  position: relative;
  isolation: isolate;
  max-width: 40rem;
  margin: 0 auto;
  border: 26px solid transparent;
  border-image: url("assets/row-frame.webp") 36 / 26px stretch;
  padding: 0 clamp(2px, 1.5vw, 14px);
  text-align: left;
  font-size: 1.12rem;
  line-height: 1.45;
}
.permission::before {
  content: "";
  position: absolute;
  inset: -17px -15px; /* out from the padding box to just under the frame's inner line (as .issue-row) */
  z-index: -1;
  background: rgb(214 180 128 / .22);
  box-shadow: inset 0 0 18px rgb(150 105 55 / .14);
}
.permission-title {
  margin: 0 0 8px;
  text-align: center;
  font-family: var(--caps);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--crimson-deep);
}
.permission p { margin: 0 0 8px; }
.permission p:last-child { margin-bottom: 0; }
.permission ul { margin: 0 0 10px; padding-left: 1.3em; }
.permission li { margin-bottom: 6px; }
.permission li::marker { color: var(--crimson); }
/* the raven on the letter, between laurels and lines, at the sheet's foot */
.contact-foot { display: block; width: min(49.9%, 320px); height: auto; margin: 22px auto 0; } /* 20% smaller twice (user, 5 Dec); was min(62.4%, 400px), first min(78%, 500px) */
@media (max-width: 600px) {
  .contact-pile { --sb: 80px; --gap: 12px; }
  .contact-pile::before { inset: -6px -4px 4px 6px; }
  .contact-pile::after { inset: 5px 5px -9px -6px; }
  .contact-ribbon { width: 74px; }
  .contact-email a { flex-direction: column; border-width: 16px; border-image-width: 16px; padding: 0 4px; }
  .contact-email .ico { margin: 0 0 4px; padding: 0; border: 0; }
  .contact-email-text { text-align: center; }
  .permission { border-width: 18px; border-image-width: 18px; padding: 0; font-size: 1.08rem; }
  .permission::before { inset: -12px -11px; }
  .contact-foot { width: 58.9%; margin-top: 16px; } /* 20% smaller twice; was 73.6%, first 92% */
}

/* ---------- tablets ---------- */

@media (max-width: 1000px) {
  .sprig { display: none; }
}

@media (max-width: 880px) {
  :root { --frame-w: 36px; }
  .topnav a { font-size: .86rem; letter-spacing: .1em; }
  .latest-grid { grid-template-columns: minmax(0, 1fr); }
  .cover { width: min(78%, 340px); margin-bottom: 8px; }
  .issue-row { grid-template-columns: auto minmax(0, 1fr); }
  .issue-row .btn { grid-column: 1 / -1; justify-self: center; }
  .invitation-body { padding-right: 0; padding-top: clamp(40px, 9vw, 70px); }
  .seal { width: clamp(92px, 20%, 150px); top: calc(-1 * var(--frame-w)); } /* 5 Dec: was - 12px (above the paper) */
}

/* ---------- phones ---------- */

@media (max-width: 600px) {
  :root { --frame-w: 30px; --gutter: 10px; }
  body { font-size: 1.2rem; }
  .topbar-inner { flex-direction: column; gap: 4px; padding-block: 8px 2px; }
  .brand-crest { height: 36px; }
  .topnav a.lm-link { gap: 9px; }
  .lm-link .lm-word { padding-block: 7px 5px; }
  .lm-icon { width: 30px; }
  .brand-name { font-size: .82rem; letter-spacing: .18em; }
  .brand-name span { display: inline; }
  .topnav ul { gap: 2px 18px; }
  .topnav a { font-size: .76rem; letter-spacing: .08em; padding-block: 7px 5px; }
  .btn { white-space: nowrap; font-size: 1.25rem; padding-inline: 1.2em; }
  .btn.btn-arrow { --bh: 2.4em; padding-inline: calc(var(--bh) * 1.2); }
  .kicker { font-size: 1.3rem; white-space: nowrap; gap: 10px; }
  .kicker::before, .kicker::after { width: 22px; }
  .ruled { gap: 10px; }
  .ruled::before, .ruled::after { width: 20px; }
  .ruled-title { gap: 8px; }
  .issue-no, .published { white-space: nowrap; }
  .issue-row { border-width: 18px; border-image-width: 18px; padding: 0; gap: 10px; }
  .issue-row::before { inset: -12px -10px; }
  .issue-meta .edition { font-size: 1.75rem; }
  .published { font-size: 1.15rem; }
  .view-toggle label { flex: 1; justify-content: center; white-space: nowrap; font-size: .78rem; letter-spacing: .04em; padding: .7em .6em; gap: .35em; }
  /* masthead: keep the centre (crest + title) and drop the side props */
  .masthead { padding-inline: 0; overflow: hidden; }
  .masthead img { aspect-ratio: 1750 / 627; object-fit: cover; object-position: 50% 0; }
  .welcome { margin: 22px 12px 0; }
  .panel { padding-inline: 2px; }
  .rv-page, .rv-contents { padding-inline: 8px; } /* after .panel: long reading needs a little room from the frame */
  .rv-article { font-size: 1.22rem; }
  .rv-teasers { grid-template-columns: minmax(0, 1fr); }
  /* sign-offs: the signature / name on its own line, the drawings under it */
  .rv-signoff { flex-wrap: wrap; justify-content: center; row-gap: 10px; }
  .rv-so-p2sig { order: -1; width: 90%; }
  .rv-so-p2books { width: 60%; }
  .rv-so-p2seal { width: 30%; }
  .rv-so-p3name { order: -1; width: 100%; }
  .rv-so-p3books { width: 78%; }
  .rv-quote-framed { border-width: 24px 32px; padding: 0 2px; }
  .rv-quote-framed-p8 { border-width: 27px 33px 27px 32px; }
  .rv-books-box { grid-template-columns: minmax(0, 1fr); }
  .rv-books-box .rv-books { grid-area: 1 / 1; justify-self: start; width: 92px; margin: 0 0 -34px 2px; }
  .rv-books-box .rv-box { grid-area: 2 / 1; margin: 0; padding: 34px 12px 14px; }
  .rv-notes { display: none; }
  .rv-letter { --k: .2; } /* the letter paper smaller (was: plain sheet padding 16px 16px 26px) */
  .rv-letter .rv-reply { --shift: 8px; }
  .rv-notes + .rv-cal { display: grid; }
  .rv-box { padding-inline: 12px; }
  .rv-finale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-article .rv-finale .rv-end { grid-column: 1 / -1; grid-row: 3; margin-top: 10px; }
  .rv-finale-pic { width: 72px; }
  .rv-finale-pic:last-child { justify-self: end; }
  .btn { width: 100%; }
  .latest .art-title img { width: min(100%, 300px); }
  .issue-row { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .thumb { width: 120px; }
  .issue-row .btn { width: 100%; }
  .colophon a { padding-inline: 8px; font-size: .74rem; letter-spacing: .06em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .cover, .topnav a, .lm-link .lm-word, .rv-teaser { transition: none; }
  .btn:hover, .cover:hover, .rv-teaser:hover { transform: none; }
  /* the issue's pile of pages: a turned page just fades away instead of turning over */
  .flipbook .pages > li { transition: opacity .2s ease, visibility 0s linear 0s; }
  .flipbook .pages > li[data-at="gone"] { transform: none; transition: opacity .2s ease, visibility 0s linear .2s; }
}
