:root {
  color-scheme: light;
  --ink: #21172d;
  --muted: #574d61;
  --purple: #812679;
  --teal: #075451;
  --line: #e3d9e7;
  --paper: #fff;
  --display: Georgia, "Times New Roman", serif;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fcf9fc;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
h1, h2, p { margin: 0; }
p { line-height: 1.65; }
h1, h2 { font-family: var(--display); letter-spacing: -.047em; font-weight: 700; }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.07; }
[id] { scroll-margin-top: 1rem; }
:focus-visible { outline: 3px solid #8d3984; outline-offset: 5px; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.skip { position: fixed; top: 1rem; left: 1rem; z-index: 4; background: white; padding: .75rem; transform: translateY(-180%); }
.skip:focus { transform: none; }

.top { background: #fcf9fc; border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.65rem; gap: 1rem; }
.brand { font-weight: 760; letter-spacing: -.035em; white-space: nowrap; font-size: 1.25rem; }
.brand span { color: var(--purple); }
nav { display: flex; gap: 2rem; font-size: .94rem; color: var(--muted); font-weight: 650; }
nav a:hover, .foot a:hover { text-decoration: underline; text-underline-offset: .2em; }
.button { background: var(--teal); color: white; display: inline-flex; justify-content: center; align-items: center; font-weight: 750; padding: .78rem 1.2rem; min-height: 3.15rem; border: 1px solid transparent; border-radius: .55rem; line-height: 1.3; text-align: center; }
.button:hover { background: #064441; }
.button.small { min-height: 2.6rem; padding: .54rem .9rem; font-size: .9rem; }
.button.secondary { background: white; color: var(--teal); border-color: #b5ccca; }
.button.secondary:hover { background: #eaf5f3; }
.text-link { color: var(--teal); text-decoration: underline; text-underline-offset: .25em; font-weight: 740; }

.hero { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6.2rem); }
.eyebrow { color: var(--purple); text-transform: uppercase; font-weight: 780; font-size: .85rem; letter-spacing: .095em; margin-bottom: .8rem; }
h1 { font-size: clamp(3.2rem, 6.45vw, 6.2rem); line-height: .96; max-width: 9.5em; }
h1 em { color: var(--purple); font-weight: 500; }
.lead { margin-top: 1.55rem; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 32rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; margin-top: 1.65rem; }
.hero-note { color: var(--muted); margin-top: 1rem; font-size: .91rem; }
.hero-note span { display: inline-block; padding-inline: .34rem; }
.showcase { display: grid; place-items: center; overflow: hidden; padding: 2.6rem 2rem 3.2rem; position: relative; isolation: isolate; border-radius: 48% 48% 1.25rem 1.25rem; background: radial-gradient(ellipse at 60% 30%, #f3e6f5 0, #ead9ec 55%, #e1d0e5 100%); }
.showcase::before { content: ""; position: absolute; inset: 1rem; border-radius: inherit; border: 1px solid rgba(255,255,255,.55); z-index: -1; }
.book { width: min(76%, 18rem); position: relative; transform: rotate(-7deg); border-radius: .18rem .47rem .47rem .18rem; background: #fff; padding: 0 0 .45rem .65rem; box-shadow: .65rem 1.5rem 2.25rem #3e23464b, .25rem .32rem 0 #ae99b1; }
.cover { width: 100%; height: auto; border-radius: .12rem .4rem .4rem .12rem; }
.binding { position: absolute; top: 4%; bottom: 4%; left: -.6rem; width: 1.42rem; background: repeating-linear-gradient(to bottom, transparent 0 .34rem, #3a2c41 .35rem .48rem, #aa9bac .49rem .59rem, #2b2033 .6rem .68rem, transparent .7rem 1.06rem); border-radius: .5rem; filter: drop-shadow(0 2px 1px #342b414e); }

.preview-band { padding-block: clamp(2.75rem, 7vw, 5.5rem); background: #f2ebf4; border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 1.85rem; }
.section-head > p { max-width: 22rem; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.page { min-width: 0; display: flex; flex-direction: column; border: 1px solid #ddd2e1; background: white; border-radius: .65rem; overflow: hidden; transition: transform .18s, border-color .18s; }
.page:hover { transform: translateY(-4px); border-color: #986294; }
.paper { display: grid; place-items: center; padding: .64rem .52rem; background: #e7ddea; }
.paper img { max-width: 12rem; aspect-ratio: 210/297; object-fit: contain; width: 100%; box-shadow: 0 2px 7px #47324b2b; background: white; }
.caption { padding: .72rem .68rem .83rem; line-height: 1.35; }
.caption strong, .caption span { display: block; }
.caption strong { font-size: .98rem; }
.caption span { margin-top: .3rem; color: var(--muted); font-size: .875rem; }
.sample { display: flex; flex-wrap: wrap; gap: .75rem 1.15rem; align-items: center; margin-top: 1.35rem; }
.sample p { color: var(--muted); }

.content { padding-block: clamp(3rem, 7vw, 5.5rem); }

.practice-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 2.7rem; background: #e7f2ef; border: 1px solid #d0e5df; padding: clamp(1.4rem, 4vw, 3rem); border-radius: 1rem; }
.practice h2, .faq h2, .buy h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.practice-inner > div > p:not(.eyebrow) { margin-top: .9rem; }
.fine { font-size: .88rem; color: var(--muted); }
.answers ol { margin: 0 0 .6rem; padding-left: 1.5rem; }
.answers li { padding-left: .15rem; line-height: 1.45; margin-bottom: .4rem; }
details { border-top: 1px solid var(--line); padding-block: .82rem; }
.practice details { border-color: #bfd6cc; }
summary { cursor: pointer; font-weight: 740; line-height: 1.45; }
details p { margin: .58rem 0 0; color: var(--muted); }
.closing { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2.5rem; padding-block: clamp(3rem, 7vw, 5.5rem); align-items: start; }
.buy { background: #f1e4f2; padding: clamp(1.4rem, 3.8vw, 2.6rem); border-radius: 1rem; }
.buy > p:not(.eyebrow) { margin-top: .8rem; }
.buy .button { margin-top: 1.05rem; }
.faq h2 { margin-bottom: 1.2rem; }
footer { background: #261c30; color: #fff; padding-block: 1.3rem; }
.foot { display: flex; gap: .65rem 1.2rem; justify-content: space-between; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.foot > :first-child { font-weight: 760; }
.foot > :nth-child(2) { color: #e0d6e3; }

.viewing { overflow: hidden; }
.viewer { width: min(94vw, 55rem); max-height: 94vh; max-height: 94dvh; border: none; padding: 0; border-radius: .65rem; color: var(--ink); background: var(--paper); }
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: #190d23b8; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .55rem .8rem; }
.viewer-bar button { color: var(--teal); background: white; border: 1px solid #bccfcb; padding: .5rem .65rem; min-height: 2.6rem; border-radius: .35rem; font-weight: 700; }
.viewer-bar button:hover { background: #e7f2ef; }
.viewer-bar button[aria-disabled="true"] { opacity: .58; cursor: default; }
.viewer-image { min-height: 0; overflow: auto; background: #e9e2ed; padding: .5rem; }
.viewer-image img { width: min(100%, 48rem); margin: auto; }
.position { font-size: .9rem; }

@media (max-width: 60rem) {
  .paper { padding: .75rem 1rem; }
  .hero { gap: 1.6rem; }
}
@media (max-width: 44rem) {
  .wrap { width: calc(100% - 2rem); }
  .top-inner { min-height: 3.9rem; }
  nav { display: none; }
  .hero, .practice-inner, .closing { grid-template-columns: 1fr; }
  .hero { padding-top: 2.4rem; }
  h1 { font-size: clamp(2.85rem, 10.5vw, 4.4rem); }
  .showcase { width: min(100%, 27rem); margin-inline: auto; padding-block: 1.9rem 2.65rem; }
  .book { width: min(70%, 13.2rem); }
  .section-head { flex-direction: column; align-items: start; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paper { padding: .55rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .page { transition: none; } }

.at-a-glance { background: var(--teal); color: white; }
.highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-block: 0; padding-block: 1.4rem; }
.highlights > div { display: flex; flex-direction: column-reverse; justify-content: start; gap: .25rem; padding: .35rem 1.25rem; border-left: 1px solid #78a19f; }
.highlights > div:first-child { border-left: none; padding-left: 0; }
.highlights dt { color: #ebf4f1; line-height: 1.35; }
.highlights dd { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1; margin: 0; }

.toc { max-width: 57rem; }
.toc details { border: 1px solid var(--line); border-radius: .6rem; padding: 0 1.1rem; background: white; }
.toc details + details { margin-top: .6rem; }
.toc summary { padding-block: .82rem; color: var(--ink); font-size: 1.04rem; }
.toc summary::marker { color: var(--purple); }
.toc ol, .toc ul { margin: 0; padding: 0 0 .7rem 1.45rem; }
.toc li { padding: .5rem 0 .5rem .25rem; border-top: 1px solid #eee6f0; line-height: 1.4; }
.toc li::marker { color: var(--muted); font-size: .88rem; }
.toc-row { display: flex; justify-content: space-between; align-items: baseline; gap: .7rem; }
.toc-page { flex: none; color: var(--muted); font-size: .9rem; }

.formats { background: #f2ebf4; border-block: 1px solid var(--line); padding-block: clamp(2.2rem, 6vw, 4.4rem); }
.format-grid, .audience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.format-grid article { border-top: 1px solid #cdbdd2; padding: 1rem 0 .5rem; }
.format-grid h3, .audience-grid h3 { margin: 0; font-size: 1.16rem; }
.format-grid p, .audience-grid p { color: var(--muted); margin: .35rem 0 .6rem; max-width: 35rem; }
.practice { margin-top: clamp(2.5rem, 6vw, 5rem); }
.quiz-options label { display: flex; align-items: baseline; gap: .45rem; padding: .28rem .2rem; cursor: pointer; }
.quiz-options input { margin: 0; accent-color: var(--teal); flex: none; }
.quiz-check { margin-block: .45rem .75rem; }
.quiz-feedback { color: var(--teal); font-weight: 690; }
.quiz-feedback:empty { display: none; }
.audience { padding-top: clamp(3rem, 7vw, 5.5rem); }
.audience-grid article { border-left: 3px solid #c684bd; padding: .05rem 0 .05rem .95rem; }
.buy-list { margin: .8rem 0 0; padding-left: 1.25rem; line-height: 1.7; }

@media (max-width: 44rem) {
  .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 0; }
  .highlights > div:nth-child(3) { border-left: none; padding-left: 0; }
  .format-grid, .audience-grid { grid-template-columns: 1fr; }
  .toc details { padding-inline: .75rem; }
}

.about-brand { border-top: 1px solid var(--line); padding-block: clamp(1.55rem, 4vw, 2.45rem); }
.about-brand .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 2rem; align-items: center; }
.about-brand h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); }
.about-brand p:not(.eyebrow) { margin-bottom: .55rem; color: var(--muted); }
@media (max-width: 44rem) { .about-brand .wrap { grid-template-columns: 1fr; } }
