/* =====================================================================
   public.css: QuillovsCreations.com, the public site (and ForgeFront's
   public face, which the export copies).

   Split out of ForgeFront's style.css on 2026-11-02, so the public site no
   longer carries the workbench's rules: the site loads this file and nothing
   else; ForgeFront's velvet pages with PUBLIC_MODE off load style.css first
   and this after it (public_base.html), for the workbench's notes and players.
   Every rule here was checked to match a public page, in three exports (the
   doors as they are, every door open, every door closed); the split changed
   no pixel of any of them (2026-11-02, before the stabilization pass's own
   changes). The workbench's rules for these pages (audio players, lyrics,
   play all, the shut-down button, workbench notes) stayed in style.css.

   The look: deep aubergine ground, midnight surfaces, warm ivory text, a
   muted brass accent; no glow, no neon. Every colour is a variable on
   body.velvet; each imprint turns the same depths to its own hue.

   The blocks keep the order they were made in, dated, because several rules
   win only by coming after another of the same weight; reordering them by
   page would change what they do. In the split (2026-11-02) a later rule that
   only replaced a value was folded into the rule it replaced (the wordmark,
   the video's width, the page variables, the reading panel's three blocks),
   and rules no template uses any more were dropped (.pf-columns, .pf-premise,
   .pf-syn, .pf-desc, .pf-folder, a landing lede). Roughly: the ground and
   type; the front page; imprint pages; the book page (head, then the reading
   panel); songs; folds; closed doors; the imprints' colours; albums; Slop
   Bucket; the first visitor's notes; and last, the 2026-11-02 block (skip
   link, focus, Sample Contents, the foot of a book's page, reduced motion).

   The export (export_site.py) refuses a page with a script, form, inline
   style or anything loaded from outside but YouTube's player; nothing here
   needs one.
   ===================================================================== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Heading sizes the public pages have always had underneath their own: they
   came from the workbench's h1 and h2 until 2026-11-02, and the public rules
   set over them where it matters. Kept so nothing moved in the split. */
h1 { font-size: 1.4rem; margin: .4rem 0; }
h2 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; }

/* 2026-09-25: THE PUBLIC FACE, velvet and leather. */
body.velvet {
  --pf-bg:        #120d1c;   /* leather: near-black aubergine */
  --pf-bg-2:      #1a1230;   /* velvet: the midnight-violet sheen */
  --pf-surface:   #1d1a35;   /* midnight blue-violet panels */
  --pf-surface-2: #262047;
  --pf-ink:       #ebe3d3;   /* warm ivory */
  --pf-ink-soft:  #b4a893;
  --pf-brass:     #c4a15f;   /* muted brass */
  --pf-brass-dim: #8f7646;
  --pf-line:      #3a3060;
  --pf-plum:      #4a2a62;
  --pf-radius:    6px;
  --pf-serif:     Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --pf-shadow:    0 14px 40px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.04) inset;
  --pf-brass-text: #b19256;  /* dim brass for small text: 4.59:1 on the lightest
                                ground of every imprint (2026-11-02; --pf-brass-dim,
                                3.1 to 3.5:1, stays for rules, markers, borders) */
  --pf-wide-width: 80%;      /* a book's page, from 900 px (2026-10-11) */
  --pf-cover-slot: 280px;    /* the cover's slot beside a book's title */
  --pf-measure:    29.5em;   /* the reading column, in em of its type (2026-11-02) */

  margin: 0; min-height: 100vh;
  color: var(--pf-ink); font-family: var(--pf-serif); font-size: 17px; line-height: 1.6;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(88,52,120,.55), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(38,44,110,.55), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, rgba(74,42,98,.35), transparent 60%),
    linear-gradient(180deg, var(--pf-bg-2), var(--pf-bg) 55%);
}
body.velvet a { color: var(--pf-brass); text-decoration: none; }
body.velvet a:hover { color: var(--pf-ink); text-decoration: underline; text-underline-offset: .18em; }

/* header */
.pf-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: .4rem 1.2rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--pf-line);
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0)); }
.pf-wordmark { display: inline-flex; align-items: center; gap: .75rem;   /* the logo, 2026-10-11 */
  font-size: 1.5rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--pf-ink); font-weight: 400; }
.pf-wordmark:hover { text-decoration: none; color: var(--pf-brass); }
.pf-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem 1rem; font-size: .95rem; }
.pf-nav a { color: var(--pf-ink-soft); padding: .15rem 0; border-bottom: 1px solid transparent; }
.pf-nav a:hover, .pf-nav a.on { color: var(--pf-ink); text-decoration: none; border-bottom-color: var(--pf-brass); }
.pf-navgap { width: 1px; height: 1.1em; background: var(--pf-line); }

.pf-main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.2rem 3rem; }
.pf-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem;
  max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.2rem 2rem; border-top: 1px solid var(--pf-line);
  color: var(--pf-ink-soft); font-size: .85rem; text-align: center; }

/* type */
.pf-kicker { margin: 0 0 .3rem; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--pf-brass); }
.pf-title { margin: 0 0 .6rem; font-size: 2.4rem; line-height: 1.1; font-weight: 400; }
.pf-lede { margin: 0 0 .4rem; font-size: 1.15rem; color: var(--pf-ink); font-style: italic; }
.pf-blurb { color: var(--pf-ink-soft); }
.pf-soft { color: var(--pf-ink-soft); font-size: .95rem; }
.pf-byline { margin: 0 0 .5rem; color: var(--pf-ink-soft); }
.pf-byline b { color: var(--pf-ink); font-weight: 400; letter-spacing: .04em; }
.pf-h2 { font-size: 1.5rem; font-weight: 400; margin: 2rem 0 .6rem; padding-bottom: .3rem;
  border-bottom: 1px solid var(--pf-line); }
.pf-tag { display: inline-block; margin-left: .4rem; padding: .05rem .5rem; font-size: .7rem;
  letter-spacing: .06em; text-transform: uppercase; font-family: system-ui, "Segoe UI", sans-serif;
  color: var(--pf-ink-soft); border: 1px solid var(--pf-line); border-radius: 999px; vertical-align: middle; }

/* landing */
.pf-hero { text-align: center; padding: 2.5rem 0 2rem; }
.pf-hero .pf-title { font-size: 2.6rem; }
.pf-cards { display: grid; gap: 1.4rem; grid-template-columns: 1fr; margin: 0 auto 2rem; max-width: 1000px; }
@media (min-width: 720px) { .pf-cards { grid-template-columns: repeat(3, 1fr); } }
.pf-card { display: flex; flex-direction: column; color: var(--pf-ink);
  background: linear-gradient(160deg, var(--pf-surface-2), var(--pf-surface) 60%);
  border: 1px solid var(--pf-line); border-radius: var(--pf-radius);
  box-shadow: var(--pf-shadow); overflow: hidden;
  transition: transform .18s ease, border-color .18s ease; }
.pf-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--pf-brass-dim); }
.pf-art { aspect-ratio: 4 / 5; background: var(--pf-bg); border-bottom: 1px solid var(--pf-line); }
.pf-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-art-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem; background:
    radial-gradient(60% 50% at 50% 40%, rgba(196,161,95,.10), transparent 70%),
    linear-gradient(180deg, var(--pf-plum), var(--pf-bg-2)); }
.pf-monogram { width: 5.5rem; height: 5.5rem; display: grid; place-items: center; font-size: 3rem;
  color: var(--pf-brass); border: 1px solid var(--pf-brass-dim); border-radius: 50%; }
.pf-art-note { font-family: system-ui, "Segoe UI", sans-serif; font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--pf-brass-text); text-align: center; line-height: 1.5; }
.pf-art-empty.small { aspect-ratio: 4 / 5; }
.pf-card-text { padding: 1rem 1.2rem 1.2rem; }
.pf-card-text h2 { margin: 0 0 .3rem; font-size: 1.35rem; font-weight: 400; letter-spacing: .02em; }
.pf-card-text p { margin: 0 0 .8rem; color: var(--pf-ink-soft); font-size: .95rem; }
/* 2026-10-29: the cards' "Enter" cue is gone (the Writer); the card is the link. */

/* imprint page */
.pf-imprint-head { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; margin-top: .5rem; }
@media (min-width: 720px) { .pf-imprint-head { grid-template-columns: 220px 1fr; } }
.pf-imprint-art { border: 1px solid var(--pf-line); border-radius: var(--pf-radius); overflow: hidden;
  box-shadow: var(--pf-shadow); max-width: 260px; }
.pf-imprint-art img { display: block; width: 100%; }
.pf-panel { background: linear-gradient(160deg, var(--pf-surface-2), var(--pf-surface) 70%);
  border: 1px solid var(--pf-line); border-radius: var(--pf-radius); box-shadow: var(--pf-shadow);
  padding: 1rem 1.3rem; margin: .9rem 0; }
.pf-panel.pf-soon { border-style: dashed; box-shadow: none; }
.pf-books { margin: .4rem 0 0; padding-left: 1.6rem; }
.pf-books.plain { list-style: none; padding-left: 0; }
.pf-books li { margin: .35rem 0; }
.pf-books li::marker { color: var(--pf-brass-text); }
.pf-booktitle { color: var(--pf-ink); }
a.pf-booktitle:hover { color: var(--pf-brass); }

/* about, contact */
.pf-page { max-width: 760px; }
.pf-prose p { margin: .6rem 0; }
.pf-contact { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; }
.pf-contact dt { color: var(--pf-brass); font-family: system-ui, "Segoe UI", sans-serif; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase; padding-top: .2rem; }
.pf-contact dd { margin: 0; }

@media (max-width: 600px) {
  .pf-title { font-size: 1.9rem; } .pf-hero .pf-title { font-size: 2rem; }
  .pf-head { padding: .8rem 1rem; }
}


.pf-genres { display: flex; justify-content: center; align-items: baseline; gap: .6em; letter-spacing: .06em; }
.pf-genres .pf-bar { color: var(--pf-brass-dim); font-weight: 300; }

/* The landing is sized against the viewport height, so the three doors sit
   entirely on screen: the art keeps its 4:5 ratio and the card width follows
   from the height left after the header, hero, card text and footer
   (about 500px together). On a 1920x1080 screen (viewport ~950px) that
   gives cards of roughly 300px; a taller screen gets larger cards, up to
   the 1200px row. Never crops the art. */
.pf-landing .pf-hero { padding: 1.4rem 0 1.2rem; }
.pf-landing .pf-hero .pf-title { font-size: 2.2rem; margin-bottom: .3rem; }
.pf-landing .pf-cards {
  margin-bottom: .5rem;
  --pf-art-h: calc(100vh - 500px);
  max-width: clamp(640px, calc(var(--pf-art-h) * 0.8 * 3 + 2 * 1.4rem), 1200px);
}
.pf-landing .pf-card-text { padding: .8rem 1.1rem .9rem; }
.pf-landing .pf-card-text h2 { font-size: 1.2rem; }
.pf-landing .pf-card-text p { margin-bottom: .5rem; font-size: .9rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-landing + .pf-foot { padding-top: .8rem; padding-bottom: 1rem; }
@media (max-width: 719px) { .pf-landing .pf-cards { max-width: 420px; } }

/* --- 2026-09-26: the Songs section (velvet) --------------------------- */
.pf-crumbs { margin: 0 0 .8rem; font-size: .9rem; color: var(--pf-ink-soft); }
.pf-count { font-size: .8rem; letter-spacing: .06em; color: var(--pf-brass-text); margin-left: .5rem;
  font-family: system-ui, "Segoe UI", sans-serif; vertical-align: middle; }
.pf-small { font-size: .85rem; }

/* --- 2026-09-26 (second pass): shut down on the public face; song art --- */
.pf-song-art video, .pf-song-art img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pf-art-default { opacity: .8; }




/* --- 2026-10-04: the hosted site: YouTube player, book pages --- */
.pf-video { aspect-ratio: 16 / 9; width: 100%; max-width: 480px; background: #000; border: 1px solid var(--pf-line); border-radius: 6px; overflow: hidden; }
.pf-video iframe { display: block; width: 100%; height: 100%; border: 0; }
/* The reading panel (a book's sample, a Slop Bucket piece) is set out below,
   after the book page's head (2026-11-02: its rules from here, 2026-10-11 and
   2026-10-31 brought together). */
/* the landing headline fitted to a phone (it ran off the right edge at 390 px) */
@media (max-width: 600px) {
  .pf-landing .pf-hero .pf-title { font-size: clamp(1.1rem, 5.6vw, 2.2rem); }
  .pf-genres { gap: .4em; letter-spacing: .03em; }
}
/* footer names are links (2026-10-04): dim brass, full brass when hovered; the
   dim brass lightened to --pf-brass-text on 2026-11-02 so the small type reads */
body.velvet .pf-foot a { color: var(--pf-brass-text); }
body.velvet .pf-foot a:hover { color: var(--pf-brass); }


/* --- 2026-10-11: the logo before the site's name; a book's cover on its page --- */
.pf-logo { display: block; flex: none; width: 44px; height: 44px; border-radius: 4px;
  border: 1px solid var(--pf-brass-dim); box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.pf-book-head { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 720px) { .pf-book-head { grid-template-columns: 220px 1fr; } }
.pf-cover { max-width: 260px; border: 1px solid var(--pf-line); border-radius: 4px;
  overflow: hidden; box-shadow: var(--pf-shadow); }
.pf-cover img { display: block; width: 100%; height: auto; }
@media (max-width: 719px) { .pf-cover { max-width: 180px; } }
@media (max-width: 600px) {
  .pf-logo { width: 36px; height: 36px; }
  .pf-wordmark { gap: .55rem; font-size: 1.3rem; }   /* the name stays on one line beside the logo */
}

/* --- 2026-10-11 (second pass): a book's description beside its cover --- */
.pf-book-desc { margin-top: .9rem; max-width: 40rem; color: var(--pf-ink); line-height: 1.65; }
.pf-book-desc p { margin: 0 0 .75rem; }

/* --- 2026-10-11: Cobalt Tomes in cobalt. Its imprint page and its books' pages
   (body.imprint-cobalt-tomes) take the velvet theme's depths with the hue moved
   from violet (250-275) to cobalt (212-228); lightness kept, saturation raised a
   little so it reads as cobalt and not slate. Brass, ink and type unchanged. The
   two top glows sit at fixed distances from the top, so a long book page keeps
   them (as a percentage of a long page they rose out of sight). --- */
body.velvet.imprint-cobalt-tomes {
  --pf-bg:        #0b111e;   /* near-black navy */
  --pf-bg-2:      #0f1c33;   /* deep cobalt sheen */
  --pf-surface:   #162136;   /* cobalt-night panels */
  --pf-surface-2: #1c2c4a;
  --pf-line:      #2f456a;
  --pf-plum:      #24436b;
  background:
    radial-gradient(1200px 700px at 15% -140px, rgba(32,84,151,.55), transparent 60%),
    radial-gradient(900px 600px at 90% 140px, rgba(34,51,119,.55), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, rgba(32,69,111,.35), transparent 60%),
    linear-gradient(180deg, var(--pf-bg-2), var(--pf-bg) 55%);
}

/* --- 2026-10-11 (third pass): the book page uses 80% of the window, and the cover
   is as tall as the title and description beside it ---
   The page: from 900 px wide, a book's page (main.pf-wide) is 80% of the window;
   narrower, the whole width less the margins. The sample uses all of it. Change
   --pf-wide-width to change it.
   The cover: from 720 px wide, the column beside the cover sets the height of the
   head (the cover is taken out of the flow), and the cover is drawn as tall as that
   column, keeping its shape, inside a slot --pf-cover-slot wide. A cover that would
   be wider than the slot is drawn as wide as the slot instead, and is then shorter
   than the text. The head is at least 300 px tall, so a book with a short
   description still gets a cover of a fair size. CSS cannot make a picture's width
   follow the height of text that wraps around that width, so the text column's
   width is fixed by the slot and the description's own width, and the cover follows
   it. Below 720 px the cover sits above the title, as before. */
.pf-wide .pf-page.pf-book { max-width: none; }
@media (min-width: 900px) {
  .pf-main.pf-wide { width: var(--pf-wide-width); max-width: none; }
}
@media (min-width: 720px) {
  .pf-book-head { display: block; position: relative; min-height: 300px; }
  .pf-book-head > .pf-cover { position: absolute; top: 0; bottom: 0; left: 0;
    width: var(--pf-cover-slot); max-width: none; border: 0; border-radius: 0;
    box-shadow: none; overflow: visible; }
  .pf-book-head > .pf-cover img { width: auto; height: auto; max-width: 100%; max-height: 100%;
    border: 1px solid var(--pf-line); border-radius: 4px; box-shadow: var(--pf-shadow); }
  .pf-book-head > .pf-book-text { margin-left: calc(var(--pf-cover-slot) + 1.5rem); }
}

/* --- 2026-10-11 (fourth pass): the book page scales with the window ---
   Both parts of a book's page are query containers (container-type: inline-size),
   and their type is sized in cqi, hundredths of the container's width, so it grows
   and shrinks with the box it sits in.
   The sample: see the reading panel, below.
   The head (cover, title, byline, description): every size in it is in cqi of the
   head's width, so the whole head scales as one picture. At a 1280 px window it is
   as it was; at 1920 everything is about half again as large. The cover's slot is
   28% of the head (never under 280 px) and the cover is drawn as tall as the text
   beside it, so a description that fits beside its cover at one width fits at every
   width. The type keeps a floor (the old sizes), so below about 1280 px the text is
   relatively larger and the cover may stop at the slot's width. Browsers without container
   units (before 2022-2023) keep the third pass's fixed sizes. */
@media (min-width: 720px) {
  .pf-wide .pf-book-head { container-type: inline-size; min-height: 0; --pf-cover-slot: max(280px, 28cqi); }
  .pf-wide .pf-book-head > .pf-book-text { margin-left: calc(var(--pf-cover-slot) + 2.4cqi); min-height: 30cqi; }
  .pf-wide .pf-book-text .pf-kicker { font-size: clamp(.8rem, 1.3cqi, 1.6rem); margin: 0 0 .4em; }
  .pf-wide .pf-book-text .pf-title { font-size: clamp(2.4rem, 3.9cqi, 4.8rem); margin: 0 0 .25em; }
  .pf-wide .pf-book-text .pf-byline { font-size: clamp(1.0625rem, 1.75cqi, 2.1rem); margin: 0 0 .5em; }
  .pf-wide .pf-book-text .pf-lede { font-size: clamp(1.15rem, 1.9cqi, 2.3rem); }
  .pf-wide .pf-book-text .pf-soft { font-size: clamp(.95rem, 1.55cqi, 1.9rem); }
  .pf-wide .pf-book-text .pf-tag { font-size: clamp(.7rem, 1.15cqi, 1.4rem); }
  .pf-wide .pf-book-desc { font-size: clamp(1.08rem, 1.75cqi, 2.1rem); max-width: 65cqi; margin-top: .9em; }
  .pf-wide .pf-book-desc p { margin: 0 0 .75em; }
  /* the head is its own layout box now, so a last margin would show as a gap the
     cover fills; the text ends at its last line */
  .pf-wide .pf-book-text > :last-child, .pf-wide .pf-book-text > :last-child > :last-child { margin-bottom: 0; }
}

/* --- the reading panel: a book's sample, and a Slop Bucket piece -------------
   The panel (.pf-book-body) runs the width of the book page (80% of the window
   from 900 px, above). Inside it the text sits in a reading column, centred
   (.pf-measure, 2026-11-02); the Sample Contents and the foot of the page sit
   in the same column.
   Type (2026-10-11, fourth pass): the panel is a query container and the type
   is 2.35% of its width (cqi), so it grows with the window: never below
   1.08rem, so a phone reads as before, nor above 2.4rem, which it reaches at a
   window of about 2,140 px and keeps from there on.
   Measure (2026-11-02): the column is at most --pf-measure wide (top of this
   file), in em of that type, so a line holds about the same number of
   characters at every size. Measured on both samples (Georgia, the indents,
   this panel's padding) with 29.5em: a median of 71 to 72 characters a line,
   nine lines in ten 76 or under, none over 80 (the WCAG 1.4.8 ceiling), at
   every window from 768 to 5,120 px; 30em let one line in 270 reach 81.
   Before, a line held about 102 characters up to 2,140 px and grew past it
   without end (203 at 4,096 px, the Writer's wide screen). The brief of 2026-11-02: "Keep the WIDE reading
   panel. Inside that wide panel, constrain the actual prose to a comfortable
   book-like reading column." On a phone the column is the panel.
   Paragraphs (2026-10-31): set as in a printed book. The Writer, of Writ of
   Redemption's sample: "Is there a way to give it the chapter indents? It
   looks very 'wall of text' without them." Every paragraph starts with its
   first line indented and no gap above it, as his manuscript is set in Word
   (first line indented 0.5", no space between paragraphs). The first
   paragraph of the text, and the first after a heading, a scene break or the
   Sample Contents, starts flush, as printed books set it (Forging Reality's
   choice; take those flush selectors out to indent them too). The indent is
   in em, so it grows with the type. A paragraph of several lines straight
   after a heading (a chapter's place and date lines, which the Word converter
   keeps as one block) keeps a space below it, as the blank line under them
   does in Word; browsers without :has() (before 2022-2023) show none. --- */
.pf-book-body { line-height: 1.7; container-type: inline-size; }
.pf-measure { max-width: var(--pf-measure); margin: 0 auto; font-size: clamp(1.08rem, 2.35cqi, 2.4rem); }
.pf-measure p { margin: 0; text-indent: 1.5em; }
.pf-measure h2, .pf-measure h3 { font-family: var(--pf-serif); font-weight: normal; color: var(--pf-ink); }
.pf-measure h2 { font-size: clamp(1.5rem, 3.3cqi, 3.36rem); margin: 1.2em 0 .4em; }
.pf-measure h3 { font-size: clamp(1.2rem, 2.65cqi, 2.7rem); margin: 1.1em 0 .4em; }
.pf-measure > h2:first-child, .pf-measure > h3:first-child { margin-top: .1em; }
.pf-break { text-align: center; letter-spacing: .5em; color: var(--pf-brass-dim); }   /* * * *, an ornament */
.pf-measure p.pf-break { margin: .8em 0; text-indent: 0; }
.pf-measure > p:first-child, .pf-measure h2 + p, .pf-measure h3 + p,
.pf-measure .pf-break + p, .pf-measure .pf-contents + p { text-indent: 0; }
.pf-measure h2 + p:has(br), .pf-measure h3 + p:has(br) { margin-bottom: .8em; }

/* --- 2026-10-11 (fifth pass, revised): a book's Music tag ---
   The same pill as the status tags, in brass, as a link to the book's songs in
   Shrouded Sounds (imprint lists and the book's own page). */
body.velvet a.pf-tag-music { color: var(--pf-brass); border-color: var(--pf-brass-dim); }
body.velvet a.pf-tag-music:hover { color: var(--pf-bg); background: var(--pf-brass); border-color: var(--pf-brass); text-decoration: none; }

/* --- 2026-10-17: a series' art and description at the top of its box on an
   imprint page (files named for the series in QuillovsCreations\content\books).
   The art runs the box's full width, edge to edge inside its border, keeping its
   shape (measured: 1,060 px wide in the Cobalt Tomes box, so a 4:3 picture is about 790 px tall);
   the description under it keeps a reading width, as a book's does. */
.pf-series-art { margin: -1rem -1.3rem 1rem; overflow: hidden;
  border-radius: calc(var(--pf-radius) - 1px) calc(var(--pf-radius) - 1px) 0 0;
  border-bottom: 1px solid var(--pf-line); }
.pf-series-art img { display: block; width: 100%; height: auto; }
.pf-series-desc { max-width: 40rem; margin: 0 0 1rem; color: var(--pf-ink); line-height: 1.65; }
.pf-series-desc p { margin: 0 0 .75rem; }

/* --- 2026-10-18: folds on the imprint page. Each universe, and each box in
   it (a series, or the books outside any series), is a <details>: its heading
   is the switch, with a chevron before it that turns down when open. Plain
   HTML, no script, so the hosted site folds the same way. A universe opens by
   itself only when it is the page's one universe, a box only when it is its
   universe's one box. Series boxes now stack, one per row, instead of sitting
   side by side (.pf-columns is no longer used here), so an open box has the
   page's width. Inside a series box the description keeps its reading width
   on the left and the book list takes the rest on the right; when the box is
   narrower than 46rem (a phone, a narrow window) the list drops under the
   description. The books outside a lone series sit at the foot of its list.
   2026-11-02 (evening): the boxes inside a universe are gone (see the book
   shelf, at the end); the universe fold below is kept. */
.pf-fold > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .3rem 1rem; list-style: none; cursor: pointer; }
.pf-fold > summary::-webkit-details-marker { display: none; }
.pf-fold > summary::marker { content: ""; }
.pf-fold > summary:focus-visible { outline: 2px solid var(--pf-brass); outline-offset: 3px; border-radius: 3px; }
.pf-fold-title { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.pf-fold-title::before { content: ""; flex: none; width: .5rem; height: .5rem; margin: 0 .1rem 0 .15rem;
  border-right: 2px solid var(--pf-brass); border-bottom: 2px solid var(--pf-brass);
  transform: rotate(-45deg); transition: transform .15s ease; }
.pf-fold[open] > summary .pf-fold-title::before { transform: rotate(45deg); }
.pf-universe > summary .pf-fold-title::before { align-self: flex-end; margin-bottom: .95rem; }
@media (prefers-reduced-motion: reduce) { .pf-fold-title::before { transition: none; } }
.pf-fold-name { display: flex; flex-direction: column; min-width: 0; }
.pf-fold-name .pf-kicker { margin: 0 0 .1rem; font-size: .7rem; }
.pf-fold > summary h2, .pf-fold > summary h3 { margin: 0; font-weight: 400; }
.pf-fold > summary:hover h2, .pf-fold > summary:hover h3 { color: var(--pf-brass); }

/* a universe: its heading reads as the section heading it replaced */
.pf-universe { margin: 2rem 0 0; }
.pf-universe > summary { padding: 0 0 .4rem; border-bottom: 1px solid var(--pf-line); }
.pf-universe > summary h2 { font-size: 1.5rem; }

.pf-subhead { margin: 1rem 0 .1rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--pf-brass); }

/* --- 2026-10-18 (later): a universe's art, tagline and description, in a panel
   at the top of its fold (files named for the universe in content\books). The
   art runs edge to edge across the top of the panel, as a series' does; under
   it the description keeps its reading width on the left and the tagline sits
   beside it on the right, set larger in the brass italic of the page's ledes;
   when the panel is narrower than 46rem the tagline comes first, above the
   description. */
.pf-universe-intro { container-type: inline-size; }
.pf-fold .pf-universe-intro .pf-series-art { margin: -1rem -1.3rem 1rem; border-top: 0;
  border-radius: calc(var(--pf-radius) - 1px) calc(var(--pf-radius) - 1px) 0 0; }
.pf-universe-intro .pf-series-art:last-child { margin-bottom: -1rem; border-bottom: 0;
  border-radius: calc(var(--pf-radius) - 1px); }
.pf-intro-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem 2.2rem; align-items: start; }
.pf-intro-body .pf-series-desc { margin: 0; }
.pf-intro-body .pf-series-desc p:last-child { margin-bottom: 0; }
.pf-universe-tagline { color: var(--pf-brass); font-style: italic; font-size: 1.15rem; line-height: 1.5; }
.pf-universe-tagline p { margin: 0 0 .5rem; }
.pf-universe-tagline p:last-child { margin-bottom: 0; }
@container (min-width: 46rem) {
  .pf-intro-body.has-both { grid-template-columns: minmax(0, 40rem) minmax(15rem, 1fr);
    grid-template-areas: "desc tag"; }
  .pf-intro-body.has-both .pf-series-desc { grid-area: desc; }
  .pf-intro-body.has-both .pf-universe-tagline { grid-area: tag; padding-left: 1.6rem;
    border-left: 1px solid var(--pf-line); }
}

/* --- 2026-10-28: closed doors. A door whose key is in CLOSED_DOORS
   (forge_server.py) shows, on the public site, its picture washed out under
   a bright white banner lettered COMING SOON in red block capitals, on the
   landing card and on the door's own page. Each door's banner has its own
   angle (pf-soon-ban-1, -2, -3: the door's place in IMPRINTS), the same in
   both places. The lettering is sized from the picture's width (cqi), so it
   fits a phone's card as it does a wide screen's. Impact is the block face
   on Windows and Macs; a phone without it uses a condensed or heavy sans,
   which the size leaves room for. Open a door and none of this is used for
   it. */
.pf-closed.pf-imprint-art, .pf-closed .pf-art { position: relative; overflow: hidden;
  container-type: inline-size; }
.pf-closed img, .pf-closed .pf-art-empty { filter: saturate(.3) contrast(.7) brightness(1.18); }
.pf-closed.pf-imprint-art::after, .pf-closed .pf-art::after { content: ""; position: absolute; inset: 0;
  background: rgba(244, 238, 228, .34); pointer-events: none; }
.pf-soon-ban { position: absolute; z-index: 1; left: -30%; right: -30%; top: 50%;
  display: block; padding: .26em 0 .2em; text-align: center; white-space: nowrap;
  background: #ffffff; color: #d3121b;
  font-family: Impact, Haettenschweiler, "Franklin Gothic Heavy", sans-serif-condensed, "Arial Narrow", "Arial Black", sans-serif;
  font-weight: 900; font-stretch: condensed; font-size: 11.5cqi; line-height: 1;
  letter-spacing: .05em; text-transform: uppercase;
  box-shadow: 0 .35em 1.1em rgba(0, 0, 0, .5); transform: translateY(-50%) rotate(-20deg); }
.pf-soon-ban-2 { top: 56%; transform: translateY(-50%) rotate(13deg); }
.pf-soon-ban-3 { top: 44%; transform: translateY(-50%) rotate(-7deg); }
.pf-soon-ban-4 { top: 52%; transform: translateY(-50%) rotate(25deg); }

/* --- 2026-10-28 (later): the front page's Music | Romance | Fantasy lines up
   with the doors. The Writer: "Can you line up the bars between the words so
   they fall in the gaps of the pictures?" When the doors stand side by side
   (720 px and wider), the heading is laid out on the same width as the row of
   doors, in five columns: a word over each door, a bar in each gap between
   them (the doors' 1.4rem gap), so each word is centred over its door and
   each bar over its gap. --pf-art-h and the width are the same sums as
   .pf-landing .pf-cards'. A phone stacks the doors, so there are no gaps to
   meet and the heading keeps its centred line. */
@media (min-width: 720px) {
  .pf-landing .pf-hero .pf-genres {
    --pf-art-h: calc(100vh - 500px);
    display: grid; grid-template-columns: 1fr 1.4rem 1fr 1.4rem 1fr; gap: 0;
    justify-items: center; align-items: baseline;
    max-width: clamp(640px, calc(var(--pf-art-h) * 0.8 * 3 + 2 * 1.4rem), 1200px);
    margin-left: auto; margin-right: auto; }
}

/* --- 2026-10-28 (later still): each imprint in its own colour. The Writer:
   "Ragon Hoard needs to be the same tone but in a deep green, and Shrouded
   Sounds needs to be a deep ruby red", and "the title panel at the bottom needs
   to have those colors as well". Cobalt Tomes keeps its block of 2026-10-11
   above. Ragon Hoard and Shrouded Sounds take the same depths as cobalt, turned
   to green (OKLCH hue about 155) and to ruby (about 12): each value keeps
   cobalt's OKLCH lightness and chroma, so the three read as one family and the
   ivory text and brass keep the same contrast. Brass, ink and type unchanged.
   Pages: every page whose body carries imprint-<key> (the door's own page, its
   books' pages, and for Shrouded Sounds its folder and song pages). Panels:
   on the front page each door's card carries pf-tone-<key> (landing.html) and
   takes its imprint's colours, so the panel under the picture matches the
   door. If an imprint's key changes in IMPRINTS, change it here too. */
body.velvet.imprint-ragon-hoard {
  --pf-bg:        #06150c;   /* near-black forest */
  --pf-bg-2:      #062312;   /* deep green sheen */
  --pf-surface:   #0e2718;   /* forest-night panels */
  --pf-surface-2: #0f351f;
  --pf-line:      #245033;
  --pf-plum:      #204d2a;
  background:
    radial-gradient(1200px 700px at 15% -140px, rgba(6,102,43,.55), transparent 60%),
    radial-gradient(900px 600px at 90% 140px, rgba(4,70,46,.55), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, rgba(33,79,39,.35), transparent 60%),
    linear-gradient(180deg, var(--pf-bg-2), var(--pf-bg) 55%);
}
body.velvet.imprint-shrouded-sounds {
  --pf-bg:        #1c0c0d;   /* near-black garnet */
  --pf-bg-2:      #2f1217;   /* deep ruby sheen */
  --pf-surface:   #33181c;   /* ruby-night panels */
  --pf-surface-2: #451f25;
  --pf-line:      #64343c;
  --pf-plum:      #642f3c;
  background:
    radial-gradient(1200px 700px at 15% -140px, rgba(138,49,74,.55), transparent 60%),
    radial-gradient(900px 600px at 90% 140px, rgba(107,21,33,.55), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, rgba(103,46,63,.35), transparent 60%),
    linear-gradient(180deg, var(--pf-bg-2), var(--pf-bg) 55%);
}
/* the front page's panels: the same colours, without the page glows (the card
   keeps its own gradient, built from --pf-surface and --pf-surface-2) */
.pf-card.pf-tone-cobalt-tomes {          /* the values of the 2026-10-11 cobalt block */
  --pf-bg: #0b111e; --pf-bg-2: #0f1c33; --pf-surface: #162136; --pf-surface-2: #1c2c4a;
  --pf-line: #2f456a; --pf-plum: #24436b; }
.pf-card.pf-tone-ragon-hoard {
  --pf-bg: #06150c; --pf-bg-2: #062312; --pf-surface: #0e2718; --pf-surface-2: #0f351f;
  --pf-line: #245033; --pf-plum: #204d2a; }
.pf-card.pf-tone-shrouded-sounds {
  --pf-bg: #1c0c0d; --pf-bg-2: #2f1217; --pf-surface: #33181c; --pf-surface-2: #451f25;
  --pf-line: #64343c; --pf-plum: #642f3c; }

/* --- 2026-10-29: albums on the Shrouded Sounds page ---------------------
   The door page is a grid of album tiles (cover, title, tagline) and a
   Singles tile; an album page has a square cover and liner notes. Album
   covers are shown square, as music services show them; a COVER file of
   another shape is cropped to the middle. */
.pf-albums { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .pf-albums { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; } }
@media (min-width: 1000px) { .pf-albums { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pf-album { display: flex; flex-direction: column; color: var(--pf-ink); overflow: hidden;
  background: linear-gradient(160deg, var(--pf-surface-2), var(--pf-surface) 70%);
  border: 1px solid var(--pf-line); border-radius: var(--pf-radius); box-shadow: var(--pf-shadow);
  transition: transform .18s ease, border-color .18s ease; }
.pf-album:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--pf-brass-dim); color: var(--pf-ink); }
.pf-album:focus-visible { outline: 2px solid var(--pf-brass); outline-offset: 2px; }
.pf-album-cover { aspect-ratio: 1 / 1; background: var(--pf-bg); border-bottom: 1px solid var(--pf-line); overflow: hidden; }
.pf-album-cover img, .pf-album-cover video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-album-body { padding: .7rem .9rem .9rem; min-width: 0; }
.pf-album-title { font-size: 1.15rem; line-height: 1.25; margin-bottom: .25rem; overflow-wrap: anywhere; }
.pf-album-tagline { color: var(--pf-ink-soft); font-size: .92rem; font-style: italic; line-height: 1.4; }
.pf-album-meta { margin-top: .45rem; }
.pf-album-meta .pf-tag { margin-left: 0; }
.pf-album-art img, .pf-album-art video { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pf-liner { margin-top: .8rem; max-width: 44rem; color: var(--pf-ink-soft); line-height: 1.6; }
.pf-liner p { margin: 0 0 .8rem; }
@media (max-width: 600px) { .pf-album-body { padding: .55rem .65rem .7rem; } .pf-album-title { font-size: 1rem; } .pf-album-tagline { font-size: .85rem; } }

/* --- 2026-10-30: Slop Bucket. Short stories and articles that fit neither
   book imprint (SLOP_BUCKET in forge_server.py). On the front page it is a
   thin strip under the doors, as wide as their row (it spans the cards grid)
   and the doors' gap below them; the Writer: "thin and stretch across all
   three doors under the three". It is not a door, so it adds no heading word
   and no header or footer link. Its colour is galvanized: the doors' depths
   (cobalt's OKLCH lightness) with the colour taken out (chroma about .014,
   hue 235), on its strip, its page and its pieces' pages; the page glows are
   cobalt's turned grey the same way. Its picture is a square at the strip's
   left end, or the letter S while there is none; while its key is in
   CLOSED_DOORS a COMING SOON stamp sits at the right end (a slanted banner
   cannot fit a strip; on its own page the picture takes banner 4). Measured
   2026-10-30 at 1280 x 900: the strip is 57 px tall and fits in the room the
   landing's sizing leaves, so the doors keep their size; on a window 768 px
   tall the footer moves below the window. */
.pf-card.pf-tone-slop-bucket {
  --pf-bg: #0b1217; --pf-bg-2: #161e22; --pf-surface: #1b2327; --pf-surface-2: #262e33;
  --pf-line: #3e464c; --pf-plum: #3b4449; }
body.velvet.imprint-slop-bucket {
  --pf-bg:        #0b1217;   /* near-black steel */
  --pf-bg-2:      #161e22;
  --pf-surface:   #1b2327;   /* galvanized panels */
  --pf-surface-2: #262e33;
  --pf-line:      #3e464c;
  --pf-plum:      #3b4449;
  background:
    radial-gradient(1200px 700px at 15% -140px, rgba(73,87,95,.55), transparent 60%),
    radial-gradient(900px 600px at 90% 140px, rgba(48,61,68,.55), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, rgba(57,70,78,.35), transparent 60%),
    linear-gradient(180deg, var(--pf-bg-2), var(--pf-bg) 55%);
}
.pf-landing .pf-strip { grid-column: 1 / -1; flex-direction: row; align-items: stretch; position: relative; }
.pf-strip-art { flex: 0 0 3.6rem; display: grid; place-items: center; overflow: hidden;
  font-size: 1.5rem; color: var(--pf-brass);
  background: linear-gradient(180deg, var(--pf-plum), var(--pf-bg-2)); border-right: 1px solid var(--pf-line); }
.pf-strip-art img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
/* (later, 2026-10-30) the picture stays square; where the strip wraps to two or three lines
   (narrow windows, phones) it sits in the middle of the taller end, not cropped to a slice.
   Behind it the end is the picture's own background, so the end reads as one panel at any
   height (the Writer: "match the space behind it"). #ababab is the flat grey behind the bin in
   Slop_Bucket_Image.jpg, measured 171,171,171 on every edge; change it if the picture changes. */
.pf-strip-art.has-pic { background: #ababab; }
.pf-landing .pf-strip .pf-card-text { display: flex; flex-wrap: wrap; align-items: baseline;
  column-gap: 1rem; padding: .75rem 1.1rem; min-width: 0; }
.pf-landing .pf-strip .pf-card-text h2 { margin: 0; }
.pf-landing .pf-strip .pf-card-text p { margin: 0; display: block; -webkit-line-clamp: unset; overflow: visible; }
.pf-strip.pf-closed .pf-strip-art { filter: saturate(.3) contrast(.7) brightness(1.4); }
.pf-strip.pf-closed .pf-strip-art img { filter: none; }
.pf-strip-stamp { position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%) rotate(-4deg);
  padding: .2em .6em .14em; background: #ffffff; color: #d3121b; font-size: 1.15rem; line-height: 1;
  font-family: Impact, Haettenschweiler, "Franklin Gothic Heavy", sans-serif-condensed, "Arial Narrow", "Arial Black", sans-serif;
  font-weight: 900; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 .3em .9em rgba(0, 0, 0, .5); }
.pf-strip.pf-closed .pf-card-text { padding-right: 12.5rem; }
@media (max-width: 719px) {
  .pf-strip.pf-closed .pf-card-text { padding-right: 1.1rem; padding-top: 2.1rem; }
  .pf-strip-stamp { top: .55rem; right: .8rem; transform: rotate(-4deg); font-size: .95rem; }
}
/* its page: its picture (or the S) square, like its tiles. The tiles are the
   album tiles (2026-10-29); a piece with no picture shows the first letter of
   its title in brass on the galvanized ground. */
.pf-art-square img { aspect-ratio: 1 / 1; object-fit: cover; }
.pf-pieces-shelf { margin-top: 2rem; }   /* no heading over the tiles, so the gap is set here */
.pf-art-square .pf-art-empty.small { aspect-ratio: 1 / 1; }
.pf-piece .pf-album-cover { display: grid; place-items: center;
  background: linear-gradient(180deg, var(--pf-plum), var(--pf-bg-2)); }
.pf-letter { font-size: clamp(2.6rem, 9vw, 4.2rem); color: var(--pf-brass); line-height: 1; }
.pf-piece .pf-album-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; }
.pf-piece-date { color: var(--pf-ink-soft); font-size: .8rem; }
/* 2026-10-30 (later): the end of a piece's page, back to the bucket on the
   left and the next piece on the right (one under the other on a phone) */
.pf-piece-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem;
  margin: 1.4rem 0 .4rem; font-size: 1.05rem; }
.pf-piece-next { margin-left: auto; text-align: right; }
@media (max-width: 600px) { .pf-piece-nav { flex-direction: column; } .pf-piece-next { margin-left: 0; text-align: left; } }
/* 2026-10-31: paragraphs set as in a printed book: see the reading panel. */

/* --- 2026-10-31 (later): the first visitor's notes on the public site. The
   Writer, passing them on: "The Fantasy - Music - Romance headers need to be
   clickable. On the song page, can you make the YouTube window smaller? Also,
   There is no way to go back to the album list. Also, the song list only has
   the title of the song clickable. Make each song its own tile, with the
   Image, and name, under all clickable."
   1. The front page's words open their doors (landing.html): ivory as before,
      brass when pointed at, the same as a link anywhere else on the site.
   2. The player is at most 640 px wide (was 860; set in the 2026-10-04 rule):
      640 x 360, a standard YouTube size. On a phone it still fills the width.
   3. A song page ends with "Back to" the album or Singles its trail names, and
      All albums; an album page and Singles end with All albums
      (song_public.html, album.html).
   4. On the public face an album's songs, and Singles', are tiles like the
      album tiles: the picture, square, with the number and name under it, the
      whole tile the link (album.html). The workbench keeps its list. --- */
.pf-genres a.pf-genre { color: inherit; text-decoration: none; transition: color .18s ease; }
.pf-genres a.pf-genre:hover { color: var(--pf-brass); text-decoration: none; }
.pf-genres a.pf-genre:focus-visible { outline: 2px solid var(--pf-brass); outline-offset: 4px; border-radius: 2px; }
.pf-back-nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.6rem;
  margin: 1.6rem 0 .4rem; font-size: 1.05rem; }
.pf-track .pf-track-no { color: var(--pf-brass-text); font-family: system-ui, "Segoe UI", sans-serif;
  font-size: .8em; margin-right: .5em; }

/* =====================================================================
   2026-11-02: the stabilization pass (the Writer's brief of that day).
   ===================================================================== */

/* Skip link: the first thing a keyboard reaches on every page, out of sight
   until it has the focus; it jumps past the header to the page's content
   (main#main, which takes the focus without drawing a ring of its own). */
body.velvet a.pf-skip { position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: .5rem 1rem; border-radius: var(--pf-radius); background: var(--pf-brass); color: var(--pf-bg);
  font-family: system-ui, "Segoe UI", sans-serif; font-size: .95rem; text-decoration: none; }
body.velvet a.pf-skip:focus { top: .8rem; outline: 2px solid var(--pf-ink); outline-offset: 2px; }
.pf-main:focus { outline: none; }

/* Keyboard focus: every link shows a brass ring when reached from the
   keyboard (the folds, album tiles and front-page words had their own
   already, and keep them). A mouse click draws none (:focus-visible). */
body.velvet a:focus-visible { outline: 2px solid var(--pf-brass); outline-offset: 3px; border-radius: 2px; }
.pf-card:focus-visible { outline-offset: 4px; }

/* Sample Contents: a sample's chapter headings, as links, at the top of the
   reading column. Small and quiet, under the book's title and description:
   the kicker's brass capitals for its name, the chapter names a size under
   the text. Sized in em, so it scales with the text it leads into. */
.pf-contents { margin: 0 0 1.8em; padding: 0 0 1.1em; border-bottom: 1px solid var(--pf-line); }
.pf-measure .pf-contents-title { margin: 0 0 .55em; font-family: var(--pf-serif); font-weight: 400;
  font-size: .62em; letter-spacing: .18em; text-transform: uppercase; color: var(--pf-brass); }
.pf-contents-list { list-style: none; margin: 0; padding: 0; font-size: .72em; line-height: 1.45;
  columns: 2 15em; column-gap: 2.5em; }   /* two columns where the column has room */
.pf-contents-list li { margin: 0 0 .3em; break-inside: avoid; }
.pf-contents-list .pf-contents-l3 { padding-left: 1.4em; }
.pf-contents-list em { color: var(--pf-ink-soft); }
.pf-contents-list a:hover em { color: inherit; }

/* A book page's status tag starts the line under the byline, so it sits on the
   text's edge (a tag elsewhere keeps its gap from the words before it). */
.pf-book-text .pf-soft > .pf-tag:first-child { margin-left: 0; }

/* The foot of a book's page: the email line and the way back. In a sample
   it closes the reading column; on a page with no sample it follows the
   head, at the page's own size. */
.pf-after { margin: 1.6rem 0 .4rem; }
.pf-measure .pf-after { margin: 2.2em 0 .2em; padding-top: 1.2em; border-top: 1px solid var(--pf-line);
  font-size: .82em; text-align: center; }
.pf-after p { margin: 0 0 .6em; text-indent: 0; }
.pf-after-ask { color: var(--pf-ink); }
.pf-after-links { display: flex; flex-wrap: wrap; gap: .4em 1.6em; }
.pf-measure .pf-after-links { justify-content: center; }

/* Reduced motion: no lifts, turns or fades for a visitor whose system asks
   for less movement (the fold chevrons already stopped turning, 2026-10-18). */
@media (prefers-reduced-motion: reduce) {
  body.velvet *, body.velvet *::before, body.velvet *::after { transition: none !important; animation: none !important; }
  .pf-card:hover, .pf-album:hover { transform: none; }
}

/* =====================================================================
   2026-11-02 (evening): the book shelf. The "Book Imprint Layout Handoff",
   written by Copilot and brought by the Writer: "Collection -> useful series
   material -> books", so a reader reaches the books quickly. On the book imprints every
   book is the same tile (_book_shelf.html): a portrait cover about 2:3, the
   title under it, then the useful tags. A real cover is shown whole inside
   the frame (contain, never cropped or stretched; the imprint's ground fills
   any gap). A book with no cover yet, or no page (a cover alone publishes
   nothing), gets a plain frame in the imprint's own colours carrying its
   title: no made-up art. Where a universe holds two or more series, each
   series is a tile of the same shape opening its own page. The grid takes as
   many columns as fit at 8.5rem or more each from 720 px (6 across a
   computer's panel), 6.5rem below it (2 on any phone, 320 px up), and every
   tile in a shelf has the same width, so one book or twenty need no change
   here. A tile with a page to open is one link,
   cover and title together: the title in link brass, the frame's edge brass
   when pointed at, and the site's brass ring for the keyboard. Nothing moves,
   so reduced motion needs nothing more. Albums and Slop Bucket keep their
   square tiles (2026-10-29, 2026-10-30).
   The universe fold is kept (2026-10-18); the boxes inside it are gone: no
   "Series" bar repeating the universe's name, no "Books" bar. A universe's
   only series is a panel in the fold: its art edge to edge (as the universe's
   own art), its count and status, its description at reading width, a rule,
   then its books. The 2026-10-18 rules for those boxes (.pf-box, the
   description beside the list, .pf-companions) were removed with them.
   ===================================================================== */
.pf-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3rem .9rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 6.5rem), 1fr)); }
@media (min-width: 720px) { .pf-tiles { gap: 1.5rem 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); } }
.pf-tile { display: flex; flex-direction: column; min-width: 0; }
.pf-tile-main { display: block; color: var(--pf-ink); }
body.velvet a.pf-tile-main { color: var(--pf-ink); }
body.velvet a.pf-tile-main:hover { text-decoration: none; }
.pf-tile-cover { display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--pf-bg);
  border: 1px solid var(--pf-line); border-radius: 4px; box-shadow: 0 8px 22px rgba(0,0,0,.4); }
.pf-tile-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pf-tile-cover.is-blank { display: flex; align-items: center; justify-content: center; padding: 14% 11%;
  background: linear-gradient(165deg, var(--pf-surface-2), var(--pf-plum) 55%, var(--pf-surface));
  box-shadow: 0 8px 22px rgba(0,0,0,.4), inset 0 0 0 5px var(--pf-surface), inset 0 0 0 6px var(--pf-brass-dim); }
.pf-tile-blank { font-family: var(--pf-serif); color: var(--pf-brass); text-align: center;
  font-size: 1.05rem; line-height: 1.3; letter-spacing: .02em; overflow-wrap: anywhere; }
.pf-tile-title { display: block; margin-top: .6rem; font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
body.velvet a.pf-tile-main .pf-tile-title { color: var(--pf-brass); }
body.velvet a.pf-tile-main:hover .pf-tile-title { color: var(--pf-ink); text-decoration: underline;
  text-underline-offset: .18em; }
body.velvet a.pf-tile-main:hover .pf-tile-cover { border-color: var(--pf-brass); }
.pf-tile-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.pf-tile-tags .pf-tag { margin-left: 0; }
.pf-tile-tags .pf-wb { font-size: .75rem; }
@media (max-width: 600px) { .pf-tile-blank { font-size: .95rem; } .pf-tile-title { font-size: .95rem; } }

/* a universe's only series, whole in its fold */
.pf-fold .pf-series > .pf-series-art:first-child { margin: -1rem -1.3rem 1rem; border-top: 0;
  border-radius: calc(var(--pf-radius) - 1px) calc(var(--pf-radius) - 1px) 0 0; }
.pf-series-name { margin: 0 0 .4rem; font-size: 1.25rem; font-weight: 400; }
.pf-series-line { margin: 0 0 .9rem; }
.pf-series-line .pf-tag:first-child { margin-left: 0; }
.pf-series .pf-series-desc { margin: 0; }
.pf-series .pf-series-desc p:last-child { margin-bottom: 0; }
.pf-series-desc + .pf-tiles { margin-top: 1.2rem; padding-top: 1.3rem; border-top: 1px solid var(--pf-line); }
.pf-series-line + .pf-tiles { margin-top: .4rem; }
.pf-series-shelf { padding-top: 1.3rem; padding-bottom: 1.4rem; }
h3.pf-subhead { margin: 1.8rem 0 .8rem; font-weight: 400; font-family: system-ui, "Segoe UI", sans-serif; }
.pf-tiles + h3.pf-subhead { padding-top: 1.1rem; border-top: 1px solid var(--pf-line); }

/* a series' own page (series_public.html): its art across the top, then
   its picture beside its name and words, as an album page sets its cover */
.pf-series-banner { padding: 0; overflow: hidden; margin-top: .4rem; }
.pf-series-banner .pf-series-art { margin: 0; border-bottom: 0; border-radius: 0; }
.pf-series-head { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; margin: .5rem 0 2rem; }
/* (2026-11-05: the tile picture beside a series' name, .pf-series-cover, is
   gone: the page no longer repeats the tile that opened it.) */
.pf-series-head .pf-series-line { margin: .2rem 0 .9rem; }
.pf-series-books { padding-top: 1.3rem; padding-bottom: 1.4rem; }
.pf-series-back { margin: 2.2rem 0 .4rem; font-size: 1.05rem; }

/* =====================================================================
   2026-11-03: the chapter bar. Readers of the samples found the Sample
   Contents only at the top: from inside a chapter it was a long scroll back
   (measured: a sample is 40 to 46 phone screens, a chapter 6 to 16). The
   Writer chose a bar per chapter that stays at the top of the screen while
   the chapter is read ("Just the Option 2, no swiping"): the chapter's title
   on the left, "Contents" on the right, a link back to the Sample Contents.
   Each chapter is a <section class="pf-chapter"> (book_public.html); the bar
   is its first line, position: sticky, so it rides at the top of the window
   until its chapter ends and the next chapter's bar takes its place. No
   script. The bar spans the reading panel edge to edge (its margins reach
   from the reading column out to the panel's padding: 50cqi is half the
   panel, the query container), in the panel's own colour, so the text slides
   under it. Its height is --pf-bar-h, larger on very wide windows where the
   text is larger; the page keeps that much room at the top when it jumps to
   a chapter or to the contents (scroll-padding), so a heading never lands
   under the bar. Only pages with chapter bars get that room (:has). --- */
:root { --pf-bar-h: 2.6rem; }
@media (min-width: 1600px) { :root { --pf-bar-h: 3rem; } }
@media (min-width: 2200px) { :root { --pf-bar-h: 3.6rem; } }
html:has(.pf-chapter-bar) { scroll-padding-top: calc(var(--pf-bar-h) + .6rem); }
.pf-chapter-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center;
  justify-content: space-between; gap: 1.2em; box-sizing: border-box; height: var(--pf-bar-h);
  margin: 1.6em calc(50% - 50cqi - 1.3rem) 0; padding: 0 1.3rem;
  font-family: system-ui, "Segoe UI", sans-serif; font-size: calc(var(--pf-bar-h) * .32);
  line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; text-indent: 0;
  background: var(--pf-surface); background: color-mix(in srgb, var(--pf-surface) 94%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-top: 1px solid var(--pf-line); border-bottom: 1px solid var(--pf-line); }
.pf-chapter-bar-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; color: var(--pf-ink-soft); }
.pf-chapter-bar-title em { font-style: normal; color: var(--pf-brass-text); }
body.velvet a.pf-chapter-up { flex: none; white-space: nowrap; color: var(--pf-brass); }
.pf-chapter > h2:nth-child(2) { margin-top: .9em; }
/* on a phone the bar drops its capitals and letter spacing, so a title as
   long as "Two: Binding Knots · Raquel" fits whole beside "Contents" at 390 px
   (in capitals it was cut after the dot) */
@media (max-width: 600px) {
  .pf-chapter-bar { text-transform: none; letter-spacing: .01em; gap: .8em; }
}

/* =====================================================================
   2026-11-05: an open door's page heads with its words alone. The door's
   picture repeated the front page's door at about half its size, and on a
   phone pushed the first shelf below the first screen (measured on the live
   Cobalt Tomes page at 390 x 844: from 794 px down to 446). The Writer chose
   no picture ("the small door adds nothing"). imprint.html marks such a head
   pf-words-only: one column at every width, so wide screens keep no empty
   220 px column where the picture stood, and the words keep the 40rem measure
   of the descriptions below them. A closed door's head is unchanged (its
   picture under the banner), and album, song and folder heads, which share
   .pf-imprint-head, are not touched. --- */
.pf-imprint-head.pf-words-only { grid-template-columns: 1fr; }
.pf-imprint-head.pf-words-only > div { max-width: 40rem; }

/* =====================================================================
   2026-11-05 (later): the Shrouded Sounds pages, and a series' page, stop
   repeating the tile that opened them, as the door pages do (the Writer
   chose all four: album, Singles, song and series pages). An album's or
   Singles' head is its words (album.html marks it pf-words-only, the rule
   above); a song's head is its words above its player; a series' page has
   no picture beside its name. Each picture is still its page's sharing
   picture. On an album or the Singles page each song is now its player,
   under its number and name (the Writer: "Can the YouTube boxes just be on
   the Album page? under the Songs line?"; he chose to keep the song pages).
   The player is at most 480 x 270 (was 640 x 360 from 2026-10-31): YouTube
   recommends a 16:9 player be at least 480 by 270, and requires at least
   200 by 200. Players stand two across where two fit (from about 1,000 px
   of page), one across below that, always filling a phone's width. --- */
.pf-players { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: 1.6rem 2rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 30rem)); }
/* YouTube requires a player at least 200 by 200: below about 356 px wide a
   16:9 box is shorter than that, so it keeps 200 px of height and YouTube
   letterboxes the video in it (phones; measured 352 x 198 at 390 px before) */
.pf-video { min-height: 200px; }
.pf-player { min-width: 0; }
.pf-player .pf-video { max-width: none; }
.pf-player-title { margin: 0 0 .5rem; font-size: 1.15rem; font-weight: 400; line-height: 1.3;
  overflow-wrap: anywhere; }
.pf-player-title .pf-track-no { color: var(--pf-brass-text); font-family: system-ui, "Segoe UI", sans-serif;
  font-size: .8em; margin-right: .5em; }

/* --- 2026-11-21: section and world cards ---------------------------------
   A book imprint's sections (Story Worlds, Unbound Novels, Short Stories) and
   a section's story worlds, as cards that open their own pages
   (forge_server.py, SECTIONS; _book_shelf.html, ucard). The Writer chose "B"
   of three mock-ups: the whole cover on the left, the words on the right, the
   card square, three across. Below 1000 px wide the card is a strip, one per
   row (the mock-up's "C"): square at a phone's width left 117 px for the
   words. The cover is shown whole on the imprint's ground; a card with no
   cover to show carries its name, like a plain book tile. */
.pf-ucards { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1.1rem;
  grid-template-columns: minmax(0, 1fr); }
.pf-ucards > li { min-width: 0; }
.pf-ucard { display: flex; min-height: 180px; color: var(--pf-ink);
  background: linear-gradient(160deg, var(--pf-surface-2), var(--pf-surface) 60%);
  border: 1px solid var(--pf-line); border-radius: var(--pf-radius); box-shadow: var(--pf-shadow);
  overflow: hidden; transition: transform .18s ease, border-color .18s ease; }
body.velvet a.pf-ucard, body.velvet a.pf-ucard:hover { color: var(--pf-ink); text-decoration: none; }
.pf-ucard:hover { transform: translateY(-2px); border-color: var(--pf-brass-dim); }
.pf-ucard:focus-visible { outline: 2px solid var(--pf-brass); outline-offset: 3px; }
.pf-ucard-pic { flex: none; align-self: flex-start; width: 120px; aspect-ratio: 2 / 3;
  background: var(--pf-bg); border-right: 1px solid var(--pf-line); }
.pf-ucard-pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pf-ucard-pic.is-blank { display: flex; align-items: center; justify-content: center; padding: 10%;
  background: linear-gradient(160deg, var(--pf-plum), var(--pf-surface)); }
.pf-ucard-words { flex: 1; min-width: 0; padding: .9rem 1.1rem; }
.pf-ucard-name { margin: 0 0 .35rem; font-size: 1.25rem; font-weight: 400; line-height: 1.25;
  color: var(--pf-brass); overflow-wrap: anywhere; }
.pf-ucard-line { margin: 0 0 .6rem; color: var(--pf-ink-soft); font-style: italic; font-size: .95rem;
  line-height: 1.45; }
.pf-ucard-line p { margin: 0; }
.pf-ucard-tags { margin: 0; }
.pf-ucard-tags .pf-tag { margin-left: 0; }
.pf-ucard .pf-wb { display: block; margin: .5rem 0 0; }
@media (min-width: 600px) {
  .pf-ucard { min-height: 225px; }
  .pf-ucard-pic { width: 150px; }
}
@media (min-width: 1000px) {
  .pf-ucards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
  .pf-ucard { aspect-ratio: 1 / 1; min-height: 0; }
  .pf-ucard-pic { align-self: stretch; width: auto; height: 100%; }
  .pf-ucard-words { padding: .75rem .8rem; }
  .pf-ucard-name { font-size: 1.1rem; }
  .pf-ucard-line { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-ucard { transition: none; }
  .pf-ucard:hover { transform: none; }
}
