/* Quiet Pages — storefront styles.
   Palette: deep ink & charcoal, warm paper & cream, restrained gold. Type: Cormorant Garamond + Inter. */
/* Self-hosted fonts (SIL Open Font License — see assets/fonts/OFL-*.txt) */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/cormorant-garamond-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); }
:root {
  --ink: #0f0e0c;
  --char: #1a1916;
  --char-2: #24221e;
  --char-3: #34312b;
  --paper: #fbf8f2;
  --cream: #f4eee2;
  --cream-2: #ebe3d3;
  --line: #e2d9c6;
  --line-dark: #3a362f;
  --text: #1c1a16;
  --muted: #645d50;
  --muted-light: #b9b0a0;
  --gold: #c6a35a;
  --gold-2: #d9bd7f;
  --gold-ink: #7d5f24; /* gold text on light backgrounds (AA contrast) */
  --ok: #2f6b45;
  --bad: #9b3328;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 14px;
  --r-sm: 8px;
  --shadow-book: 0 1px 1px rgba(0,0,0,.08), 0 10px 24px -8px rgba(20,14,4,.35), 0 30px 60px -30px rgba(20,14,4,.45);
  --ease: cubic-bezier(.2,.7,.2,1);
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
code { font: 500 .88em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--cream); padding: .1em .35em; border-radius: 5px; overflow-wrap: anywhere; }
mark.ph { background: #fbe7b8; color: #5a3d00; padding: 0 .2em; border-radius: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
main:focus { outline: none; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.section { padding: 84px 0; }
.section-tight { padding: 44px 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--char); color: #f3ede1; }
@media (max-width: 700px) { .section { padding: 60px 0; } .section-tight { padding: 32px 0; } }

/* ---------- type ---------- */
.display, .h2, .h3, .h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.08; margin: 0 0 .5em; color: inherit; }
.display { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
.h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.h4 { font-size: 1.35rem; }
.light { color: #fbf6ea; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { font: 600 .74rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 .9rem; }
.eyebrow-gold { color: var(--gold-2); }
.muted { color: var(--muted); }
.muted-light { color: var(--muted-light); }
.small { font-size: .88rem; }
.fine { font-size: .86rem; color: var(--muted); margin-top: 1.4rem; }
.prose p, .prose li { max-width: 68ch; }
.prose h2 { font: 600 1.7rem/1.2 var(--serif); margin: 2rem 0 .6rem; }
.prose h3 { font: 600 1.35rem/1.2 var(--serif); margin: 1.6rem 0 .4rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .3rem 0; }
.prose-lg { font-size: 1.08rem; }
.prose-lg p:first-child::first-letter { font-family: var(--serif); font-size: 3.4em; float: left; line-height: .82; margin: .06em .1em 0 0; color: var(--gold-ink); }
.note { border-left: 3px solid var(--gold); background: var(--cream); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 1rem 0; font-size: .95rem; }

/* ---------- buttons ---------- */
.btn { --bg: var(--ink); --fg: #fbf6ea; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--bg); background: var(--bg); color: var(--fg); font: 600 .95rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s, border-color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(0,0,0,.45); }
.btn:active { transform: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-gold { --bg: var(--gold); --fg: var(--ink); }
.btn-gold:hover { --bg: var(--gold-2); }
.btn-dark { --bg: var(--ink); }
.btn-outline { --bg: transparent; --fg: var(--text); border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.btn-outline:hover { border-color: var(--text); }
.btn-ghost-light { --bg: transparent; --fg: #f4ecdc; border-color: rgba(244,236,220,.35); }
.btn-ghost-light:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 1rem; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .86rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 1.6rem 0 0; }
.btn-row.center { justify-content: center; }
.link-arrow { font-weight: 600; font-size: .95rem; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--gold); border-radius: 50%; font: 600 1.25rem/1 var(--serif); color: var(--gold-ink); }
.brand-name { font: 600 1.55rem/1 var(--serif); letter-spacing: .01em; }
.brand-light .brand-mark { color: var(--gold-2); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"]:not(.btn) { background: var(--cream); }
.site-nav .nav-cta { margin-left: 10px; color: var(--ink); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: transparent; border-radius: 50%; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 1.5px; background: var(--text); margin: 0 auto; position: relative; transition: transform .25s; content: ""; }
.bars::before { position: absolute; top: -6px; } .bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0,0,0,.25); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 12px; font-size: 1.02rem; }
  .site-nav .nav-cta { margin: 8px 0 0; }
}
.preview-banner { background: #fbe7b8; color: #4a3200; text-align: center; padding: 10px 16px; font-size: .9rem; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: #f3ecdf; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 78% 40%, rgba(198,163,90,.16), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(198,163,90,.5), transparent); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero-title { color: #fbf6ea; max-width: 13em; }
.hero-text { font-size: 1.14rem; color: #cfc6b5; max-width: 34em; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 2rem 0 0; font-size: .9rem; color: #b8ae9c; }
.hero-points li { display: flex; align-items: center; gap: 9px; }
.hero-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.fan { position: relative; height: 470px; max-width: 470px; margin-left: auto; }
.fan-item { position: absolute; width: 56%; top: 50%; left: 50%; transition: transform .6s var(--ease); }
.fan-item img, .fan-item .cover { border-radius: 4px 10px 10px 4px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04); }
.fan-1 .fan-0 { transform: translate(-50%, -50%) rotate(-2deg); }
.fan-2 .fan-0 { transform: translate(-30%, -50%) rotate(4deg); z-index: 2; } .fan-2 .fan-1 { transform: translate(-78%, -46%) rotate(-7deg); }
.fan-3 .fan-0 { transform: translate(-50%, -52%); z-index: 3; }
.fan-3 .fan-1 { transform: translate(-102%, -44%) rotate(-9deg) scale(.9); z-index: 2; }
.fan-3 .fan-2 { transform: translate(2%, -44%) rotate(9deg) scale(.9); z-index: 1; }
.hero-art:hover .fan-3 .fan-1 { transform: translate(-110%, -45%) rotate(-11deg) scale(.9); }
.hero-art:hover .fan-3 .fan-2 { transform: translate(10%, -45%) rotate(11deg) scale(.9); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 64px; gap: 36px; }
  .hero-art { order: -1; }
  .fan { height: 300px; margin: 0 auto; max-width: 380px; }
  .fan-item { width: 46%; }
}

/* ---------- sections ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head .h2 { margin: 0; }
.center-head { justify-content: center; text-align: center; }
.page-head { padding: 72px 0 24px; background: linear-gradient(var(--cream), var(--paper)); border-bottom: 1px solid var(--line); }
.page-head .display { margin-bottom: .3em; }

/* ---------- book cards ---------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 28px; }
@media (max-width: 560px) { .book-grid { grid-template-columns: 1fr 1fr; gap: 30px 14px; } }
.book-card { display: flex; flex-direction: column; min-width: 0; }
.book-card-cover { display: grid; place-items: center; background: var(--cream); border-radius: var(--r); padding: 30px 26px; aspect-ratio: 4 / 4.6; transition: background .3s; }
.section-alt .book-card-cover { background: var(--paper); }
.book-card-cover .cover { max-height: 100%; width: auto; border-radius: 3px 7px 7px 3px; box-shadow: var(--shadow-book); transition: transform .45s var(--ease), box-shadow .45s; }
.book-card:hover .book-card-cover .cover { transform: translateY(-6px) rotate(-1deg); }
.book-card-body { padding: 18px 4px 0; display: flex; flex-direction: column; flex: 1; }
.book-card-body .eyebrow { margin-bottom: .45rem; font-size: .68rem; }
.book-card-title { font: 600 1.42rem/1.15 var(--serif); margin: 0 0 .3rem; }
.book-card-title a { text-decoration: none; }
.book-card-title a:hover { color: var(--gold-ink); }
.book-card-by { margin: 0 0 .5rem; font-size: .86rem; color: var(--muted); }
.book-card-desc { margin: 0 0 1rem; font-size: .92rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.book-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .book-card-cover { padding: 18px 14px; } .book-card-title { font-size: 1.2rem; } .book-card-desc { -webkit-line-clamp: 2; font-size: .85rem; } .book-card-foot .btn { width: 100%; } }
.cover-empty { display: grid; place-items: center; aspect-ratio: 2/3; width: 70%; background: var(--char); color: var(--gold-2); font-family: var(--serif); text-align: center; padding: 12px; border-radius: 4px; }
.price { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-now { font: 600 1.2rem/1 var(--sans); }
.price-was { color: var(--muted); font-size: .9rem; }
.price-off { font-size: .74rem; font-weight: 600; color: var(--ok); background: #e3efe5; padding: 3px 8px; border-radius: 999px; }
.price-lg .price-now { font-size: 2rem; font-family: var(--serif); font-weight: 700; }

/* ---------- spotlight / categories / features ---------- */
.spotlight-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.spotlight-cover { display: block; max-width: 330px; margin: 0 auto; }
.cover-lift { border-radius: 4px 10px 10px 4px; box-shadow: 0 40px 70px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.05); }
.spotlight-sub { font: italic 500 1.35rem/1.35 var(--serif); color: var(--gold-2); margin: -.2rem 0 1rem; }
.spotlight-text { color: #cdc4b3; font-size: 1.08rem; max-width: 36em; }
.spotlight-price { color: #f3ecdf; margin-left: 8px; }
@media (max-width: 800px) { .spotlight-grid { grid-template-columns: 1fr; gap: 36px; } .spotlight-cover { max-width: 230px; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 1rem 0 0; }
.chip { display: inline-flex; gap: 8px; align-items: center; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .92rem; background: var(--paper); transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--gold); background: var(--cream); }
.chip span { color: var(--muted); font-size: .8rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; }
.feature-n { font: 600 .78rem/1 var(--sans); letter-spacing: .18em; color: var(--gold-ink); }
.feature h3 { font: 600 1.45rem/1.15 var(--serif); margin: .9rem 0 .5rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- authors ---------- */
.author-list { display: grid; gap: 22px; }
.author-panel { display: grid; grid-template-columns: 112px 1fr; gap: 26px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.section-alt .author-panel { background: #fffdf8; }
.avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--cream), 0 0 0 5px var(--gold); }
.avatar-letter { display: grid; place-items: center; background: var(--char); color: var(--gold-2); font: 600 2.6rem/1 var(--serif); }
.author-name { font: 600 1.6rem/1.1 var(--serif); margin: 0 0 .2rem; }
.author-role { margin: 0 0 .8rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600; }
.author-text p { margin: 0 0 .7rem; }
.author-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: .92rem; }
.author-more { font-size: .92rem; color: var(--muted); }
@media (max-width: 560px) { .author-panel { grid-template-columns: 1fr; padding: 22px; gap: 14px; } .avatar { width: 84px; height: 84px; } .avatar-letter { font-size: 2rem; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font: 600 1.28rem/1.3 var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--gold-ink); border-bottom: 1.5px solid var(--gold-ink); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details > :not(summary) { padding: 0 0 20px; color: var(--muted); }
.faq details p { margin: 0 0 .6rem; }

/* ---------- catalogue ---------- */
.filters { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 18px; box-shadow: 0 20px 40px -32px rgba(0,0,0,.4); }
.filters .grow { flex: 1 1 240px; }
.result-count { color: var(--muted); font-size: .92rem; margin: 0 0 32px; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }
.pager { display: flex; gap: 22px; justify-content: center; align-items: center; margin-top: 50px; font-size: .95rem; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.filters .field { margin: 0; }
label, legend { font-weight: 600; font-size: .88rem; }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=search], input[type=password], input[type=number], select, textarea { width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; color: var(--text); background: #fffdf9; border: 1px solid #d6ccb7; border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,163,90,.22); }
.hint { margin: 0; font-size: .82rem; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; margin: 8px 0 16px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.form-error { background: #f8e4df; color: #6e1f16; border: 1px solid #ecc2b9; border-radius: 10px; padding: 12px 14px; font-size: .94rem; }
.form-ok { background: #e2efe5; color: #1f4a2f; border: 1px solid #bdd9c5; border-radius: 10px; padding: 12px 14px; }
.card-form { background: #fffdf8; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; max-width: 560px; }

/* ---------- book page ---------- */
.book-hero { background: var(--ink); color: #f3ecdf; position: relative; overflow: hidden; }
.book-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 70% at 75% 50%, rgba(198,163,90,.15), transparent 70%); }
.book-hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 80px; }
.crumbs { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: #a89f8e; margin-bottom: 18px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--gold-2); }
.book-title { color: #fbf6ea; margin-bottom: .2em; }
.book-subtitle { font: italic 500 1.5rem/1.3 var(--serif); color: var(--gold-2); margin: 0 0 .8rem; }
.book-by { font-size: .95rem; color: #c3b9a6; margin: 0 0 1.4rem; }
.book-headline { font-size: 1.15rem; color: #e2d9c8; max-width: 34em; }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230f0e0c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.ticks-light li { color: #e6ddcc; }
.ticks-grid { grid-template-columns: 1fr 1fr; gap: 18px 30px; }
@media (max-width: 700px) { .ticks-grid { grid-template-columns: 1fr; } }
.buy-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark); }
.buy-price { display: flex; flex-direction: column; gap: 4px; }
.price-note { font-size: .78rem; color: #a99f8c; letter-spacing: .06em; text-transform: uppercase; }
.book-hero .price-was { color: #a99f8c; }
.delivery-note { font-size: .86rem; color: #a99f8c; margin-top: 14px; }
.mockup { position: relative; max-width: 380px; margin: 0 auto; perspective: 1200px; }
.mockup .cover { transform: rotateY(-8deg) rotateX(2deg); transform-origin: left center; transition: transform .6s var(--ease); }
.mockup:hover .cover { transform: rotateY(-2deg); }
.mockup::after { content: ""; position: absolute; left: 10%; right: 6%; bottom: -26px; height: 30px; background: radial-gradient(ellipse at center, rgba(0,0,0,.6), transparent 70%); filter: blur(6px); z-index: -1; }
@media (max-width: 860px) { .book-hero-grid { grid-template-columns: 1fr; padding-top: 34px; padding-bottom: 54px; gap: 34px; } .book-hero-art { order: -1; } .mockup { max-width: 250px; } .buy-row .btn { width: 100%; } }
.toc { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; }
.toc li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.toc-n { font: 600 .9rem/1.6 var(--sans); color: var(--gold-ink); min-width: 1.8em; }
@media (max-width: 700px) { .toc { columns: 1; } }
.for-box { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--r); padding: 26px 28px; }
.sample-box { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.sample-box .h2 { margin-bottom: .2em; }
.details { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.details div { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.details dt { color: var(--muted); font-size: .92rem; }
.details dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 640px) { .details { grid-template-columns: 1fr; } }
.disclaimer { font-size: .9rem; color: var(--muted); background: var(--cream); padding: 14px 18px; border-radius: 10px; margin-top: 24px; }
.buy-card { display: grid; grid-template-columns: 150px 1fr; gap: 36px; align-items: center; background: var(--char); color: #f3ecdf; border-radius: 20px; padding: 36px 40px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); position: relative; overflow: hidden; }
.buy-card::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border: 1px solid rgba(198,163,90,.25); border-radius: 50%; }
.buy-card-cover img { border-radius: 3px 7px 7px 3px; box-shadow: 0 24px 40px -20px rgba(0,0,0,.8); }
.buy-card-price { margin: .2rem 0 1.2rem; }
.secure { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted-light); margin: 14px 0 0; }
.lock { display: inline-block; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 7V5a4 4 0 118 0v2h1v8H3V7h1zm2 0h4V5a2 2 0 10-4 0v2z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 7V5a4 4 0 118 0v2h1v8H3V7h1zm2 0h4V5a2 2 0 10-4 0v2z'/%3E%3C/svg%3E") center/contain no-repeat; }
@media (max-width: 600px) { .buy-card { grid-template-columns: 1fr; padding: 28px 22px; text-align: center; gap: 22px; } .buy-card-cover { max-width: 130px; margin: 0 auto; } .buy-card .btn { width: 100%; } .buy-card .secure { justify-content: center; } }
.final-cta .muted-light { max-width: 40em; margin: 0 auto; }

/* sticky mobile buy bar */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--ink) 94%, transparent); backdrop-filter: blur(10px); color: #f3ecdf; transform: translateY(0); transition: transform .3s var(--ease); display: none; }
.buybar.is-hidden { transform: translateY(110%); }
.buybar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 600px; margin: 0 auto; }
.buybar-text { display: flex; flex-direction: column; min-width: 0; font-size: .86rem; }
.buybar-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.buybar .price-now { font-size: 1rem; }
@media (max-width: 860px) { .buybar { display: block; } body.book-page { padding-bottom: 76px; } }

/* checkout dialog */
.checkout { border: 0; border-radius: 18px; padding: 0; width: min(460px, calc(100vw - 32px)); background: var(--paper); color: var(--text); box-shadow: 0 40px 80px -20px rgba(0,0,0,.5); }
.checkout::backdrop { background: rgba(15,14,12,.66); backdrop-filter: blur(3px); }
.checkout form { padding: 30px 28px 24px; }
.co-book { font-weight: 600; margin: -.2rem 0 .6rem; }
.co-help { color: var(--muted); font-size: .9rem; margin: 0 0 1.2rem; }
.co-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.checkout .secure { color: var(--muted); justify-content: center; }
@media (max-width: 420px) { .co-actions .btn { flex: 1; } }

/* ---------- orders / states ---------- */
.state { text-align: center; padding: 20px 0; }
.state .display { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.state-ok { text-align: left; }
.order-card { display: flex; gap: 24px; align-items: center; background: var(--char); color: #f3ecdf; border-radius: 18px; padding: 26px; margin: 28px 0; flex-wrap: wrap; }
.order-cover { width: 96px; border-radius: 3px 6px 6px 3px; box-shadow: 0 20px 30px -16px rgba(0,0,0,.8); }
.order-card .muted { color: var(--muted-light); }
.help-card { background: var(--cream); border-radius: var(--r); padding: 24px 26px; margin-top: 26px; }
.small-details { grid-template-columns: 1fr; }
.spinner { width: 46px; height: 46px; margin: 0 auto 22px; border: 3px solid var(--cream-2); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box .display { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }

/* ---------- setup ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 16px; }
.steps > li { background: #fffdf8; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.steps > li.done { border-left-color: var(--ok); }
.steps > li.todo { border-left-color: var(--gold); }
.steps .card-form { padding: 0; border: 0; background: none; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; background: #fffdf8; border: 1px solid var(--line); }
.check-icon { flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.pass .check-icon { background: #dcebe0; color: var(--ok); }
.fail .check-icon { background: #fbe7b8; color: #6d4a00; }
.reset-box { margin: 0 0 30px; background: #fffdf8; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 22px; }
.reset-box summary { cursor: pointer; font-weight: 600; }
.reset-box .card-form { border: 0; padding: 14px 0 0; background: none; }
.checks-h { margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b9b0a0; padding: 70px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 50px; }
.site-footer .brand-name { color: #f3ecdf; }
.footer-brand p { max-width: 26em; font-size: .94rem; }
.pay-note { display: flex; align-items: center; gap: 8px; color: #8f8676; font-size: .84rem !important; }
.footer-h { font: 600 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); margin: 6px 0 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .94rem; }
.footer-links a { text-decoration: none; overflow-wrap: anywhere; } .footer-links a:hover { color: #f3ecdf; }
.footer-base { border-top: 1px solid #2a2722; padding-top: 22px; padding-bottom: 26px; font-size: .84rem; color: #7f7768; }
.footer-base p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.confirm-overlay { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px; text-align: center; background: rgba(251,248,242,.94); font: 600 1.15rem/1.4 var(--sans); }
.display, .h2, .h3, .h4, .price-lg .price-now, .book-card-title, .feature h3, .author-name, .faq summary, .brand-name, .toc-n { font-variant-numeric: lining-nums; }
