/* Дом памяти: spatial introduction, ordinary accessible reading thereafter. */
:root {
  --surface: #191815;
  --ink: #f1e8d7;
  --muted: #b8afa0;
  --accent: #e8d9bd;
  --line: #4c463c;
  --gutter: clamp(22px, 5.2vw, 100px);
  --shadow: 0 24px 50px #08070555;
}
html { scroll-padding-top: 40px; scrollbar-color: #849e95 #191815; }
body { background: var(--surface); }
::selection { background: #e8d9bd; color: #191815; }
h1, h2, h3 { font-family: var(--sans); font-weight: 500; }
h1, h2 { letter-spacing: -.04em; }
h2 { font-size: clamp(36px, 4.7vw, 68px); }
h1 span, h2 span { color: inherit; }
.site-header { position: absolute; inset: 0 0 auto; background: transparent; border: 0; height: 100px; }
.wordmark { font-family: var(--sans); font-size: 28px; font-weight: 600; letter-spacing: -.04em; }
.wordmark > svg { color: var(--ink); width: 27px; }
.brand-note { display: none; }
.site-header nav { margin-left: auto; font-size: 12px; gap: 28px; }
.header-login { margin-left: 28px; }
.button { border-radius: 0; }
.button.primary { color: #191815; background: #e8d9bd; border-color: #e8d9bd; }
.button.primary:hover { background: #fff0d7; border-color: #fff0d7; }
.button.outline { color: var(--ink); border-color: var(--line); }
.memory-journey { position: relative; isolation: isolate; }
.memory-stage { position: relative; min-height: 100svh; overflow: clip; background: #191815; }
#memory-world { position: absolute; inset: 0; z-index: 0; }
body:not(.memory-ready) #memory-world { bottom: auto; height: 100svh; }
#memory-world canvas { display: block; width: 100%; height: 100%; }
.memory-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, #191815f2 0%, #19181500 24%, #19181500 78%, #191815d9 100%), linear-gradient(90deg, #191815f2, #1918158c 36%, #19181500 68%); }
.memory-captions { position: relative; z-index: 2; pointer-events: none; padding: 180px var(--gutter) 100px; }
.memory-caption { max-width: 540px; padding: 0 0 100px; }
.memory-caption h1 { font-size: clamp(64px, 7.2vw, 96px); line-height: .99; font-weight: 500; margin: 0 0 34px; text-wrap: initial; }
.memory-caption h2 { font-size: clamp(44px, 5.7vw, 78px); line-height: 1.06; margin-bottom: 28px; }
.memory-caption p { max-width: 440px; font-size: clamp(14px, 1.2vw, 17px); line-height: 1.8; color: #ded5c6; }
.memory-caption a, .memory-caption button { pointer-events: auto; }
.memory-caption small { display: block; font-size: 11px; color: var(--muted); margin-top: 22px; max-width: 360px; }
.memory-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.memory-enter { font-size: 13px; gap: 15px; }
.memory-enter span { font-size: 21px; }
.memory-caption > .button { margin-top: 30px; }
.memory-story-link, .memory-artifact-links button { color: var(--ink); background: none; border: 0; border-bottom: 1px solid #8d8373; padding: 12px 0; min-height: 44px; font-size: 14px; }
.memory-story-link { margin-top: 24px; }
.memory-story-link span, .memory-artifact-links span { margin-left: 18px; color: var(--accent); }
.memory-small-icon { display: inline-block; width: 16px; height: 16px; vertical-align: middle; flex-shrink: 0; }
.memory-story-link .memory-small-icon, .memory-artifact-links .memory-small-icon { margin-left: 14px; }
.memory-artifact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 24px; }
[data-memory-open]:not(.memory-action-ready) { display: none; }
.memory-ready:not(.memory-simple) .memory-journey { height: 480svh; }
.memory-ready:not(.memory-simple) .memory-stage { height: 100svh; min-height: 620px; position: sticky; top: 0; }
.memory-ready:not(.memory-simple) .memory-captions { position: absolute; inset: 0; padding: 0; }
.memory-ready:not(.memory-simple) .memory-caption { position: absolute; left: var(--gutter); top: 50%; width: 44%; padding: 0; transform: translateY(-41%); visibility: hidden; opacity: 0; transition: opacity .3s ease-out; }
.memory-ready:not(.memory-simple) .memory-caption.is-current { visibility: visible; opacity: 1; }
.memory-controls { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 30px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.memory-chapters { display: flex; gap: 0; }
.memory-chapters button { position: relative; border: 0; border-top: 1px solid #a99a8077; background: transparent; color: #c6bdaf; min-width: 90px; min-height: 48px; padding: 15px 22px 0 0; text-align: left; font-size: 11px; }
.memory-chapters button[aria-current] { border-color: #e8d9bd; color: #e8d9bd; }
.memory-chapters button:hover { color: #fff; }
.memory-utility { display: flex; gap: 24px; align-items: center; font-size: 11px; }
.memory-utility button { min-height: 44px; padding: 8px 0; background: none; border: 0; color: var(--muted); }
.memory-utility a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.memory-progress { position: absolute; inset: auto 0 0; height: 2px; background: #82745e30; }
.memory-progress i { display: block; height: 100%; background: #e8d9bd; transform: scaleX(0); transform-origin: left; }
.memory-scene-note { position: absolute; right: var(--gutter); top: 104px; color: #dfd5c3; background: #191815b3; padding: 4px 7px; font-size: 10px; letter-spacing: .02em; }
.memory-stage:not([data-chapter="0"]) .memory-scene-note { visibility: hidden; }
.memory-static { position: absolute; inset: 140px 6% auto auto; width: 40%; height: 520px; perspective: 1100px; }
.memory-static-letter { position: absolute; width: 72%; right: 0; top: 0; padding: 35px; background: #ece0cb; color: #30291f; transform: rotate(9deg); box-shadow: var(--shadow); }
.memory-static-letter span, .memory-static-letter small { font: 11px var(--sans); }
.memory-static-letter p { font: 22px/1.7 var(--serif); margin: 45px 0; }
.memory-static-book { position: absolute; top: 230px; left: 0; width: 57%; min-height: 295px; padding: 30px; background: #493b2d; color: #ece0cb; border-left: 7px solid #2d251c; box-shadow: var(--shadow); transform: rotateY(-18deg) rotate(-6deg); }
.memory-static-book span { font: 10px var(--sans); }
.memory-static-book strong { display: block; margin: 35px 0; font: 36px/1.2 var(--serif); }
.memory-static-book small { font: 10px var(--sans); }
.memory-ready:not(.memory-simple) .memory-static { display: none; }
.memory-simple #memory-world { display: none; }
.memory-simple .memory-chapters { display: none; }
.memory-simple .memory-controls { justify-content: flex-end; }
.memory-simple .memory-scene-note, .memory-unavailable .memory-scene-note { display: none; }
.memory-detail { color-scheme: light; background: #eee5d5; color: #2c2822; border: 0; padding: 0; width: min(640px, calc(100% - 32px)); max-height: calc(100svh - 40px); box-shadow: 0 28px 80px #0008; }
.memory-detail::backdrop { background: #100e0bcc; }
.memory-detail-open { overflow: hidden; }
.memory-detail-close { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 30px; background: none; border: 0; border-bottom: 1px solid #c5b9a4; color: #2c2822; font-size: 12px; }
.memory-detail-close span { font-size: 24px; }
.memory-detail-content { padding: 36px 46px 48px; }
.memory-detail-meta { font-size: 12px; margin-bottom: 24px; }
.memory-detail h2 { font: 38px/1.2 var(--serif); letter-spacing: -.02em; margin-bottom: 32px; }
#memory-detail-text { font: 19px/1.8 Georgia, serif; }
#memory-detail-text p + p { margin-top: 22px; }
.memory-detail-note { font-size: 11px; line-height: 1.7; margin: 32px 0 22px; color: #6b6050; }
.memory-detail .text-link { font-size: 13px; }
.memory-detail :focus-visible { outline-color: #61533e; }
@media (min-width: 1600px) {
  .memory-ready:not(.memory-simple) .memory-caption { width: 40%; }
}
@media (max-width: 900px) {
  .site-header nav { gap: 14px; }
  .header-login { margin-left: 0; }
  .memory-utility { gap: 14px; }
  .memory-chapters button { min-width: 65px; padding-right: 12px; }
  .memory-caption h1 { font-size: 76px; }
  .memory-ready:not(.memory-simple) .memory-caption { width: 49%; }
  .memory-caption p { font-size: 14px; }
  .memory-actions { gap: 18px; }
  .memory-actions .button { padding: 13px 16px; gap: 15px; }
}
@media (max-width: 600px) {
  .site-header { height: 76px; gap: 16px; background: linear-gradient(180deg, #191815 65%, #19181500); }
  .wordmark { font-size: 23px; gap: 7px; }
  .wordmark > svg { width: 23px; }
  .header-login { margin-left: auto; font-size: 12px; }
  .header-login svg { display: none; }
  .menu-toggle { min-height: 44px; border: 0; padding: 8px 0 8px 12px; font-size: 12px; }
  .js-menu .site-header nav { position: absolute; top: 76px; left: 0; right: 0; padding: 24px var(--gutter); background: #191815; border-bottom: 1px solid var(--line); font-size: 15px; }
  .memory-ready:not(.memory-simple) .memory-journey { height: 420svh; }
  .memory-ready:not(.memory-simple) .memory-stage { min-height: 600px; }
  .memory-ready:not(.memory-simple) .memory-caption { left: var(--gutter); top: auto; bottom: 115px; width: calc(100% - 2 * var(--gutter)); max-width: none; transform: none; }
  .memory-caption h1 { font-size: clamp(54px, 14vw, 76px); margin-bottom: 18px; }
  .memory-caption h2 { font-size: 46px; margin-bottom: 20px; }
  .memory-caption p { font-size: 13px; line-height: 1.7; max-width: 330px; }
  .memory-actions { margin-top: 22px; gap: 22px; }
  .memory-actions .button { font-size: 12px; min-height: 48px; padding: 13px 14px; }
  .memory-enter { font-size: 12px; }
  .memory-shade { background: linear-gradient(0deg, #191815 8%, #191815e8 28%, #19181555 57%, #19181500 80%); }
  .memory-controls { bottom: 15px; display: block; }
  .memory-chapters { width: 100%; }
  .memory-chapters button { flex: 1; min-height: 38px; font-size: 10px; padding-top: 10px; }
  .memory-utility { justify-content: space-between; gap: 12px; font-size: 10px; }
  .memory-utility button, .memory-utility a { min-height: 44px; }
  .memory-scene-note { top: 93px; right: var(--gutter); writing-mode: horizontal-tb; font-size: 9px; }
  .memory-captions { padding-top: 390px; padding-bottom: 100px; }
  .memory-caption { padding-bottom: 90px; }
  .memory-static { top: 105px; width: 70%; right: 14%; height: 300px; }
  .memory-static-letter { padding: 18px; width: 65%; }
  .memory-static-letter p { font-size: 14px; margin: 20px 0; }
  .memory-static-letter span, .memory-static-letter small { font-size: 8px; }
  .memory-static-book { top: 90px; width: 50%; min-height: 200px; padding: 20px; }
  .memory-static-book strong { font-size: 26px; margin: 20px 0; }
  .memory-static-book small { font-size: 8px; }
  .memory-simple .memory-controls { bottom: 22px; }
  .memory-detail-content { padding: 28px 26px 36px; }
  .memory-detail h2 { font-size: 30px; }
  #memory-detail-text { font-size: 17px; }
  .book-section, .dedications, .making-section, .price-section { padding-top: 75px; padding-bottom: 70px; }
}
@media (max-height: 700px) and (min-width: 601px) {
  .memory-ready:not(.memory-simple) .memory-stage { min-height: 590px; }
  .memory-caption h1 { font-size: 76px; margin-bottom: 24px; }
  .memory-caption h2 { font-size: 62px; }
  .memory-caption p { font-size: 14px; }
  .memory-actions { margin-top: 22px; }
}
@media (max-width: 600px) and (max-height: 700px) {
  .memory-caption h2 { font-size: 36px; margin-bottom: 16px; }
  .memory-actions { gap: 14px; }
  .memory-actions .button { font-size: 11px; padding: 12px 11px; gap: 10px; }
  .memory-actions .button .arrow { width: 18px; height: 18px; }
  .memory-enter { gap: 8px; font-size: 11px; }
  .memory-artifact-links { flex-direction: row; flex-wrap: wrap; gap: 0 18px; margin-top: 16px; }
  .memory-artifact-links button { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* The gallery hands its objects to paper. Each chapter has its own composition. */
.book-section, .edition-choice, .process-panel { color-scheme: light; }
main > .section { --accent: #d2c0a0; }
main > .section h2 { font: clamp(38px,4.7vw,68px)/1.15 var(--serif); letter-spacing: -.04em; }
main > .section h2 em, .process-share h3 em { font-weight: inherit; font-style: normal; color: #aa9676; }
.book-section { display: grid; grid-template-columns: minmax(170px,.65fr) minmax(0,2.6fr); gap: 6%; padding-top: 100px; padding-bottom: 95px; background: #e9e0d0; color: #2c2822; --ink: #2c2822; --muted: #716555; --accent: #5d4e38; --line: #c7bba6; }
.reader-intro { padding-top: 6px; }
.book-section .reader-intro h2 { font-size: clamp(34px,3.45vw,50px); margin-bottom: 32px; }
.book-section .reader-intro h2 em { color: #826e4d; }
.reader-intro > p { font: 13px/1.8 var(--sans); margin: 24px 0; color: #716555; max-width: 260px; }
.reader-intro .small-note { font-size: 10px !important; }
.reader-intro .text-link { font-size: 11px; gap: 14px; }
.reading-desk { margin: 0; border: 0; padding: 0; min-width: 0; }
.demo-switcher { justify-content: flex-start; gap: 16px; margin: 0 0 22px; padding: 0; }
.demo-switcher button { padding: 10px 0; font-size: 11px; border: 0; border-bottom: 1px solid transparent; color: #716555; min-height: 44px; background: transparent; }
.demo-switcher button[aria-pressed="true"] { background: transparent; border-color: #2c2822; color: #2c2822; }
.demo-switcher button:hover:not([aria-pressed="true"]) { color: #2c2822; background: transparent; }
.demo-book-heading { margin: 0 0 18px; gap: 15px; }
.demo-book-heading h3 { font: 13px var(--sans); }
.demo-chapter-picker { font-size: 9px; color: #716555; }
.demo-chapter-picker select { color: #2c2822; font-size: 10px; padding: 7px 0; min-width: 125px; }
.book-stage { min-height: 500px; margin: 0 6px; filter: drop-shadow(0 18px 20px #33271824); }
.book-board { background: #41372b; border-radius: 2px; }
.book-leaf { min-height: 500px; padding: 22px 27px; --sheet: #f6efe2; --ink: #302c28; --muted: #69635c; --accent: #856b45; }
.book-leaf h3 { font-family: var(--serif); }
.book-leaf .paper-body > p { font-size: 16px; line-height: 1.8; }
.book-leaf .paper-body h3, .demo-title-page h3 { font-size: 28px; }
.demo-initial { font-size: 78px; color: #9b8158; }

.book-gesture { color: #716555; font-size: 8px; letter-spacing: .1em; margin-top: 16px; }
.reading-desk .sample-label { font-size: 9px; color: #716555; margin-top: 20px; }
.demo-full-link { font-size: 12px; }
.dedications { padding-top: 110px; padding-bottom: 110px; background: #191815; }
.dedication-layout { grid-template-columns: 1.15fr 1fr; gap: 8%; align-items: center; }
.dedication-scene { position: relative; min-height: 660px; overflow: hidden; background: #26231d; }
.dedication-scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(.55); }
.dedication-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,#171410f2 0%,#17141055 55%,#17141000 100%); }
.dedication-caption { position: absolute; z-index: 1; bottom: 40px; left: 38px; right: 30px; }
.dedication-caption h2 { font-size: clamp(34px,3.4vw,50px) !important; }
.dedication-caption h2 em { color: #e1cba4 !important; }
.dedication-caption > p:last-child { font-size: 12px; line-height: 1.7; color: #c7bca8; margin-top: 25px; max-width: 250px; }
.dedication-list > a { position: relative; padding: 32px 0; border-color: #4c463c; }
.dedication-list h3 { font: 27px/1.3 var(--serif); color: #e9dfcb; }
.dedication-list p { font-size: 12px; line-height: 1.8; max-width: 310px; color: #b8afa0; }
.dedication-list .arrow { width: 21px; color: #aa9676; transition: transform .25s; }
.dedication-list > a:hover .arrow { transform: translateX(6px); }
.dedication-list > a:hover h3 { color: #fff1d9; }
.making-section { background: #211e19; padding-top: 100px; padding-bottom: 85px; }
.process-intro { margin-bottom: 60px; }
.process-layout { display: grid; grid-template-columns: .85fr 1.4fr; gap: 10%; align-items: start; }
.making-section:not(.process-ready) .process-layout { display: block; }
.making-section:not(.process-ready) .process-panels { max-width: 760px; }
.process-steps { display: none; border-top: 1px solid #51493c; }
.process-ready .process-steps { display: block; }
.process-steps button { text-align: left; position: relative; display: grid; grid-template-columns: 35px 1fr; width: 100%; padding: 27px 0; border: 0; border-bottom: 1px solid #51493c; background: transparent; color: #b8afa0; transition: color .2s; }
.process-steps button > span { font: 10px/2.8 var(--sans); color: #b8a17a; }
.process-steps strong { font: 27px/1.4 var(--serif); font-weight: 400; }
.process-steps small { grid-column: 2; font: 12px/1.8 var(--sans); margin-top: 10px; max-width: 250px; }
.process-steps button[aria-selected="true"] { color: #f3e9d6; border-bottom-color: #d4bd94; }
.process-steps button[aria-selected="true"]::after { content: ''; position: absolute; right: 0; top: 42px; width: 6px; height: 6px; border-radius: 50%; background: #d4bd94; }
.process-panel { padding: clamp(30px,4vw,65px); min-height: 500px; background: #e9e0d0; color: #302a22; }
.process-panel + .process-panel { margin-top: 28px; }
.process-ready .process-panel + .process-panel { margin-top: 0; }
.process-panel[hidden] { display: none; }
.process-ready .process-panel:not([hidden]) { animation: process-arrive .35s ease-out; }
.process-panel .specimen-label { color: #79694f; font: 9px/1.5 var(--sans); letter-spacing: .09em; text-transform: uppercase; margin-bottom: 35px; }
.process-panel blockquote { margin: 0 0 26px; font: clamp(24px,2.5vw,34px)/1.45 var(--serif); letter-spacing: -.025em; }
.process-answer { font: 15px/1.9 var(--sans); color: #645744; max-width: 420px; }
.process-explanation { border-top: 1px solid #c6b79d; margin-top: 42px; padding-top: 25px; }
.process-explanation > span { font-size: 10px; letter-spacing: .03em; }
.process-explanation p { font-size: 12px; line-height: 1.8; color: #71614c; margin-top: 10px; max-width: 430px; }
.process-paper h3 { font: 34px/1.3 var(--serif); letter-spacing: -.03em; }
.process-byline { font-size: 10px; color: #79694f; margin: 15px 0 28px; }
.process-excerpt { font: 17px/1.8 Georgia,serif; margin-top: 16px; }
.process-share h3 { font: 40px/1.3 var(--serif); letter-spacing: -.035em; }
.delivery-formats { display: flex; flex-direction: column; gap: 12px; font-size: 12px; margin: 32px 0; }
.delivery-formats span::before { content: ''; display: inline-block; width: 20px; height: 1px; background: #a29175; vertical-align: middle; margin-right: 12px; }
.process-share .text-link { font-size: 12px; }
.process-start { margin-top: 45px; font-size: 12px; }
@keyframes process-arrive { from { opacity: .5; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.price-section { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; padding: 0; background: #e9e0d0; color: #302a22; --ink: #302a22; --muted: #71614c; --line: #c6b79d; --accent: #735c39; }
.edition-visual { position: relative; min-height: 780px; overflow: hidden; background: #171410; }
.edition-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% center; filter: saturate(.5) brightness(.8); }
.edition-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,#171410d9, #17141000 55%, #17141099); }
.edition-visual > div { position: relative; z-index: 1; color: #f3e9d6; padding: 65px var(--gutter); min-height: 100%; }
.edition-visual h2 { font-size: clamp(45px,5.4vw,80px) !important; }
.edition-visual h2 em { color: #d4bd94 !important; }
.edition-visual > div > p:last-child { position: absolute; bottom: 35px; font-size: 10px; line-height: 1.7; color: #d4c7b0; max-width: 250px; }
.edition-choice { padding: 65px clamp(30px,4.5vw,75px); }
.edition-description { font-size: 14px; line-height: 1.9; max-width: 430px; margin-bottom: 32px; }
.edition-options { margin: 0; padding: 0; border: 0; min-width: 0; }
.edition-options legend { font-size: 10px; margin-bottom: 16px; color: #71614c; }
.edition-options label { display: flex; align-items: center; gap: 14px; padding: 23px 0; border-top: 1px solid #c6b79d; cursor: pointer; }
.edition-options input { accent-color: #54452e; width: 17px; height: 17px; flex: none; }
.edition-options label > span { flex: 1; }
.edition-options strong { display: block; font: 24px/1.4 var(--serif); font-weight: 400; }
.edition-options small { display: block; font: 10px/1.6 var(--sans); color: #71614c; margin-top: 5px; max-width: 180px; }
.edition-options b { font: 18px var(--sans); white-space: nowrap; }
.edition-options label:has(input:checked) { border-top-color: #5b4a31; }
.edition-options label:has(input:checked) strong { color: #735c39; }
.edition-choice .button.primary { margin-top: 20px; width: 100%; justify-content: space-between; background: #302a22; border-color: #302a22; color: #f3e9d6; }
.edition-choice .button.primary:hover { background: #4b402f; }
.edition-fineprint { font-size: 10px; line-height: 1.75; color: #71614c; margin-top: 18px; }
.edition-self { display: flex; align-items: center; gap: 22px; margin-top: 35px; padding-top: 25px; border-top: 1px solid #c6b79d; }
.edition-self strong { font-size: 12px; font-weight: 500; }
.edition-self small { display: block; font-size: 10px; line-height: 1.7; margin-top: 8px; color: #71614c; }
.edition-self .text-link { font-size: 11px; gap: 10px; flex: none; }
.privacy-section { background: #191815; border: 0; padding-top: 85px; padding-bottom: 85px; gap: 10%; }
.privacy-section h2 { font-size: 34px !important; }
.privacy-section p { font-size: 13px; color: #b8afa0; }
.privacy-section .text-link { font-size: 11px; }
.faq { background: #191815; display: grid; grid-template-columns: .65fr 1.5fr; gap: 10%; border-top: 1px solid #4c463c; padding-top: 80px; padding-bottom: 90px; }
.faq-list summary { font-size: 16px; padding: 22px 0; }
.faq-list details { border-color: #4c463c; }
.faq-list details > p { font-size: 13px; line-height: 1.9; color: #b8afa0; }
.start-section { background: #242019; color: #f1e8d7; --ink: #f1e8d7; --muted: #b8afa0; --line: #5c503f; padding-top: 95px; padding-bottom: 90px; gap: 10%; }
.start-copy h2 { font-size: clamp(36px,4.4vw,62px) !important; }
.start-copy h2 span { color: #b9a17d; }
.start-copy .button { font-size: 12px; }
#lead-form { border-left: 1px solid #5c503f; padding-left: 45px; }
#lead-form input[type="email"], #lead-form select { background: #242019; border: 0; border-bottom: 1px solid #8b795f; border-radius: 0; padding: 14px 0; color: #f1e8d7; }
#lead-form input::placeholder { color: #b8afa0; }
.site-footer { background: #141310; }
.footer-brand { font: 54px var(--sans); letter-spacing: -.04em; }
@media (max-width: 1100px) {
  .book-section { grid-template-columns: 1fr; gap: 35px; }
  .reader-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px 40px; }
  .reader-intro h2 { grid-row: span 3; margin-bottom: 0 !important; }
  .reader-intro > p { margin: 5px 0; }
  .reader-intro .text-link { margin-top: 12px; }
  .dedication-scene { min-height: 620px; }
  .dedication-caption { left: 25px; right: 25px; }
  .edition-choice { padding: 50px 30px; }
  .edition-options strong { font-size: 21px; }
  .edition-options b { font-size: 16px; }
}
@media (max-width: 700px) {
  .book-section, .dedications, .making-section { padding-top: 65px; padding-bottom: 65px; }
  main > .section h2 { font-size: 37px; }
  .reader-intro { display: block; }
  .reader-intro h2 br { display: none; }
  .book-section .reader-intro h2 { font-size: 37px; max-width: 320px; }
  .reader-intro h2 em::before { content: ' '; }
  .reader-intro > p { margin: 20px 0; max-width: 300px; }
  .reader-intro .small-note { margin: 14px 0 !important; }
  .book-section { gap: 25px; }
  .demo-switcher { gap: 18px; flex-wrap: wrap; margin-bottom: 15px; }
  .demo-book-heading { align-items: center; }
  .book-stage, .book-leaf { min-height: 510px; }
  .book-stage { margin: 0 4px; }
  .book-leaf { padding: 22px 24px; }
  .book-leaf .paper-body > p { font-size: 16px; }
  .dedication-layout { grid-template-columns: 1fr; gap: 35px; }
  .dedication-scene { min-height: 540px; }
  .dedication-caption { bottom: 30px; left: 27px; }
  .dedication-caption h2 { font-size: 38px !important; }
  .dedication-list > a { padding: 26px 0; }
  .dedication-list h3 { font-size: 25px; }
  .process-intro { margin-bottom: 35px; }
  .process-layout { grid-template-columns: 1fr; gap: 30px; }
  .process-ready .process-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .process-ready .process-steps button { display: block; padding: 18px 8px 18px 0; }
  .process-steps button > span { display: block; line-height: 1; margin-bottom: 12px; }
  .process-steps strong { font-size: 17px; }
  .process-ready .process-steps small { display: none; }
  .process-steps button[aria-selected="true"]::after { display: none; }
  .process-panel { min-height: 490px; padding: 30px 26px; }
  .process-panel blockquote { font-size: 27px; }
  .process-share h3 { font-size: 34px; }
  .process-paper h3 { font-size: 29px; }
  .process-start { margin-top: 28px; }
  .price-section { grid-template-columns: 1fr; padding: 0; }
  .edition-visual { min-height: 530px; }
  .edition-visual > div { padding: 40px var(--gutter); min-height: 530px; }
  .edition-visual h2 { font-size: 58px !important; }
  .edition-choice { padding: 40px var(--gutter) 50px; }
  .edition-options label { gap: 12px; }
  .edition-options strong { font-size: 23px; }
  .edition-options b { font-size: 17px; }
  .privacy-section { grid-template-columns: 1fr; gap: 28px; padding-top: 60px; padding-bottom: 60px; }
  .privacy-section h2 { font-size: 30px !important; }
  .faq { grid-template-columns: 1fr; gap: 30px; padding-top: 55px; padding-bottom: 55px; }
  .faq h2 br { display: none; }
  .faq-list summary { font-size: 14px; }
  .start-section { grid-template-columns: 1fr; padding-top: 65px; padding-bottom: 55px; gap: 50px; }
  #lead-form { border-left: 0; padding-left: 0; border-top: 1px solid #5c503f; padding-top: 32px; }
  .footer-brand { font-size: 42px; }
}
@media (prefers-reduced-motion: reduce) { .process-ready .process-panel:not([hidden]) { animation: none; } }

.edition-title { font: 30px/1.3 var(--serif); margin-bottom: 24px; letter-spacing: -.03em; }

/* The same chapter voice follows the museum fragment into the reader. */
.chapter-voice { margin: 0 0 28px; min-width: 0; }
.chapter-voice label { display: block; font: 12px/1.6 var(--sans); color: #716555; margin-bottom: 10px; }
.chapter-voice audio { display: block; width: 100%; max-width: 420px; height: 44px; color-scheme: light; }

.chapter-voice[hidden], .audio-error[hidden] { display: none; }
.audio-error { font: 12px/1.6 var(--sans); margin-top: 10px; }
.memory-actions .memory-voice-start { margin: 0; padding: 12px 0; }

/* Contents belong to the book: an inline sheet, with no system select popup. */
.book-contents-toggle { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; min-height: 44px; padding: 10px 0 10px 16px; border: 0; border-bottom: 1px solid #9c8c72; border-radius: 0; background: transparent; color: #2c2822; font: 12px/1.5 var(--sans); cursor: pointer; }
.book-contents-toggle svg, .book-contents-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.book-contents-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.book-contents { padding: 26px 30px 18px; margin-bottom: 24px; background: #f5eddf; border: 1px solid #b9ae9b; color: #2c2822; }
.book-contents[hidden], .book-contents-toggle[hidden] { display: none; }
.book-contents-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 18px; }
.book-contents-heading h3 { margin: 0; font: 26px/1.3 var(--serif); }
.book-contents-close { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; color: #2c2822; background: transparent; border: 0; cursor: pointer; }
.book-contents ol { list-style: none; padding: 0 8px 0 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; max-height: min(480px, 60svh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #9c8c72 #eee5d5; }
.book-contents li { min-width: 0; border-top: 1px solid #d4c8b5; }
.book-contents li button { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: baseline; gap: 12px; width: 100%; min-height: 82px; padding: 17px 10px; background: transparent; border: 0; text-align: left; color: #2c2822; cursor: pointer; }
.contents-number { font: 11px/1.5 var(--sans); font-variant-numeric: tabular-nums; color: #716555; }
.book-contents strong { display: block; font: 18px/1.4 var(--serif); }
.book-contents small { display: block; margin-top: 5px; font: 11px/1.5 var(--sans); color: #716555; }
.book-contents li button:hover, .book-contents li button[aria-current="page"] { background: #e9decb; }
.book-contents li button[aria-current="page"] strong { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.book-contents :focus-visible, .book-contents-toggle:focus-visible { outline: 2px solid #716044; outline-offset: -2px; }
@media (max-width: 700px) {
  .demo-book-heading { flex-direction: row; align-items: center; gap: 12px; }
  .demo-book-heading > div { flex: 1; min-width: 0; }
  .demo-book-heading h3 { max-width: none; line-height: 1.5; }
  .book-contents-toggle { gap: 10px; padding-left: 0; font-size: 11px; }
  .book-contents { padding: 18px 18px 12px; margin-bottom: 20px; }
  .book-contents-heading { padding-bottom: 12px; }
  .book-contents-heading h3 { font-size: 24px; }
  .book-contents ol { grid-template-columns: 1fr; padding-right: 6px; }
  .book-contents li button { padding: 15px 6px; min-height: 76px; gap: 8px; }
  .book-contents strong { font-size: 17px; }
}

/* One quiet reader rail: page turns and the chapter voice share a baseline. */
.reader-toolbar { display: flex; align-items: center; gap: 26px; margin: 12px 6px 0; padding: 18px 0; border-bottom: 1px solid #b9ae9b; color: #302c28; }
.reader-toolbar .book-controls { flex-shrink: 0; margin: 0; gap: 6px; }
.reader-toolbar .book-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; color: #302c28; background: transparent; cursor: pointer; }
.reader-toolbar .book-controls button .arrow { display: block; width: 22px; height: 22px; margin: 0; }
.reader-toolbar .book-controls button:disabled { opacity: .3; cursor: default; }
.book-section .reader-toolbar .book-controls button:not(:disabled):hover { background: #d9cdb9; color: #302c28; }
.reader-toolbar .book-controls p { min-width: 60px; margin: 0; font-size: 12px; }
.reader-toolbar .book-controls p span { color: #716555; }
.book-voice { display: grid; grid-template-columns: 44px minmax(110px,1fr) minmax(120px,.8fr); align-items: center; gap: 16px; flex: 1; min-width: 0; padding-left: 26px; border-left: 1px solid #b9ae9b; }
.book-voice[hidden], #book-audio { display: none; }
.book-play { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #393127; border-radius: 50%; padding: 0; background: #393127; color: #f6efe2; cursor: pointer; }
.book-play:hover { background: #574630; border-color: #574630; }
.book-play svg { display: block; width: 21px; height: 21px; fill: currentColor; }
.book-play .pause-symbol, .book-play[data-playing="true"] .play-symbol { display: none; }
.book-play[data-playing="true"] .pause-symbol { display: block; }
.book-play[aria-busy="true"] { border-style: dashed; background: #716555; }
.book-recording { min-width: 0; }
#book-audio-label { margin: 0; font: 17px/1.35 var(--serif); overflow-wrap: anywhere; }
.book-narrator { margin: 6px 0 0; color: #716555; font: 11px/1.5 var(--sans); }
.book-timeline { min-width: 0; }
#book-seek { display: block; appearance: none; width: 100%; height: 24px; margin: 0; border: 0; padding: 0; border-radius: 0; background: transparent; cursor: pointer; accent-color: #574630; }
#book-seek::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right,#574630 var(--progress,0%),#b9ae9b var(--progress,0%)); }
#book-seek::-webkit-slider-thumb { appearance: none; width: 10px; height: 10px; margin-top: -4px; border: 0; border-radius: 50%; background: #574630; }
#book-seek::-moz-range-track { height: 2px; background: #b9ae9b; }
#book-seek::-moz-range-progress { height: 2px; background: #574630; }
#book-seek::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #574630; }
#book-seek:disabled { opacity: .55; cursor: default; }
.book-time { display: flex; justify-content: space-between; color: #716555; font: 10px/1.5 var(--sans); font-variant-numeric: tabular-nums; }
.book-voice .audio-error { grid-column: 1 / -1; margin: 0; }
.reader-toolbar button:focus-visible, #book-seek:focus-visible { outline: 2px solid #574630; outline-offset: 4px; }
@media (max-width: 1100px) {
 .reader-toolbar { gap: 16px; }
 .book-voice { gap: 12px; padding-left: 16px; grid-template-columns: 44px minmax(90px,1fr); }
 .book-timeline { grid-column: 2; margin-top: -10px; }
}
@media (max-width: 600px) {
 .reader-toolbar { flex-direction: column; align-items: stretch; gap: 16px; margin: 12px 6px 0; padding: 16px 0 10px; }
 .book-voice { order: -1; padding: 0 8px; border: 0; grid-template-columns: 44px minmax(0,1fr); column-gap: 16px; }
 .reader-toolbar .book-controls { justify-content: space-between; border-top: 1px solid #b9ae9b; padding-top: 10px; }
 .reader-toolbar:has(.book-voice[hidden]) .book-controls { border-top: 0; padding-top: 0; }
 #book-audio-label { font-size: 18px; }
}
