/* The First Tome — the Quill's ledger of TTRPG's people. Gritty, reverent, ink-on-paper.
   Legible above all (accuracy is sacred); the drama lives in the frame, not the facts.

   Re-skinned 2026-08-04 from the near-black candlelit era to cut paper / woodcut.
   NO PALETTE LIVES HERE. Colour and type come from tokens.css, which ledger.html now
   loads FIRST — this page used to declare its own dark palette AND pull Cinzel +
   Source Serif Pro from Google Fonts, so it resolved different faces from the rest
   of the site. Only the page-local print devices below live here, and they are the
   same three styles.css declares, for the same reason. */
:root{
  /* the offset a cut-out casts on the sheet beneath it — flat, warm, zero blur */
  --cut-lift:4px 4px 0 rgba(74,51,32,.32);
  --cut-lift-sm:2px 2px 0 rgba(74,51,32,.26);
  /* hairline printed rule */
  --rule:rgba(74,51,32,.42);
  --rule-faint:rgba(74,51,32,.22);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
/* the same ground index.html and map.html stand on: paper colour, grain, plate grid,
   and a press vignette. Shared assets, shared blend modes — one sheet of paper.
   The old full-screen `body::after` noise layer used mix-blend-mode:overlay, which is
   a lift device for dark grounds; on paper the grain multiplies into the sheet instead. */
body{margin:0;color:var(--ink-700);font-family:var(--font-body);
  background-color:var(--paper-300);
  background-image:
    url('./assets/parchment-grain.svg'),
    url('./assets/parchment-grid.svg'),
    radial-gradient(120% 80% at 50% -10%, rgba(216,184,120,0) 40%, rgba(74,51,32,.10) 100%);
  background-size:220px 220px, 128px 128px, cover;
  background-repeat:repeat,repeat,no-repeat;
  background-blend-mode:soft-light,multiply,normal;
  -webkit-font-smoothing:antialiased;min-height:100svh;
  /* this page's old .ltop header was in flow and pushed the tome's opening line clear;
     the shared masthead floats, so the room it needs is reserved explicitly. */
  padding-top:var(--qnav-space)}

/* the page-local .ltop / .lbrand / .ltop-tag header is gone — this page now uses the
   shared .qnav plaque (nav.css), which is where the brand treatment lives for every page. */

/* header / lore */
.lhead{max-width:60rem;margin:clamp(1.5rem,5vh,3.5rem) auto clamp(1rem,3vh,2rem);padding:0 clamp(1.2rem,5vw,2rem);text-align:center}
.lhead .eyebrow{font-family:var(--font-body);font-weight:700;text-transform:uppercase;letter-spacing:.42em;
  font-size:.72rem;color:var(--ink-soft);margin:0 0 1rem}
/* the 50px gold bloom is gone: on paper a heading is pressed, not lit, so the only
   shadow is a hard offset in the ink of the sheet below it. */
.lhead h1{font-family:var(--font-display);font-weight:600;font-size:clamp(2.6rem,8vw,5.5rem);line-height:.95;margin:0 0 1.2rem;
  color:var(--ink-900);text-shadow:3px 3px 0 rgba(74,51,32,.18)}
.lhead p{font-size:clamp(1rem,1.6vw,1.22rem);line-height:1.6;color:var(--ink-700);max-width:42rem;margin:0 auto}
.lhead em{color:var(--ember-text);font-style:italic}

/* featured — an illuminated plate, cut from lighter stock and laid on the sheet */
.featured-wrap{max-width:56rem;margin:clamp(1.5rem,5vh,3rem) auto;padding:0 clamp(1.2rem,5vw,2rem)}
.featured{position:relative;background-color:var(--paper-100);
  background-image:url('./assets/parchment-grain.svg');background-size:220px 220px;background-blend-mode:multiply;
  color:var(--ink-700);padding:clamp(1.8rem,5vw,3.2rem);
  border:1px solid var(--ink-500);box-shadow:var(--cut-lift);
  clip-path:polygon(0 8px,8px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,0 calc(100% - 8px))}
.featured::before{content:"";position:absolute;inset:10px;border:1px solid var(--rule);pointer-events:none}
.featured-kicker{font-family:var(--font-body);font-weight:700;text-transform:uppercase;letter-spacing:.32em;font-size:.74rem;
  color:var(--ink-soft);margin:0 0 .8rem}
.featured-name{font-family:var(--font-display);font-weight:600;font-size:clamp(2rem,6vw,3.6rem);line-height:1;margin:0 0 .4rem;color:var(--ink-900)}
.featured-aka{font-style:italic;color:var(--ink-soft);margin:0 0 .6rem;font-size:1rem}
.featured-dates{font-family:var(--font-body);font-weight:600;letter-spacing:.06em;color:var(--ink-soft);margin:0 0 1.3rem;font-size:.98rem}
.featured-dates .mem{color:var(--rubric-deep)}
.featured-why{font-size:clamp(1.05rem,1.7vw,1.32rem);line-height:1.55;margin:0 0 1.1rem;font-style:italic}
.featured-what{font-size:1rem;line-height:1.6;color:var(--ink-soft);margin:0 0 1.2rem}
.featured-cats{display:flex;flex-wrap:wrap;gap:.4rem;margin:0 0 1rem}
.featured-cats span{font-family:var(--font-body);font-weight:700;font-size:.66rem;letter-spacing:.12em;text-transform:uppercase;
  padding:.2rem .6rem;border:1px solid var(--rule);border-radius:999px;color:var(--ink-soft)}
.featured-src a{color:var(--lapis);font-size:.82rem;margin-right:1rem;text-underline-offset:3px}

/* search */
.ledger-tools{max-width:52rem;margin:clamp(2rem,6vh,4rem) auto 1.5rem;padding:0 clamp(1.2rem,5vw,2rem);
  display:flex;gap:1rem;align-items:center;flex-wrap:wrap;justify-content:space-between}
/* min raised to the 1.6rem display floor — it used to clamp down to 1.3rem */
.ledger-tools h2{font-family:var(--font-display);font-weight:600;color:var(--ink-900);font-size:clamp(1.6rem,3vw,1.9rem);margin:0}
#search{flex:1 1 16rem;min-width:0;max-width:24rem;background-color:var(--paper-100);border:1px solid var(--ink-500);
  padding:.7rem 1rem;color:var(--ink-900);font-family:var(--font-body);font-size:1rem;box-shadow:inset var(--cut-lift-sm)}
#search::placeholder{color:var(--ink-soft);opacity:1}
#search:focus{outline:2px solid var(--ink-900);outline-offset:2px}
#count{color:var(--ink-soft);font-size:.85rem;width:100%;text-align:center}

/* the ledger entries — ink on paper */
.ledger{max-width:52rem;margin:0 auto clamp(3rem,10vh,6rem);padding:0 clamp(1.2rem,5vw,2rem)}
.entry{padding:1.4rem 0;border-bottom:1px solid var(--rule-faint);display:grid;grid-template-columns:7.5rem 1fr;gap:1.2rem}
.entry-date{font-family:var(--font-body);font-weight:600;letter-spacing:.04em;color:var(--ink-soft);font-size:.84rem;padding-top:.35rem;line-height:1.4}
.entry-date .mem{color:var(--rubric-deep);display:block;font-size:.7rem;letter-spacing:.18em;text-transform:uppercase;margin-top:.2rem}
/* 1.3rem — under the display floor, so body at 700 with a little tracking */
.entry-name{font-family:var(--font-body);font-weight:700;letter-spacing:.01em;font-size:1.3rem;margin:0 0 .15rem;color:var(--ink-900)}
.entry-name small{font-weight:400;font-style:italic;color:var(--ink-soft);font-size:.85rem;font-family:var(--font-body)}
.entry-what{margin:.3rem 0 .5rem;line-height:1.55;color:var(--ink-700)}
.entry-why{margin:0 0 .6rem;line-height:1.5;color:var(--ink-soft);font-style:italic;font-size:.96rem}
.entry-meta{display:flex;flex-wrap:wrap;gap:.5rem 1rem;align-items:center}
.entry-meta .cat{font-family:var(--font-body);font-weight:700;font-size:.62rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-soft);
  border:1px solid var(--rule);border-radius:999px;padding:.12rem .55rem}
.entry-meta a{color:var(--lapis);font-size:.78rem;text-underline-offset:3px}

/* footer */
.lfoot{max-width:46rem;margin:0 auto;padding:clamp(2.5rem,7vh,4rem) clamp(1.2rem,5vw,2rem) 4rem;text-align:center;border-top:4px double var(--rule)}
.lfoot .q{font-family:var(--font-body);font-weight:600;font-style:italic;color:var(--ember-text);font-size:1.1rem;margin:0 0 1rem}
.lfoot p{color:var(--ink-soft);font-size:.86rem;line-height:1.6;margin:.4rem 0}
.lfoot strong{color:var(--ink-900);font-weight:700}
/* The plain pages. This page carries its own .lfoot rather than the shared
   .qc-foot, so the four routes need their own rule here — same shape and same
   four links as .qc-foot__legal-nav (site-foot.css) and .foot-legal-nav
   (sections.css), which is as close to one component as a site with three
   footers and no build step can honestly get. */
.lfoot-legal{display:flex;flex-wrap:wrap;justify-content:center;gap:.1rem .9rem;
  margin:1.6rem 0 0;padding-top:1.2rem;border-top:1px solid var(--rule-faint)}
.lfoot-legal a{position:relative;
  font-family:var(--font-body);font-weight:700;font-size:.8rem;
  letter-spacing:.06em;text-transform:uppercase;
  color:var(--ink-700);text-decoration:none;padding:.2rem 0;
  border-bottom:2px solid transparent;
  transition:color .18s var(--calm),border-color .18s var(--calm)}
.lfoot-legal a + a::before{content:"";position:absolute;left:-.47rem;top:.35em;bottom:.35em;
  width:1px;background:var(--rule)}
.lfoot-legal a:hover{color:var(--rubric-deep);border-bottom-color:var(--rubric-deep)}
.lfoot-legal a:focus-visible{outline:2px solid var(--rubric-deep);outline-offset:3px}

@media (max-width:560px){
  .entry{grid-template-columns:1fr;gap:.3rem}
  .entry-date{padding-top:0}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
