/* Three connected planes: the room, the printed page, the evidence. */
.bottega-site {
  background-image: var(--grain), radial-gradient(ellipse at 100% 0, #f1dcc6, transparent 58%);
}
.bottega-site main { position: relative; isolation: isolate; }
.bottega-site main::before {
  content: ''; position: absolute; z-index: -1; top: 40px; bottom: 50px;
  left: max(18px, calc((100% - 1390px) / 2)); width: 1px;
  border-left: 1px dashed #9c6e5829; pointer-events: none;
}
.bottega-site .clp-footer { box-shadow: inset 0 22px 25px -25px #000b; }
.bottega-site .character-files, .bottega-site .book-regulars { position: relative; }
.bottega-site .character-dossier { box-shadow: 0 2px 2px #34231f0c, 6px 15px 24px -18px #34231f80; }
.case-book-note { position: relative; z-index: 1; }
.case-library { position: relative; }
.case-intro::after {
  content: ''; position: absolute; z-index: -1; width: min(42vw, 450px); aspect-ratio: 1;
  top: -105px; right: -30px; background: url('assets/clp-heart-line-v1.svg') center / contain no-repeat;
  opacity: .08; transform: rotate(-13deg); pointer-events: none;
}

/* Keep the face of the file level; only the sheets underneath are rotated. */
.desk-inner { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(30px, 6vw, 95px); }
.desk-copy, .desk-file { min-width: 0; }
.desk-file { transform: none; isolation: isolate; padding: 23px; }
.desk-file::before { inset: -8px 9px 6px -8px; transform: rotate(-1.8deg); }
.desk-file::after { inset: -12px -4px 11px 8px; transform: rotate(1.1deg); }
.desk-file-top {
  position: relative; display: grid; grid-template-columns: max-content minmax(0,1fr);
  align-items: center; min-height: 34px; gap: 12px; padding: 2px 2px 12px;
  margin: 0; line-height: 1.5; color: #685447;
}
.desk-file-top > span:last-child { text-align: right; overflow-wrap: anywhere; }
.excuse-desk {
  padding-block: 115px 130px;
  background-image: var(--grain), radial-gradient(ellipse at 78% 15%, #fffbef, #f0dbce 65%);
}
.excuse-desk::after {
  content: ''; position: absolute; z-index: -1; left: 18%; right: 12%; bottom: -18px;
  height: 40px; background: #f0dbce var(--grain); border-bottom: 1px solid #34231f20;
  transform: rotate(-.8deg); box-shadow: 0 8px 12px -9px #34231f70; pointer-events: none;
}
.bp-incidents { position: relative; padding-bottom: 130px; }
.bp-intro { padding-top: 105px; }

/* Let the second scene become a room, then pull its small explanation forward. */
.bp-favour.bp-shell { display: block; width: 100%; max-width: none; margin-top: 30px; }
.bp-favour-art { width: 100%; margin: 0; }
.bp-favour-art .bp-art-mount {
  width: min(100%, 1920px); margin-inline: auto; padding: 0; border: 0;
  border-radius: 0; background: #d1b494; box-shadow: 0 20px 50px -35px #34231f95;
}
.bp-favour-art .bp-art-mount::before { display: none; }
.bp-favour-art .bp-art-mount::after { right: 5%; bottom: -12px; width: 110px; }
.bp-favour-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 0; }
.bp-favour-art figcaption {
  width: min(calc(100% - 80px), 1320px); margin: 22px auto 0;
  flex-wrap: wrap; gap: 12px 22px; line-height: 1.5;
}
.bp-favour-copy {
  position: relative; z-index: 1; width: min(calc(100% - 80px), 690px);
  margin: 22px max(40px, calc((100% - 1320px) / 2)) -70px auto;
  padding: clamp(30px, 4vw, 58px); border: 1px solid #34231f26;
  border-radius: 3px 3px 40px 3px;
  background: #fff9f0 var(--grain); box-shadow: 8px 13px 0 -1px #e5cbbc, 8px 13px 0 0 #34231f25, 0 25px 30px -27px #34231f99;
}
.bp-favour-copy::before {
  content: ''; position: absolute; width: 75px; height: 18px; top: -9px; left: 36px;
  background: #ffe600b8; transform: rotate(-4deg); border-inline: 2px dashed #fff8ef99;
}
.bp-favour-copy h2 { font-size: clamp(58px, 6vw, 90px); }
.bp-favour-copy .bp-next { margin-top: 30px; }
.bp-comfort { padding-top: 115px; }
.bp-comfort > .bp-shell { width: min(calc(100% - 80px), 1560px); }
.bp-comfort-art .bp-art-mount { box-shadow: 0 20px 60px -25px #000b; }
.bp-comfort-heading { position: relative; }
.bp-comfort-heading::after {
  content: '03'; position: absolute; top: -80px; right: 0; z-index: -1;
  color: #fff8ef0b; font: 600 clamp(160px, 21vw, 300px)/1 var(--display); pointer-events: none;
}

/* A complete, wide view of the five residents; no side-window crop. */
.bottega-site .character-hero {
  display: grid; grid-template-columns: minmax(0,1fr); padding: 0; min-height: 0;
  background: #302b31; color: #fff8ef; isolation: isolate;
}
.character-index main > .character-hero.section-pad { padding: 0; }
.bottega-site .character-ensemble {
  position: relative; z-index: 0; grid-column: 1; grid-row: 1; order: initial;
  width: 100%; height: auto; aspect-ratio: 16/9; overflow: visible; align-self: start;
}
.bottega-site .character-ensemble img {
  display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; object-position: center;
}
.bottega-site .character-hero::after {
  display: block; content: ''; position: absolute; z-index: 1; inset: 0;
  background: linear-gradient(90deg, #1c1c2bcf, #252332b0 25%, #25233235 46%, transparent 62%), linear-gradient(0deg, #302b3155, transparent 30%);
  pointer-events: none;
}
.bottega-site .character-hero-content {
  position: relative; z-index: 2; grid-column: 1; grid-row: 1; align-self: center;
  width: min(38%, 550px); margin: 0; padding: 42px 0 48px;
  margin-left: max(40px, calc((100% - 1500px) / 2));
}
.bottega-site .character-hero-copy h1 { font-size: clamp(54px, 6.5vw, 100px); color: #fff8ef; }
.bottega-site .character-hero-copy h1 span { color: #ffe56b; font-size: .34em; line-height: 1.2; margin-top: 24px; }
.bottega-site .character-hero .eyebrow { color: #fff8efcf; }
.bottega-site .character-hero-copy > p:last-child { font-size: clamp(15px,1.15vw,18px); color: #fff8efed; max-width: 410px; }
.bottega-site .character-roll-call { border-top: 1px solid #fff8ef40; padding-top: 18px; max-width: 410px; }
.bottega-site .character-roll-call > span { color: #fff8efbd; }
.bottega-site .character-roll-call a { background: #fff8efed; color: #34231f; border-color: transparent; }
.bottega-site .character-files { margin-top: 0; background-image: var(--grain), radial-gradient(ellipse at 15% 0, #f1dccb, transparent 70%); }
.bottega-site .character-files-heading { position: relative; padding-top: 30px; }
.bottega-site .character-files-heading::before {
  content: ''; position: absolute; top: -14px; left: 0; width: 100px; height: 25px;
  background: var(--thread) center / contain no-repeat; pointer-events: none;
}

/* The author has a studio ground, a large portrait and a biography on paper. */
.creator-page main { background: #efe0d0 var(--grain); }
.creator-page main > .creator-hero.section-pad {
  position: relative; isolation: isolate; overflow: clip; width: 100%; max-width: none; margin: 0;
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 6%;
  padding: 72px max(40px, calc((100% - 1400px) / 2)) 115px;
  color: #fff8ef; background: var(--grain), radial-gradient(ellipse at 82% 40%, #79513c, transparent 65%), linear-gradient(125deg,#201b20,#3b2822);
}
.creator-page .creator-hero::before {
  content: ''; position: absolute; z-index: -1; left: -60px; top: -80px; width: min(60vw,650px); aspect-ratio: 1;
  background: url('assets/clp-heart-line-v1.svg') center/contain no-repeat; filter: invert(1); opacity: .075;
  transform: rotate(-18deg); pointer-events: none;
}
.creator-page .creator-hero::after {
  content: ''; position: absolute; z-index: -1; inset: 24px 23px 70px;
  border: 1px solid #fff8ef24; border-radius: 4px 65px 4px 4px; pointer-events: none;
}
.bottega-site.creator-page .creator-hero h1 { color: #fff8ef; font-size: clamp(66px,7.4vw,108px); }
.bottega-site.creator-page .creator-hero h1 > span { color: #fba8bc; font-size: .37em; line-height: 1.2; margin-top: 30px; }
.creator-page .creator-hero .eyebrow { color: #ffe56b; }
.bottega-site.creator-page .creator-hero-copy > p:not(.eyebrow) { color: #fff8efdc; font-size: 18px; max-width: 510px; }
.creator-page .creator-hero .text-link { color: #fff8ef; }
.bottega-site.creator-page .creator-portrait {
  width: min(100%,500px); max-width: none; padding: 8px; overflow: visible;
  background: #fff8ef var(--grain); border: 1px solid #fff8ef8a; border-radius: 4px 45px 4px 4px;
  transform: rotate(.7deg); box-shadow: 8px 10px 0 -1px #bda181, 8px 10px 0 0 #fff8ef25, 12px 35px 50px -25px #000b;
}
.bottega-site.creator-page .creator-portrait img { height: auto; aspect-ratio: 3/4; object-fit: contain; border-radius: 2px 37px 2px 2px; }
.bottega-site.creator-page .creator-portrait figcaption { position: static; padding: 17px 12px 12px; color: var(--ink); background: transparent; border: 0; line-height: 1.4; }
.creator-page main > .creator-bio.section-pad {
  position: relative; z-index: 1; width: min(calc(100% - 80px),1320px); padding: 65px 55px;
  margin: -45px auto 65px; background: #fff9ef var(--grain); border: 1px solid #34231f26;
  border-radius: 3px 3px 45px 3px; box-shadow: 9px 12px 0 -1px #e0c6af, 9px 12px 0 0 #34231f20, 0 20px 40px -35px #34231faa;
}
.creator-page .creator-bio::before {
  content: ''; position: absolute; top: -12px; left: 50px; width: 110px; height: 25px;
  background: var(--thread) center / contain no-repeat; pointer-events: none;
}
.bottega-site.creator-page .creator-quote {
  background: #efe0d0 var(--grain); padding: 35px; transform: rotate(1deg);
  border-top: 2px solid #f95f8c; box-shadow: 5px 7px 0 -1px #fff9ef, 5px 7px 0 0 #34231f20;
}
.creator-page .creator-quote p { color: var(--ink); }
.creator-page .creator-quote cite { color: #79513c; }
.creator-page main > .creator-work.section-pad {
  padding-block: 65px 80px; background: var(--grain), linear-gradient(110deg,#ead2ba,#f5e5d3);
}

@media (min-width: 901px) {
  .bottega-site .character-hero { min-height: 0; }
}
@media (max-width: 1000px) {
  .bottega-site .character-hero-content { width: 40%; margin-left: 28px; padding-block: 30px; }
  .bottega-site .character-hero-copy h1 { font-size: 58px; }
  .bottega-site .character-hero-copy > p:last-child { font-size: 14px; margin-top: 18px; }
  .bottega-site .character-roll-call { margin-top: 20px; }
  .creator-page main > .creator-hero.section-pad { gap: 4%; padding-inline: 36px; }
  .creator-page main > .creator-bio.section-pad { padding: 45px 34px; gap: 6%; }
}
@media (max-width: 900px) {
  .desk-inner { grid-template-columns: minmax(0,1fr); gap: 45px; }
  .desk-file { max-width: 730px; width: calc(100% - 24px); }
  .bottega-site .character-hero { display: flex; flex-direction: column; }
  .bottega-site .character-ensemble { width: 100%; aspect-ratio: 16/9; order: 0; }
  .bottega-site .character-hero::after { display: none; }
  .bottega-site .character-hero-content { order: 1; width: 100%; padding: 40px; margin: 0; }
  .bottega-site .character-hero-copy h1 { font-size: 68px; }
  .bottega-site .character-hero-copy h1 span { font-size: .4em; }
  .bottega-site .character-hero-copy > p:last-child { max-width: 600px; font-size: 16px; }
  .creator-page main > .creator-hero.section-pad { grid-template-columns: 1fr 1fr; }
  .bottega-site.creator-page .creator-hero h1 { font-size: 68px; }
  .creator-page main > .creator-bio.section-pad { display: block; }
  .bottega-site.creator-page .creator-quote { margin: 35px 0 0; max-width: 550px; }
}
@media (max-width: 600px) {
  .bottega-site main::before { display: none; }
  .excuse-desk { padding-block: 65px 80px; }
  .desk-file { padding: 13px; }
  .desk-file-top { font-size: 9px; min-height: 38px; gap: 8px; padding-bottom: 12px; }
  .excuse-desk::after { left: 12%; right: 9%; bottom: -10px; height: 25px; }
  .bp-intro { padding-top: 65px; }
  .bp-incidents { padding-bottom: 85px; }
  .bp-favour.bp-shell { margin-top: 15px; }
  .bp-favour-art, .bp-favour-art .bp-art-mount { width: 100%; margin-inline: 0; border-radius: 0; }
  .bp-favour-art figcaption { width: calc(100% - 40px); margin-top: 18px; }
  .bp-favour-copy { width: calc(100% - 40px); margin: 25px 20px -40px; padding: 30px 25px; border-radius: 3px 3px 27px 3px; }
  .bp-favour-copy h2 { font-size: clamp(45px,12vw,65px); }
  .bp-favour-copy > p:not(.bp-eyebrow) { font-size: 17px; }
  .bp-comfort { padding-top: 65px; }
  .bp-comfort > .bp-shell { width: 100%; }
  .bp-comfort-heading, .bp-comfort-aside { margin-inline: 20px; }
  .bp-comfort-heading::after { right: 10px; top: -35px; font-size: 170px; }
  .bp-comfort-art { width: 100%; margin-inline: 0; }
  .bp-comfort::before { inset-inline: 0; border-inline: 0; border-radius: 0; }
  .bottega-site .character-hero-content { padding: 32px 22px 38px; }
  .bottega-site .character-hero-copy h1 { font-size: clamp(49px,14vw,66px); }
  .bottega-site .character-hero-copy h1 span { margin-top: 18px; }
  .bottega-site .character-files-heading { padding-top: 12px; }
  .creator-page main > .creator-hero.section-pad { display: flex; gap: 38px; padding: 45px 25px 80px; }
  .creator-page .creator-hero::before { width: 400px; top: -60px; left: -120px; }
  .creator-page .creator-hero::after { inset: 14px 12px 55px; border-radius: 3px 35px 3px 3px; }
  .bottega-site.creator-page .creator-hero h1 { font-size: 61px; }
  .bottega-site.creator-page .creator-hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .bottega-site.creator-page .creator-portrait { width: min(100% - 10px,440px); transform: none; padding: 5px; }
  .bottega-site.creator-page .creator-portrait figcaption { padding: 15px 10px 10px; }
  .creator-page main > .creator-bio.section-pad { width: calc(100% - 40px); margin: -30px 20px 45px; padding: 36px 25px; border-radius: 3px 3px 28px 3px; }
  .bottega-site.creator-page .creator-bio-copy h2 { font-size: 41px; }
  .bottega-site.creator-page .creator-quote { padding: 25px; }
  .creator-page main > .creator-work.section-pad { padding-block: 45px 55px; }
}
@media (prefers-reduced-motion: reduce) {
  .bottega-site .creator-portrait, .bottega-site .creator-quote { transform: none; }
}

/* Book and residents: a continuous ground, paper mounts, then the small details. */
.book-page, .character-index { --interior-gutter: max(32px, calc((100% - 1240px) / 2)); }
.book-page main::before, .character-index main::before { display: none; }
.book-page main { background: #f5e7d8 var(--grain); }
.book-page .hero {
  position: relative; isolation: isolate; width: 100%; max-width: none;
  padding: 64px var(--interior-gutter) 92px;
  background: var(--grain), linear-gradient(115deg, #fff8ec 12%, #f2decb 65%, #dbc2b2);
}
.book-page .hero::before {
  content: ''; position: absolute; z-index: -1; inset: 0;
  background: url('assets/clp-book-worktable-v1.svg') center / 100% 100% no-repeat; pointer-events: none;
}
.book-page .hero::after {
  content: ''; position: absolute; z-index: -1; bottom: 46px; left: var(--interior-gutter);
  width: 115px; height: 22px; background: var(--thread) center / contain no-repeat; pointer-events: none;
}
.book-page .hero-cover-stage { padding: 12px 16px 32px; }
.book-page .hero-cover-stage::before, .book-page .hero-cover-stage::after { display: none; }
.book-page .hero-bound-book { filter: drop-shadow(0 22px 13px #49302030); }
.book-page .interior-path {
  position: relative; z-index: 2; width: min(calc(100% - 64px),1240px);
  margin: -25px auto 0; padding: 12px 24px; justify-content: space-between;
  border: 1px solid #8a665840; border-radius: 3px 3px 20px 3px;
  background: #fffaf0 var(--grain); box-shadow: 4px 5px 0 #d8bca255, 0 12px 22px -20px #4e3429b3;
}
.book-page .interior-path a { gap: 9px; }
.book-page main > .inside.section-pad {
  position: relative; isolation: isolate; width: 100%; max-width: none;
  padding: 85px var(--interior-gutter) 80px;
  background: var(--grain), radial-gradient(ellipse at 20% 40%,#fffbf0,transparent 65%), #e8d4bf;
}
.book-page .inside::before {
  content: ''; position: absolute; z-index: -1; inset: 35px 18px 30px;
  border: 1px solid #7c544328; border-radius: 35px 3px 3px 3px; pointer-events: none;
}
.book-page .inside::after {
  content: ''; position: absolute; z-index: -1; width: clamp(180px,25vw,260px); aspect-ratio: 1; top: 32px; right: 12px;
  background: url('assets/clp-heart-line-v1.svg') center / contain no-repeat; opacity: .075; pointer-events: none;
}
.book-page .inside-layout { gap: clamp(35px,6vw,85px); }
.book-page .feature-stack { gap: 19px; padding: 8px 7px 12px; }
.book-page .feature-card {
  position: relative; grid-template-columns: 90px minmax(0,1fr); padding: 26px 28px; border: 1px solid #775c4947;
  border-radius: 3px 22px 3px 3px; box-shadow: 4px 5px 0 -1px #fff6e7, 4px 5px 0 #775c492b, 0 16px 23px -23px #34231f99;
  background-image: var(--grain); transform: rotate(.65deg);
}
.book-page .feature-card:nth-child(2) { transform: rotate(-.6deg); }
.book-page .feature-pink { background-color: #f4c4c6; }
.book-page .feature-yellow { background-color: #f6e2a2; }
.book-page .feature-lilac { background-color: #dcd0e5; }
.book-page .editorial-ribbon { max-width: 1120px; gap: 38px; margin: 75px auto 48px; }
.book-page .editorial-ribbon figure {
  position: relative; padding: 9px 9px 0; overflow: visible; background: #fffaf0 var(--grain);
  border: 1px solid #7c544338; border-radius: 3px; transform: rotate(-.8deg);
  box-shadow: 5px 8px 0 -1px #cfb8a0, 5px 8px 0 #7c54432e, 0 25px 30px -25px #34231f99;
}
.book-page .editorial-ribbon figure:nth-child(2) { transform: rotate(.8deg); }
.book-page .editorial-ribbon figure::before {
  content: ''; position: absolute; z-index: 1; width: 72px; height: 19px; top: -10px; left: calc(50% - 36px);
  background: #efd498a8; border-inline: 2px dashed #fff9ea99; transform: rotate(-5deg); pointer-events: none;
}
.book-page .editorial-ribbon figcaption { padding: 17px 12px 19px; background: none; border: 0; color: #604b3f; }
.book-page .page-ribbon { max-width: 1240px; gap: 26px; margin: 50px auto 38px; }
.book-page .page-ribbon figure {
  padding: 7px 7px 0; overflow: hidden; border: 1px solid #775c4947; border-radius: 3px 18px 3px 3px;
  background: #fffaf0 var(--grain); box-shadow: 4px 6px 0 -1px #d9c1a9, 4px 6px 0 #775c4933, 0 18px 22px -22px #34231f99;
}
.book-page .page-ribbon figcaption { min-height: 98px; padding: 17px 13px; background: transparent; }
.book-page .decision-line { margin: 36px auto 0; padding-top: 24px; border-top: 1px dashed #775c4952; text-align: center; }
.book-page main > .free-pages.section-pad {
  position: relative; isolation: isolate; padding: 92px var(--interior-gutter) 85px; border: 0;
  background: var(--grain), linear-gradient(130deg,#e4d6e6,#c9b9cf 75%,#b9a4bf);
}
.book-page .free-pages::before {
  content: ''; position: absolute; z-index: -1; top: -15px; left: 0; right: 0; height: 28px;
  background: #e4d6e6 var(--grain); clip-path: polygon(0 45%,15% 25%,35% 60%,58% 16%,78% 56%,100% 30%,100% 100%,0 100%);
}
.book-page .free-pages::after {
  content: ''; position: absolute; z-index: -1; inset: 22px 18px;
  border: 1px dashed #66506950; border-radius: 3px 45px 3px 3px;
  background: var(--thread) right 30px top -5px / 135px 32px no-repeat, url('assets/clp-heart-line-v1.svg') right -25px bottom -45px / 230px 230px no-repeat;
  opacity: .65; pointer-events: none;
}
.book-page .download-panel { gap: clamp(32px,6vw,80px); align-items: center; }
.book-page .download-copy h2 { font-size: clamp(42px,4.5vw,65px); }
.book-page .download-copy .lead-form-inline {
  background: #fff9ef var(--grain); border: 1px solid #70577559; border-radius: 3px 24px 3px 3px;
  box-shadow: 5px 7px 0 -1px #ad95b1, 5px 7px 0 #7057754a, 0 20px 25px -25px #34231f99;
}
.book-page .mini-book-viewer {
  position: sticky; top: calc(var(--header-space) + 30px); align-self: start; margin-top: 20px;
  padding: 18px; border: 1px solid #70577559; border-radius: 3px 24px 3px 3px;
  background: #f9f1e7 var(--grain); box-shadow: 7px 10px 0 -1px #ad95b1, 7px 10px 0 #7057754a, 0 24px 30px -23px #46304d80;
}
.book-page .mini-book-viewer-head { padding: 0 0 17px; }
.book-page .mini-book-viewer-head strong { border-width: 1px; }
.book-page .mini-book-sheet, .book-page .mini-book-stage::before, .book-page .mini-book-stage::after { border-width: 1px; border-radius: 3px; }
.book-page .mini-book-arrow { width: 42px; height: 42px; border-width: 1px; box-shadow: 2px 3px 0 #70577580; }
.book-page .mini-book-arrow-prev { left: -22px; }
.book-page .mini-book-arrow-next { right: -22px; }
.book-page main > .book-section.section-pad {
  position: relative; padding: 65px var(--interior-gutter); color: #fff8ef;
  background: var(--grain), radial-gradient(ellipse at 80% 100%,#79523d,transparent 60%),#352824;
  box-shadow: inset 0 15px 20px -20px #140c09;
}
.book-page .book-section::before {
  content: ''; position: absolute; inset: 11px 16px; border-block: 1px solid #fff8ef30; pointer-events: none;
}
.book-page .book-card .eyebrow { color: #ffe279; }
.book-page main > .book-regulars.section-pad {
  width: 100%; max-width: none; padding: 80px var(--interior-gutter) 88px;
  display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); align-items: center; gap: 48px;
  background: var(--grain), linear-gradient(110deg,#f5dfc9,#e3c4ad);
}
.book-regulars-art { margin: 0; padding: 8px 8px 0; background: #fff9ed var(--grain); border: 1px solid #775c4947; transform: rotate(1deg); box-shadow: 7px 9px 0 -1px #ba987f, 7px 9px 0 #775c4947, 0 25px 30px -25px #34231f99; }
.book-regulars-art img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; }
.book-regulars-art figcaption { padding: 15px 10px 17px; color: #604b3f; font-size: 12px; }
.book-page main > .problem-pet-section.section-pad {
  position: relative; isolation: isolate; width: 100%; max-width: none; padding: 85px var(--interior-gutter) 92px;
  background: var(--grain), radial-gradient(ellipse at 70% 35%,#e6ecd4,transparent 65%),#d3d9c1;
}
.book-page .problem-pet-section::before {
  content: ''; position: absolute; z-index: -1; inset: 22px 18px;
  border: 1px solid #56644735; border-radius: 42px 3px 3px 3px;
  background: var(--thread) left 28px top -7px / 120px 28px no-repeat; pointer-events: none;
}
.book-page .hero-pet { padding-right: 0; }
.book-page .hero-pet::before { background-color: #bdc5aa; }
.book-page .quiet-club { width: 100%; margin: 0; padding: 28px var(--interior-gutter); background: #c5ccb3 var(--grain); border: 0; border-top: 1px solid #56644735; }
.book-page main > .faq.section-pad {
  position: relative; isolation: isolate; width: 100%; max-width: none; padding: 80px var(--interior-gutter) 90px; border: 0;
  background: var(--grain), linear-gradient(120deg,#fff8ec,#edddcd);
}
.book-page .faq::before { content: ''; position: absolute; z-index: -1; width: 230px; height: 230px; left: max(0px, calc((100% - 1350px) / 2)); bottom: 15px; background: url('assets/clp-heart-line-v1.svg') center / contain no-repeat; opacity: .08; transform: rotate(-14deg); pointer-events: none; }
.book-page .faq > .accordion { position: relative; padding: 9px 28px; background: #fffaf1 var(--grain); border: 1px solid #775c493d; border-radius: 3px 28px 3px 3px; box-shadow: 6px 8px 0 -1px #dac2ab, 6px 8px 0 #775c4933; }

/* The resident files rest on an archive desk rather than floating in empty cream. */
.character-index main { background: #ead7c4 var(--grain); }
.character-index main > .character-files.section-pad {
  position: relative; isolation: isolate; width: 100%; max-width: none; padding: 85px var(--interior-gutter) 88px;
  background: var(--grain), radial-gradient(ellipse at 30% 0,#f9eddb,transparent 65%), linear-gradient(120deg,#e8d3bb,#dbc3af);
}
.character-index .character-files::before {
  content: ''; position: absolute; z-index: -1; top: -16px; left: 0; right: 0; height: 34px;
  background: #f0e0cc var(--grain); clip-path: polygon(0 42%,18% 24%,38% 52%,63% 20%,84% 48%,100% 34%,100% 100%,0 100%);
}
.character-index .character-files::after {
  content: ''; position: absolute; z-index: -1; inset: 35px 18px 30px;
  border: 1px solid #775c4935; border-radius: 3px 50px 3px 3px;
  background: url('assets/clp-book-worktable-v1.svg') center top / 100% 650px no-repeat;
  pointer-events: none;
}
.character-index .character-files-heading { margin-bottom: 58px; gap: 45px; }
.character-index .dossier-grid { counter-reset: resident-file; gap: 36px; align-items: start; }
.character-index .character-dossier {
  counter-increment: resident-file; isolation: isolate; overflow: visible; border: 1px solid #72534259;
  border-radius: 3px 26px 3px 3px; background: var(--file-paper) var(--grain);
  box-shadow: 0 22px 28px -24px #40281c99;
}
.character-index .dossier-pink { --file-paper: #f4d4cc; }
.character-index .dossier-yellow { --file-paper: #f5e3ad; }
.character-index .dossier-lilac { --file-paper: #ded2e8; }
.character-index .dossier-blue { --file-paper: #cce0df; }
.character-index .dossier-green { --file-paper: #dbe2bd; }
.character-index .character-dossier::before {
  content: ''; position: absolute; z-index: -1; inset: 7px -5px -7px 6px;
  border: 1px solid #72534247; border-radius: 3px 23px 3px 3px; background: #f9eddb var(--grain); transform: rotate(.7deg); pointer-events: none;
}
.character-index .character-dossier summary { position: relative; padding: 24px; background: var(--file-paper) var(--grain); border-radius: inherit; grid-template-columns: 145px minmax(0,1fr); gap: 24px; }
.character-index .character-dossier[data-symbol]::after { width: 29px; height: 29px; top: 34px; left: 34px; border-width: 1px; background: #fff9ed; font-size: 14px; box-shadow: 2px 2px 0 #7253422e; }
.character-index .dossier-art { border: 5px solid #fff9ed; outline: 1px solid #7253423d; border-radius: 2px; aspect-ratio: 4/5; box-shadow: 3px 5px 6px #72534226; }
.character-index .dossier-art img { object-fit: contain; }
.character-index .dossier-summary::before { content: 'FILE 0' counter(resident-file) ' / 05'; display: block; margin-bottom: 15px; color: #785b4a; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.character-index .dossier-summary strong { font-size: 40px; }
.character-index .dossier-open { border-top: 1px solid #72534259; }
.character-index .dossier-open b { border-width: 1px; }
.character-index .character-dossier:hover { transform: translateY(-3px); box-shadow: 0 24px 30px -22px #40281c99; }
.character-index .character-dossier[open] { transform: none; background: #fff9ed var(--grain); box-shadow: 0 24px 30px -22px #40281c99; }
.character-index .character-dossier[open] summary { border-bottom: 1px solid #72534240; border-bottom-right-radius: 0; }
.character-index .dossier-body { border-radius: 0 0 3px 3px; background: #fff9ed var(--grain); }
.character-index .dossier-body dl > div { border: 1px solid #72534240; border-radius: 2px 12px 2px 2px; background: #f0e5d6; }
.dossier-book-note { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 24px; align-items: center; min-height: 260px; padding: 26px; border: 1px dashed #7253427a; border-radius: 3px 26px 3px 3px; background: #fff7e080 var(--grain); }
.dossier-book-note > img { border: 5px solid #fff9ed; outline: 1px solid #72534240; box-shadow: 3px 6px 9px #72534226; transform: rotate(-4deg); }
.dossier-book-note .eyebrow { margin-bottom: 12px; font-size: 9px; }
.dossier-book-note h3 { font-size: 28px; line-height: 1.05; margin: 0; }
.dossier-book-note p:not(.eyebrow) { font-size: 13px; margin: 15px 0; }
.dossier-book-note .text-link { font-size: 12px; }
.character-index main > .character-endcap.section-pad {
  position: relative; width: 100%; max-width: none; padding: 65px var(--interior-gutter) 76px;
  background: var(--grain), linear-gradient(110deg,#f7e3a8,#e7cc82); border-top: 1px solid #7253423d;
}
.character-index .character-endcap::before { content: ''; position: absolute; inset: 12px 18px; border: 1px solid #72534233; border-radius: 28px 3px 3px 3px; background: var(--thread) right 24px top -10px / 120px 28px no-repeat; pointer-events: none; }
.character-index .character-endcap h2 { font-size: clamp(40px,4.6vw,65px); }
.character-index .character-endcap > div { max-width: 650px; }
.character-index .character-endcap .button { flex-shrink: 0; }

@media (max-width: 1000px) {
  .character-index .character-dossier summary, .dossier-book-note { grid-template-columns: 110px minmax(0,1fr); gap: 18px; padding: 22px; }
  .character-index .dossier-summary strong { font-size: 34px; }
  .book-page .problem-pet-section { grid-template-columns: minmax(0,1fr); gap: 45px; }
  .book-page .hero-pet { width: min(600px,100%); justify-self: center; }
}
@media (max-width: 900px) {
  .book-page .hero { padding-block: 48px 75px; }
  .book-page .hero-cover-stage { margin: 12px auto 0; }
  .book-page .inside-layout, .book-page main > .book-regulars.section-pad { grid-template-columns: minmax(0,1fr); }
  .book-page .inside-sticky { position: static; }
  .book-page .feature-stack { max-width: 650px; }
  .book-page .download-panel { gap: 48px; }
  .book-page .mini-book-viewer { position: relative; top: auto; margin-top: 0; }
  .book-page .book-regulars-art { max-width: 760px; }
  .character-index .dossier-grid { grid-template-columns: minmax(0,1fr); }
  .character-index .character-dossier summary, .dossier-book-note { grid-template-columns: 145px minmax(0,1fr); padding: 24px; }
  .character-index .character-endcap { display: grid; gap: 30px; }
  .character-index .character-endcap .button { justify-self: start; }
}
@media (max-width: 600px) {
  .book-page, .character-index { --interior-gutter: 24px; }
  .book-page .hero { padding-top: 40px; gap: 34px; }
  .book-page .hero::before { background-size: auto 100%; background-position: 70% center; }
  .book-page .hero::after { bottom: 43px; width: 80px; }
  .book-page .hero-cover-stage { width: calc(100% - 28px); max-width: 360px; padding-bottom: 22px; }
  .book-page .interior-path { width: calc(100% - 40px); padding: 12px 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
  .book-page .interior-path a { font-size: 11px; }
  .book-page main > .inside.section-pad, .book-page main > .free-pages.section-pad, .book-page main > .problem-pet-section.section-pad, .book-page main > .faq.section-pad { padding-block: 58px; }
  .book-page .inside::before, .book-page .free-pages::after, .book-page .problem-pet-section::before { inset-inline: 9px; border-radius: 3px 28px 3px 3px; }
  .book-page .feature-card { grid-template-columns: 72px minmax(0,1fr); padding: 22px 18px; }
  .book-page .editorial-ribbon { margin-block: 47px 34px; gap: 33px; }
  .book-page .page-ribbon { margin-block: 36px 28px; gap: 26px; }
  .book-page .page-ribbon figcaption { min-height: 0; }
  .book-page .download-copy h2 { font-size: 42px; }
  .book-page .download-copy > p:not(.eyebrow,.microcopy) { font-size: 16px; }
  .book-page .download-copy .lead-form-inline { padding: 18px; }
  .book-page .mini-book-viewer { width: calc(100% - 8px); padding: 12px; justify-self: start; }
  .book-page .mini-book-viewer-head { gap: 8px; font-size: 9px; }
  .book-page .mini-book-viewer-foot { grid-template-columns: minmax(0,1fr); gap: 17px; padding-inline: 3px; }
  .book-page .mini-book-tabs { justify-content: space-between; }
  .book-page .mini-book-arrow-prev { left: -16px; }
  .book-page .mini-book-arrow-next { right: -16px; }
  .book-page main > .book-section.section-pad { padding-block: 48px; }
  .book-page main > .book-regulars.section-pad { padding-block: 54px 62px; gap: 32px; }
  .book-page .book-resident-link { gap: 14px; }
  .book-page .book-resident-link img { width: 58px; height: 58px; flex-shrink: 0; }
  .book-page .book-resident-link p { font-size: 13px; }
  .book-page .faq > .accordion { padding: 5px 18px; }
  .book-page .quiet-club { padding-block: 24px; }
  .character-index main > .character-files.section-pad { padding-block: 58px 65px; }
  .character-index .character-files::after { inset: 24px 9px; border-radius: 3px 30px 3px 3px; }
  .character-index .character-files-heading { gap: 22px; margin-bottom: 38px; }
  .character-index .dossier-grid { gap: 27px; }
  .character-index .character-dossier summary, .dossier-book-note { grid-template-columns: 92px minmax(0,1fr); gap: 17px; padding: 18px; }
  .character-index .character-dossier[data-symbol]::after { top: 25px; left: 25px; width: 24px; height: 24px; font-size: 12px; }
  .character-index .dossier-summary::before { margin-bottom: 12px; font-size: 8px; }
  .character-index .dossier-summary strong { font-size: 32px; }
  .character-index .dossier-summary em { font-size: 12px; min-height: 0; }
  .character-index .dossier-open { font-size: 9px; gap: 5px; margin-top: 14px; }
  .character-index .dossier-open b { flex-shrink: 0; }
  .character-index .dossier-body { padding: 19px; }
  .character-index .dossier-body dl { grid-template-columns: 1fr; }
  .dossier-book-note { min-height: 245px; }
  .dossier-book-note h3 { font-size: 25px; }
  .character-index main > .character-endcap.section-pad { padding-block: 48px 58px; }
  .character-index .character-endcap::before { inset-inline: 9px; }
}
@media (max-width: 380px) {
  .dossier-book-note { grid-template-columns: 72px minmax(0,1fr); gap: 14px; padding: 16px; }
  .dossier-book-note h3 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .book-page .feature-card, .book-page .editorial-ribbon figure, .book-regulars-art, .dossier-book-note > img, .character-index .character-dossier:hover { transform: none; }
}
