:root{
  --text-xs:clamp(.75rem,.7rem + .25vw,.875rem);
  --text-sm:clamp(.875rem,.8rem + .35vw,1rem);
  --text-base:clamp(1rem,.95rem + .25vw,1.125rem);
  --text-lg:clamp(1.125rem,1rem + .75vw,1.5rem);
  --text-xl:clamp(1.5rem,1.2rem + 1.25vw,2.25rem);
  --text-2xl:clamp(2rem,1.2rem + 2.5vw,3.5rem);
  --text-3xl:clamp(2.4rem,1rem + 4vw,4.6rem);
  --space-1:.25rem;--space-2:.5rem;--space-3:.75rem;--space-4:1rem;--space-5:1.25rem;--space-6:1.5rem;--space-8:2rem;--space-10:2.5rem;--space-12:3rem;--space-16:4rem;--space-20:5rem;--space-24:6rem;

  --paper:#fbf5e7;
  --paper-2:#f5ecd6;
  --card:#fffdf7;
  --ink:#1f2742;
  --ink-muted:#5b5f72;
  --line:#e3d7bb;
  --blue:#1d4fa3;
  --blue-deep:#16336f;
  --blue-hover:#163f86;
  --red:#c8322b;
  --green:#2f7a3a;
  --purple:#6f3fa8;
  --gold:#e3a72f;
  --gold-soft:#f8e7b8;

  --radius-md:.6rem;--radius-lg:1rem;--radius-xl:1.4rem;--radius-full:999px;
  --shadow-sm:0 1px 2px rgb(60 40 10 / .08);
  --shadow-md:0 6px 18px rgb(60 40 10 / .10);
  --shadow-lg:0 18px 40px rgb(30 30 60 / .16);
  --ease:cubic-bezier(.16,1,.3,1);

  --font-display:'Luckiest Guy','Arial Rounded MT Bold',sans-serif;
  --font-hand:'Kalam','Comic Sans MS',cursive;
  --font-body:'Nunito','Helvetica Neue',sans-serif;
  --font-hebrew:'Frank Ruhl Libre','Times New Roman',serif;
  --wrap:1200px;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font-body);font-size:var(--text-base);line-height:1.6;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{max-width:100%;height:auto;display:block}
a{color:var(--blue)}
a:hover{color:var(--blue-hover)}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:4px}
h1,h2,h3{margin:0;line-height:1.1;text-wrap:balance}
p{margin:0 0 var(--space-4)}
.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:clamp(var(--space-4),4vw,var(--space-10))}
.skip{position:absolute;left:-999px;top:0;background:var(--blue);color:#fff;padding:var(--space-2) var(--space-4);z-index:100}
.skip:focus{left:var(--space-4)}
.hand{font-family:var(--font-hand)}
.he{font-family:var(--font-hebrew);direction:rtl;unicode-bidi:isolate;font-weight:500;text-align:left}
.display{font-family:var(--font-display);font-weight:400;letter-spacing:.01em}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgb(251 245 231 / .92);backdrop-filter:blur(8px);border-bottom:2px solid var(--line)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);min-height:68px}
.brand{display:flex;align-items:center;gap:var(--space-2);text-decoration:none}
.brand img{width:40px;height:auto}
.brand-text{font-family:var(--font-display);font-size:1.3rem;letter-spacing:.02em;line-height:1;padding-top:4px;white-space:nowrap}
.b-blue{color:var(--blue)}.b-red{color:var(--red)}
.nav{display:flex;gap:0}
.nav a{font-weight:700;font-size:var(--text-sm);color:var(--ink);text-decoration:none;padding:var(--space-2) .6rem;border-radius:var(--radius-full);white-space:nowrap;transition:background .18s var(--ease),color .18s var(--ease)}
.nav a:hover{background:var(--paper-2);color:var(--blue)}
.nav a[aria-current="page"]{background:var(--blue);color:#fff}
.nav-toggle{display:none;font:inherit;font-weight:700;font-size:var(--text-sm);background:var(--card);border:2px solid var(--blue);color:var(--blue);border-radius:var(--radius-full);padding:var(--space-1) var(--space-4);cursor:pointer}
@media (max-width:1240px){
  .nav-toggle{display:block}
  .nav{position:absolute;left:0;right:0;top:100%;flex-direction:column;background:var(--paper);border-bottom:2px solid var(--line);padding:var(--space-2) var(--space-4) var(--space-4);display:none}
  .nav.open{display:flex}
  .nav a{padding:var(--space-3) var(--space-4)}
  .brand-text{font-size:1.1rem}
}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:var(--space-2);font-family:var(--font-body);font-weight:800;font-size:var(--text-sm);text-decoration:none;padding:.8em 1.4em;border-radius:var(--radius-full);border:2px solid var(--blue);transition:transform .18s var(--ease),background .18s var(--ease),box-shadow .18s var(--ease);cursor:pointer}
.btn-primary{background:var(--blue);color:#fff;box-shadow:0 4px 0 var(--blue-deep)}
.btn-primary:hover{background:var(--blue-hover);color:#fff;transform:translateY(-1px)}
.btn-primary:active{transform:translateY(2px);box-shadow:0 2px 0 var(--blue-deep)}
.btn-ghost{background:var(--card);color:var(--blue)}
.btn-ghost:hover{background:#fff;transform:translateY(-1px)}
.btn-row{display:flex;flex-wrap:wrap;gap:var(--space-3)}

/* Sections */
.section{padding-block:clamp(var(--space-12),7vw,var(--space-24))}
.kicker{font-family:var(--font-hand);font-weight:700;color:var(--green);font-size:var(--text-base);display:inline-flex;align-items:center;gap:var(--space-2);margin-bottom:var(--space-3)}
.kicker::before,.kicker::after{content:"";width:22px;height:14px;background:url(assets/ui/flourish.png) center/contain no-repeat}
.kicker::after{transform:scaleX(-1)}
.section-title{font-family:var(--font-display);font-weight:400;font-size:var(--text-2xl);color:var(--blue);letter-spacing:.01em}
.section-title .red{color:var(--red)}
.section-lede{color:var(--ink-muted);max-width:60ch;margin-top:var(--space-3)}
.section-head{margin-bottom:var(--space-10)}
.rule{width:100%;height:14px;object-fit:fill;opacity:.85}

/* Hero */
.hero{padding-block:clamp(var(--space-10),6vw,var(--space-20)) clamp(var(--space-12),7vw,var(--space-20));position:relative;overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:clamp(var(--space-8),5vw,var(--space-16));align-items:center}
.hero h1{font-family:var(--font-display);font-weight:400;font-size:var(--text-3xl);line-height:1.02;color:var(--blue);letter-spacing:.01em}
.hero h1 .red{color:var(--red)}
.hero .he-title{font-size:var(--text-xl);color:var(--blue-deep);margin-top:var(--space-3);display:inline-block}
.hero p.lede{font-size:var(--text-base);max-width:48ch;margin-top:var(--space-5);color:var(--ink)}
.hero .btn-row{margin-top:var(--space-6)}
.streams{display:flex;flex-wrap:wrap;gap:var(--space-4) var(--space-6);margin-top:var(--space-8)}
.stream{display:flex;align-items:center;gap:var(--space-2);font-family:var(--font-display);font-size:1rem;letter-spacing:.03em;padding-top:2px}
.stream img{height:30px;width:auto}
.hero-art{position:relative}
.frame{border:4px solid var(--blue);border-radius:var(--radius-xl);overflow:hidden;background:var(--card);box-shadow:var(--shadow-lg)}
.hero-art .frame img{width:100%;aspect-ratio:1600/1218;object-fit:cover}
.hero-art .badge{position:absolute;left:-14px;bottom:-18px;background:var(--gold-soft);border:3px solid var(--gold);border-radius:var(--radius-lg);padding:var(--space-2) var(--space-4);font-family:var(--font-hand);font-weight:700;color:var(--ink);box-shadow:var(--shadow-md);transform:rotate(-3deg);font-size:var(--text-sm)}
@media (max-width:900px){.hero-grid{grid-template-columns:1fr}.hero-art{order:-1}.hero-art .badge{left:8px}}

/* This week card */
.week-card{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);background:var(--card);border:3px solid var(--blue);border-radius:var(--radius-xl);overflow:hidden;box-shadow:var(--shadow-md)}
.week-card .art{background:var(--paper-2);position:relative}
.week-card .art img{width:100%;height:100%;object-fit:cover;min-height:320px}
.week-card .body{padding:clamp(var(--space-6),4vw,var(--space-10))}
.datebar{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-3);align-items:center;font-size:var(--text-sm);font-weight:700;color:var(--ink-muted);margin-bottom:var(--space-3)}
.datebar .pill{background:var(--red);color:#fff;border-radius:var(--radius-full);padding:2px var(--space-3);font-size:var(--text-xs);letter-spacing:.06em;text-transform:uppercase}
.p-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-2) var(--space-4)}
.p-title .display{font-size:var(--text-2xl);color:var(--blue);line-height:1}
.p-title .he{font-size:var(--text-xl);color:var(--blue-deep)}
.p-sub{font-family:var(--font-hand);font-weight:700;color:var(--green);font-size:var(--text-lg);margin-top:var(--space-1)}
.theme-banner{display:inline-block;margin-top:var(--space-4);background:var(--gold-soft);border:2px solid var(--gold);border-radius:var(--radius-md);padding:var(--space-1) var(--space-4);font-family:var(--font-hand);font-size:var(--text-base);color:var(--ink)}
.theme-banner b{color:var(--red);font-weight:700}
.refs{list-style:none;padding:0;margin:var(--space-6) 0;display:grid;grid-template-columns:1fr 1fr;gap:var(--space-3)}
.refs li{display:flex;align-items:center;gap:var(--space-3);background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-md);padding:var(--space-2) var(--space-3)}
.refs img{width:34px;height:34px;object-fit:contain;flex:none}
.refs .lbl{font-family:var(--font-display);font-size:.95rem;letter-spacing:.03em;display:block;line-height:1;padding-top:2px}
.refs .ref{font-size:var(--text-sm);color:var(--ink);font-weight:600}
.also{margin-top:var(--space-4);font-size:var(--text-sm);color:var(--ink-muted)}
.also a{font-weight:700}
@media (max-width:860px){.week-card{grid-template-columns:1fr}.week-card .art img{min-height:0;aspect-ratio:140/132}.refs{grid-template-columns:1fr}}

.c-torah{color:var(--red)}.c-prophets{color:var(--green)}.c-gospel{color:var(--blue)}.c-epistles{color:var(--purple)}

/* Four readings explainer */
.four{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--space-5)}
.four .item{background:var(--card);border:2px solid var(--line);border-radius:var(--radius-lg);padding:var(--space-6)}
.four img{height:64px;width:auto;margin-bottom:var(--space-4)}
.four h3{font-family:var(--font-display);font-weight:400;font-size:var(--text-lg);letter-spacing:.03em;margin-bottom:var(--space-2)}
.four p{font-size:var(--text-sm);color:var(--ink-muted);margin:0}
.flow{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(var(--space-8),5vw,var(--space-16));align-items:center}
.steps{list-style:none;padding:0;margin:0;display:grid;gap:var(--space-5)}
.steps li{display:grid;grid-template-columns:48px 1fr;gap:var(--space-4);align-items:start}
.steps .n{width:48px;height:48px;border-radius:50%;background:var(--blue);color:#fff;font-family:var(--font-display);display:grid;place-items:center;font-size:1.3rem;padding-top:3px}
.steps h3{font-size:var(--text-lg);font-weight:800;margin-bottom:var(--space-1)}
.steps p{margin:0;color:var(--ink-muted);font-size:var(--text-sm)}
.collage{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-4)}
.collage .frame:first-child{grid-column:1/-1}
.collage .frame img{width:100%;aspect-ratio:4/3;object-fit:cover}
.collage .frame:first-child img{aspect-ratio:16/10}
@media (max-width:960px){.four{grid-template-columns:1fr 1fr}.flow{grid-template-columns:1fr}}
@media (max-width:520px){.four{grid-template-columns:1fr}}

/* Upcoming list */
.upcoming{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:var(--space-4)}
.up{display:grid;grid-template-columns:72px 1fr;gap:var(--space-3);align-items:center;background:var(--card);border:2px solid var(--line);border-radius:var(--radius-lg);padding:var(--space-3);text-decoration:none;color:var(--ink);transition:border-color .18s var(--ease),transform .18s var(--ease)}
.up:hover{border-color:var(--blue);transform:translateY(-2px);color:var(--ink)}
.up img{width:72px;height:72px;border-radius:var(--radius-md);object-fit:cover}
.up .d{font-size:var(--text-xs);font-weight:800;color:var(--red);text-transform:uppercase;letter-spacing:.05em}
.up .t{font-weight:800;line-height:1.25;display:block}
.up .th{font-size:var(--text-xs);color:var(--ink-muted);display:block;line-height:1.35;margin-top:2px}

/* Book band */
.book-band{background:var(--blue-deep);color:#f6f1e4;position:relative;overflow:hidden}
.book-band .section-title{color:#fff}
.book-band .section-title .red{color:#ff8a7a}
.book-grid{display:grid;grid-template-columns:minmax(220px,380px) 1fr;gap:clamp(var(--space-8),6vw,var(--space-20));align-items:center}
.book-cover{border-radius:6px 14px 14px 6px;box-shadow:-10px 0 0 rgb(0 0 0 / .18) inset,0 24px 50px rgb(0 0 0 / .45);transform:rotate(-2deg)}
.book-band p{color:#e7e2d6;max-width:56ch}
.ticks{list-style:none;padding:0;margin:var(--space-6) 0 var(--space-8);display:grid;gap:var(--space-2)}
.ticks li{display:flex;gap:var(--space-3);align-items:flex-start}
.ticks li::before{content:"";flex:none;width:18px;height:18px;margin-top:4px;background:url(assets/ui/star.png) center/contain no-repeat;filter:brightness(1.6)}
.book-band .btn-ghost{background:transparent;color:#fff;border-color:#fff}
.book-band .btn-ghost:hover{background:rgb(255 255 255 / .1)}
.book-band .btn-primary{background:var(--gold);border-color:var(--gold);color:var(--ink);box-shadow:0 4px 0 #a67710}
.book-band .btn-primary:hover{background:#efb847;color:var(--ink)}
@media (max-width:760px){.book-grid{grid-template-columns:1fr}.book-cover{max-width:280px;margin-inline:auto}}

/* Page header (interior) */
.page-head{padding-block:clamp(var(--space-10),5vw,var(--space-16)) var(--space-8)}
.page-head h1{font-family:var(--font-display);font-weight:400;font-size:var(--text-2xl);color:var(--blue);letter-spacing:.01em}
.page-head p{color:var(--ink-muted);max-width:62ch;margin-top:var(--space-3)}

/* Portions browser */
.toolbar{display:flex;flex-wrap:wrap;gap:var(--space-3);align-items:center;justify-content:space-between;margin-bottom:var(--space-8);position:sticky;top:68px;z-index:5;background:var(--paper);padding-block:var(--space-3);border-bottom:1px solid var(--line)}
.chips{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.chip{font:inherit;font-weight:700;font-size:var(--text-sm);border:2px solid var(--line);background:var(--card);color:var(--ink);border-radius:var(--radius-full);padding:var(--space-1) var(--space-4);cursor:pointer;transition:all .18s var(--ease)}
.chip:hover{border-color:var(--blue)}
.chip[aria-pressed="true"]{background:var(--blue);border-color:var(--blue);color:#fff}
.search{font:inherit;font-size:var(--text-sm);border:2px solid var(--line);background:var(--card);border-radius:var(--radius-full);padding:var(--space-2) var(--space-4);min-width:min(280px,100%);color:var(--ink)}
.search:focus{border-color:var(--blue);outline:none}
.month{margin-bottom:var(--space-12)}
.month-h{display:flex;align-items:baseline;gap:var(--space-3);margin-bottom:var(--space-5);border-bottom:2px dashed var(--line);padding-bottom:var(--space-2)}
.month-h h2{font-family:var(--font-display);font-weight:400;font-size:var(--text-xl);color:var(--blue);letter-spacing:.02em}
.month-h .he{font-size:var(--text-lg);color:var(--red)}
.month-h .count{margin-left:auto;font-size:var(--text-xs);color:var(--ink-muted);font-weight:700}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:var(--space-5)}
.card{display:flex;flex-direction:column;background:var(--card);border:2px solid var(--line);border-radius:var(--radius-lg);overflow:hidden;text-decoration:none;color:var(--ink);transition:transform .2s var(--ease),border-color .2s var(--ease),box-shadow .2s var(--ease)}
.card:hover{transform:translateY(-3px);border-color:var(--blue);box-shadow:var(--shadow-md);color:var(--ink)}
.card .img{aspect-ratio:140/132;background:var(--paper-2);position:relative}
.card .img img{width:100%;height:100%;object-fit:cover}
.card .tag{position:absolute;top:var(--space-2);left:var(--space-2);font-size:var(--text-xs);font-weight:800;padding:2px var(--space-3);border-radius:var(--radius-full);background:var(--card);color:var(--blue);border:2px solid var(--blue)}
.card .tag.holy{color:var(--red);border-color:var(--red)}
.card .tag.sabbath{color:var(--purple);border-color:var(--purple)}
.card .tx{padding:var(--space-4);display:flex;flex-direction:column;gap:var(--space-1);flex:1}
.card .nm{display:flex;justify-content:space-between;gap:var(--space-2);align-items:baseline}
.card .nm b{font-weight:800;font-size:var(--text-base);line-height:1.25}
.card .nm .he{color:var(--blue-deep);font-size:var(--text-base);white-space:nowrap}
.card .sb{font-size:var(--text-xs);color:var(--ink-muted)}
.card .th{font-family:var(--font-hand);color:var(--green);font-size:var(--text-sm);line-height:1.35;margin-top:auto;padding-top:var(--space-2)}
.empty{padding:var(--space-16) 0;text-align:center;color:var(--ink-muted)}

/* Portion detail */
.crumbs{font-size:var(--text-sm);margin-bottom:var(--space-6)}
.crumbs a{font-weight:700;text-decoration:none}
.pd-head{display:grid;grid-template-columns:minmax(0,420px) 1fr;gap:clamp(var(--space-6),4vw,var(--space-12));align-items:center}
.pd-head .frame img{width:100%;aspect-ratio:140/132;object-fit:cover}
.pd-meta{font-size:var(--text-xs);font-weight:800;letter-spacing:.08em;color:var(--red);text-transform:uppercase;margin-bottom:var(--space-3)}
.pd-head h1{font-family:var(--font-display);font-weight:400;font-size:var(--text-3xl);color:var(--blue);line-height:1;letter-spacing:.01em}
.pd-head .he{font-size:var(--text-2xl);color:var(--blue-deep);display:block;margin-top:var(--space-2);line-height:1.3}
.quotes{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-5);margin-top:var(--space-10)}
.quote{margin:0;background:linear-gradient(#fdf3d7,#f9e8bd);border:2px solid #e2c27a;border-radius:var(--radius-lg);padding:var(--space-5) var(--space-6);font-family:var(--font-hand);font-size:var(--text-base);line-height:1.5;position:relative}
.quote cite{display:block;font-style:normal;font-weight:700;color:var(--red);margin-top:var(--space-2);font-size:var(--text-sm)}
.plan-h{display:flex;align-items:center;gap:var(--space-3);margin:var(--space-12) 0 var(--space-6)}
.plan-h h2{font-family:var(--font-hand);font-weight:700;color:var(--blue);font-size:var(--text-xl);letter-spacing:.02em}
.plan-h img{width:30px}
.plan{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-5)}
.reading{background:var(--card);border:2px solid var(--line);border-radius:var(--radius-lg);padding:var(--space-6);display:flex;flex-direction:column}
.reading-h{display:flex;align-items:center;gap:var(--space-3);margin-bottom:var(--space-4)}
.reading-h img{width:46px;height:46px;object-fit:contain}
.reading-h h3{font-family:var(--font-display);font-weight:400;font-size:var(--text-lg);letter-spacing:.03em;line-height:1;padding-top:3px}
.reading-h .ref{display:block;font-family:var(--font-body);font-weight:700;font-size:var(--text-sm);color:var(--ink);margin-top:var(--space-1);letter-spacing:0}
.reading-h .ref a{color:var(--ink);text-decoration-color:var(--line);text-underline-offset:3px}
.reading-h .ref a:hover{color:var(--blue);text-decoration-color:var(--blue)}
.reading ul{margin:0 0 var(--space-4);padding-left:1.2em;display:grid;gap:var(--space-2);font-size:var(--text-sm)}
.reading li::marker{color:var(--gold)}
.link{margin-top:auto;font-family:var(--font-hand);font-size:var(--text-sm);line-height:1.45;border-top:2px dashed var(--line);padding-top:var(--space-3);color:var(--ink)}
.link b{color:var(--green)}
.bottom{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-5);margin-top:var(--space-10)}
.box{border-radius:var(--radius-xl);padding:var(--space-8);display:grid;grid-template-columns:72px 1fr;gap:var(--space-5);align-items:start}
.box img{width:72px}
.box h2{font-family:var(--font-display);font-weight:400;font-size:var(--text-lg);letter-spacing:.06em;margin-bottom:var(--space-2)}
.box p{margin:0;font-size:var(--text-base)}
.box-big{background:#fdebee;border:2px solid #efb5bf}
.box-big h2{color:var(--red)}
.box-book{background:#efe8fb;border:2px solid #c9b4ee}
.box-book h2{color:var(--purple)}
.box-book a{font-weight:800}
.dates{margin-top:var(--space-10);background:var(--card);border:2px solid var(--line);border-radius:var(--radius-lg);padding:var(--space-6)}
.dates h2{font-size:var(--text-lg);font-weight:800;margin-bottom:var(--space-3)}
.dates ul{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:var(--space-2)}
.dates li{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-full);padding:var(--space-1) var(--space-4);font-size:var(--text-sm);font-weight:600}
.dates p{font-size:var(--text-sm);color:var(--ink-muted);margin:var(--space-3) 0 0}
.pager{display:flex;justify-content:space-between;gap:var(--space-4);margin-top:var(--space-12)}
.pager a{flex:1;max-width:48%;display:flex;flex-direction:column;background:var(--card);border:2px solid var(--line);border-radius:var(--radius-lg);padding:var(--space-4) var(--space-5);text-decoration:none;color:var(--ink);transition:border-color .18s var(--ease)}
.pager a:hover{border-color:var(--blue);color:var(--ink)}
.pager a.next{text-align:right;margin-left:auto}
.pager small{font-size:var(--text-xs);color:var(--ink-muted);font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.pager b{font-weight:800}
@media (max-width:860px){.pd-head,.quotes,.plan,.bottom{grid-template-columns:1fr}.pd-head .frame{max-width:460px}}
@media (max-width:520px){.box{grid-template-columns:1fr;padding:var(--space-6)}.box img{width:56px}}

/* Calendar */
.cal-month{margin-bottom:var(--space-10)}
.cal-month h2{font-family:var(--font-display);font-weight:400;color:var(--blue);font-size:var(--text-xl);margin-bottom:var(--space-4);letter-spacing:.02em}
.cal-list{list-style:none;padding:0;margin:0;background:var(--card);border:2px solid var(--line);border-radius:var(--radius-lg);overflow:hidden}
.cal-row{display:grid;grid-template-columns:150px 1fr;gap:var(--space-4);padding:var(--space-4) var(--space-5);border-top:1px solid var(--line);align-items:center}
.cal-row:first-child{border-top:0}
.cal-row.now{background:#fff6dc;box-shadow:inset 4px 0 0 var(--red)}
.cal-date b{display:block;font-weight:800}
.cal-date span{font-size:var(--text-xs);color:var(--ink-muted)}
.cal-items{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.cal-items a{display:inline-flex;align-items:center;gap:var(--space-2);text-decoration:none;font-weight:700;font-size:var(--text-sm);border-radius:var(--radius-full);padding:var(--space-1) var(--space-4) var(--space-1) var(--space-1);border:2px solid var(--line);background:var(--paper);color:var(--ink)}
.cal-items a:hover{border-color:var(--blue)}
.cal-items img{width:28px;height:28px;border-radius:50%;object-fit:cover}
.cal-items .k{font-size:var(--text-xs);font-weight:800;color:var(--ink-muted)}
.cal-items a.holy{border-color:#efb5bf;background:#fdebee}
.cal-items a.sabbath{border-color:#c9b4ee;background:#f3edfc}
.legend{display:flex;flex-wrap:wrap;gap:var(--space-4);font-size:var(--text-sm);color:var(--ink-muted);margin-top:var(--space-4)}
.legend span::before{content:"";display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:6px;vertical-align:-1px;border:2px solid var(--line);background:var(--paper)}
.legend .lh::before{background:#fdebee;border-color:#efb5bf}
.legend .ls::before{background:#f3edfc;border-color:#c9b4ee}
@media (max-width:600px){.cal-row{grid-template-columns:1fr;gap:var(--space-2)}}

/* Book page */
.book-hero{display:grid;grid-template-columns:minmax(240px,420px) 1fr;gap:clamp(var(--space-8),6vw,var(--space-20));align-items:start}
.book-hero .book-cover{transform:none}
.samples{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-5)}
.sample{border:0;padding:0;background:none;cursor:zoom-in;border-radius:var(--radius-md);overflow:hidden;box-shadow:var(--shadow-md);transition:transform .2s var(--ease)}
.sample:hover{transform:translateY(-4px) rotate(-.5deg)}
.sample img{width:100%;aspect-ratio:612/792;object-fit:cover}
.cap{font-size:var(--text-sm);color:var(--ink-muted);margin-top:var(--space-2);text-align:center}
.facts{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--space-4);margin:var(--space-8) 0}
.fact{background:var(--card);border:2px solid var(--line);border-radius:var(--radius-lg);padding:var(--space-4)}
.fact b{display:block;font-family:var(--font-display);font-weight:400;font-size:var(--text-xl);color:var(--blue);line-height:1;padding-top:4px}
.fact span{font-size:var(--text-xs);color:var(--ink-muted);font-weight:700}
.notice{background:var(--gold-soft);border:2px solid var(--gold);border-radius:var(--radius-lg);padding:var(--space-5) var(--space-6)}
.notice p{margin:0}
@media (max-width:860px){.book-hero{grid-template-columns:1fr}.book-hero .book-cover{max-width:300px}.facts{grid-template-columns:1fr 1fr}.samples{grid-template-columns:1fr 1fr}}
@media (max-width:480px){.samples{grid-template-columns:1fr}}

dialog#lightbox{border:0;padding:0;background:transparent;max-width:min(92vw,820px);max-height:94vh}
dialog#lightbox::backdrop{background:rgb(20 20 40 / .8)}
dialog#lightbox img{max-height:90vh;width:auto;border-radius:var(--radius-md)}
.lb-close{position:absolute;top:8px;right:8px;width:40px;height:40px;border-radius:50%;border:0;background:#fff;font-size:1.6rem;line-height:1;cursor:pointer;box-shadow:var(--shadow-md)}

/* About / prose */
.prose{max-width:68ch}
.prose h2{font-family:var(--font-display);font-weight:400;color:var(--blue);font-size:var(--text-xl);margin:var(--space-12) 0 var(--space-4);letter-spacing:.02em}
.prose h2:first-child{margin-top:0}
.prose ul{padding-left:1.2em;display:grid;gap:var(--space-2)}
.prose li::marker{color:var(--red)}
.about-grid{display:grid;grid-template-columns:1fr minmax(260px,380px);gap:clamp(var(--space-8),6vw,var(--space-16));align-items:start}
.about-side{position:sticky;top:96px;display:grid;gap:var(--space-4)}
@media (max-width:900px){.about-grid{grid-template-columns:1fr}.about-side{position:static}}

/* Footer */
.site-footer{margin-top:var(--space-16);padding-bottom:var(--space-10)}
.footer-inner{display:grid;gap:var(--space-3);text-align:center;justify-items:center;padding-top:var(--space-8)}
.footer-blessing{font-size:var(--text-lg);color:var(--blue);margin:0}
.footer-blessing .heart{color:var(--red)}
.footer-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--space-2) var(--space-6)}
.footer-nav a{font-weight:700;font-size:var(--text-sm);text-decoration:none}
.fine{font-size:var(--text-xs);color:var(--ink-muted);margin:0;max-width:70ch}

.fade-in{animation:fade .45s var(--ease) both}
@keyframes fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.page-head .p-sub{color:var(--green)}.page-head .theme-banner{color:var(--ink)}.pd-head .he{text-align:left}

/* Contact */
.contact-grid{display:grid;grid-template-columns:1fr minmax(240px,340px);gap:clamp(var(--space-8),6vw,var(--space-16));align-items:start;padding-block:var(--space-10) var(--space-16)}
.contact-form{background:var(--card);border:2px solid var(--line);border-radius:var(--radius-xl);padding:clamp(var(--space-5),4vw,var(--space-10));box-shadow:var(--shadow-md);display:grid;gap:var(--space-5)}
.field{display:grid;gap:var(--space-2)}
.field label{font-weight:800;color:var(--blue-deep)}
.field small{color:var(--ink-muted);font-size:var(--text-xs)}
.field input,.field select,.field textarea{font:inherit;color:var(--ink);background:#fff;border:2px solid var(--line);border-radius:var(--radius-md);padding:.7em .9em;width:100%;transition:border-color .18s var(--ease),box-shadow .18s var(--ease)}
.field textarea{resize:vertical;min-height:9rem}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgb(29 79 163 / .18)}
.contact-form .btn{justify-self:start}
.contact-form .btn:disabled{opacity:.7;cursor:wait}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.form-status{margin:0;font-weight:700;min-height:1.6em}
.form-status.ok{color:var(--green)}
.form-status.err{color:var(--red)}
.contact-note{font-size:var(--text-lg);color:var(--blue-deep);margin-top:var(--space-4)}
@media (max-width:900px){.contact-grid{grid-template-columns:1fr}.contact-grid .about-side{max-width:380px}}

/* 3D book */
.book3d{position:relative;width:100%;display:grid;gap:var(--space-3)}
.b3d-stage{position:relative;width:100%;aspect-ratio:4/5;display:grid;place-items:center}
.b3d-img{width:78%;height:auto}
.b3d-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;cursor:grab;touch-action:pan-y;opacity:0;transition:opacity .5s var(--ease);border-radius:var(--radius-lg)}
.b3d-canvas:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.b3d-grabbing .b3d-canvas{cursor:grabbing}
.b3d-ready .b3d-canvas{opacity:1}
.b3d-ready .b3d-img{visibility:hidden}
.b3d-ui{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--space-2) var(--space-4)}
.b3d-hint{margin:0;color:var(--blue-deep);font-size:var(--text-base);transition:opacity .4s var(--ease)}
.b3d-used .b3d-hint{opacity:.55}
.b3d-views{display:inline-flex;background:var(--card);border:2px solid var(--line);border-radius:var(--radius-full);padding:3px}
.b3d-views button{font:inherit;font-weight:800;font-size:var(--text-xs);color:var(--blue);background:none;border:0;border-radius:var(--radius-full);padding:.35em .9em;cursor:pointer;transition:background .18s var(--ease),color .18s var(--ease)}
.b3d-views button:hover{background:var(--blue);color:#fff}
.b3d-fallback .b3d-ui{display:none}
.b3d-dark .b3d-hint{color:#f6f1e4}
.b3d-dark .b3d-views{background:rgb(255 255 255 / .08);border-color:rgb(255 255 255 / .25)}
.b3d-dark .b3d-views button{color:#fff}
.b3d-dark .b3d-views button:hover{background:var(--gold);color:var(--ink)}
.book-hero .book3d .book-cover,.book-grid .book3d .book-cover{transform:none;max-width:none}
@media (max-width:860px){.book-hero .book3d,.book-grid .book3d{max-width:380px;margin-inline:auto}}

.book-details{margin:0 0 var(--space-6);display:grid;gap:0;border:2px solid var(--line, #e6dcc3);border-radius:14px;overflow:hidden;background:#fffdf8}
.book-details div{display:grid;grid-template-columns:minmax(9.5em,auto) 1fr;gap:var(--space-3);padding:var(--space-2) var(--space-4)}
.book-details div+div{border-top:1px solid var(--line, #e6dcc3)}
.book-details dt{font-weight:800;color:var(--blue, #1d4fa3)}
.book-details dd{margin:0;font-variant-numeric:tabular-nums;color:var(--ink)}
@media (max-width:520px){.book-details div{grid-template-columns:1fr;gap:2px}}
.book-details dd{white-space:nowrap}
.book-details div:nth-child(n+3) dd{white-space:normal}

.dates .next-read{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-2) var(--space-3);margin:0 0 var(--space-3)}
.dates .next-read .nr-when{background:var(--blue);color:#fff;font-weight:800;font-size:var(--text-sm);padding:.2em .75em;border-radius:999px}
.dates .next-read .nr-date{font-weight:800;font-size:var(--text-lg);color:var(--ink)}
.dates .next-read .nr-heb{color:var(--ink-muted);font-size:var(--text-sm)}
.dates .next-read{margin:0 0 var(--space-3);font-size:inherit;color:var(--ink)}
.dates .nr-with{margin:0 0 var(--space-3);font-size:var(--text-base);color:var(--ink)}
.cb-plug{margin-top:var(--space-5);font-weight:700}
.book-band .cb-plug a{color:var(--gold)}
@media (max-width:1100px){.facts{grid-template-columns:1fr 1fr}}
/* Open book */
.b3d-openbtn{font:inherit;font-weight:800;font-size:var(--text-xs);color:#fff;background:var(--red);border:0;border-radius:var(--radius-full);padding:.6em 1.2em;cursor:pointer;box-shadow:0 3px 0 #8f2a20}
.b3d-openbtn:hover{filter:brightness(1.08)}
.b3d-pager{display:none;align-items:center;gap:var(--space-2);flex-wrap:wrap;justify-content:center}
.b3d-pager button{font:inherit;font-weight:800;font-size:var(--text-xs);color:var(--blue);background:var(--card);border:2px solid var(--line);border-radius:var(--radius-full);padding:.4em 1em;cursor:pointer}
.b3d-pager button:hover:not(:disabled){background:var(--blue);color:#fff;border-color:var(--blue)}
.b3d-pager button:disabled{opacity:.4;cursor:default}
.b3d-pager .b3d-close{color:var(--red)}
.b3d-pg{font-weight:700;font-size:var(--text-xs);color:var(--ink);min-width:12em;text-align:center}
.b3d-hint .h-open{display:none}
.b3d-open .b3d-hint .h-open{display:inline}.b3d-open .b3d-hint .h-closed{display:none}
.b3d-open .b3d-views,.b3d-open .b3d-openbtn,.b3d-fallback .b3d-openbtn{display:none}
.b3d-open .b3d-pager{display:flex}
.b3d-open .b3d-stage{aspect-ratio:16/10}
.b3d-open .b3d-canvas{cursor:pointer;touch-action:pan-y}
.book-hero .book3d.b3d-open,.book-grid .book3d.b3d-open{grid-column:1/-1;width:100%;max-width:980px;justify-self:center}
@media (max-width:860px){.book-hero .book3d.b3d-open,.book-grid .book3d.b3d-open{max-width:none}}
@media (max-width:600px){.b3d-open .b3d-stage{aspect-ratio:4/3}}
.b3d-dark .b3d-pager button{background:rgb(255 255 255 / .08);border-color:rgb(255 255 255 / .25);color:#fff}
.b3d-dark .b3d-pager .b3d-close{color:#ffb4a8}
.b3d-dark .b3d-pg{color:#f6f1e4}
.b3d-open .b3d-img{display:none}.b3d-open .b3d-stage{min-height:0;overflow:hidden}
.buy-box{background:var(--card);border:2px solid var(--gold);border-radius:var(--radius-lg);padding:var(--space-5) var(--space-6)}
.buy-box h2{font-size:var(--text-lg);font-weight:800;margin:0 0 var(--space-3)}
.buy-row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);flex-wrap:wrap;padding:var(--space-2) 0;border-top:1px solid var(--line)}
.buy-row span{font-weight:700}
.buy-box .lang-note{margin:var(--space-3) 0 0;padding-top:var(--space-3);border-top:1px solid var(--line,#e6dcc3);font-size:var(--text-sm)}
.buy-box .fine{margin:var(--space-3) 0 0;font-size:var(--text-xs);color:var(--ink-2,#5b5f72)}

/* Parents' Guide page stack */
.pg-stack{position:relative;aspect-ratio:2/3;max-width:380px;width:78%;margin:var(--space-6) auto var(--space-10)}
.pg-stack img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#fff;border-radius:6px;box-shadow:0 10px 30px rgba(31,39,66,.18),0 2px 6px rgba(31,39,66,.12);border:1px solid #e6dcc3}
.pg-stack img:nth-child(1){transform:rotate(7deg) translate(9%,2%)}
.pg-stack img:nth-child(2){transform:rotate(-5deg) translate(-7%,1%)}
.pg-stack img:nth-child(3){transform:rotate(0)}

.buy-name{display:flex;flex-direction:column;gap:2px}
.buy-price{font-size:var(--text-lg);font-weight:800;color:var(--blue)}
.buy-price:empty{display:none}
