/* Warm manuscript surfaces, gilt edges, and durable reading typography. */
html[data-quest-scroll] {
  background: #10090d;
}
html[data-quest-scroll] body {
  --scroll-edge: #b88a46;
  --scroll-gold: #e9c278;
  --scroll-ink: #fff0d9;
  --scroll-muted: #dbc4aa;
  --scroll-line: #9a704b80;
  --scroll-panel: #25151b;
  --scroll-serif: "Cormorant Garamond", Georgia, serif;
  --scroll-gutter: clamp(7px, 2vw, 23px);
  color: var(--scroll-ink);
  background:
    linear-gradient(90deg, #130b10, #28161a 18%, #311d20 50%, #28161a 82%, #130b10) center / 100% 100%,
    #170e12;
}
html[data-quest-scroll] body::before,
html[data-quest-scroll] body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #573929, #efc47b 28%, #9c6635 65%, #e9bd75);
  box-shadow: 0 0 0 1px #5c392b85, 0 0 19px #cb874329;
  pointer-events: none;
  z-index: 1;
}
html[data-quest-scroll] body::before { left: var(--scroll-gutter); }
html[data-quest-scroll] body::after { right: var(--scroll-gutter); }

html[data-quest-scroll] :is(main, .page-hero, .article-hero, .article-body-wrap, .articles, .related) {
  max-width: min(77rem, calc(100% - 2 * (var(--scroll-gutter) + 4px)));
  margin-inline: auto;
  border-inline: 1px solid var(--scroll-line);
  background:
    radial-gradient(ellipse at 50% 0%, #6f47342e, transparent 42%),
    repeating-linear-gradient(99deg, #f3c68b07 0 1px, transparent 1px 5px),
    linear-gradient(90deg, #28181d, #382328 16%, #352126 84%, #28181d);
}
html[data-quest-scroll] main {
  box-shadow: inset 9px 0 24px #10090e67, inset -9px 0 24px #10090e67;
  border-block: 1px solid var(--scroll-edge);
  padding-block-end: clamp(2rem, 5vw, 4rem);
}
html[data-quest-scroll] :is(main, .page-hero, .article-hero)::before {
  content:"";
  display:block;
  width:min(90%, 34rem);
  height:5px;
  margin:1.2rem auto .55rem;
  border-block:1px solid #cc9e58;
  background:linear-gradient(90deg,transparent,#bc8b49 25%,#eec986 50%,#bc8b49 75%,transparent);
  opacity:.7;
}
html[data-quest-scroll] :is(main, .article-body-wrap) :is(h1,h2,h3),
html[data-quest-scroll] :is(.page-hero,.article-hero) h1,
html[data-quest-scroll] .article-card h3 {
  color:var(--scroll-ink);
  font-family:var(--scroll-serif);
  letter-spacing:.012em;
}
html[data-quest-scroll] :is(main, .article-body-wrap) h2::after {
  content:"";
  display:block;
  width:min(8rem,45%);
  height:1px;
  margin:.34em 0 .3em;
  background:linear-gradient(90deg,var(--scroll-gold),transparent);
}
html[data-quest-scroll] .prose {
  color:var(--scroll-ink);
  max-width:69ch;
}
html[data-quest-scroll] .prose :is(p, li) {
  color:var(--scroll-ink);
  font-family:var(--scroll-serif);
  font-size:clamp(1.25rem, 1.20rem + .24vw, 1.48rem);
  line-height:1.55;
}
html[data-quest-scroll] :is(.prose, .course, .lesson, .natal-life-areas, .q2-section) li::marker {
  color:var(--scroll-gold);
}
html[data-quest-scroll] :is(.prose, .course, .lesson) ul:not([role]) > li::marker {
  content:"◆  ";
  font-size:.65em;
}
html[data-quest-scroll] .prose > p:first-child::first-letter {
  color:var(--scroll-gold);
  font-size:1.65em;
  line-height:.8;
}
html[data-quest-scroll] :is(.prose blockquote,.course,.lesson,.article-card,.related-card,.sign-in-card,main .card) {
  border-color:var(--scroll-line);
  background-color:var(--scroll-panel);
}
html[data-quest-scroll] :is(.prose blockquote, .course, .lesson) { border-inline-start:2px solid var(--scroll-edge); }
html[data-quest-scroll] :is(.article-card,.related-card) { box-shadow:inset 0 1px #eac38236; }
html[data-quest-scroll] :is(.article-card,.related-card):hover { background-color:#352029; }
html[data-quest-scroll] :is(.article-card,.related-card) :is(.tag,.meta), html[data-quest-scroll] .prose a {
  color:var(--scroll-gold);
}
html[data-quest-scroll] :is(.article-card p, .article-meta, .prose small, .toc a) {
  color:var(--scroll-muted);
}
html[data-quest-scroll] :is(.toc,.learning-path,.learning-sections) { border-color:var(--scroll-line); }
html[data-quest-scroll] .prose > h2 { scroll-margin-top: 8rem; }
html[data-quest-scroll] :is(summary, a, button, input, select):focus-visible {
  outline:2px solid #ffe0a6;
  outline-offset:3px;
}
html[data-quest-scroll] .prose mark { background:#e5bf79; color:#231519; }
html[data-quest-scroll] .article-body-wrap .container,
html[data-quest-scroll] .articles .container,
html[data-quest-scroll] .related .container {
  max-width:100%;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion:no-preference) {
    html[data-quest-scroll] :is(main, .article-body-wrap) h2::after {
      transform-origin:left;
      animation: gilt-reveal linear both;
      animation-timeline:view();
      animation-range:entry 0% entry 85%;
    }
    @keyframes gilt-reveal {
      from { transform:scaleX(.12); opacity:.34; }
      to { transform:scaleX(1); opacity:1; }
    }
  }
}
@media (max-width: 600px) {
  html[data-quest-scroll] :is(main, .page-hero, .article-hero, .article-body-wrap, .articles, .related) {
    max-width:calc(100% - 14px);
  }
  html[data-quest-scroll] body::before { left:3px; }
  html[data-quest-scroll] body::after { right:3px; }
  html[data-quest-scroll] .prose :is(ul,ol) { padding-inline-start:1.1rem; }
  html[data-quest-scroll] main { box-shadow:none; }
}
html[data-quest-scroll] :is(main:not(.sign-in), .page-hero, .article-hero)::before {
  height:7px;
  border-radius:999px;
  box-shadow:0 2px 6px #120a10b0, inset 0 1px #fbe0a870;
}
html[data-quest-scroll] main.sign-in::before { content:none; }
html[data-quest-scroll] :is(main, .article-body-wrap) :is(ul,ol) > li::marker {
  color:var(--scroll-gold);
}
html[data-quest-scroll] :is(main, .article-body-wrap) :is(.prose, .lesson, .course) {
  text-wrap:pretty;
}
