:root {
    --brown: #624329;
    --deep: #48311f;
    --gold: #a57b48;
    --muted: #7c6854;
    --cream: #faf5eb;
    --paper: #f2e7d3;
    --line: #ddcdb5;
    --white: #fffdf8;
    --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--brown); background: var(--cream); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; font-size: 16px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
button { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
p, h1, h2, h3, blockquote { margin: 0; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 40px, 1120px); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -90px; padding: 12px; background: var(--deep); color: white; z-index: 60; }
.skip-link:focus { top: 12px; }
.demo-bar { padding: 5px 12px; text-align: center; background: var(--brown); color: #f8edda; font-size: 10px; letter-spacing: .08em; }
.demo-bar span { letter-spacing: 0; }
.site-header { position: sticky; top: 0; background: #faf5ebf5; z-index: 30; border-bottom: 1px solid #d7c5a981; backdrop-filter: blur(10px); }
.header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.wordmark { font-size: 23px; font-weight: 750; letter-spacing: -.9px; line-height: 1; white-space: nowrap; }
.wordmark span { font-weight: 350; margin-left: 4px; }
.wordmark i { font-style: normal; color: var(--gold); }
.header-inner nav { display: none; }
.header-cta { font-size: 13px; font-weight: 600; padding-block: 10px; }
.header-cta span { margin-left: 8px; color: var(--gold); }
.paper-surface { background-color: var(--paper); background-image: url('../images/proposal-paper.webp'); background-size: cover; background-position: center; }
.hero { padding-top: 45px; }
.hero-copy { max-width: 590px; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .13em; line-height: 1.8; text-transform: uppercase; margin-bottom: 19px; }
.hero .eyebrow { display: flex; align-items: center; gap: 9px; font-size: 9px; }
.tiny-line { height: 1px; width: 24px; background: var(--gold); }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.18; letter-spacing: -1.2px; }
h1 { font-size: clamp(38px, 10vw, 52px); margin-bottom: 20px; }
h1 > span, h1 > em { display: block; }
h1 .title-number { font-size: 78px; line-height: .92; letter-spacing: -5px; margin-bottom: 19px; }
.title-number small { font-size: 22px; letter-spacing: .13em; vertical-align: middle; margin-left: 5px; }
h1 em, h2 em { color: var(--gold); font-weight: 400; }
.hero-description { font-family: var(--serif); font-size: 17px; line-height: 1.65; max-width: 450px; }
.category { font-size: 11px; color: var(--muted); margin: 18px 0 24px; }
.category span { margin: 0 8px; }
.button { display: inline-flex; width: 100%; min-height: 54px; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 20px; background: var(--brown); border: 1px solid var(--brown); border-radius: 4px; color: #fffbf3; font-size: 15px; font-weight: 600; line-height: 1.5; transition: background .18s, transform .18s; }
.button span { font-size: 21px; font-weight: 400; }
.button:hover { background: var(--deep); transform: translateY(-1px); }
.hero-explore { display: flex; justify-content: center; gap: 14px; align-items: center; min-height: 48px; font-size: 13px; margin-top: 6px; }
.hero-note { border-top: 1px solid #b89c7670; padding: 25px 0 0; margin-top: 25px; position: relative; }
.note-label { font-size: 9px; letter-spacing: .12em; font-weight: 650; }
.quote-mark { font-family: var(--serif); font-size: 70px; line-height: 1; display: block; height: 49px; color: var(--gold); margin-top: 18px; }
.hero-note blockquote { font-family: var(--serif); font-size: 25px; line-height: 1.45; max-width: 360px; }
.note-rule { display: block; height: 1px; width: 38px; background: var(--gold); margin: 21px 0 15px; }
.hero-note p { font-size: 13px; color: var(--muted); }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 36px; padding: 20px 0; border-top: 1px solid #b89c7660; font-size: 8px; font-weight: 650; letter-spacing: .05em; }
.hero-foot span:nth-child(even) { color: var(--gold); }
.section { padding-block: 60px; }
.section-heading { margin-bottom: 30px; }
h2 { font-size: 33px; margin-bottom: 19px; }
.section-heading > p:not(.eyebrow) { color: var(--muted); font-size: 15px; }
.recognition-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.recognition-grid article { padding: 23px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 30px 1fr; gap: 8px 10px; }
.item-index { font-family: var(--serif); font-size: 18px; color: var(--gold); grid-row: 1 / 3; }
h3 { font-size: 17px; font-weight: 650; line-height: 1.45; }
.recognition-grid p { grid-column: 2; font-size: 14px; color: var(--muted); }
.recognition-close { margin-top: 25px; font-family: var(--serif); font-size: 21px; line-height: 1.55; }
.about-section { padding-block: 55px; background: #efe3cf; border-block: 1px solid #e2d2b7; }
.about-section .section-heading { margin-bottom: 22px; }
.section-number { display: none; }
.about-copy > p { font-size: 15px; margin-bottom: 20px; }
.about-copy .lead { font-family: var(--serif); font-size: 21px; line-height: 1.65; }
.about-copy .lead strong { font-weight: 600; }
.editorial-note { display: flex; gap: 14px; background: #faf5eb9c; padding: 19px; border-left: 2px solid var(--gold); margin: 28px 0 21px; font-size: 14px; }
.editorial-note > span { color: var(--gold); }
.text-link { display: inline-flex; gap: 22px; align-items: center; border-bottom: 1px solid var(--gold); padding: 7px 0; font-size: 14px; font-weight: 600; }
.centered { text-align: center; }
.value-list { border-top: 1px solid var(--line); }
.value-list article { padding: 26px 0; border-bottom: 1px solid var(--line); }
.value-list article > span { color: var(--gold); font-size: 10px; font-weight: 750; letter-spacing: .12em; display: block; margin-bottom: 10px; }
.value-list h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; margin-bottom: 10px; }
.value-list p { font-size: 15px; color: var(--muted); }
.audience-section { background: var(--brown); color: #fbf2e2; padding-block: 55px; }
.audience-section .eyebrow { color: #ddbc85; }
.audience-section h2 em { color: #e1c28f; }
.audience-grid { display: grid; gap: 27px; margin: 34px 0; }
.audience-grid article { border-top: 1px solid #dec49f4d; padding-top: 24px; }
.audience-icon { display: inline-block; font-size: 12px; font-family: var(--serif); color: #d6b480; margin-bottom: 14px; }
.audience-grid h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; margin-bottom: 11px; }
.audience-grid p { color: #e2cfb9; font-size: 15px; }
.button-light { background: #f2e4cc; color: var(--brown); border-color: #f2e4cc; }
.button-light:hover { background: #fff6e6; }
.quote-section { padding-block: 65px; text-align: center; }
.quote-section blockquote { font-family: var(--serif); font-size: 26px; line-height: 1.55; max-width: 780px; margin: auto; }
.quote-section blockquote em { color: #946d3f; }
.quote-attribution { display: block; font-size: 11px; letter-spacing: .22em; margin-top: 27px; }
.order-intro > p:not(.eyebrow) { font-size: 15px; color: var(--muted); }
.order-detail { border-block: 1px solid var(--line); padding-block: 23px; margin: 26px 0; }
.order-detail > span { font-size: 10px; letter-spacing: .12em; color: var(--gold); font-weight: 700; }
.order-detail h3 { font-family: var(--serif); font-size: 26px; font-weight: 400; margin: 10px 0; text-transform: capitalize; }
.order-detail p { font-size: 12px; color: var(--muted); }
.order-steps { display: grid; gap: 14px; padding: 0; list-style: none; font-size: 14px; }
.order-steps li { display: flex; gap: 12px; align-items: center; }
.order-steps span { width: 25px; height: 25px; border: 1px solid #baa17e; border-radius: 50%; display: inline-grid; place-items: center; font-family: var(--serif); font-size: 13px; flex-shrink: 0; }
.order-intro .price-note { font-size: 13px!important; margin: 24px 0 30px; border-left: 2px solid #c5ac85; padding-left: 15px; }
.order-panel { padding: 25px 20px; border: 1px solid #dcc6a6; background: var(--white); border-radius: 6px; box-shadow: 0 12px 45px #65452e09; }
.order-panel .eyebrow { font-size: 9px; margin-bottom: 12px; color: var(--gold); }
.order-panel h3 { font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.25; margin-bottom: 13px; }
.form-intro { font-size: 13px; color: var(--muted); margin-bottom: 25px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 550; }
.field label > span { color: #946737; }
.field small { color: var(--muted); font-weight: 400; font-size: 12px; }
.field input, .field textarea, .field select { display: block; width: 100%; min-height: 50px; border: 1px solid var(--line); background: #fffefa; border-radius: 4px; padding: 12px; font-size: 16px; color: var(--deep); }
.field textarea { resize: vertical; min-height: 83px; }
.field input::placeholder, .field textarea::placeholder { color: #9a8b79; font-size: 14px; }
.field [aria-invalid=true] { border-color: #a83424; }
.consent { display: flex; gap: 11px; margin: 22px 0; align-items: flex-start; font-size: 13px; color: var(--muted); }
.consent input { flex-shrink: 0; height: 18px; width: 18px; margin: 3px 0 0; accent-color: var(--brown); }
.form-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 13px; }
.error-summary { background: #fff0e8; color: #8c3525; border: 1px solid #e5b6a4; padding: 16px; border-radius: 4px; margin-bottom: 20px; font-size: 14px; }
.error-summary ul { margin: 8px 0 0; padding-left: 20px; }
.success-message { text-align: center; padding: 30px 0; overflow-wrap: anywhere; }
.success-check { width: 54px; height: 54px; display: inline-grid; place-items: center; background: var(--paper); border-radius: 50%; font-size: 28px; margin-bottom: 20px; }
.success-message p { font-size: 14px; margin: 15px 0; color: var(--muted); }
.faq-section { padding-block: 20px 60px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 0; list-style: none; cursor: pointer; font-size: 15px; line-height: 1.6; font-weight: 550; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:after { content: '+'; color: var(--gold); font-size: 24px; font-weight: 300; }
.faq-list details[open] summary:after { content: '−'; }
.faq-list p { padding: 0 15px 24px 0; color: var(--muted); font-size: 14px; }
footer { border-top: 1px solid var(--line); background: #f0e6d7; }
.footer-main { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 30px 0; }
.footer-main p { flex-basis: 100%; font-family: var(--serif); font-size: 18px; }
.footer-main > a:last-child { font-size: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 30px; border-top: 1px solid var(--line); padding: 20px 0 114px; font-size: 11px; color: var(--muted); }
.mobile-order { position: fixed; bottom: 0; inset-inline: 0; z-index: 40; background: #fffaf2fa; backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px #62432909; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: transform .2s, visibility .2s; }
.mobile-order > div { min-width: 0; }
.mobile-order > div > span { display: block; color: var(--gold); font-size: 9px; letter-spacing: .1em; font-weight: 750; }
.mobile-order strong { font-size: 12px; font-weight: 550; display: block; }
.mobile-order a { background: var(--brown); color: #fff7e9; padding: 12px 14px; border-radius: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.mobile-order a span { margin-left: 8px; }
.mobile-order.is-hidden { transform: translateY(110%); visibility: hidden; }
@media (min-width: 600px) {
    .container { width: min(100% - 64px, 1120px); }
    .hero-copy .button { width: auto; gap: 35px; }
    .hero-explore { justify-content: flex-start; }
    h1 { font-size: 54px; }
    h2 { font-size: 39px; }
    .recognition-grid { grid-template-columns: 1fr 1fr; column-gap: 30px; }
    .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .order-panel { padding: 32px; }
    .hero-foot { font-size: 10px; gap: 26px; }
    .value-list article { display: grid; grid-template-columns: 135px 1fr; gap: 25px; }
    .value-list article > span { padding-top: 7px; }
    .quote-section blockquote { font-size: 34px; }
    .button-light { width: auto; min-width: 300px; margin-inline: auto; display: flex; }
}
@media (min-width: 960px) {
    .header-inner { height: 82px; }
    .wordmark { font-size: 27px; }
    .header-inner nav { display: flex; gap: 34px; font-size: 13px; }
    .header-cta { padding: 9px 16px; border: 1px solid #bfa583; border-radius: 3px; }
    .hero { padding-top: 68px; }
    .hero-layout { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 90px; }
    .hero .eyebrow { font-size: 10px; margin-bottom: 25px; }
    h1 { font-size: 62px; margin-bottom: 23px; }
    h1 .title-number { font-size: 98px; margin-bottom: 22px; }
    .title-number small { font-size: 25px; }
    .hero-description { font-size: 19px; }
    .hero-note { border: 1px solid #b89c766b; border-top: 3px solid #b19162; padding: 34px; margin: 0; background: #fff9ed52; }
    .hero-note blockquote { font-size: 34px; line-height: 1.4; }
    .hero-note p { font-size: 14px; }
    .note-label { font-size: 10px; }
    .hero-foot { padding-block: 24px; margin-top: 54px; gap: 40px; font-size: 11px; }
    .section { padding-block: 88px; }
    h2 { font-size: 44px; }
    .section-heading { max-width: 650px; margin-bottom: 42px; }
    .section-heading.centered { margin-inline: auto; }
    .recognition { display: grid; grid-template-columns: 1fr 1.05fr; gap: 0 60px; }
    .recognition-grid { column-gap: 24px; }
    .recognition-grid article { display: block; padding: 25px 0; }
    .recognition-grid h3 { margin: 12px 0 9px; font-size: 16px; }
    .recognition-close { grid-column: 1/-1; text-align: center; margin-top: 43px; font-size: 24px; }
    .about-section { padding-block: 72px; }
    .about-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; }
    .section-number { display: block; font-family: var(--serif); font-size: 140px; line-height: 1; color: #b79b722e; margin-top: 24px; }
    .about-copy .lead { font-size: 25px; }
    .value-list { max-width: 830px; margin-inline: auto; }
    .value-list article { padding-block: 29px; grid-template-columns: 170px 1fr; }
    .value-list h3 { font-size: 28px; }
    .value-list p { font-size: 16px; }
    .audience-section { padding-block: 76px; }
    .audience-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 44px; }
    .audience-grid h3 { font-size: 26px; }
    .quote-section { padding-block: 94px; }
    .quote-section blockquote { font-size: 37px; }
    .order-section { display: grid; grid-template-columns: 1fr 1.15fr; gap: 85px; }
    .order-intro { padding-top: 15px; }
    .order-panel { padding: 34px; }
    .order-panel h3 { font-size: 30px; }
    .faq-section { display: grid; grid-template-columns: 1fr 1.15fr; gap: 85px; padding-bottom: 80px; }
    .faq-section h2 { font-size: 36px; }
    .footer-main { flex-wrap: nowrap; padding-block: 37px; }
    .footer-main p { flex-basis: auto; margin: 0 auto 0 24px; }
    .footer-bottom { justify-content: space-between; padding-bottom: 22px; }
    .mobile-order { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *:before, *:after { transition: none!important; }
}

/* Purchase and clearly labelled editorial feedback. */
.book-price { font-size: 29px; font-weight: 650; letter-spacing: -.5px; margin: 0 0 18px; }
.book-price small { font-size: 14px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.feedback-section { border-bottom: 1px solid var(--line); }
.feedback-disclosure { max-width: 540px; margin-inline: auto; font-size: 13px!important; }
.feedback-grid { display: grid; gap: 18px; }
.feedback-card { background: var(--white); border: 1px solid var(--line); border-radius: 5px; padding: 25px; display: flex; flex-direction: column; }
.sample-badge { align-self: flex-start; font-size: 10px; font-weight: 650; letter-spacing: .1em; background: var(--paper); padding: 4px 8px; }
.feedback-quote { font-family: var(--serif); color: var(--gold); font-size: 60px; height: 53px; margin-top: 14px; line-height: 1; }
.feedback-card blockquote { font-family: var(--serif); font-size: 19px; line-height: 1.65; flex: 1; }
.feedback-person { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 23px; }
.feedback-person > span { display: grid; place-items: center; width: 38px; height: 38px; background: var(--paper); border-radius: 50%; font-family: var(--serif); font-size: 14px; }
.feedback-person strong { display: block; font-size: 13px; }
.feedback-person small { font-size: 11px; color: var(--muted); }
.feedback-cta { margin-top: 25px; font-size: 13px; }
.purchase-summary { padding: 18px; border: 1px solid var(--line); background: var(--cream); border-radius: 4px; margin: 22px 0; }
.purchase-summary > span { font-size: 10px; color: var(--gold); letter-spacing: .1em; }
.purchase-summary > strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 400; line-height: 1.5; margin-top: 6px; }
.quantity-row, .total-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 17px; font-size: 14px; }
.quantity-row select { font: inherit; font-size: 16px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); background: var(--white); color: var(--brown); border-radius: 4px; }
.quantity-row select:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.total-row { border-top: 1px solid var(--line); margin-top: 17px; }
.total-row output { font-size: 22px; font-weight: 650; white-space: nowrap; }
.purchase-summary > small { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); text-align: right; }
@media (min-width: 960px) { .feedback-grid { grid-template-columns: repeat(3,1fr); gap: 22px; } }

.book-video-section { display: grid; gap: 30px; align-items: center; border-bottom: 1px solid var(--line); }
.book-video-copy h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); font-weight: 400; line-height: 1.2; margin: 15px 0 22px; }
.book-video-copy h2 em { color: var(--gold); }
.book-video-copy > p { max-width: 480px; }
.video-duration { color: var(--muted); font-size: 13px; margin: 18px 0 24px; }
.book-video-frame { width: min(100%, 330px); aspect-ratio: 9 / 16; margin: auto; background: #231b16; border-radius: 12px; overflow: hidden; position: relative; }
.book-video-trigger { border: 0; padding: 0; display: block; width: 100%; height: 100%; cursor: pointer; background: #231b16; color: white; font: inherit; position: relative; }
.book-video-trigger img { display: block; width: 100%; height: 100%; object-fit: cover; }
.book-video-trigger::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%,rgba(0,0,0,.65)); }
.video-play-icon { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid #fff; border-radius: 50%; background: #624329e6; font-size: 25px; }
.video-play-label { position: absolute; z-index: 1; bottom: 25px; left: 0; right: 0; text-align: center; font-size: 14px; }
.book-video-frame video { display: block; width: 100%; height: 100%; }
.book-video-frame [hidden] { display: none; }
.book-video-trigger:focus-visible { outline: 4px solid var(--gold); outline-offset: -4px; }
.video-status { min-height: 24px; text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }
@media(min-width: 760px) { .book-video-section { grid-template-columns: 1.2fr 1fr; gap: 60px; } }

.order-countdown { padding: 22px; margin: 24px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); }
.order-countdown > .eyebrow { margin-bottom: 16px; }
.countdown-digits { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; max-width: 240px; }
.countdown-digits > div { text-align: center; }
.countdown-digits strong { display: block; background: var(--brown); color: var(--white); padding: 14px 4px; border-radius: 6px; font-size: 34px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.countdown-digits span { display: block; margin-top: 7px; font-size: 12px; color: var(--muted); }
.order-countdown [hidden], .order-countdown[hidden] { display: none; }
.countdown-expired { font-size: 14px; }
.countdown-note { font-size: 12px; color: var(--muted); margin: 16px 0 0; line-height: 1.6; }

.sale-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 22px; }
.sale-price del { color: var(--muted); font-size: 18px; }
.sale-price strong { font-size: clamp(30px, 6vw, 38px); color: var(--brown); line-height: 1.2; }
.sale-price strong span { font-size: 13px; font-weight: 400; margin-left: 6px; }
.sale-saving { display: block; flex-basis: 100%; font-size: 13px; color: var(--gold); font-weight: 600; }

.policy-links { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-block: 20px; font-size: 12px; }

#feedback .feedback-card:nth-child(3n + 2) { background: var(--cream); }
#feedback .feedback-card:nth-child(3n) { border-top: 3px solid var(--gold); }
#feedback .feedback-card:nth-child(3) blockquote, #feedback .feedback-card:nth-child(6) blockquote { font-family: inherit; font-size: 17px; }

/* Task 202: persistent book navigation. */
html { scroll-padding-top: var(--book-header-offset, 90px); }
.book-brand { padding-block: 16px 8px; }
.header-inner { height: auto; min-height: 70px; padding-block: 13px; justify-content: center; }
.header-inner .book-actions { display: flex; align-items: center; gap: 12px; }
.book-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 750; line-height: 1.25; text-align: center; box-shadow: 0 4px 0 #48311f18; animation: book-action-bounce 2.4s ease-in-out infinite; }
.book-action-feedback { background: var(--white); color: var(--brown); }
.book-action-details { background: var(--paper); color: var(--deep); animation-delay: .15s; }
.book-action-buy { background: var(--brown); border-color: var(--brown); color: var(--white); animation-delay: .3s; }
.book-action:hover, .book-action:focus-visible { animation-play-state: paused; box-shadow: 0 4px 0 #48311f30; }
@keyframes book-action-bounce { 0%, 40%, 100% { transform: translateY(0); } 15% { transform: translateY(-4px); } 28% { transform: translateY(-1px); } }
@media (max-width: 639px) {
    .header-inner { gap: 13px; padding-block: 13px; }
    .book-brand .wordmark { font-size: 20px; }
    .header-inner .book-actions { width: 100%; gap: 7px; }
    .book-action { padding: 10px 8px; font-size: 11px; flex: 1; gap: 4px; }
    .book-action-details { flex: 1.65; }
    .book-action-buy { white-space: nowrap; }
    .book-action-buy span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .book-action { animation: none; }
}

/* Supplied book cover, reader photos and sample pages (task 193). */
.book-hero-photo { margin: 24px auto 0; width: min(100%, 350px); }
.book-hero-photo img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 18px 45px #48311f30; }
.book-hero-photo figcaption { margin-top: 12px; text-align: center; font-size: 12px; color: var(--muted); }
.reader-quotes { display: grid; gap: 20px; }
.reader-label { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 650; }
.reader-photos { margin-top: 40px; }
.reader-photos > h3 { margin-bottom: 20px; }
.book-photo-grid, .sample-grid { display: grid; gap: 20px; }
.book-photo { display: block; min-width: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); }
.book-photo img { width: 100%; height: auto; }
.book-photo > span { display: block; padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.book-photo small { display: block; color: var(--muted); margin-top: 6px; }
.photo-set summary { padding: 14px 0; cursor: pointer; font-size: 13px; font-weight: 650; }
.photo-set-more { display: grid; gap: 14px; }
.sample-grid { margin-bottom: 24px; }
.photo-viewer { width: min(100% - 24px, 1100px); max-height: 92dvh; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--brown); }
.photo-viewer::backdrop { background: #20160ee6; }
.photo-viewer img { width: 100%; height: auto; }
.photo-viewer form { position: sticky; top: 0; display: flex; justify-content: flex-end; margin-bottom: 10px; }
.photo-close { padding: 10px 18px; background: var(--brown); color: white; border: 0; border-radius: 999px; min-height: 44px; }
body:has(.photo-viewer[open]) { overflow: hidden; }
@media (min-width: 640px) { .reader-quotes, .sample-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .book-photo-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 960px) { .book-hero-photo { margin: 0 auto; width: min(100%, 340px); } .hero-layout { align-items: center; } .sample-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.review-threads { display:grid; gap:24px; max-width:850px; margin:auto; }
.review-thread { background:var(--white); border:1px solid var(--line); padding:26px; border-radius:10px; }
.review-thread header { display:flex; align-items:center; gap:14px; margin-bottom:18px; }
.review-avatar { display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background:var(--paper); color:var(--brown); }
.review-thread h3 { font-size:16px; margin:0 0 4px; }
.review-thread header div>span { font-size:11px; color:var(--muted); }
.review-thread blockquote { font-size:15px; line-height:1.85; margin:0; }
.review-attachments { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.review-attachments a { width:calc((100% - 20px)/3); max-width:140px; }
.review-attachments img { display:block; width:100%; height:auto; aspect-ratio:3/4; object-fit:cover; border-radius:5px; }
.store-reply { background:var(--cream); border-left:3px solid var(--gold); padding:15px 18px; margin-top:20px; font-size:13px; line-height:1.8; }
.store-reply > strong { font-weight:650; }.store-reply p { margin:12px 0 0; }
.portrait-gallery { display:grid; grid-template-columns:repeat(2,1fr); gap:15px; }.portrait-gallery img { width:100%; height:auto; aspect-ratio:3/4; object-fit:cover; border-radius:6px; }.more-opinions { margin:35px 0 20px; }
@media(min-width:960px){.portrait-gallery{grid-template-columns:repeat(4,1fr)}}

.review-stars { color:#ad741e; font-size:17px; letter-spacing:2px; line-height:1.5; margin:4px 0; }

.customer-reviews{max-width:850px;margin:32px auto;scroll-margin-top:90px}.customer-reviews>h3{margin-bottom:20px}.review-form{padding:clamp(18px,4vw,32px);background:#fff;border:1px solid #e5ddd1;border-radius:20px;margin-top:24px;display:grid;gap:12px}.review-form input:not([type=radio]),.review-form textarea{width:100%;font:inherit;padding:12px;border:1px solid #d2c6b4;border-radius:8px;background:#fff}.review-form textarea{resize:vertical}.review-form .star-picker{padding:0;border:0;min-width:0}.star-picker legend{margin-bottom:12px}.star-options{display:flex;gap:8px}.star-options label{flex:1;position:relative}.star-options input{position:absolute;opacity:0}.star-options span:not(.sr-only){display:block;text-align:center;padding:12px 4px;border:1px solid #d2c6b4;border-radius:8px;cursor:pointer;color:#825816}.star-options input:checked+span{background:#fff0c2;border-color:#946919;font-weight:700}.star-options input:focus-visible+span{outline:3px solid #694a29;outline-offset:3px}.review-help{font-size:13px;color:#6e6559}.review-notice{background:#edf6e7;padding:14px;border-radius:8px}.review-errors{color:#9d2929}.review-body{white-space:pre-wrap;overflow-wrap:anywhere}.review-pagination{display:flex;justify-content:space-between;margin-top:16px}.review-form button{justify-self:start}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.bundle-note { font-size: 14px; line-height: 1.7; color: var(--brown); margin: 12px 0 20px; }
.purchase-offer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 12px 0; font-size: 14px; }
.purchase-offer del { color: var(--muted); }
.purchase-summary .purchase-offer strong { font-size: 20px; margin: 0; }
.purchase-offer > span { font-weight: 700; color: var(--brown); }

.review-avatar { object-fit: cover; flex-shrink: 0; }
.address-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.address-row .field { min-width: 0; }
.address-row select { width: 100%; text-overflow: ellipsis; }
#address-selects[hidden], #address-fallback[hidden] { display: none; }
@media (max-width: 480px) { .address-row { grid-template-columns: 1fr; } }
