/* Should You Write a Book? — a calm, paper-and-ink sibling of scribemedia.com.
   Scribe tokens (navy, teal, gold, Playfair Display, Inter) on a warm paper ground. */

:root {
  --paper: #f7f5f0;
  --paper-2: #efebe1;
  --card: #ffffff;
  --ink: #0b1126;
  --ink-2: #2a3352;
  --muted: #535d7a;
  --line: #e2ddd0;
  --line-2: #d3ccba;
  --teal: #35d9c3;
  --teal-soft: #70eadb;
  --teal-ink: #08756a;
  --teal-wash: #dcf4f0;
  --gold: #c9a84c;
  --gold-ink: #8a6d1e;
  --navy: #0b1126;
  --navy-2: #101a3c;
  --on-navy: #f3f6ff;
  --on-navy-muted: #c6d1ea;
  --shadow: 0 1px 2px rgba(11, 17, 38, .04), 0 8px 28px rgba(11, 17, 38, .07);
  --shadow-lift: 0 2px 4px rgba(11, 17, 38, .05), 0 18px 48px rgba(11, 17, 38, .12);
  --radius: 18px;
  --radius-sm: 12px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1126;
    --paper-2: #0f1838;
    --card: #111b43;
    --ink: #f3f6ff;
    --ink-2: #dbe3f7;
    --muted: #b4c0dc;
    --line: #1f2b57;
    --line-2: #2a3a70;
    --teal-ink: #35d9c3;
    --teal-wash: #12334a;
    --gold-ink: #e5c770;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 18px 48px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--teal-wash); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 6.2vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.25; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
em.accent, .accent { font-style: italic; color: var(--teal-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: 68ch; }
.eyebrow { display: inline-block; font: 600 .76rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 1rem; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font: 600 1.08rem/1.1 var(--serif); white-space: nowrap; }
.brand-name small { display: block; font: 500 .68rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }
.nav .btn { margin-left: 6px; white-space: nowrap; }
@media (max-width: 440px) { .nav .btn { display: none; } }
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .brand-name { font-size: 1rem; }
}
@media (max-width: 380px) { .brand-name small { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 1rem/1 var(--sans); padding: 15px 24px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s; }
.btn-primary { background: var(--teal); color: var(--navy); box-shadow: 0 6px 20px rgba(53, 217, 195, .28); }
.btn-primary:hover { background: var(--teal-soft); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(53, 217, 195, .34); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: .9rem; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.hero-note { font-size: .92rem; color: var(--muted); }
.hero-art { position: relative; }
.hero-art svg { width: 100%; max-width: 440px; margin-left: auto; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 200px; margin: 0 auto; }
}
.ribbon { transform-origin: 50% 0; animation: sway 6s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(2.2deg); } }

/* Sections */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 46em; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--ink-2); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow); }
a.card { display: block; color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-2); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .more { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; font-weight: 600; color: var(--teal-ink); font-size: .95rem; }

.result-tile { position: relative; padding-top: 30px; }
.result-tile .dot { position: absolute; top: 22px; right: 22px; width: 12px; height: 12px; border-radius: 50%; }
.tone-wait .dot { background: #b9b3a3; }
.tone-diy .dot { background: var(--gold); }
.tone-help .dot { background: #5aa9e6; }
.tone-ready .dot { background: var(--teal); }
.result-tile .kicker { font: 600 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 12px; }

/* Quiz */
.quiz-shell { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lift); overflow: hidden; max-width: 760px; margin: 0 auto; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px clamp(18px, 4vw, 32px); border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.quiz-progress { height: 4px; background: var(--paper-2); }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--teal); transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.quiz-body { padding: clamp(22px, 5vw, 44px) clamp(18px, 5vw, 44px) clamp(24px, 5vw, 40px); }
.quiz-step { animation: rise .45s cubic-bezier(.2, .8, .2, 1); }
.quiz-step h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-bottom: .35em; outline: none; }
.quiz-step .hint { color: var(--muted); margin-bottom: 22px; font-size: .98rem; }
.options { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.option { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card); cursor: pointer; transition: border-color .15s, background .15s, transform .1s; line-height: 1.45; }
.option:hover { border-color: var(--line-2); background: color-mix(in srgb, var(--teal-wash) 30%, var(--card)); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .tick { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: all .15s; }
.option .tick::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); transform: scale(0); transition: transform .15s; }
.option input:checked ~ .tick { background: var(--teal); border-color: var(--teal); }
.option input:checked ~ .tick::after { transform: scale(1); }
.option:has(input:checked) { border-color: var(--teal); background: color-mix(in srgb, var(--teal-wash) 55%, var(--card)); }
.option:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.option:active { transform: scale(.995); }
.option strong { display: block; font-weight: 600; }
.option span.sub { display: block; color: var(--muted); font-size: .92rem; margin-top: 2px; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; min-height: 44px; }
.linkish { background: none; border: 0; color: var(--muted); font: 500 .95rem var(--sans); cursor: pointer; padding: 10px 4px; display: inline-flex; gap: 6px; align-items: center; }
.linkish:hover { color: var(--ink); }
.linkish[hidden] { display: none; }
.quiz-done { text-align: center; padding: 24px 0 8px; }
.quiz-done .spinner { width: 40px; height: 40px; margin: 0 auto 16px; border-radius: 50%; border: 3px solid var(--paper-2); border-top-color: var(--teal); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
noscript .card { margin-top: 18px; }

/* Result pages */
.result-hero { padding: clamp(40px, 7vw, 84px) 0 clamp(28px, 4vw, 44px); }
.badge { display: inline-flex; align-items: center; gap: 8px; font: 600 .78rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); margin-bottom: 20px; }
.badge i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.tone-wait .badge i { background: #b9b3a3; }
.tone-diy .badge i { background: var(--gold); }
.tone-help .badge i { background: #5aa9e6; }
.tone-ready .badge i { background: var(--teal); }

.yours { display: none; margin-top: 28px; }
.yours.on { display: block; animation: rise .5s ease; }
.yours ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.yours li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.yours li svg { margin-top: 4px; color: var(--teal-ink); }
.yours li b { font-weight: 600; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding: 22px 22px 22px 74px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.steps li::before { content: counter(step); position: absolute; left: 22px; top: 20px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-wash); color: var(--teal-ink); font: 600 1.05rem var(--serif); }
.steps h3 { margin-bottom: .3em; }
.steps p:last-child { margin-bottom: 0; }

/* Prices */
.price-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.price .name { font: 600 1.15rem/1.2 var(--serif); }
.price .who { color: var(--muted); font-size: .93rem; }
.price .monthly { font: 600 1.75rem/1.1 var(--serif); margin-top: 8px; }
.price .monthly small { font: 500 .95rem var(--sans); color: var(--muted); }
.price .total { color: var(--muted); font-size: .9rem; }
.price .fine { font-size: .88rem; color: var(--ink-2); margin-top: 6px; }
.price.elite { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.price.elite .name { color: var(--gold-ink); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); margin: 0 0 1.4em; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 600 .78rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }
.table-note { font-size: .88rem; color: var(--muted); margin-top: -.6em; }

/* Author results */
.authors { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.author { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.author:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.author img { width: 76px; height: auto; aspect-ratio: 300 / 462; object-fit: cover; border-radius: 4px; box-shadow: 0 6px 16px rgba(11, 17, 38, .22); }
.author .stat { font: 600 1.6rem/1.05 var(--serif); color: var(--teal-ink); }
.author .label { font-size: .93rem; color: var(--ink-2); margin: 4px 0 10px; }
.author .who { font-size: .88rem; color: var(--muted); }
.author .who em { font-style: italic; color: var(--ink-2); }

/* Article */
.article-hero { padding: clamp(40px, 7vw, 84px) 0 clamp(20px, 3vw, 32px); }
.byline { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .92rem; margin-top: 18px; }
.article { padding-bottom: clamp(40px, 6vw, 72px); }
.article .prose h2 { margin-top: 1.8em; font-size: clamp(1.5rem, 2.8vw, 2rem); }
.article .prose h3 { margin-top: 1.4em; }
.article .prose ul, .article .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.article .prose li { margin-bottom: .45em; }
.callout { border-left: 3px solid var(--teal); background: var(--card); padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.6em 0; box-shadow: var(--shadow); }
.callout p:last-child { margin: 0; }
.source { font-size: .88rem; color: var(--muted); }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 2em; }
.toc b { display: block; font: 600 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: .25em 0; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Lead form */
.lead-card { background: var(--navy); color: var(--on-navy); border-radius: 24px; padding: clamp(24px, 5vw, 44px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(20px, 4vw, 44px); position: relative; overflow: hidden; }
.lead-card::before { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(53, 217, 195, .22), transparent 65%); pointer-events: none; }
.lead-card h2 { color: var(--on-navy); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.lead-card p { color: var(--on-navy-muted); }
.lead-card a { color: var(--teal); }
@media (max-width: 820px) { .lead-card { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 500; font-size: .93rem; color: var(--on-navy); }
.field label span { color: var(--on-navy-muted); font-weight: 400; }
.field input { font: 400 1rem var(--sans); padding: 13px 14px; border-radius: 10px; border: 1px solid #2a3a70; background: #0f1838; color: var(--on-navy); width: 100%; }
.field input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
.consent { font-size: .82rem; line-height: 1.5; color: var(--on-navy-muted); margin: 6px 0 14px; }
.consent p { margin: 0 0 .7em; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin: 0 0 10px; font-size: .84rem; color: var(--on-navy); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); }
.form-msg { margin-top: 12px; font-size: .95rem; min-height: 1.4em; }
.form-msg.err { color: #ffb4a8; }
.thanks { display: none; }
.thanks.on { display: block; animation: rise .5s ease; }
.thanks h3 { color: var(--on-navy); }

/* Next-step banner */
.cta-band { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 5vw, 44px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; box-shadow: var(--shadow); }
.cta-band h2 { margin: 0 0 .25em; font-size: clamp(1.45rem, 2.8vw, 2rem); }
.cta-band p { margin: 0; color: var(--ink-2); }

.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: .95rem; }
.facts b { font: 600 1.2rem var(--serif); color: var(--ink); margin-right: 4px; }

.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-muted); padding: 56px 0 40px; margin-top: 0; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h2 { font: 600 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-muted); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.made-by { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.made-by img { width: 120px; height: auto; }
.foot-fine { border-top: 1px solid #1f2b57; margin-top: 36px; padding-top: 20px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .site-footer, .lead-card { display: none; } body { background: #fff; } }

@media (max-width: 520px) {
  .steps li { padding: 66px 20px 20px; }
  .steps li::before { left: 20px; top: 18px; }
}

/* ---------- Scribrary: library pages ---------- */
.hero-tight { padding: clamp(28px, 5vw, 56px) 0 clamp(16px, 3vw, 28px); }
.section-tight { padding: clamp(20px, 4vw, 40px) 0; }
.home-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); }
.home-search { display: flex; gap: 10px; margin: 26px 0 10px; max-width: 34em; }
.home-search input { flex: 1; min-width: 0; font: 400 1.05rem var(--sans); padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); }
.home-search input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.cover-fan { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; max-width: 460px; margin-left: auto; }
.cover-fan img { width: 100%; height: auto; border-radius: 4px; box-shadow: var(--shadow-lift); }
.cover-fan img:nth-child(n+5) { display: none; }
.cover-fan img:nth-child(odd) { transform: translateY(-14px); }
@media (max-width: 860px) { .cover-fan { margin: 8px auto 0; max-width: 360px; } }

.shelf-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.shelf-tips h2 { font-size: 1.15rem; }
.shelf-tips ul { margin: 0; padding-left: 1.1em; }
.shelf-tips li { margin-bottom: .6em; font-size: .97rem; }
@media (max-width: 820px) { .shelf-intro { grid-template-columns: 1fr; } }

.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.shelf-tile { display: grid; gap: 10px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.shelf-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.shelf-covers { display: flex; gap: 8px; align-items: flex-end; height: 105px; overflow: hidden; }
.shelf-covers img { width: 70px; height: auto; max-height: 105px; object-fit: cover; border-radius: 3px; box-shadow: 0 2px 8px rgba(11,17,38,.18); }
.shelf-name { font: 600 1.12rem/1.25 var(--serif); }
.shelf-count { font-size: .9rem; color: var(--muted); }

.mini-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 18px; }
.mini { display: grid; gap: 8px; color: var(--ink); text-decoration: none; font-size: .86rem; line-height: 1.3; }
.mini img { width: 100%; height: auto; border-radius: 3px; box-shadow: var(--shadow); }
.mini:hover span { text-decoration: underline; }

.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.bk { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow); }
.bk img { width: 112px; height: auto; border-radius: 3px; box-shadow: 0 2px 10px rgba(11,17,38,.18); }
.bk-title { font: 600 1.12rem/1.25 var(--serif); margin: 0 0 4px; }
.bk-sub { font-size: .9rem; color: var(--ink-2); margin: 0 0 6px; line-height: 1.4; }
.bk-by { font-size: .88rem; color: var(--muted); margin: 0 0 8px; }
.bk-audio { color: var(--teal-ink); font-weight: 600; }
.bk-desc { font-size: .93rem; line-height: 1.55; margin: 0 0 10px; color: var(--ink-2); overflow-wrap: anywhere; }
.bk-buy { font-weight: 600; font-size: .92rem; }
@media (max-width: 480px) { .bk { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 14px; } .bk img { width: 84px; } }
.shelf-more, .finder-more { margin-top: 26px; text-align: center; }

.finder { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 12px 14px; align-items: end; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.finder .field { margin: 0; }
.finder .field label { color: var(--ink); }
.finder .field input, .finder .field select { font: 400 1rem var(--sans); padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); width: 100%; min-width: 0; }
.finder .field input:focus, .finder .field select:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.finder .check { color: var(--ink); font-size: .95rem; margin: 0; grid-column: 1 / -1; }
.finder-count { margin: 18px 0 14px; color: var(--muted); font-size: .95rem; }
.empty { grid-column: 1 / -1; }
@media (max-width: 860px) { .finder { grid-template-columns: 1fr 1fr; } .finder-q { grid-column: 1 / -1; } }
@media (max-width: 420px) { .finder { grid-template-columns: 1fr; } }
