:root{--reading-line-height:1.7;--font-menu-scale:1.3;--font-buttons-scale:1.3;--font-home-scale:1.5;--font-text-scale:1}:root{--theme-base:#f1e4ce;--theme-light:#fff4df;--theme-footer:#e9d9bf;--theme-card:#f6e8ce;--theme-accent:#405139;--theme-header-ink:#fff3da;--theme-wood-a:#3c281d;--theme-wood-b:#5a3a29;--theme-wood-c:#483123;--theme-edge:#b18758;--theme-radius:5px;--theme-frame:10px}:root {
  --paper: var(--theme-base, #f1e4ce);
  --cream: var(--theme-card, #f6e8ce);
  --forest: var(--theme-accent, #405139);
  --ink: #3c2b20;
  --footer-ink: #39281f;
  --muted: #625043;
  --gold: #835a35;
  --line: var(--theme-edge, #b18758);
  --header-text: var(--theme-header-ink, #fff3da);
  --wood: linear-gradient(97deg, #20150f20, transparent 28%, #fff4da13 63%, #20150f20),
    repeating-linear-gradient(178deg, var(--theme-wood-a, #3c281d) 0 2px,
      var(--theme-wood-c, #483123) 3px 7px, var(--theme-wood-b, #5a3a29) 8px 10px,
      var(--theme-wood-c, #483123) 12px 17px);
}

body {
  background: radial-gradient(ellipse at 72% 8%, var(--theme-light, #fff4df) 0, transparent 54rem), var(--paper);
}

.header {
  background: var(--wood);
  color: var(--header-text);
  box-shadow: 0 7px 24px #32201224;
}
.header .brand svg { color: var(--header-text); }
.header .nav-order { border-color: currentColor; }
.header .section-menu-list {
  background: var(--theme-wood-a, #3c281d); color: var(--header-text); border-color: var(--line);
}
.menu-toggle span { background: var(--header-text); }

.fable-cover {
  padding: var(--theme-frame, 10px);
  background: var(--wood);
  border: 1px solid var(--line);
  border-radius: var(--theme-radius, 5px);
  box-shadow: 0 14px 32px #53382330, inset 0 0 0 2px #fff6e030;
}
.fable-cover-image { border-radius: 2px; }
.promise-strip { background: var(--theme-footer, #e9d9bf); border-color: var(--line); }
.promise-strip > .wrap { color: #493728; }
.story-card {
  background: linear-gradient(165deg, var(--theme-light, #fff4df), var(--theme-card, #f6e8ce));
  border-color: var(--line);
  border-radius: var(--theme-radius, 5px);
  box-shadow: 0 4px 12px #52371c12;
}
.story-card-media { background: var(--theme-footer, #e9d9bf); }
.story-card-arrow { color: #745333; }
.world-card--plain, .world-craft { border: 1px solid #916a413d; border-radius: var(--theme-radius, 5px); }
.fable-page .page-intro h1 { color: #493024; }

@media (max-width: 850px) {
  .header nav { background: var(--theme-wood-a, #3c281d); }
}
