:root {
  color-scheme: light;
  --paper: #f7f3e9;
  --surface: #fffdf7;
  --ink: #1d2d24;
  --muted: #514a3e;
  --deep: #172b22;
  --gold: #d5ad68;
  --gold-ink: #765222;
  --line: #d6c9b4;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font: 400 1.25rem/1.08 var(--serif); }
h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); letter-spacing: -.045em; }
h3 { font-size: 1.55rem; }
a { color: inherit; text-underline-offset: .22em; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #ab6f1f; outline-offset: 4px; }
.skip { position: fixed; inset: .65rem auto auto .65rem; z-index: 10; padding: .65rem 1rem; background: var(--surface); }
.skip:not(:focus) { clip-path: inset(50%); }
.shell { width: min(71rem, calc(100% - 3rem)); margin-inline: auto; }
.section { padding-block: clamp(3.1rem, 7vw, 5.85rem); }
.label { color: var(--gold-ink); font-size: .81rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.masthead { border-bottom: 1px solid var(--line); background: var(--paper); }
.masthead-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.masthead-inner { min-height: 6rem; }
.wordmark { display: block; flex: 0 0 auto; border-radius: .18rem; }
.wordmark img { inline-size: 7.25rem; block-size: 5.6rem; object-fit: cover; border-radius: inherit; }
.masthead nav { display: flex; gap: clamp(.9rem, 3vw, 2.2rem); align-items: center; }
.masthead nav a { padding: .55rem 0; color: var(--ink); font-size: .94rem; font-weight: 600; text-decoration: none; }
.masthead nav [aria-current] { color: var(--gold-ink); box-shadow: inset 0 -1px #9a712f; }
.masthead nav a:hover, .text-link:hover, .shelf-copy h3 a:hover, .shelf-copy h2 a:hover { color: var(--gold-ink); }

.button { display: inline-flex; width: fit-content; min-height: 3rem; align-items: center; justify-content: center; padding: .64rem 1.18rem; border: 1px solid var(--deep); border-radius: .22rem; background: var(--deep); color: white; font-weight: 650; line-height: 1.3; text-align: center; text-decoration: none; transition: background-color .18s, color .18s, border-color .18s; }
.button:hover { background: #304837; border-color: #304837; }
.button-gold { background: var(--gold); border-color: var(--gold); color: #18231b; }
.button-gold:hover { background: #e4c38a; border-color: #e4c38a; }
.button-outline { background: transparent; color: var(--deep); }
.button-outline:hover { background: #e6decd; }
.button:disabled { background: #e8dfcf; border-color: #cdbd9f; color: #4b4233; cursor: default; }
.text-link { font-size: .96rem; font-weight: 650; }

.library-hero { isolation: isolate; position: relative; display: grid; min-height: clamp(34rem, 51vw, 40rem); align-items: center; background: var(--deep); color: var(--paper); overflow: hidden; }
.library-photo { position: absolute; inset: 0 0 0 auto; z-index: -2; width: 78%; height: 100%; object-fit: cover; object-position: 57% 47%; }
.library-hero::before { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #14291e 1%, #14291efa 25%, #14291ebb 47%, #17261d40 76%), linear-gradient(0deg, #131d17a6, transparent 42%); content: ""; }
.library-inner { padding-block: 4rem; }
.library-copy { display: grid; justify-items: start; gap: 1.25rem; margin-bottom: 1rem; }
.library-hero .label { color: #e3ba77; }
.library-hero h1 { max-width: 15ch; font-size: clamp(3.5rem, 7vw, 6.2rem); letter-spacing: -.065em; }
.library-hero h1 em { color: #e4c490; }
.library-copy > p:not(.label) { max-width: 33ch; font-size: 1.08rem; color: #f0e8da; }
.photo-credit { position: absolute; right: 1rem; bottom: .65rem; color: #f1e8d4; font-size: .78rem; }

.section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.5rem; margin-bottom: 1.5rem; }
.shelf-card { display: grid; grid-template-columns: minmax(12rem, .8fr) 1.35fr; overflow: hidden; border: 1px solid var(--line); border-radius: .4rem; background: var(--surface); }
.shelf-art { display: grid; place-items: center; padding: 2.1rem; background: radial-gradient(ellipse at 50% 38%, #f6eddb, #d5c4a6); border-inline-end: 1px solid var(--line); }
.shelf-art img { width: min(100%, 13.55rem); box-shadow: 0 16px 30px #32231646; border-radius: .12rem .24rem .24rem .12rem; transition: transform .18s; }
.shelf-art:hover img { transform: translateY(-4px); }
.shelf-copy { align-self: center; padding: clamp(1.5rem, 5vw, 4rem); }
.shelf-copy h2, .shelf-copy h3 { margin-top: .45rem; font-size: clamp(2.35rem, 5vw, 3.75rem); letter-spacing: -.045em; }
.shelf-copy :is(h2, h3) a { text-decoration: none; }
.book-subtitle { margin: .25rem 0 .95rem; color: var(--gold-ink); font: italic 1.28rem/1.35 var(--serif); }
.shelf-copy p:not(.label, .book-subtitle, .price-before, .price-now) { color: var(--muted); }
.book-meta { margin: .75rem 0 1.2rem; font-size: .89rem; }
.shelf-actions, .book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.15rem; }
.price { color: var(--deep); font: 700 1.6rem/1.1 var(--serif); white-space: nowrap; }
.price-pair { display: grid; justify-items: start; gap: .1rem; font-size: .88rem; font-weight: 650; }
.price-before { color: #a52732; }
.price-now, .price-now .price { color: #14613d; }
.price-now { display: flex; align-items: baseline; gap: .35rem; }
.catalog-main { min-height: 62vh; }
.catalog-main > h1 { font-size: clamp(3rem, 6vw, 5.1rem); letter-spacing: -.06em; margin-bottom: 1rem; }
.catalog-tools { display: grid; max-width: 24rem; gap: .35rem; margin: 0 0 1.5rem; }
.catalog-tools label { font-size: .9rem; font-weight: 650; }
.catalog-tools input { min-height: 3rem; padding: .5rem .75rem; border: 1px solid #9d8e73; border-radius: .2rem; background: var(--surface); color: var(--ink); }
.catalog-status { padding: 1rem 0; }

.book-hero { background: linear-gradient(125deg, #fbf7eb, #e8dfcb); border-bottom: 1px solid var(--line); padding-block: 1.15rem clamp(3rem, 7vw, 6rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem .62rem; padding: .35rem 0 clamp(1.6rem, 4vw, 3.1rem); color: var(--muted); font-size: .89rem; }
.book-hero-grid { display: grid; grid-template-columns: 1.25fr .83fr; align-items: center; gap: clamp(1.8rem, 6vw, 5.6rem); }
.book-lead h1 { margin: .55rem 0 1rem; font-size: clamp(3.5rem, 7.3vw, 6.3rem); letter-spacing: -.067em; }
.book-lead h1 em { display: block; max-width: 18ch; margin-top: .45rem; color: var(--gold-ink); font-size: .49em; letter-spacing: -.035em; }
.book-lead > p:not(.label) { max-width: 51ch; color: var(--muted); font-size: 1.05rem; }
.book-lead > p.book-hook { margin-bottom: .55rem; color: var(--ink); font: 700 clamp(1.2rem, 2.1vw, 1.52rem)/1.35 var(--serif); }
.facts { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.15rem 0 1.25rem; padding: 0; list-style: none; }
.facts li { border: 1px solid #b5a386; padding: .22rem .53rem; border-radius: .17rem; font-size: .85rem; }
.cover-frame { margin: 0; padding: clamp(1.1rem, 4vw, 2.55rem); border: 1px solid #8f7350; background: radial-gradient(ellipse at center, #e0cfaa, #b59b70); box-shadow: inset 0 0 0 5px #ece1cc, inset 0 0 0 6px #a08761; }
.cover-frame img { width: min(100%, 20rem); margin: auto; border-radius: .12rem .25rem .25rem .12rem; box-shadow: 0 18px 25px #30241771; }
.story-band { padding-block: clamp(2.35rem, 5vw, 4.15rem); background: var(--deep); color: var(--paper); }
.story-band h2 { max-width: 31ch; font-size: clamp(1.85rem, 4.1vw, 3.3rem); }
.story-band h2 em { color: #efd19a; }
.story-band p, .section-intro { max-width: 69ch; margin-top: .8rem; }
.story-band p { color: #efe6d6; }
.section-intro { color: var(--muted); }
.reading-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 0; padding: 0; list-style: none; }
.reading-path li { position: relative; min-width: 0; padding: 1rem; border-top: 1px solid #a7834c; background: var(--surface); }
.reading-path li:not(:last-child)::after { position: absolute; top: 1.5rem; right: -1.26rem; width: .55rem; height: .55rem; border-top: 2px solid var(--gold-ink); border-right: 2px solid var(--gold-ink); transform: rotate(45deg); content: ""; }
.reading-path p { margin-top: .55rem; color: var(--muted); }
.access-section { background: #ece4d5; border-top: 1px solid var(--line); }
.samples-section { background: #ece4d5; border-block: 1px solid var(--line); }
.samples-section .section-heading { margin-bottom: .4rem; }
.samples-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; color: var(--muted); font-size: .9rem; }
.samples-arrows, .reader-tools { display: flex; align-items: center; gap: .5rem; }
.samples { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(9.5rem, 19vw, 15rem); gap: 1rem; padding: .35rem .25rem .9rem; margin-top: .55rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-color: #877657 transparent; }
.sample { display: grid; align-content: start; gap: .48rem; scroll-snap-align: start; font-weight: 650; font-size: .86rem; text-decoration: none; }
.sample img { width: 100%; aspect-ratio: 2/3; object-fit: contain; border: 1px solid #c1b092; background: white; }
.sample:hover { text-decoration: underline; }
.sample[aria-haspopup] { cursor: zoom-in; }
.samples.is-dragging { scroll-snap-type: none; }
.samples.is-dragging, .samples.is-dragging .sample { cursor: grabbing; user-select: none; }
.sample:focus-visible { outline-offset: -3px; }
.sample-dialog { position: fixed; inset: 0; width: min(65rem, calc(100% - 2.5rem)); max-width: none; height: min(58.75rem, calc(100dvh - 2rem)); max-height: none; margin: auto; padding: 0; border: 1px solid #d5ad6880; border-radius: 1rem; background: var(--deep); color: var(--paper); box-shadow: 0 30px 110px #0009; overflow: hidden; }
.sample-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.sample-dialog::backdrop { background: #111d16de; backdrop-filter: blur(6px); }
.reader-header, .reader-footer { display: flex; align-items: center; justify-content: space-between; gap: .85rem; padding: .8rem 1.3rem; }
.reader-header { border-bottom: 1px solid #d5ad684a; }
.reader-header h2 { font: 650 1rem/1.3 var(--sans); letter-spacing: normal; }
.reader-icon, .reader-zoom { display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; border: 1px solid #d5ad6880; background: #273f32; color: var(--paper); cursor: pointer; touch-action: manipulation; }
.reader-icon { padding: 0; border-radius: 50%; font: 400 1.8rem/1 var(--sans); }
.reader-zoom { padding: .25rem .65rem; border-radius: .45rem; font-size: .875rem; }
.reader-icon:hover, .reader-zoom:hover { background: #3a5646; }
.reader-icon:disabled { opacity: .42; cursor: default; }
.sample-dialog :is(button, a):focus-visible { outline-color: #f0c983; outline-offset: 3px; }
.reader-stage { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 1rem 1.6rem; background: #111f18; scrollbar-color: #917a55 transparent; }
.reader-stage:not(.is-offer, .is-zoomed) { touch-action: pan-y pinch-zoom; cursor: grab; }
.reader-stage.is-dragging { cursor: grabbing; user-select: none; }
.reader-page { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; gap: .45rem; }
.reader-image-area { min-width: 0; min-height: 0; display: grid; place-items: center; }
.reader-image-area img { width: 100%; height: 100%; min-height: 0; object-fit: contain; user-select: none; }
.is-zoomed .reader-image-area { display: block; overflow: auto; }
.is-zoomed .reader-image-area img { width: auto; height: auto; min-width: 100%; max-width: none; margin-inline: auto; }
.reader-page figcaption { color: #ded9c9; font-size: .85rem; line-height: 1.3; text-align: center; }
.reader-footer { border-top: 1px solid #d5ad684a; }
.reader-actions { display: grid; justify-items: center; gap: .35rem; width: min(100%, 34rem); min-width: 0; text-align: center; }
.reader-counter { color: #e3dbc9; font-size: .78rem; }
.reader-actions .button { width: 100%; padding-inline: .5rem; border-radius: .45rem; cursor: pointer; }
.reader-offer-link { display: grid; align-items: center; min-height: 2.75rem; color: #f4d8a5; font-size: .9rem; }
.reader-stage.is-offer { background: #ece4d5; }
.reader-stage .offer-card { max-width: 38rem; margin-inline: auto; }

.offer-section { background: var(--deep); color: var(--paper); }
.offer-layout { display: grid; grid-template-columns: 1fr minmax(19rem, .88fr); gap: clamp(2.1rem, 7vw, 5.7rem); align-items: center; }
.offer-intro h2 { color: #f4d8a5; }
.offer-intro p { margin-top: .9rem; max-width: 42ch; }
.offer-card { min-width: 0; padding: clamp(1.25rem, 4vw, 2.25rem); border: 1px solid #cbb084; border-radius: .4rem; background: var(--surface); color: var(--ink); box-shadow: 0 12px 40px #0d150e4d; }
.offer-header { display: flex; gap: .9rem; align-items: center; }
.offer-header img { width: 4.75rem; border-radius: .12rem; }
.offer-header h3 { font-size: 2rem; }
.offer-header p { margin-top: .2rem; color: var(--muted); }
.included { display: grid; gap: .43rem; margin: 1.35rem 0; padding: 1.1rem 0; border-block: 1px solid var(--line); list-style: none; }
.included li { position: relative; padding-left: 1.4rem; }
.included li::before { position: absolute; inset: .1rem auto auto .02rem; content: "✓"; color: #765222; font-weight: 750; }
.offer-price { margin-bottom: 1.05rem; }
.offer-price .price { font-size: 2.58rem; }
.offer-card .button { width: 100%; }
.purchase-note { margin-top: .65rem; color: var(--muted); text-align: center; font-size: .9rem; }
.guarantee-section { padding: clamp(1.6rem, 4vw, 2.8rem) 0; background: var(--deep); color: var(--paper); }
.guarantee-box { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 2rem; }
.guarantee-box h2 { color: #f4d8a5; font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.guarantee-box p { max-width: 54ch; }
.faq h2 { margin-bottom: 1.25rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; cursor: pointer; padding: .9rem 2rem .9rem 0; list-style: none; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; right: .33rem; top: 1.21rem; width: .55rem; height: .55rem; border-right: 2px solid var(--gold-ink); border-bottom: 2px solid var(--gold-ink); transform: rotate(45deg); content: ""; }
.faq details[open] summary::after { top: 1.42rem; transform: rotate(225deg); }
.faq details p { max-width: 70ch; padding-bottom: 1rem; color: var(--muted); }
.closing-section { padding-block: clamp(2.5rem, 6vw, 4.3rem); background: var(--deep); color: var(--paper); text-align: center; }
.closing-section .book-actions { justify-content: center; margin-top: 1.15rem; }
.closing-section .button-outline { border-color: #d5ad68; color: var(--paper); }
.closing-section .button-outline:hover { background: #304837; }
.site-footer { background: #132119; color: #f2eadb; }
.footer-inner { min-height: 6rem; padding-block: 1.1rem; flex-wrap: wrap; }
.footer-inner .wordmark img { inline-size: 6rem; block-size: 4.65rem; }
.footer-inner p, .footer-inner > a:not(.wordmark) { font-size: .9rem; }

@media (max-width: 720px) {
  .shell { width: calc(100% - 2rem); }
  .library-photo { width: 100%; object-position: 60% center; }
  .library-hero::before { background: linear-gradient(90deg, #14291ef2 3%, #14291eb7 56%, #14291e65), linear-gradient(0deg, #131d17bb, transparent 60%); }
  .library-hero { min-height: 32rem; }
  .library-hero h1 { font-size: clamp(2.86rem, 9.6vw, 4.5rem); }
  .book-hero-grid, .offer-layout, .reading-path { grid-template-columns: 1fr; }
  .reading-path { gap: 1.4rem; }
  .reading-path li:not(:last-child)::after { top: auto; right: auto; bottom: -.85rem; left: calc(50% - .275rem); transform: rotate(135deg); }
  .cover-frame { width: min(100%, 21rem); justify-self: center; }
  .samples { grid-auto-columns: max(8.4rem, 41vw); }
  .sample-dialog { width: calc(100% - .75rem); height: calc(100dvh - .75rem); border-radius: .75rem; }
  .reader-header, .reader-footer { gap: .55rem; padding: .55rem .65rem; }
  .reader-header h2, .reader-actions .button { font-size: .875rem; }
  .reader-stage { padding: .65rem; }
  .reader-page figcaption { font-size: .78rem; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .sample-dialog { height: calc(100dvh - .75rem); }
  .reader-header, .reader-footer, .reader-stage { padding-block: .3rem; }
  .reader-actions { display: flex; justify-content: center; align-items: center; gap: .75rem; }
  .reader-actions .button { width: auto; min-height: 2.75rem; }
  .reader-counter { white-space: nowrap; }
}
@media (max-width: 540px) {
  .masthead-inner { gap: .7rem; min-height: 4.6rem; }
  .masthead nav { gap: .8rem; }
  .masthead nav a { font-size: .85rem; }
  .masthead .wordmark img { inline-size: 5.5rem; block-size: 4.25rem; }
  .shelf-card { grid-template-columns: 1fr; }
  .shelf-art { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 1.45rem; }
  .shelf-art img { width: min(100%, 11.6rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
