/* ============================================================
   סיפורי עדולם — cinematic editorial fantasy design system
   ============================================================ */

/* ---------- design tokens ---------- */
:root {
  /* backgrounds */
  --bg-0: #0c0e13;            /* page — deep charcoal near-black */
  --bg-1: #12151d;            /* raised band */
  --bg-2: #191d28;            /* card surface */
  --bg-3: #222736;            /* elevated / hover */

  /* text */
  --text-0: #ece5d6;          /* parchment white */
  --text-1: #b9b2a2;          /* dim parchment */
  --text-2: #857f70;          /* captions */

  /* accents */
  --gold: #c9a24b;
  --gold-soft: #e6cd91;
  --silver: #aebfd4;
  --ember: #c96a4a;
  --accent: var(--gold);      /* per-world override */
  --accent-soft: var(--gold-soft);

  /* lines & shadows */
  --line: rgba(201, 162, 75, .25);
  --line-faint: rgba(236, 229, 214, .1);
  --shadow-1: 0 4px 18px rgba(0, 0, 0, .45);
  --shadow-2: 0 14px 44px rgba(0, 0, 0, .6);

  /* geometry */
  --radius-s: 3px;
  --radius-m: 6px;
  --header-h: 62px;

  /* layout */
  --container: 1480px;
  --pad-x: clamp(16px, 3.5vw, 64px);
  --prose: 54rem;
  --sect-pad: clamp(56px, 8vw, 100px);

  /* type scale */
  --fs-h1: clamp(2.3rem, 6vw, 4.2rem);
  --fs-h2: clamp(1.6rem, 3.4vw, 2.4rem);
  --fs-h3: clamp(1.2rem, 2.2vw, 1.5rem);
  --fs-body: 1.06rem;
  --lh-body: 1.9;

  --font-head: "Frank Ruhl Libre", serif;
  --font-body: "Assistant", sans-serif;

  --ease: cubic-bezier(.22, .8, .3, 1);
  --dur: .28s;

  /* z layers */
  --z-header: 100;
  --z-menu: 200;
  --z-lightbox: 300;
  --z-a11y: 400;
}

/* per-world moods — shared foundation, different accent + tint */
body.theme-esphamy {
  --bg-0: #0c1210;  --bg-1: #111815;  --bg-2: #17211d;  --bg-3: #1f2c26;
  --accent: #7fa375; --accent-soft: #b6cfa9;
  --line: rgba(150, 180, 140, .25);
}
body.theme-earth {
  --bg-0: #12100e;  --bg-1: #181512;  --bg-2: #201b17;  --bg-3: #2b241e;
  --accent: #c96a4a; --accent-soft: #e5a98c;
  --line: rgba(201, 106, 74, .3);
}
body.theme-moon {
  --bg-0: #090c14;  --bg-1: #0e1220;  --bg-2: #141a2c;  --bg-3: #1c2440;
  --accent: #aebfd4; --accent-soft: #dbe6f5;
  --line: rgba(174, 191, 212, .28);
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text-0);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  direction: rtl;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color var(--dur); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.35; font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

/* skip link — visible on keyboard focus */
.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: 0;
  z-index: calc(var(--z-a11y) + 1);
  padding: 10px 16px;
  background: var(--gold);
  color: #0c0e13;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  transform: translateY(-120%);
  transition: transform .2s var(--ease);
}
.skip-link:focus, .skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad-x); }

/* ---------- accessibility prefs (html classes from toolbar / localStorage) ---------- */
html.a11y-text-lg { font-size: 112.5%; }
html.a11y-text-xl { font-size: 125%; }

html.a11y-contrast {
  --bg-0: #000;
  --bg-1: #0a0a0a;
  --bg-2: #111;
  --bg-3: #1a1a1a;
  --text-0: #fff;
  --text-1: #f0f0f0;
  --text-2: #ddd;
  --gold: #ffe066;
  --gold-soft: #fff3a8;
  --accent: #ffe066;
  --accent-soft: #fff3a8;
  --line: rgba(255, 224, 102, .55);
  --line-faint: rgba(255, 255, 255, .35);
}
html.a11y-contrast body { background: #000; color: #fff; }
html.a11y-contrast a { text-decoration: underline; text-underline-offset: 3px; }
html.a11y-contrast .site-header {
  background: #000;
  border-bottom-color: var(--line);
}

html.a11y-links a {
  text-decoration: underline !important;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
html.a11y-links a:hover,
html.a11y-links a:focus-visible {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
}

html.a11y-motion,
html.a11y-motion * ,
html.a11y-motion *::before,
html.a11y-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html.a11y-motion .reveal { opacity: 1; transform: none; }

/* ambient side atmosphere: fills wide viewports with a soft accent glow */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(58vw 42vh at 6% 10%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%),
    radial-gradient(64vw 48vh at 94% 82%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%),
    radial-gradient(40vw 30vh at 50% 115%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 75%);
}

/* ---------- ornaments ---------- */
.rule-ornament {
  display: flex; align-items: center; gap: 14px; justify-content: center;
  margin: 18px auto 0; max-width: 340px; color: var(--accent);
}
.rule-ornament::before, .rule-ornament::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--line) 30%, var(--accent) 100%);
}
.rule-ornament::after {
  background: linear-gradient(270deg, transparent, var(--line) 30%, var(--accent) 100%);
}
.rule-ornament .gem {
  width: 7px; height: 7px; transform: rotate(45deg);
  background: var(--accent); box-shadow: 0 0 10px rgba(201, 162, 75, .5);
}

.divider {
  display: flex; align-items: center; gap: 16px; justify-content: center;
  margin: clamp(40px, 7vw, 70px) auto; max-width: 480px; color: var(--accent);
  font-size: .8rem; letter-spacing: .4em;
}
.divider::before, .divider::after {
  content: ""; height: 1px; flex: 1; background: var(--line);
}

.section-head { text-align: center; margin-bottom: clamp(30px, 5vw, 52px); }
.section-head h2 {
  font-size: var(--fs-h2); color: var(--text-0); font-weight: 900;
}
.section-head .kicker {
  color: var(--accent-soft); font-size: .82rem; letter-spacing: .35em;
  text-transform: uppercase; display: block; margin-bottom: 10px; font-family: var(--font-body);
}
.section-head .section-sub {
  color: var(--text-1); max-width: 46rem; margin: 14px auto 0; font-size: 1.06rem;
}
.hero-title-link { display: inline-block; }
.hero-title-link:hover .hero-title { color: var(--gold-soft); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: linear-gradient(180deg, rgba(7, 8, 12, .92), rgba(7, 8, 12, .78));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur), background var(--dur);
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  margin: 0 auto; padding: 0 var(--pad-x);
  display: flex; align-items: center; gap: 10px; min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong {
  font-family: var(--font-head); font-size: 1.02rem; color: var(--text-0); font-weight: 700;
}
.brand-text small { color: var(--text-2); font-size: .67rem; letter-spacing: .06em; }

.site-nav { margin-inline-start: 26px; }
.nav-list { list-style: none; display: flex; align-items: center; }
.nav-item { position: relative; }
.nav-item > a {
  display: block; padding: 20px 14px; color: var(--text-1);
  font-size: .92rem; font-weight: 500; letter-spacing: .02em;
  border-bottom: 2px solid transparent; transition: color var(--dur);
}
.nav-item > a:hover { color: var(--text-0); }
.nav-item > a.active { color: var(--gold-soft); }
.nav-item > a.active::after {
  content: ""; position: absolute; bottom: 14px; inset-inline: 16px; height: 1px;
  background: var(--gold);
}
.submenu-toggle { display: none; }
.submenu {
  list-style: none; position: absolute; top: 100%; inset-inline-start: 0;
  min-width: 210px; background: rgba(12, 13, 18, .97); border: 1px solid var(--line);
  border-top-color: var(--gold); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  box-shadow: var(--shadow-2);
}
.nav-item:hover .submenu, .nav-item:focus-within .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu a {
  display: block; padding: 9px 20px; color: var(--text-1); font-size: .88rem;
}
.submenu a:hover, .submenu a:focus-visible { color: var(--gold-soft); background: rgba(255, 255, 255, .04); }

.header-cta {
  margin-inline-start: auto; flex-shrink: 0;
  padding: 9px 22px; border: 1px solid var(--gold); color: var(--gold-soft);
  font-size: .85rem; font-weight: 600; border-radius: var(--radius-s);
  transition: background var(--dur), color var(--dur);
}
.header-cta:hover { background: var(--gold); color: #14100a; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-faint);
  color: var(--text-0); padding: 6px 12px; border-radius: var(--radius-s);
  font-size: 1.25rem; cursor: pointer; line-height: 1;
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: clamp(430px, 72vh, 780px);
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
  text-align: center; isolation: isolate;
}
.hero-home { min-height: clamp(560px, 92vh, 960px); }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 8, 12, .55) 0%, rgba(7, 8, 12, .1) 30%,
      rgba(7, 8, 12, .12) 60%, var(--bg-0) 100%);
}
.hero-overlay-side {
  background:
    linear-gradient(270deg, rgba(7, 8, 12, .72) 0%, rgba(7, 8, 12, .28) 45%, rgba(7, 8, 12, 0) 75%),
    linear-gradient(180deg, rgba(7, 8, 12, .4) 0%, rgba(7, 8, 12, 0) 30%, var(--bg-0) 100%);
}
.hero-content { position: relative; padding: 80px 22px; max-width: 880px; }
.hero-content-side {
  margin-inline-end: auto; max-width: 600px; text-align: center; padding: 80px 5vw;
}
.hero-title {
  font-size: var(--fs-h1); font-weight: 900; color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .85);
  margin-bottom: 10px;
}
.hero-subtitle {
  color: var(--gold-soft); font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.2vw, 1.55rem); letter-spacing: .06em;
  margin: 0 0 34px; text-shadow: 0 2px 16px rgba(0, 0, 0, .8);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 26px; right: 50%; transform: translateX(50%);
  width: 26px; height: 42px; border: 1px solid rgba(236, 229, 214, .5);
  border-radius: 14px; opacity: .8;
}
.scroll-cue::after {
  content: ""; position: absolute; top: 8px; right: 50%; margin-right: -2px;
  width: 4px; height: 8px; border-radius: 2px; background: var(--gold-soft);
  animation: cue 2.2s infinite var(--ease);
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
}

.page-head { text-align: center; padding: clamp(48px, 8vw, 84px) 22px 6px; }
.page-head h1 { font-size: var(--fs-h2); color: var(--text-0); font-weight: 900; }
.page-head-sub { color: var(--text-1); margin-top: 12px; font-size: 1.05rem; }

/* breadcrumbs */
.breadcrumbs {
  display: flex; gap: 8px; align-items: center; justify-content: center;
  font-size: .82rem; color: var(--text-2); padding: 18px 22px 0; flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-1); }
.breadcrumbs a:hover { color: var(--gold-soft); }
.breadcrumbs .sep { color: var(--line); }
.hero .breadcrumbs {
  position: absolute; top: 8px; inset-inline: 0; justify-content: center;
  color: rgba(236, 229, 214, .75);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 12px 34px;
  background: var(--gold); color: #17120a; font-weight: 700; font-size: .95rem;
  border-radius: var(--radius-s); border: 1px solid var(--gold);
  transition: filter var(--dur), transform var(--dur);
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-outline {
  display: inline-block; padding: 12px 34px; border: 1px solid rgba(236, 229, 214, .65);
  color: #fff; background: rgba(7, 8, 12, .3); font-weight: 600; font-size: .95rem;
  border-radius: var(--radius-s);
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.btn-outline:hover { background: rgba(236, 229, 214, .95); color: #14100a; }
.btn.btn-outline { background: rgba(7, 8, 12, .3); color: #fff; border-color: rgba(236, 229, 214, .65); }
.btn.btn-outline:hover { background: rgba(236, 229, 214, .95); color: #14100a; }
.btn-ghost {
  display: inline-block; padding: 10px 26px; border: 1px solid var(--line);
  color: var(--accent-soft); font-weight: 600; font-size: .9rem; border-radius: var(--radius-s);
  transition: border-color var(--dur), color var(--dur), background var(--dur);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(255, 255, 255, .03); }
.btn-row {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin: 22px auto 30px; padding-inline: var(--pad-x);
}
.btn-row .btn {
  background: transparent; color: var(--accent-soft); border: 1px solid var(--line);
  padding: 9px 24px; font-size: .88rem; font-weight: 600;
}
.btn-row .btn:hover { border-color: var(--accent); color: var(--text-0); transform: none; filter: none; }

/* ---------- prose / long-form ---------- */
.prose { max-width: var(--prose); margin: 0 auto; padding: 34px 22px 20px; }
/* images escape the text column and breathe across the screen */
.prose .content-img {
  width: min(1100px, 92vw);
  margin-inline: calc((100% - min(1100px, 92vw)) / 2);
  max-width: none;
}
.prose .content-img img { margin: 0 auto; max-height: 76vh; object-fit: contain; }
.prose h1, .prose h2 {
  color: var(--text-0); margin: 44px 0 14px; text-align: center; font-weight: 900;
  font-size: var(--fs-h2);
}
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.prose h3 { color: var(--text-0); margin: 34px 0 10px; text-align: center; font-size: var(--fs-h3); }
.prose h4, .prose h5, .prose h6 {
  color: var(--accent-soft); margin: 26px 0 10px; font-size: 1.05rem; text-align: center;
}
.prose h1:first-child, .prose h2:first-child { margin-top: 10px; }
.prose p { margin: 15px 0; color: var(--text-1); }
.prose p a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }
.prose p a:hover { color: var(--text-0); }
.prose ul, .prose ol {
  margin: 12px auto 20px; padding-inline-start: 1.4em;
  max-width: 42rem; color: var(--text-1); text-align: start;
}
.prose li { margin: 8px 0; }
.prose li a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }
.a11y-statement h2 { text-align: start; }
.a11y-statement p { text-align: start; max-width: 42rem; margin-inline: auto; }

.content-img { margin: 34px auto; max-width: 680px; }
.content-img img {
  margin: 0 auto; cursor: zoom-in; border: 1px solid var(--line-faint);
  box-shadow: var(--shadow-1);
}
.content-img figcaption {
  text-align: center; color: var(--text-2); font-size: .85rem; margin-top: 10px;
}
.inline-icon { display: inline-block; margin: 0 6px; vertical-align: middle; }
.inline-icon img { display: inline-block; max-height: 40px; }

/* ---------- home: intro ---------- */
.intro-section { padding: var(--sect-pad) var(--pad-x) 20px; position: relative; }
.intro-panel {
  max-width: 1100px; margin: 0 auto; padding: clamp(30px, 5vw, 54px) clamp(22px, 7vw, 110px);
  text-align: center; position: relative;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(ellipse 90% 130% at 50% -30%, rgba(201, 162, 75, .07), transparent 70%),
    var(--bg-1);
}
.intro-panel::before, .intro-panel::after {
  content: ""; position: absolute; width: 44px; height: 44px; pointer-events: none;
  border: 1px solid var(--line);
}
.intro-panel::before { top: -1px; inset-inline-start: -1px; border-inline-end: 0; border-bottom: 0; }
.intro-panel::after { bottom: -1px; inset-inline-end: -1px; border-inline-start: 0; border-top: 0; }
.intro-panel p { color: var(--text-1); font-size: clamp(1.08rem, 1.4vw, 1.3rem); margin: 12px 0; }
.intro-panel p a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.intro-panel p a:hover { color: var(--text-0); }

/* ---------- portals (explore-the-universe cards) ---------- */
.tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 22px);
  margin: 0 auto; padding-inline: var(--pad-x);
}
.tiles-inline { margin: 34px auto; }
@media (min-width: 1500px) {
  .tiles { grid-template-columns: repeat(6, 1fr); }
  .tiles .tile { aspect-ratio: 3 / 4; }
  .tiles-inline { grid-template-columns: repeat(3, 1fr); max-width: 1480px; }
}
.tile {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius-m); border: 1px solid var(--line-faint);
  box-shadow: var(--shadow-1); isolation: isolate;
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur) var(--ease);
}
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .9s var(--ease); z-index: -1;
}
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(7, 8, 12, 0) 40%, rgba(7, 8, 12, .82) 100%);
}
.tile:hover, .tile:focus-visible { border-color: var(--line); box-shadow: var(--shadow-2); transform: translateY(-4px); }
.tile:hover img { transform: scale(1.06); }
.tile-label {
  position: absolute; bottom: 22px; inset-inline: 0; z-index: 1; text-align: center;
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;
  letter-spacing: .03em; padding-inline: 12px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .9);
}
.tile-label::after {
  content: ""; display: block; width: 34px; height: 1px; margin: 10px auto 0;
  background: var(--gold); transition: width var(--dur) var(--ease);
}
.tile:hover .tile-label::after { width: 68px; }

/* ---------- hub subcategory cards ---------- */
.hub-hero { min-height: clamp(430px, 66vh, 700px); }
.hub-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(12px, 1.4vw, 22px); margin: 0 auto; padding: 10px var(--pad-x) 30px;
}
.hub-card {
  position: relative; display: flex; align-items: flex-end;
  min-height: clamp(170px, 24vh, 260px);
  padding: 18px; overflow: hidden; border-radius: var(--radius-m);
  background: var(--bg-2); border: 1px solid var(--line-faint);
  background-size: cover; background-position: center;
  transition: border-color var(--dur), transform var(--dur) var(--ease), box-shadow var(--dur);
  isolation: isolate;
}
.hub-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 8, 12, .15), rgba(7, 8, 12, .85));
}
.hub-card:hover, .hub-card:focus-visible {
  transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow-2);
}
.hub-card span {
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
}
.hub-card span::after {
  content: ""; display: block; width: 26px; height: 1px; margin-top: 8px;
  background: var(--accent); transition: width var(--dur) var(--ease);
}
.hub-card:hover span::after { width: 56px; }

/* ---------- books: editorial feature ---------- */
.book-feature {
  display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: clamp(28px, 5vw, 80px);
  align-items: center; max-width: 1200px; margin: 0 auto; padding: 20px var(--pad-x);
}
.book-cover-wrap { position: relative; justify-self: center; }
.book-cover-wrap::after {
  content: ""; position: absolute; inset: 12px -14px -14px 12px; z-index: -1;
  border: 1px solid var(--line); border-radius: var(--radius-s);
}
.book-cover-wrap img {
  box-shadow: var(--shadow-2); border-radius: var(--radius-s); width: 100%;
}
.book-info { text-align: center; }
.book-info h3 { font-size: var(--fs-h3); color: var(--text-0); margin-bottom: 14px; }
.book-info p { color: var(--text-1); margin: 10px 0; }
.book-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.book-evrit {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 26px;
  background: linear-gradient(180deg, #dcb765, #b48c3a);
  color: #17120a; padding: 11px 26px; border-radius: var(--radius-s);
  border: 1px solid var(--gold-soft);
  box-shadow: 0 6px 26px rgba(201, 162, 75, .32), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), filter var(--dur);
}
.book-evrit img {
  max-height: 30px; background: #fff; border-radius: 3px; padding: 3px 7px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.book-evrit span { font-weight: 700; font-size: 1.02rem; letter-spacing: .01em; }
.book-evrit:hover, .book-evrit:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(201, 162, 75, .48), inset 0 1px 0 rgba(255, 255, 255, .35);
  filter: brightness(1.06);
}
.book-bookpod img { padding: 2px; }

/* row of store purchase buttons (evrit + bookpod) */
.store-ctas {
  display: flex; gap: 14px; justify-content: center; align-items: stretch;
  flex-wrap: wrap; margin-top: 26px;
}
.store-ctas .book-evrit { margin-top: 0; }

/* prose paragraph that is entirely a purchase/action link */
.cta-row {
  display: flex; gap: 14px; justify-content: center; align-items: stretch;
  flex-wrap: wrap; text-align: center; margin: 30px 0 !important; max-width: none !important;
}
.cta-row .book-evrit { margin-top: 0; }
.cta-button {
  display: inline-block; padding: 13px 34px;
  background: linear-gradient(180deg, #dcb765, #b48c3a);
  color: #17120a !important; font-weight: 700; font-size: 1.05rem;
  border-radius: var(--radius-s); border: 1px solid var(--gold-soft);
  box-shadow: 0 6px 26px rgba(201, 162, 75, .32), inset 0 1px 0 rgba(255, 255, 255, .35);
  text-decoration: none !important;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), filter var(--dur);
}
.cta-button:hover, .cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(201, 162, 75, .48), inset 0 1px 0 rgba(255, 255, 255, .35);
  filter: brightness(1.06);
}

/* ---------- books page ---------- */
.books-list { max-width: 1560px; margin: 0 auto; padding: clamp(30px, 5vw, 60px) var(--pad-x) 10px; }
.book-row {
  display: grid; grid-template-columns: minmax(240px, 420px) 1fr;
  gap: clamp(28px, 5vw, 90px); align-items: center;
  padding: clamp(20px, 3vw, 40px) 0;
}
.book-row-flip { grid-template-columns: 1fr minmax(240px, 420px); }
.book-row-flip .book-cover-wrap { order: 2; }
.book-row .book-info { text-align: center; }
.book-row .book-info .kicker {
  color: var(--accent-soft); font-size: .8rem; letter-spacing: .35em; display: block; margin-bottom: 8px;
}
.book-row .book-info h2 { font-size: var(--fs-h2); font-weight: 900; color: var(--text-0); }
.book-row .book-info p {
  color: var(--text-1); font-size: 1.08rem; max-width: 44rem; margin: 18px auto 0;
}
.chapters-strip { padding: 10px var(--pad-x) var(--sect-pad); }

@media (max-width: 880px) {
  .book-row, .book-row-flip { grid-template-columns: 1fr; }
  .book-row-flip .book-cover-wrap { order: 0; }
  .book-row .book-cover-wrap { max-width: 280px; margin-inline: auto; }
}

/* ---------- home video ---------- */
.video-section { background: var(--bg-1); padding: var(--sect-pad) 0; border-block: 1px solid var(--line-faint); }
.video-wrap {
  position: relative; max-width: 1400px; margin: 0 auto; padding-inline: var(--pad-x);
}
.video-frame {
  position: relative; border-radius: var(--radius-m); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 0 60px rgba(201, 162, 75, .08), var(--shadow-2);
}
.video-frame video { width: 100%; display: block; }
.video-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
  background: rgba(7, 8, 12, .3); border: 0; cursor: pointer; width: 100%;
  transition: background var(--dur);
}
.video-overlay:hover { background: rgba(7, 8, 12, .15); }
.video-overlay .video-title {
  color: #fff; font-family: var(--font-head); font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2.6rem); text-shadow: 0 3px 20px rgba(0, 0, 0, .85);
}
.video-overlay .video-play {
  width: 66px; height: 66px; border: 1px solid var(--gold-soft); border-radius: 50%;
  color: var(--gold-soft); font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
  padding-inline-start: 5px; background: rgba(7, 8, 12, .45);
  transition: background var(--dur), transform var(--dur);
}
.video-overlay:hover .video-play { background: rgba(201, 162, 75, .25); transform: scale(1.06); }
.video-overlay.hidden { display: none; }

/* ---------- author ---------- */
.author-section { padding: var(--sect-pad) 0 30px; }
.author-panel { max-width: 860px; margin: 0 auto; text-align: center; padding-inline: var(--pad-x); }
.author-panel h2 {
  font-size: var(--fs-h2); color: var(--text-0); font-weight: 900; margin-bottom: 6px;
}
.author-panel .author-p { color: var(--text-1); font-size: 1.1rem; margin-top: 18px; }
.author-panel .author-p a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }

/* icon links (explore-more) */
.icon-links {
  display: flex; justify-content: center; align-items: stretch; gap: clamp(14px, 1.6vw, 26px);
  margin: 44px auto 10px; flex-wrap: wrap; max-width: 1200px; padding-inline: var(--pad-x);
}
.icon-link {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  flex: 1 1 240px; max-width: 360px; padding: 30px 18px;
  background: var(--bg-1); border: 1px solid var(--line-faint); border-radius: var(--radius-m);
  transition: border-color var(--dur), transform var(--dur) var(--ease), background var(--dur);
}
.icon-link:hover, .icon-link:focus-visible {
  border-color: var(--line); transform: translateY(-4px); background: var(--bg-2);
}
.icon-svg {
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  color: var(--gold-soft); transition: color var(--dur), transform var(--dur) var(--ease);
}
.icon-svg svg { width: 100%; height: 100%; }
.icon-link:hover .icon-svg { color: var(--gold); transform: translateY(-3px); }
.icon-link .icon-label {
  color: var(--text-1); font-size: .92rem; font-weight: 600; text-align: center;
}
.icon-link:hover .icon-label { color: var(--gold-soft); }
.moon-mark { width: 46px; margin: 40px auto 0; opacity: .85; }

/* ---------- gallery (masonry) ---------- */
.gallery-grid {
  columns: 4 300px; column-gap: clamp(12px, 1.2vw, 18px);
  margin: 0 auto; padding-inline: var(--pad-x);
}
.gallery-item {
  position: relative; overflow: hidden; cursor: pointer;
  break-inside: avoid; margin-bottom: 14px; border-radius: var(--radius-s);
  border: 1px solid var(--line-faint);
}
.gallery-item img { width: 100%; transition: transform .7s var(--ease); }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 34px 14px 12px;
  background: linear-gradient(0deg, rgba(7, 8, 12, .88), transparent);
  opacity: 0; transition: opacity var(--dur);
}
.gallery-item:hover figcaption, .gallery-item:focus-visible figcaption { opacity: 1; }
.gi-title { color: #fff; font-weight: 700; font-family: var(--font-head); }

/* ---------- article layout with sticky side rail ---------- */
.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 22vw, 360px);
  gap: clamp(24px, 3vw, 64px); align-items: start;
  max-width: 1560px; margin: 0 auto; padding: 10px var(--pad-x) 30px;
}
.article-main { min-width: 0; }
.article-main .prose { max-width: 62rem; padding-inline: 0; }
.article-main .prose p { max-width: var(--prose); }
.article-main .prose .content-img { width: 100%; margin-inline: 0; }

.side-rail {
  position: sticky; top: calc(var(--header-h) + 22px);
  display: flex; flex-direction: column; gap: 16px;
}
.rail-card {
  background: var(--bg-1); border: 1px solid var(--line-faint);
  border-radius: var(--radius-m); padding: 20px 20px 14px;
}
.rail-title {
  font-family: var(--font-body); font-weight: 600; font-size: .78rem;
  letter-spacing: .3em; color: var(--accent-soft); margin-bottom: 12px;
}
.rail-author { color: var(--text-0); font-family: var(--font-head); font-size: 1.05rem; padding-bottom: 6px; }
.rail-links { display: flex; flex-direction: column; }
.rail-links a {
  display: flex; align-items: center; gap: 12px; padding: 8px 0;
  color: var(--text-1); font-size: .92rem; border-bottom: 1px solid var(--line-faint);
  transition: color var(--dur);
}
.rail-links a:last-child { border-bottom: 0; }
.rail-links a:hover, .rail-links a:focus-visible { color: var(--accent-soft); }
.rail-thumb {
  width: 46px; height: 46px; object-fit: cover; border-radius: var(--radius-s);
  flex-shrink: 0; border: 1px solid var(--line-faint);
}
.rail-thumb-empty { background: var(--bg-3); display: inline-block; }
.rail-pills { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 6px; }
.rail-pills .btn {
  background: transparent; color: var(--accent-soft); border: 1px solid var(--line);
  padding: 6px 14px; font-size: .82rem; font-weight: 600;
}
.rail-pills .btn:hover { border-color: var(--accent); color: var(--text-0); transform: none; filter: none; }

.post-hero { min-height: clamp(340px, 52vh, 560px); }
.tail-section { padding: 10px var(--pad-x) 20px; max-width: 1560px; margin: 0 auto; }
.tail-section h2, .tail-section h3 { text-align: center; font-size: var(--fs-h3); margin: 20px 0 6px; }
.tail-section .btn-row { margin-block: 8px 18px; }

@media (max-width: 1020px) {
  .article-layout { grid-template-columns: 1fr; }
  .side-rail { position: static; }
  .article-main .prose { max-width: var(--prose); margin-inline: auto; }
}

/* ---------- blog post / chapters article ---------- */
.post-card {
  background: linear-gradient(180deg, var(--bg-1), color-mix(in srgb, var(--bg-1) 60%, transparent));
  max-width: min(1160px, 94vw); margin: 44px auto;
  padding: clamp(28px, 5vw, 60px) clamp(22px, 4vw, 56px);
  border: 1px solid var(--line-faint); border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
}
.post-card h1, .post-card h2, .post-card h3 { text-align: center; }
.post-card p { max-width: var(--prose); margin-inline: auto; }
.post-card .btn-row { margin-block: 10px 22px; }
.post-card .content-img { width: 100%; margin-inline: 0; }
.post-card > p:first-of-type::first-line { color: var(--text-0); }

/* ---------- shorts story cards ---------- */
.stories-grid-wrap { margin: 0 auto; padding: 10px var(--pad-x) 30px; }
.stories-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: clamp(14px, 1.4vw, 22px);
}
.story-card {
  background: var(--bg-2); color: var(--text-0); display: flex; flex-direction: column;
  border: 1px solid var(--line-faint); border-radius: var(--radius-m); overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur);
}
.story-card:hover, .story-card:focus-visible {
  transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow-2);
}
.story-img { aspect-ratio: 1; overflow: hidden; }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.story-card:hover .story-img img { transform: scale(1.05); }
.story-body { padding: 16px 18px 20px; }
.story-author { color: var(--text-2); font-size: .78rem; display: block; margin-bottom: 6px; }
.story-body h2 { font-size: 1.18rem; color: var(--text-0); margin-bottom: 8px; }
.story-body p { font-size: .88rem; color: var(--text-1); line-height: 1.65; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox); background: rgba(5, 6, 9, .94);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lb-content { max-width: 900px; width: 100%; max-height: 90vh; overflow: auto; text-align: center; }
.lb-content img { max-height: 62vh; margin: 0 auto; object-fit: contain; border-radius: var(--radius-s); }
.lb-text { padding: 18px 10px; text-align: center; }
.lb-text h3 { color: var(--gold-soft); font-size: 1.5rem; margin-bottom: 8px; }
.lb-text p { color: var(--text-1); max-width: 700px; margin: 0 auto; white-space: pre-line; }
.lb-close {
  position: absolute; top: 18px; inset-inline-start: 18px;
  background: none; border: 1px solid var(--line-faint); border-radius: var(--radius-s);
  color: #fff; font-size: 1.3rem; cursor: pointer; z-index: 2; padding: 6px 12px;
}
.lb-close:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ---------- street libraries hero ---------- */
.libraries-hero {
  min-height: clamp(320px, 46vh, 480px);
  background:
    radial-gradient(70vw 60vh at 50% 115%, rgba(201, 162, 75, .16), transparent 65%),
    radial-gradient(40vw 30vh at 12% 0%, rgba(201, 162, 75, .07), transparent 70%),
    linear-gradient(180deg, #07080c, var(--bg-1));
  border-bottom: 1px solid var(--line);
}
.libraries-hero .hero-content { padding: 60px 22px 46px; }
.libraries-hero-icon {
  width: 92px; height: 92px; margin: 0 auto 18px; color: var(--gold-soft);
  filter: drop-shadow(0 0 22px rgba(201, 162, 75, .35));
}
.libraries-hero .hero-title { text-shadow: none; }
.libraries-hero .rule-ornament { margin-top: 26px; }

/* ---------- libraries map ---------- */
.libraries-map {
  height: clamp(480px, 68vh, 760px); overflow: hidden; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-1);
}
.libraries-map .leaflet-popup-content { direction: rtl; text-align: right; font-family: var(--font-body); }
.map-section { margin: 0 auto 40px; padding-inline: var(--pad-x); }

/* ---------- timeline ---------- */
.timeline { position: relative; padding: 40px var(--pad-x) 80px; max-width: 1300px; margin: 0 auto; }
.tl-sub { color: var(--text-1); max-width: 640px; margin: 10px auto 0; }
.tl-line {
  position: absolute; top: 0; bottom: 0; right: 50%;
  width: 1px; background: linear-gradient(180deg, transparent, var(--line) 6%, var(--line) 94%, transparent);
}
.tl-item { position: relative; width: 50%; padding: 18px 40px; }
.tl-left { right: 0; }
.tl-right { right: 50%; }
.tl-marker {
  position: absolute; top: 40px; width: 11px; height: 11px; transform: rotate(45deg);
  background: var(--gold); box-shadow: 0 0 12px rgba(201, 162, 75, .5);
}
.tl-left .tl-marker { left: -6px; }
.tl-right .tl-marker { right: -5px; }
.tl-card {
  background: var(--bg-1); padding: 18px; border: 1px solid var(--line-faint);
  border-radius: var(--radius-m); box-shadow: var(--shadow-1);
}
.tl-card h3 { color: var(--gold-soft); font-size: 1.12rem; margin-bottom: 8px; }
.tl-card p { color: var(--text-1); font-size: .95rem; }
.tl-img img { margin-bottom: 12px; width: 100%; max-height: 220px; object-fit: cover; cursor: zoom-in; border-radius: var(--radius-s); }
@media (max-width: 700px) {
  .tl-line { right: 12px; }
  .tl-item { width: 100%; right: 0; padding: 14px 40px 14px 10px; }
  .tl-left .tl-marker, .tl-right .tl-marker { left: auto; right: 7px; }
}

/* ---------- embeds ---------- */
.embed {
  position: relative; padding-top: 62%; overflow: hidden;
  border-radius: var(--radius-m); border: 1px solid var(--line-faint);
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- coming-soon object cards ---------- */
.soon-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; max-width: 1200px; margin: 10px auto 50px; padding-inline: var(--pad-x);
}
.soon-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-height: 130px; padding: 22px;
  background: var(--bg-1); border: 1px dashed var(--line); border-radius: var(--radius-m);
}
.soon-card .soon-name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--text-0);
}
.soon-card .soon-tag {
  font-size: .74rem; letter-spacing: .3em; color: var(--accent-soft);
}

/* ---------- coming soon ---------- */
.coming-soon {
  max-width: 560px; margin: clamp(50px, 9vw, 110px) auto; text-align: center;
  padding: clamp(36px, 6vw, 60px) 30px; background: var(--bg-1);
  border: 1px solid var(--line); border-radius: var(--radius-m); position: relative;
}
.coming-soon h1 { font-size: var(--fs-h2); margin-bottom: 14px; }
.coming-soon p { color: var(--text-1); }
.coming-soon .rule-ornament { margin-bottom: 22px; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: var(--sect-pad); background: #07080c;
  border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 64px) var(--pad-x) 28px;
  position: relative;
}
.site-footer::before {
  content: ""; position: absolute; top: -1px; right: 50%; transform: translateX(50%);
  width: min(420px, 70%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 30px;
}
.footer-brand { text-align: center; }
.footer-brand img { width: 54px; margin: 0 auto 12px; }
.footer-brand strong {
  display: block; font-family: var(--font-head); color: var(--text-0); font-size: 1.05rem;
}
.footer-brand small { color: var(--text-2); font-size: .74rem; }
.footer-col { text-align: center; }
.footer-col h4 {
  color: var(--gold-soft); font-size: .82rem; letter-spacing: .28em; font-family: var(--font-body);
  font-weight: 600; margin-bottom: 12px;
}
.footer-col p { margin: 6px 0; color: var(--text-1); font-size: .88rem; }
.footer-col a { color: var(--text-1); }
.footer-col a:hover { color: var(--gold-soft); }
.footer-more { color: var(--gold-soft) !important; font-weight: 600; }
.footer-bottom {
  max-width: var(--container); margin: 34px auto 0; padding-top: 18px;
  border-top: 1px solid var(--line-faint); text-align: center;
  color: var(--text-2); font-size: .8rem;
}
.footer-bottom a { color: var(--text-1); }
.footer-bottom a:hover { color: var(--gold-soft); }
.footer-a11y { margin-top: 10px; }

/* ---------- accessibility toolbar ---------- */
.a11y-widget {
  position: fixed;
  inset-inline-start: 16px;
  bottom: 16px;
  z-index: var(--z-a11y);
  font-family: var(--font-body);
}
.a11y-fab {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--gold);
  background: #12151d;
  color: var(--gold-soft);
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: var(--shadow-2);
  transition: background var(--dur), color var(--dur), transform var(--dur);
}
.a11y-fab:hover, .a11y-fab[aria-expanded="true"] {
  background: var(--gold);
  color: #0c0e13;
}
.a11y-fab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.a11y-panel {
  position: absolute;
  inset-inline-start: 0;
  bottom: calc(56px + 12px);
  width: min(320px, calc(100vw - 32px));
  background: #12151d;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-2);
  color: var(--text-0);
  overflow: hidden;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--line-faint);
  background: #191d28;
}
.a11y-panel-head h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin: 0;
  color: var(--gold-soft);
}
.a11y-close {
  background: none; border: 1px solid var(--line-faint); border-radius: var(--radius-s);
  color: var(--text-0); width: 36px; height: 36px; cursor: pointer; font-size: 1.1rem;
}
.a11y-close:hover { border-color: var(--gold); color: var(--gold-soft); }
.a11y-panel-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.a11y-row { display: flex; flex-direction: column; gap: 8px; }
.a11y-toggle-row {
  flex-direction: row; align-items: center; justify-content: space-between; gap: 12px;
}
.a11y-label { font-size: .92rem; color: var(--text-1); }
.a11y-text-btns { display: flex; gap: 8px; }
.a11y-chip {
  flex: 1; min-height: 42px; border-radius: var(--radius-s);
  border: 1px solid var(--line-faint); background: var(--bg-2);
  color: var(--text-0); cursor: pointer; font-weight: 700; font-size: 1rem;
}
.a11y-chip.is-active, .a11y-chip[aria-pressed="true"] {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 22%, var(--bg-2));
  color: var(--gold-soft);
}
.a11y-chip:hover { border-color: var(--gold); }
.a11y-switch {
  width: 52px; height: 30px; border-radius: 999px; border: 1px solid var(--line-faint);
  background: #2a3040; padding: 0; cursor: pointer; flex-shrink: 0;
  position: relative;
}
.a11y-switch-knob {
  position: absolute; top: 3px; inset-inline-start: 3px;
  display: block; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; transition: inset-inline-start .2s var(--ease), inset-inline-end .2s var(--ease);
}
.a11y-switch[aria-checked="true"] {
  background: color-mix(in srgb, var(--gold) 55%, #2a3040);
  border-color: var(--gold);
}
.a11y-switch[aria-checked="true"] .a11y-switch-knob {
  inset-inline-start: auto;
  inset-inline-end: 3px;
}
.a11y-panel-foot {
  padding: 12px 16px 16px; border-top: 1px solid var(--line-faint);
  display: flex; flex-direction: column; gap: 10px;
}
.a11y-reset {
  min-height: 42px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: transparent;
  color: var(--text-0); cursor: pointer; font-weight: 600;
}
.a11y-reset:hover { border-color: var(--gold); color: var(--gold-soft); }
.a11y-statement-link {
  text-align: center; color: var(--gold-soft) !important;
  text-decoration: underline !important; text-underline-offset: 3px;
  font-size: .92rem; padding: 4px;
}
html.a11y-contrast .a11y-fab,
html.a11y-contrast .a11y-panel {
  background: #000;
  border-color: #ffe066;
  color: #fff;
}

/* ---------- reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .brand-text small { display: none; }
  .nav-item > a { padding: 20px 10px; font-size: .88rem; }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; margin-inline-start: auto; }
  .header-cta { margin-inline-start: 0; padding: 7px 16px; font-size: .8rem; }
  .site-nav {
    display: none; position: fixed; top: var(--header-h); inset-inline: 0; bottom: 0;
    background: rgba(9, 10, 15, .98); backdrop-filter: blur(8px);
    margin: 0; overflow: auto; z-index: var(--z-menu);
    padding: 18px 0 40px;
  }
  .site-nav.open { display: block; animation: menuIn .25s var(--ease); }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nav-list { flex-direction: column; align-items: stretch; padding: 0 26px; }
  .nav-item { border-bottom: 1px solid var(--line-faint); }
  .nav-item > a { padding: 16px 4px; font-size: 1.05rem; color: var(--text-0); }
  .nav-item > a.active::after { display: none; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: transparent; border: 0; display: none;
    padding: 0 18px 12px;
  }
  .nav-item.expanded .submenu { display: block; }
  .submenu a { padding: 9px 4px; font-size: .95rem; }
  .submenu-toggle {
    display: inline-block; background: none; border: none; color: var(--gold-soft);
    font-size: 1.05rem; cursor: pointer; padding: 14px 16px; position: absolute;
    top: 0; inset-inline-end: 0;
  }
  .nav-item.expanded .submenu-toggle { transform: rotate(180deg); }

  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .book-feature { grid-template-columns: 1fr; text-align: center; }
  .book-cover-wrap { max-width: 250px; }
  .hero-content-side { margin: 0 auto; padding: 60px 22px; }
  .hub-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .brand-text { display: none; }
  .header-inner { gap: 8px; padding-inline: 14px; }
  .header-cta { padding: 7px 12px; font-size: .78rem; white-space: nowrap; }
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 16 / 11; }
  .hub-cards { grid-template-columns: 1fr; }
  .hero { min-height: 380px; }
  .hero-home { min-height: 78vh; }
  .icon-links { flex-direction: column; align-items: center; }
  .icon-link { width: 100%; max-width: 320px; }
  .intro-panel { margin-inline: 16px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
}
