:root {
  color-scheme: light;
  --paper: #fffdf7;
  --paper-deep: #f5f0e3;
  --ink: #29261f;
  --muted: #6b6253;
  --accent: #6d3e25;
  --accent-dark: #462617;
  --line: #d8ccb8;
  --shadow: 0 18px 55px rgba(70, 38, 23, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(176, 134, 77, 0.12), transparent 32rem), var(--paper-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.12rem);
  line-height: 1.72;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-dark); }
a:focus-visible { outline: 3px solid #b97b3f; outline-offset: 3px; }
.skip-link {
  position: fixed; top: .5rem; left: .5rem; z-index: 10; padding: .65rem .9rem;
  background: var(--accent-dark); color: #fff; transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.page-shell {
  width: min(100% - 2rem, 940px); margin: clamp(1rem, 3vw, 3rem) auto;
  padding: clamp(1.25rem, 4vw, 4rem); background: var(--paper);
  border: 1px solid rgba(109, 62, 37, .16); box-shadow: var(--shadow);
}
.site-header {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr);
  align-items: end; gap: clamp(1rem, 4vw, 3rem); margin-bottom: 1.5rem;
}
.site-header h1 {
  margin: 0 0 .35rem; color: var(--accent-dark); font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 500; line-height: 1.05;
}
.site-header p { margin: 0; color: var(--muted); font-size: 1rem; }
.book-promo {
  display: block; padding: 1.15rem 1.25rem 1.1rem; color: var(--ink);
  background: linear-gradient(135deg, rgba(109,62,37,.07), rgba(176,134,77,.04));
  border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: .2rem;
  box-shadow: 0 8px 24px rgba(70,38,23,.07); line-height: 1.3; text-align: left;
  text-decoration: none; transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.book-promo:hover {
  color: var(--ink); border-color: rgba(109,62,37,.55);
  box-shadow: 0 11px 28px rgba(70,38,23,.12); transform: translateY(-2px);
}
.book-promo span, .book-promo strong, .book-promo small { display: block; }
.promo-kicker {
  margin-bottom: .55rem; color: var(--accent); font: 700 .68rem/1 system-ui, sans-serif;
  letter-spacing: .14em; text-transform: uppercase;
}
.book-promo strong { color: var(--accent-dark); font-size: clamp(1.2rem, 2.1vw, 1.55rem); font-weight: 600; }
.promo-edition { margin-top: .12rem; color: var(--muted); font-size: .86rem; }
.book-promo small { margin-top: .55rem; color: var(--muted); font-size: .72rem; font-style: italic; }
.promo-action { margin-top: .85rem; color: var(--accent); font: 700 .76rem/1.2 system-ui, sans-serif; }
.hero-image { margin: 1.5rem 0 2rem; }
.hero-image img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.chapter-nav {
  position: sticky; top: 0; z-index: 5; margin: 0 -.5rem 2.5rem; padding: .7rem .5rem;
  background: rgba(255,253,247,.96); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(8px);
}
.chapter-nav table { display: block; width: 100%; }
.chapter-nav tbody {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem;
  width: 100%;
}
.chapter-nav tr { display: contents; }
.chapter-nav tr:first-child th {
  flex: 0 0 100%;
  width: 100% !important;
  margin-bottom: .1rem;
  color: var(--muted);
  text-align: center;
}
.chapter-nav th { display: block; width: auto !important; padding: 0; border: 0; }
.chapter-nav a {
  display: grid; place-items: center; min-width: 2.25rem; min-height: 2.25rem; padding: .2rem .45rem;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font: 700 .86rem/1 system-ui, sans-serif; text-decoration: none;
}
main { max-width: 46rem; margin-inline: auto; }
.reading-section { margin: 0; padding: 0; border: 0; }
main p { margin: 0 0 1.35rem; text-align: left !important; }
main blockquote { margin: .75rem 0 1.5rem; padding: .2rem 0 .2rem clamp(1rem,4vw,2rem); border-left: 3px solid var(--line); }
.schodde-page main h2.section-heading,
.schodde-page main span.capitulo.section-heading {
  display: block !important;
  margin: 2.15rem 0 .85rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--accent-dark) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.2rem, 1.1rem + .4vw, 1.5rem) !important;
  font-weight: 700 !important;
  font-style: italic !important;
  line-height: 1.25 !important;
  letter-spacing: normal !important;
  text-align: left !important;
}
.schodde-page main h2.section-heading i,
.schodde-page main span.capitulo.section-heading i {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  font-style: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
}
.schodde-page main h2.section-heading:first-child { margin-top: 0 !important; }
.capitulo { color: var(--accent-dark); font-size: clamp(1.2rem,1.1rem + .4vw,1.5rem); font-weight: 700; line-height: 1.25; }
.super, .super1, .super2 {
  position: relative; top: -.35em; margin: 0 .22em 0 .08em; color: var(--accent);
  font: 700 .68em/1 system-ui, sans-serif; vertical-align: baseline;
}
[name] { scroll-margin-top: 7rem; }
.site-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 1.5rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-weight: 700;
}
#copyright { margin-top: 3rem; color: var(--muted); font-size: .86rem; text-align: center; }
@media (max-width: 680px) {
  .page-shell { width: 100%; margin: 0; padding: 1rem; border: 0; box-shadow: none; }
  .site-header { display: block; }
  .book-promo { margin-top: 1.25rem; }
  .chapter-nav { margin-inline: -1rem; padding-inline: 1rem; }
  main blockquote { margin-left: 0; margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: #fff; font-size: 11pt; }
  .page-shell { width: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; }
  .chapter-nav, .book-promo { display: none; }
  a { color: inherit; }
}
