/* ===== Reader (experiment): set like a fine-press page (after the Dix Hectares identity) =====
   · the chapter opens with a large ornamented initial, five lines deep, in red; the text runs beside it
   · every paragraph opens in small capitals; the first paragraph's lead-in in the accent colour
   · ragged right, no hyphenation, a full line of space between paragraphs, tighter leading
   The initial: LDN Garamond Initials (London Type Foundry, paid) is used the moment its file is in fonts/;
   until then Goudy Initialen (Steffmann's revival of Goudy's floriated initials, freeware) stands in. */
@font-face{font-family:"LDN Garamond Initials";src:local("LDN Garamond Initials"),local("LDNGaramondInitials"),
  url("fonts/LDNGaramondInitials.woff2") format("woff2"),url("fonts/LDNGaramondInitials.otf") format("opentype");font-display:swap}
@font-face{font-family:"Goudy Initialen";src:url("fonts/GoudyInitialen.ttf") format("truetype");font-display:swap}
:root{--initial:#A8261B}
html.night{--initial:#D8634F}

.text p{text-align:left!important;hyphens:manual!important;-webkit-hyphens:manual!important;line-height:1.42!important;margin:0 0 1.05em!important;text-indent:0!important}
/* the initial: a square, five lines deep; text wraps beside it */
.text p:first-of-type::first-letter{float:left;font-family:"LDN Garamond Initials","Goudy Initialen",var(--text);
  font-size:7.95em;line-height:.78;margin:.09em .13em 0 -.02em;padding:0;color:var(--initial);font-weight:400;font-style:normal}
/* lead-ins */
.text p .sc{font-variant-caps:all-small-caps;letter-spacing:.045em;color:var(--red)}
.text p .lead{font-variant-caps:small-caps;letter-spacing:.02em}
/* no lead colour on later paragraphs: ink, like the sample's run of "COMBINING", "THE RESULT" */
/* phones: four lines deep, so the text beside the initial isn't squeezed */
@media (max-width:700px){.text p:first-of-type::first-letter{font-size:6.2em;margin-right:.1em}}

/* ===== the reading toolbar (like · comment · save · share): a vertical column to the left of the text, centred
   on the screen, on desktop. Phones keep the bar at the bottom (no room beside the text). ===== */
@media (min-width:901px){
  .dock{left:max(20px, calc(50% - 365px - 110px))!important;right:auto!important;top:50%!important;bottom:auto!important;
    transform:translateY(-50%)!important;width:auto!important;height:auto!important;max-width:none!important;
    flex-direction:column!important;padding:8px!important;border-radius:40px!important}
  .dock .dk{flex-direction:column!important;gap:6px!important}
  .dock .dk button{width:56px!important;height:56px!important;padding:0!important;flex-direction:column!important;gap:0!important}
  .dock .dk button:has(span:not(:empty)){width:56px!important;height:64px!important;padding:0!important}
  .dock .dk button span{font-size:13px!important;line-height:1!important;margin-top:2px}
  .dock .nx{display:none!important}
}
/* toolbar, slimmer and at the far left of the screen */
@media (min-width:901px){
  .dock{left:22px!important;padding:5px!important;border-radius:28px!important}
  .dock .dk{gap:2px!important}
  .dock .dk button,.dock .dk button:has(span:not(:empty)){width:40px!important;height:40px!important}
  .dock .dk button:has(span:not(:empty)){height:48px!important}
  .dock .dk button svg{width:19px!important;height:19px!important}
  .dock .dk button span{font-size:11px!important}
}

/* Next chapter: the octagon pager from the plate sheet (seal red, deeper on hover), with the next chapter title on its left instead of the card with a cover */
.readp .octnav{display:flex;justify-content:flex-end;margin:28px 0 8px}
.readp .octlink{display:inline-flex;align-items:center;gap:14px;text-align:right;color:var(--ink);text-decoration:none;--oct:#B0161A}
.readp .octt{font:500 18px/1.25 "EB Garamond",Garamond,serif;letter-spacing:-.005em;max-width:420px}
.readp .octbtn{display:block;flex:none;width:40px;height:40px;transition:transform .2s}
.readp .octbtn .pgsvg{display:block;width:100%;height:100%;overflow:visible}
.readp .octbtn .pf{fill:var(--oct);transition:fill .2s}
@media (hover:hover){.readp .octlink:hover{--oct:#8E1014}.readp .octlink:hover .octbtn{transform:translateY(-1px)}}
.readp .octlink:focus-visible{outline:2px solid var(--oct);outline-offset:4px;border-radius:12px}

/* the initial is always a capital: the floriated initials have no lowercase, so a chapter that opens on a small letter
   (Initiation and Spiritual Realization, Foreword) would otherwise fall back to a plain Garamond 'a' */
.text p:first-of-type::first-letter{text-transform:uppercase}
/* the reader: no author and year under the chapter title, you saw them on the way in (the user, 2026-11-18) */
html body #app main.readp .ahead .byline{display:none!important}
/* an opening editor's note: no initial, small and grey; the initial moves to the first real paragraph */
html body .text p.srcnote{font-size:.82em!important;color:var(--ink3)!important;text-align:left!important}
html body .text p.srcnote::first-letter{float:none!important;font:inherit!important;font-size:inherit!important;color:inherit!important;margin:0!important;padding:0!important;line-height:inherit!important;text-transform:none!important}
html body .text p.dropcap::first-letter{float:left;font-family:"LDN Garamond Initials","Goudy Initialen",var(--text);font-size:7.95em;line-height:.78;margin:.09em .13em 0 -.02em;padding:0;color:var(--initial);font-weight:400;font-style:normal;text-transform:uppercase}
/* an opening quotation mark (pagelook.js moves it into .oq): small, hanging in the margin to the left of the initial */
html body .text p.hq{position:relative}
html body .text p.hq > .oq{position:absolute;right:100%;margin-right:.06em;white-space:nowrap}
@media (max-width:700px){html body .text p.dropcap::first-letter{font-size:6.2em;margin-right:.1em}}
/* figures from the printed books: scanned line art printed into the paper (multiply), white-on-ink at night; photos and dark plates stay as printed */
.text figure.bfig{margin:1.5em auto 1.6em;width:clamp(6.5rem,calc(var(--fr) * 100%),28rem);max-width:100%;text-align:center}
.text figure.bfig img{display:block;width:100%;height:auto;margin:0 auto;mix-blend-mode:multiply}
.text figure.bfig figcaption{margin-top:.6em;font-size:.8em;letter-spacing:.04em;color:var(--ink3);font-style:normal}
.text figure.bfig + figure.bfig{margin-top:.4em}
html.night .text figure.bfig:not(.keep) img{filter:invert(1);mix-blend-mode:screen}
html.night .text figure.bfig.keep img{mix-blend-mode:normal;opacity:.88}
.text p.figp{margin:0!important;height:0;overflow:hidden}
