/* Base tokens only -- B1's per-unit CSS has diverged across files over time
   (each fragment keeps its own full style block inline instead of a shared
   stylesheet, same reasoning as the A1/A2 prototypes). This file just gets
   :root/@font-face/reset in place before the first fragment's own <style>
   loads, so the shell chrome (sidebar, loading state) renders with the
   right tokens immediately. */

:root{
  --paper: #F6F0E4;
  --paper-edge: #ECE2C9;
  --ink: #2E2B28;
  --ink-soft: #1D3A5C;
  --wine: #2B2660;
  --wine-deep: #1E1A47;
  --gold: #C1875A;
  --gold-soft: #F1DFC8;
  --sage: #6F8A5C;
  --sage-soft: #E4EBDD;
  --sky: #7C74D6;
  --error: #B5433A;
  --radius: 14px;
  --serif-he: 'Heebo', serif;
  --sans-he: 'Varela Round', sans-serif;
  --serif-en: 'DM Serif Display', serif;
  --sans-en: 'Varela Round', sans-serif;
}
@font-face {
  font-family: 'Shmulik CLM';
  src: url(../assets/shared/font-9ce5648a0e.ttf) format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Varela Round';
  src: url(../assets/shared/font-c397612514.ttf) format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Heebo';
  src: url(../assets/shared/font-b4f5516b11.ttf) format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Serif Display';
  src: url(../assets/shared/font-efabe55b7e.ttf) format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Serif Display';
  src: url(../assets/shared/font-72ca98f217.ttf) format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
*{box-sizing:border-box;}
body{
  margin:0;
  background: var(--paper-edge);
  color: var(--ink);
  font-family: var(--sans-en);
  padding: 28px 12px 80px;
}

  /* ---- sticky in-unit section strip (Maayan, 2026-09-02) ---- */
  .book.sticky-nav{ overflow: clip; }   /* overflow:hidden silently kills position:sticky */
  .book.sticky-nav nav.ribbon{ position: sticky; top: 0; z-index: 40; box-shadow: 0 8px 18px -12px rgba(30,26,71,.55); }
  .book.sticky-nav nav.ribbon a.active{ background: rgba(246,230,216,0.32); border-color: rgba(246,230,216,0.7); }
  .book.sticky-nav nav.ribbon a.ribbon-top{ opacity:.75; }
  .book.sticky-nav section.page, .book.sticky-nav header.top{ scroll-margin-top: 66px; }
