:root {
  color-scheme: light;
  --paper: #fcf7f0;
  --ink: #382b36;
  --muted: #594b54;
  --berry: #693c56;
  --line: #dcd0cc;
  --sand: #f1e7dc;
  font-family: Heebo, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--berry); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1rem; line-height: 1.75; }
figure { margin: 0; }
h1, h2 { margin: 0 0 1rem; line-height: 1.12; font-family: Asul, Heebo, Arial, sans-serif; }
h1 { font-size: clamp(3.1rem, 6.9vw, 6.25rem); letter-spacing: -.045em; font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.3vw, 3rem); }
.shell { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }
.nav { min-height: 73px; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; border-bottom: 1px solid var(--line); }
.nav a, .brand { text-decoration: none; }
.nav a:hover, .brand:hover { text-decoration: underline; }
.brand { font-weight: 700; font-size: 1.14rem; }
.hero { display: grid; grid-template-columns: 1.13fr 1fr; align-items: center; gap: clamp(2rem, 8vw, 7.5rem); padding-block: clamp(3.5rem, 8vw, 7.5rem); }
.intro { max-width: 38rem; }
.intro p { max-width: 38ch; font-size: 1.13rem; color: var(--muted); }
.eyebrow, .intro .eyebrow { color: var(--berry); font-size: .95rem; font-weight: 700; }
.intro .opening { font-size: clamp(1.27rem, 2.15vw, 1.65rem); line-height: 1.55; color: var(--ink); }
.hero-actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: 1.9rem; }
.button { display: inline-flex; align-items: center; min-height: 49px; padding: .65rem 1.4rem; border-radius: .35rem; background: var(--berry); color: white; text-decoration: none; font-weight: 600; }
.button:hover { background: #522c44; }
.text-link { color: var(--berry); text-underline-offset: .24em; font-weight: 600; }
.book { position: relative; isolation: isolate; width: min(100%, 405px); padding: clamp(1.4rem, 4vw, 2.7rem); margin-inline: auto; }
.book::before { content: ""; position: absolute; z-index: -1; inset: 0; background: #e8d9d5; border-radius: 48% 48% .6rem .6rem / 18% 18% .6rem .6rem; }
.book img { margin-inline: auto; box-shadow: -7px 14px 25px #432c4533; border-radius: 2px 5px 5px 2px; }
.inner-child {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .75fr);
  gap: clamp(1.75rem, 6vw, 6rem);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.inner-child-copy p, .author-note p { color: var(--muted); font-size: 1.075rem; }
.inner-child-copy p:last-child, .author-note p:last-child { margin-bottom: 0; }
.author-note { background: #f4e8e5; border-radius: .55rem; padding: clamp(1.4rem, 3.25vw, 2.4rem); }
.author-note h3 { margin: 0 0 .9rem; font-family: Asul, Heebo, Arial, sans-serif; font-size: 1.5rem; line-height: 1.2; }
.author-note .author-signature { color: var(--berry); font-weight: 700; }
.sample-band { background: var(--sand); }
.samples, .details { padding-block: clamp(3rem, 7vw, 6.5rem); }
.section-intro { margin-bottom: 2rem; }
.section-intro p, .details p { color: var(--muted); font-size: 1.075rem; }
.pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 3vw, 2.2rem); }
.page { display: block; padding: clamp(.4rem, 1.5vw, 1.05rem); border-radius: .35rem; background: var(--paper); box-shadow: 0 5px 17px #432c4514; transition: transform .18s ease; }
.page:hover { transform: translateY(-4px); }
.page img { width: 100%; }
figcaption { margin-top: .8rem; text-align: center; font-weight: 600; }
.details { display: grid; grid-template-columns: 1fr .75fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.details > div { max-width: 48ch; }
.price { border: 1px solid var(--line); border-radius: .55rem; padding: clamp(1.5rem, 4vw, 2.8rem); background: #f8eee7; }
.price .amount { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; margin-block: .5rem; }
.amount-value { font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.price .status { margin: 1rem 0 0; font-size: .95rem; }
.footer { display: flex; justify-content: space-between; gap: .7rem 1.3rem; align-items: center; flex-wrap: wrap; padding-block: 1.8rem; border-top: 1px solid var(--line); color: var(--muted); }
.footer h2 { margin: 0 0 .4rem; font-size: 1.35rem; color: var(--ink); }
.footer p { max-width: 45ch; margin: 0; }
.contact-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: var(--berry); text-underline-offset: .24em; overflow-wrap: anywhere; }
dialog { border: 0; border-radius: .7rem; padding: 0 1rem 1rem; max-width: min(100% - 2rem, 700px); max-height: 93dvh; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #271c29c9; }
.dialog-head { position: sticky; top: 0; background: var(--paper); display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .45rem 0; }
.dialog-head p { margin: 0; font-weight: 600; }
button { font: inherit; color: var(--berry); background: transparent; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: .3rem; cursor: pointer; }
@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .hero, .inner-child, .details { grid-template-columns: 1fr; }
  .book { width: min(100%, 300px); }
  .pages { gap: .55rem; }
  figcaption { font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .page { transition: none; }
}
