/* Original, editable Quarto-book styling; no external font dependencies. */
:root {
  --book-ink: #16273a;
  --book-muted: #56657a;
  --book-accent: #b86726;
  --book-accent-dark: #8e4819;
  --book-surface: #fff5e8;
  --book-deep: #453023;
  --book-spark: #ffd27b;
}
body { color: var(--book-ink); background-color: #fdfcfb; }
h1, h2, h3, .book-title { letter-spacing: -.027em; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; }
p, li { line-height: 1.78; }
#quarto-content a:not(.btn-book):not(.nav-link) { text-decoration-color: color-mix(in srgb, var(--book-accent) 50%, transparent); text-underline-offset: 3px; }
#quarto-content a:hover { color: var(--book-accent-dark); }
.sidebar-title { font-family: Georgia, 'Times New Roman', serif; font-size: 1.13rem; line-height: 1.35; }
.sidebar nav[role=doc-toc] a.active, .sidebar nav[role=doc-toc] a:hover { color: var(--book-accent-dark); }
.book-hero {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 22px; padding: clamp(1.7rem, 5.1vw, 3.7rem);
  background: linear-gradient(125deg, var(--book-deep), var(--book-accent-dark));
  color: #fff; margin: 0 0 2rem; box-shadow: 0 19px 45px rgba(18,35,61,.16);
}
.book-hero::before { content: ''; position: absolute; z-index: -1;
  width: 280px; height: 280px; right: -90px; top: -110px; border-radius: 50%;
  border: 45px solid rgba(255,255,255,.10); transform: rotate(-20deg); }
.book-hero::after { content: ''; position: absolute; z-index: -1;
  width: 230px; height: 230px; right: 6%; bottom: -165px; border-radius: 50%;
  background: var(--book-spark); opacity: .15; }
.book-hero .eyebrow { font-size: .77rem; font-weight: 750; text-transform: uppercase;
  letter-spacing: .16em; color: #d7eeff; margin: 0 0 1.15rem; }
.book-hero .hero-title { font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1.09; margin: 0 0 .65rem;
  font-weight: 700; letter-spacing: -.04em; color: #fff; }
.book-hero .hero-subtitle { font-size: clamp(1.05rem,2vw,1.4rem);
  color: #f5f7fb; margin: 0 0 1.25rem; }
.book-hero .hero-text { font-size: 1rem; line-height: 1.7; max-width: 46rem;
  color: #f1f5f9; margin-bottom: 1.55rem; }
.book-hero .hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.book-hero .hero-actions > p { margin: 0; line-height: 1.45; }
.btn-book { display: inline-flex; align-items:center; gap: .4rem; font-weight: 700;
  padding: .75rem 1.18rem; background: white; color: var(--book-deep) !important;
  text-decoration: none !important; border-radius: .72rem; box-shadow: 0 4px 10px rgba(0,0,0,.09);
  transition: transform .18s ease, box-shadow .18s ease; }
.btn-book:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(0,0,0,.15); }
.hero-footnote { font-size: .8rem; color: #e5edf4; }
.living-banner { background: var(--book-surface); border-left: 4px solid var(--book-accent);
  border-radius: .4rem .8rem .8rem .4rem; padding: 1.04rem 1.2rem; margin: 1.4rem 0 1.8rem;
  line-height: 1.7; }
.living-banner strong { color: var(--book-accent-dark); }
.chapter-map { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 1rem; margin: 1.4rem 0 2rem; }
.chapter-map .map-item { border: 1px solid #dbe4ec; border-top: 4px solid var(--book-accent);
  border-radius: 14px; background: #fff; padding: 1.05rem 1.18rem; box-shadow: 0 3px 16px rgba(35,54,77,.04); }
.chapter-map .map-item small { color: var(--book-muted); display:block; letter-spacing: .07em; font-weight: 750; text-transform: uppercase; }
.chapter-map .map-item strong { display: block; margin: .4rem 0 .3rem; font-family: Georgia, serif; font-size: 1.14rem; }
.chapter-map .map-item p { font-size: .90rem; color: var(--book-muted); margin:0; line-height:1.5; }
.callout-note { --bs-callout-bg: var(--book-surface); }
blockquote { border-left: 3px solid var(--book-accent); padding-left: 1.2rem; color: var(--book-muted); }
pre.sourceCode { border-radius: 12px; }
.quarto-title-block .quarto-title-banner { background: var(--book-surface); }
@media (max-width: 760px) {
  .book-hero { border-radius: 15px; padding: 1.5rem; }
  .chapter-map { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .btn-book { transition: none; } }
@media print { .book-hero { box-shadow: none; print-color-adjust: exact; } .btn-book { display:none; } }
