:root {
  color-scheme: light;
  --paper: #fffdf7;
  --paper-deep: #f5f0e3;
  --ink: #29261f;
  --muted: #6b6253;
  --accent: #6d3e25;
  --accent-dark: #462617;
  --gold: #b0864d;
  --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,.12), transparent 32rem), var(--paper-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, .96rem + .18vw, 1.12rem);
  line-height: 1.65;
}
a { color: var(--accent); text-underline-offset: .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: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.page-shell { width: min(100% - 2rem, 1180px); 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.25fr) minmax(250px,.75fr); align-items: end; gap: clamp(1.5rem,5vw,4rem); margin-bottom: 1.75rem; }
.eyebrow, .section-label, .panel-heading p { margin: 0 0 .55rem; color: var(--accent); font: 700 .7rem/1.2 system-ui,sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.site-header h1 { margin: 0; color: var(--accent-dark); font-size: clamp(3rem,7vw,6.2rem); font-weight: 500; letter-spacing: -.055em; line-height: .84; }
.site-header h1 span { display: block; margin-left: .95em; color: var(--gold); font-style: italic; }
.subtitle { max-width: 34rem; margin: 1.15rem 0 0; color: var(--muted); font-size: clamp(1rem,1.6vw,1.18rem); }
.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-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 { position: relative; margin: 1.5rem 0 2rem; overflow: hidden; background: var(--accent-dark); }
.hero-image img { display: block; width: 100%; height: clamp(220px,34vw,390px); object-fit: cover; filter: sepia(.18) saturate(.78) contrast(.95); opacity: .88; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 35%,rgba(34,23,16,.72)); pointer-events: none; }
.hero-image figcaption { position: absolute; z-index: 1; left: clamp(1rem,4vw,3rem); right: clamp(1rem,4vw,3rem); bottom: clamp(1rem,3vw,2rem); color: white; font-size: clamp(1rem,2vw,1.3rem); font-style: italic; text-shadow: 0 2px 10px #000; }
.hero-image figcaption span { white-space: nowrap; color: #eedcb7; }
.opening-quote { margin: 2rem auto 3.5rem; padding: 1.4rem clamp(1rem,4vw,2.2rem); border-left: 4px solid var(--gold); background: #fbf6ea; max-width: 52rem; text-align: center; }
.opening-quote p { margin: 0 0 .4rem; color: var(--accent-dark); font-size: clamp(1.1rem,2vw,1.35rem); font-style: italic; }
.opening-quote cite { color: var(--muted); font-size: .86rem; }
.introduction { max-width: 52rem; margin: 0 auto 4rem; text-align: center; }
.introduction h2 { margin: 0 0 1rem; color: var(--accent-dark); font-size: clamp(2rem,4vw,3.1rem); font-weight: 500; letter-spacing: -.035em; }
.introduction p:last-child { margin: 0; color: #514a3f; }

main { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1.2rem,3vw,2.2rem); align-items: start; }
.collection-panel, .resources { border: 1px solid var(--line); background: #fffefa; box-shadow: 0 8px 30px rgba(70,38,23,.06); }
.panel-heading { display: grid; grid-template-columns: 3.1rem 1fr; gap: 1rem; padding: 1.6rem; border-bottom: 1px solid var(--line); background: linear-gradient(135deg,rgba(109,62,37,.055),rgba(176,134,77,.035)); }
.panel-heading > span { color: var(--gold); font: italic 1.75rem/1 Georgia,serif; border-right: 1px solid var(--line); }
.panel-heading h2 { margin: 0; color: var(--accent-dark); font-size: clamp(1.45rem,2.4vw,2rem); font-weight: 500; line-height: 1.12; }
.book-groups { padding: .5rem clamp(1rem,3vw,1.7rem) 1.5rem; }
.book-groups section { padding: 1.35rem 0 1rem; border-bottom: 1px solid #e8dfd0; }
.book-groups section:last-child { border-bottom: 0; }
.book-groups h3 { margin: 0 0 .75rem; color: var(--accent-dark); font-size: 1.05rem; }
.book-groups ol, .resources ol { margin: 0; padding-left: 1.65rem; }
.book-groups li { margin: .38rem 0; padding-left: .2rem; }
.book-groups li::marker, .resources li::marker { color: var(--gold); font-weight: 700; }
.book-groups small { display: inline-block; margin-left: .35rem; color: var(--muted); font: 600 .67rem/1 system-ui,sans-serif; letter-spacing: .06em; text-transform: uppercase; }

.resources { margin-top: clamp(1.2rem,3vw,2.2rem); }
.resources ol { columns: 2; column-gap: 3rem; padding: 1.5rem 2.5rem 2rem 3.4rem; }
.resources li { break-inside: avoid; margin: 0 0 .72rem; padding-left: .25rem; }
.resources .featured-resource { column-span: all; margin: -.25rem 0 1.4rem; padding: 1rem 1.1rem; background: #f8f0df; border-left: 4px solid var(--gold); list-style-position: inside; }
.featured-resource a { font-size: 1.12rem; font-weight: 700; }
.featured-resource span { display: block; margin: .25rem 0 0 1.5rem; color: var(--muted); font-size: .88rem; }
.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; }
.revision { margin: 2.5rem 0 .4rem; color: var(--accent); font-size: .82rem; font-style: italic; text-align: center; }
#copyright { margin: 0; color: var(--muted); font-size: .82rem; text-align: center; }

@media (max-width: 840px) { main { grid-template-columns: 1fr; } .resources ol { columns: 1; } }
@media (max-width: 680px) {
  .page-shell { width: 100%; margin: 0; padding: 1rem; border: 0; box-shadow: none; }
  .site-header { display: block; }
  .site-header h1 { font-size: clamp(3.1rem,17vw,5rem); }
  .book-promo { margin-top: 1.5rem; }
  .hero-image { margin-inline: -1rem; }
  .hero-image figcaption { font-size: .96rem; }
  .panel-heading { padding: 1.25rem 1rem; }
  .resources ol { padding: 1.2rem 1.2rem 1.5rem 2.7rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .book-promo { transition: none; } }
@media print { body { background: white; font-size: 11pt; } .page-shell { width: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; } .book-promo { display: none; } main { display: block; } .collection-panel { break-inside: avoid; margin-bottom: 1rem; } a { color: inherit; } }
