:root {
  --book-author-accent: #75476c;
  --header-height: 65px;
  scroll-padding-top: var(--header-height);
  --ink: #261d29;
  --muted: #645866;
  --plum: #4d2a50;
  --accent: #75476c;
  --gold: #c9a66a;
  --ivory: #f3ebd8;
  --paper: #faf7f2;
  --line: #d9cfd5;
  font: 100%/1.5 "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
@media (prefers-reduced-motion: no-preference) {
  html {scroll-behavior: smooth}
}
* {box-sizing: border-box}
body {margin: 0}
h1,h2,h3,p {margin: 0}
h1,h2,h3,.brand,.subtitle {font-family: "DM Serif Display", Georgia, serif; font-weight: 400}
h2 {font-size: 1.875rem; line-height: 1.2; letter-spacing: -.025em}
@media (min-width:640px) { h2 {font-size: 2.5rem; line-height: 1.15} }
h3 {font-size: 1.25rem; line-height: 1.4}
a {color: inherit; text-underline-offset: .22em}
button {font: inherit; cursor: pointer; color: inherit}
button:disabled {opacity: .4; cursor: default}
:focus-visible {outline: 3px solid #af76a8; outline-offset: 4px}
[hidden] {display: none !important}
.wrap {width: min(1140px, calc(100% - 3rem)); margin-inline: auto}
.skip {position: absolute; z-index: 3; left: .7rem; top: .7rem; background: white; padding: .6rem; transform: translateY(-180%)}
.skip:focus {transform: none}
header {background: #201821; color: #f9f4f7}
body > header {position: sticky; top: 0; z-index: 2; border-bottom: 1px solid #ffffff18}
header :focus-visible,.hero :focus-visible,.audience :focus-visible,.offer :focus-visible {outline-color: var(--gold)}
.mast {display: flex; align-items: center; gap: 1.4rem}
.mast {height: calc(var(--header-height) - 1px); max-width: 1216px; margin-inline: auto; padding-inline: 20px; justify-content: space-between; gap: 16px}
.mast .sant-brand > span {color: var(--gold); border-color: #9c814f; background: transparent}
.mast > nav {gap: 28px; margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: #d6d3c8}
@media (min-width:640px) { .mast {padding-inline: 32px} }
@media (min-width:1024px) { .mast {padding-inline: 48px} }
.mast nav a {display: flex; align-items: center; min-height: 44px}
.mast .mobile-menu {display: none}
.brand {display: inline-flex; align-items: center; gap: .65rem; font-size: 1.45rem; text-decoration: none; white-space: nowrap}
.brand span {display: grid; place-items: center; width: 2.05rem; height: 2.05rem; color: var(--gold); border: 1px solid #9c814f; border-radius: .45rem; line-height: 1}
nav {display: flex; gap: 1.5rem; margin-left: auto}
.mast nav a {text-decoration: none}
.mast nav a:hover {text-decoration: underline}
.hero {background: radial-gradient(ellipse at 78% 49%, #482e48 0%, #302136 46%, #291d30 80%); color: var(--ivory)}
.hero-grid {display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 3.5rem; min-height: 550px; padding-block: clamp(3.5rem, 6vw, 6rem)}
.kicker {font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem}
.hero .kicker {color: var(--gold); margin-bottom: 1.4rem}
h1 {font-size: 3.25rem; line-height: 1.25; letter-spacing: -.03em}
@media (min-width:1024px) { h1 {font-size: 4.5rem; line-height: 1.05} }
.subtitle {color: var(--gold); font-style: italic; font-size: clamp(1.5rem, 2.5vw, 2.3rem); line-height: 1.15; margin-top: .65rem}
.intro {max-width: 55ch; color: #e9dfe7; margin: 1.6rem 0 2rem; font-size: 1.25rem; line-height: 1.4}
.hero-actions,.section-heading,.tools,.controls,.topics,.reader-head,.reader-head>div,.reader-bottom {display: flex; align-items: center; gap: 1rem}
.hero-actions {flex-wrap: wrap; gap: .85rem}
.hero-actions a {display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 48px}
.sample-link {border: 1px solid #ac92a6; border-radius: .38rem; color: var(--ivory); padding: .75rem 1rem; font-weight: 600; text-decoration: none}
.sample-link:hover, .sample-link:focus-visible {background: #ffffff0d; border-color: var(--gold)}
.hero-prices {display: flex; flex-wrap: wrap; gap: 1.6rem; margin: 0 0 1.4rem}
.hero-prices div+div {border-left: 1px solid #795f71; padding-left: 1.6rem}
.hero-prices dt {font-size: .92rem; color: #e9dfe7}
.hero-prices dd {margin: .1rem 0 0; font: 1.6rem/1.1 "DM Serif Display", Georgia, serif}
.shipping-note {display: block; font: 600 .85rem/1.4 "Source Sans 3", "Segoe UI", sans-serif}
.hero-prices .shipping-note {color: var(--gold); margin-top: .25rem}
.button,.text-link {display: inline-flex; align-items: center; gap: .65rem; font-weight: 700}
.button {justify-content: center; border-radius: .38rem; background: var(--gold); color: #291d30; padding: .8rem 1.15rem; text-decoration: none}
.button:hover {background: #e2c58f}
.text-link {text-decoration: none}
.text-link > span:first-child {text-decoration: underline; text-decoration-thickness: 1px}
.art {display: grid; place-items: center}
.art img {width: min(100%, 285px); height: auto; display: block; box-shadow: 10px 18px 40px #160f1b80; border: 1px solid #78644b}
.book-stats {display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; margin-block: 0; padding: 0 0 clamp(2rem,4vw,3.5rem)}
.book-stats div {display: flex; flex-direction: column; padding: .2rem 1.4rem .15rem; border-left: 1px solid #816b74}
.book-stats dd {margin: 0}
.book-stats dd:first-of-type {order: -1; color: var(--gold); font: 1.875rem/2.25rem "DM Serif Display",Georgia,serif; font-variant-numeric: lining-nums}
.book-stats dt {font-weight: 600; margin-top: .2rem}
.stat-detail {color: #dfd3dc; font-size: .93rem}
.benefits {padding-block: clamp(3rem,6vw,5rem); border-bottom: 1px solid var(--line)}
.learning-grid article {display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: .8rem; background: #fffdfa}
.learning-figure {display: grid; place-items: center; height: 9rem; padding: .85rem; background: #f3edf2; border-bottom: 1px solid #e2d6df}
.learning-figure img {display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; mix-blend-mode: multiply}
.learning-copy {padding: 2rem}
.learning-topic {margin-bottom: .43rem; color: #775925; font-weight: 700; font-size: .75rem; letter-spacing: .11em; text-transform: uppercase}
.learning-grid h3 {color: var(--plum); text-wrap: balance}
.learning-grid h3+p {line-height: 1.625; margin-top: .75rem; color: var(--muted)}
.preview-offer {margin-top: 1.2rem; color: var(--plum)}
.example {display: grid; align-items: start; gap: clamp(1.5rem,5vw,5rem)}
.example {grid-template-columns: 1fr 1.15fr; padding-block: clamp(3.5rem,7vw,6rem)}
.example-text {align-self: center}
.construction {margin: 1.35rem 0 0; max-width: 410px; padding: 1rem; border: 1px solid var(--line); border-radius: .7rem; background: #fffdfa}
.construction img {display: block; margin-inline: auto; max-width: 100%; max-height: 280px; width: auto; height: auto; mix-blend-mode: multiply}
.construction figcaption {font-size: .87rem; color: var(--muted); margin-top: .5rem}
.example-text p+p {margin-top: .7rem}
.example-text .text-link {margin-top: 1rem; color: var(--accent)}
.preview-section {background: #f0e8ed; border-block: 1px solid var(--line); padding-block: clamp(3.4rem,6vw,5.4rem)}
.section-heading {justify-content: space-between; align-items: end}
.section-heading p,.section-lead,.offer-heading h2+p {font-size: 1.125rem; line-height: 1.75rem}
.section-heading p,.section-lead {max-width: 66ch; color: var(--muted); margin-top: 1rem}
.download {background: var(--plum); color: white; flex-shrink: 0}
.download:hover {background: #643b60}
.tools {justify-content: space-between; margin-block: 1.6rem .8rem; flex-wrap: wrap}
[data-page-gallery] {position: relative}
.topics,.controls {gap: .4rem}
.topics {flex-wrap: wrap}
.topics button,.controls button,.reader button {background: transparent; border: 1px solid #bca8b8; border-radius: .35rem; padding: .35rem .65rem; font-weight: 600}
.topics button,.controls button,.reader button {min-height: 44px}
.controls button {min-width: 44px; border-radius: 50%}
.topics button:not([aria-pressed="true"]):hover,.controls button:not(:disabled):hover,.reader button:not(:disabled):hover {background: #ede2e9; border-color: var(--accent)}
.topics button[aria-pressed="true"] {background: var(--plum); border-color: var(--plum); color: white}
.controls span,.reader-bottom span {font-size: .88rem; font-variant-numeric: tabular-nums}
.gallery {display: grid; grid-auto-flow: column; grid-auto-columns: clamp(130px,16vw,215px); gap: .85rem; overflow-x: auto; padding: .55rem .3rem 1.1rem; scroll-snap-type: x proximity; scrollbar-color: #987d94 #e0d4dd; position: relative}
.tile {scroll-snap-align: start; min-width: 0}
.tile>a:first-child {display: block; text-decoration: none; font-weight: 600; line-height: 1.25}
.tile>a:first-child:hover span {text-decoration: underline}
.tile img {display: block; width: 100%; height: auto; aspect-ratio: 210/297; object-fit: contain; background: white; border: 1px solid #d7cbd3; margin-bottom: .55rem}
.tile a:is(:hover,:focus-visible) img {border-color: var(--accent); box-shadow: 0 3px 12px #482e4826}
.contents {padding-block: clamp(3.4rem,6vw,5.4rem)}
.chapters {list-style: none; counter-reset: chapter; padding: 0}
.chapters li {display: flex; align-items: baseline; gap: 1rem; counter-increment: chapter; padding: 1.25rem; border: 1px solid var(--line); border-radius: .7rem; background: #fffcf9}
.chapters li::before {content: counter(chapter, decimal-leading-zero); flex: none; align-self: start; border-radius: .4rem; padding: .35rem .55rem; color: var(--ivory); background: var(--plum); font-variant-numeric: tabular-nums}
.chapters h3 {font-size: 1rem; line-height: 1.5}
.chapters p {font-size: .875rem; line-height: 1.625; color: var(--muted); margin-top: .35rem}
.appendix {max-width: 56rem; margin: 1rem auto 0}
.audience {background: #39283a; color: #fbf5fa; padding-block: clamp(3rem,5vw,4.6rem)}
.audience h2 {text-align: center}
.audience-grid article {background: #322435; border: 1px solid #655063; padding: 2rem; border-radius: .8rem}
.audience-grid h3 {font-size: 1.125rem; line-height: 1.75rem; color: var(--ivory); margin-bottom: 1rem}
.audience-grid ul,.audience-grid ol {margin: 0; padding-left: 1.35rem; color: #eee4ea}
.audience-grid li {padding-left: .35rem}
.audience-grid li+li {margin-top: .85rem}
.audience-grid li::marker {color: var(--gold); font-weight: 700}
.offer {background: #f2ece6; padding-block: clamp(3rem,6vw,6rem)}
.offer-heading {text-align: center; margin-bottom: 2rem}
.offer-heading h2+p {margin: 1rem auto 0; max-width: 61ch; color: var(--muted)}
.format-menu {display: none}
.format-options {--offer-accent: #a17b43; --offer-shadow: #482e4829}
.format-card {display: flex; flex-direction: column; border-radius: .9rem; border: 1px solid var(--line); border-top: .25rem solid var(--gold); background: #fffdfb; box-shadow: 0 7px 24px #3021360c; scroll-margin-top: 1rem}
.format-card h3 {font-size: 1.875rem; line-height: 1.2}
.format-description {margin: .65rem 0 1.35rem; color: var(--muted)}
.format-seller,.format-note {font-size: .9rem; color: var(--muted); margin-top: .5rem}
.format-facts {list-style: none; padding: 0; margin: 1rem 0 1.4rem}
.format-facts li {display: flex; gap: .55rem; margin-top: .3rem}
.format-facts li::before {content: "✓"; color: var(--accent)}
.format-note {margin-top: .8rem}
.format-card .button {font-size: .98rem; text-align: center; line-height: 1.3}
.format-card .button {margin-top: auto; background: var(--plum); color: white}
.format-card .button:hover {background: #643b60}
.offer :focus-visible {outline-color: var(--plum)}
.format-card :focus-visible {outline-color: var(--plum)}
.price {font-family: "DM Serif Display", Georgia, serif}
.price {font-size: 2.25rem; line-height: 2.5rem}
.faq {padding-block: clamp(3rem,5vw,4.5rem)}
.faq details {background: #fffdfa; border: 1px solid var(--line); border-radius: .55rem}
.faq summary {cursor: pointer; padding: .95rem 1.25rem; font-weight: 600}
.faq summary::marker {color: var(--accent)}
.faq details[open] {border-color: #a78ca2}
.faq details p {margin: 0 1.25rem 1.2rem; max-width: 70ch; color: var(--muted)}
.closing {background: #302136; color: var(--ivory)}
.closing-inner {display: grid; justify-items: center; text-align: center; gap: 1.5rem; padding-block: clamp(2.5rem,5vw,4rem)}
.closing .kicker {color: var(--gold)}
.closing h2+p {margin-top: .8rem}
.reader {border: 1px solid #c4afc0; border-radius: .6rem; background: var(--paper); color: var(--ink); width: min(94vw,980px); max-width: 96vw; padding: 0}
.reader[open] {display: grid; grid-template-rows: auto minmax(0,1fr) auto; height: 92vh; height: 92dvh; max-height: 96dvh}
.reader::backdrop {background: #211324d9}
.reader-head,.reader-bottom {padding: .55rem .8rem; justify-content: space-between; gap: .5rem}
.reader-head h2 {font: 600 1rem/1.2 "Source Sans 3", sans-serif; letter-spacing: 0}
.reader-head>div {gap: .4rem}
.reader-head form {margin: 0}
.reader-body {overflow: auto; text-align: center; background: #ddd6dc; min-height: 0}
.reader-body img {display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; margin-inline: auto}
.reader-body.is-zoomed img {width: max(100%,1100px); height: auto; max-width: none}
.reader-open {overflow: hidden}
@media(min-width:1024px) {
  .format-card {grid-row: span 7; display: grid; grid-template-rows: subgrid; row-gap: 0}
  .format-note {align-self: start}
}
@media(max-width:767px) {
  .format-card h3 {font-size: 1.5rem; line-height: 2.25rem}
  .price {font-size: 1.625rem}
  .book-stats dd:first-of-type {font-size: 1.5rem; line-height: 2rem}
  .book-stats {grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 1.25rem}
  .book-stats div {padding-inline: .75rem}

  .wrap {width: min(100% - 2.4rem, 620px)}
  .mast {gap: 9.6px}
  .mast > .book-buy {margin-left: auto}
  .mast > nav {display: none}
  .mast .mobile-menu {display: block; position: relative}
  .mobile-menu summary {display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #958092; border-radius: .4rem; cursor: pointer; list-style: none}
  .mobile-menu summary::-webkit-details-marker {display: none}
  .mobile-menu nav {position: absolute; z-index: 2; top: calc(100% + .4rem); right: 0; display: grid; gap: 0; width: 12rem; padding: .4rem; border: 1px solid #958092; border-radius: .4rem; background: #201821}
  .mobile-menu nav a {padding-inline: .7rem}
  .hero-grid {grid-template-columns: minmax(75px,25%) 1fr; gap: 0 1rem; min-height: auto; padding-block: 2.8rem}
  .hero-copy {display: contents}
  .book-identity {grid-column: 2; grid-row: 1}
  .book-identity h1 {font-size: 1.125rem; line-height: 1.4}
  .book-identity .subtitle {font-size: 1.125rem; line-height: 1.4}
  .hero-grid .art {grid-column: 1; grid-row: 1}
  .hero-grid .art img {width: 100%}
  .hero-grid .intro,.hero-prices,.hero-actions {grid-column: 1/-1}
  .hero .kicker {margin-bottom: .75rem}
  .hero-actions {align-items: stretch; flex-direction: column; gap: .65rem}
  .intro {font-size: 1rem; line-height: 1.6; margin-block: 1.15rem 1.4rem}
  .example {grid-template-columns: 1fr}
  .learning-copy {padding: 1.25rem}
  .section-heading,.tools {align-items: start; flex-direction: column}
  .format-facts {order: 1; margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line)}
  .format-seller {margin-bottom: 1rem}
  .format-menu {display: block; border: 1px solid var(--line); border-radius: .65rem; overflow: hidden; margin-bottom: 1.5rem; background: #fffdfb}
  .format-menu a {display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .75rem; padding: .8rem; text-decoration: none}
  .format-menu a+a {border-top: 1px solid var(--line)}
  .format-menu a:focus-visible {outline-offset: -3px}
  .gallery {grid-auto-columns: clamp(145px,50vw,195px)}
  .reader {width: 98vw; max-width: 98vw}
  .reader-head button[data-reader-zoom] {display:none}
}

@media (max-width:359px) {
  .format-card h3 {font-size: 1.25rem}
  .price {font-size: 1.5rem}
}
