:root {
  --dw-bg: #f5efe3; --dw-fg: #1f1b16; --dw-accent: #7a2430; --dw-panel: rgba(31, 27, 22, .96);
  --dw-font-body: 'EB Garamond', Garamond, Georgia, serif; --display: 'Cormorant Garamond', Garamond, serif; --sc: 'IM FELL English SC', Georgia, serif;
  --ox: #7a2430; --navy: #1f2d46; --sage: #6f7f62; --gold: #b08a3c; --ink: #1f1b16; --line: #1f1b1622; --paper: #fbf7ee;
}
body { overflow-x: hidden; font-size: 1.12rem; }
.dw-toast { color: #f5efe3; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.02; margin: 0 0 .45em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
section { padding: clamp(56px, 8vw, 110px) clamp(16px, 5vw, 64px); }
.sc { font-family: var(--sc); font-size: .95rem; letter-spacing: .06em; color: var(--ox); margin: 0 0 .8rem; }

.topbar { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 10px clamp(16px, 4vw, 40px); background: #f5efe3f2; border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.4rem; font-weight: 700; }
.brand i { font-style: normal; color: var(--ox); }
.device { width: 40px; height: 40px; color: var(--ox); }
.topbar nav { display: flex; align-items: center; gap: 20px; font-family: var(--sc); font-size: 1rem; }
.topbar nav a { color: var(--ink); text-decoration: none; }
.topbar nav a:hover { color: var(--ox); }
.dw-audio { font-family: var(--sc); text-transform: none; letter-spacing: .04em; font-size: .95rem; }
@media (max-width: 700px) { .topbar nav a { display: none; } .brand { font-size: 1.15rem; } }

.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 60px); align-items: center; max-width: 1400px; margin: 0 auto; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); font-weight: 500; }
.hero h1 em { color: var(--ox); font-style: normal; font-weight: 700; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; max-width: 48ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.btn { display: inline-block; font-family: var(--sc); font-size: 1.02rem; letter-spacing: .03em; text-decoration: none; color: var(--ink); background: transparent; border: 1px solid var(--ink); padding: .7em 1.4em; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-ink { background: var(--ox); border-color: var(--ox); color: #fbf2e6; }
.btn-ink:hover { background: #5e1823; border-color: #5e1823; color: #fff; }
.hero-fig { position: relative; margin: 0; padding: 12px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 30px 60px #3a2a1426; border: 1px solid var(--line); }
.hero-fig img { width: 100%; height: auto; }
.hs { position: absolute; transform: translate(-50%, -50%); width: 7%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed transparent; background: transparent; transition: border-color .3s, background .3s; }
.hs:hover, .hs:focus-visible { border-color: #fff; background: #ffffff2a; }
.hs.is-found { border-color: #b08a3c99; }
.hs-cat { left: 86%; top: 69%; width: 11%; } .hs-ship { left: 76%; top: 37%; width: 9%; } .hs-lamp { left: 61%; top: 44%; width: 6%; }
.hs-drawer { left: 20%; top: 59%; width: 8%; } .hs-quill { left: 11.5%; top: 64%; width: 6%; }

.principles { max-width: 980px; margin: 0 auto; text-align: center; }
.sc-h { font-family: var(--sc); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--ox); }
.prin { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: left; }
.prin li { border-top: 2px solid var(--ink); padding-top: .8rem; line-height: 1.45; }
.prin .n { display: block; font-family: var(--display); font-size: 1.8rem; color: var(--gold); line-height: 1; margin-bottom: .3rem; }
.prin b { display: block; font-family: var(--display); font-size: 1.35rem; margin-bottom: .3rem; }

/* shelf */
.desk { background: #ece3d1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.desk-head { max-width: 1100px; margin: 0 auto 1.6rem; }
.shelf { max-width: 1100px; margin: 0 auto; display: flex; justify-content: safe center; align-items: flex-end; gap: 6px; padding: 0 16px; height: 300px; overflow-x: auto; overflow-y: visible; scrollbar-width: thin; }
.plank { max-width: 1100px; height: 20px; margin: 0 auto; background: linear-gradient(#6b4a2b, #4a3220); box-shadow: 0 14px 24px #3a2a1440; border-radius: 2px; }
.spine { position: relative; flex: none; width: 58px; height: 250px; border: 0; padding: 14px 0; cursor: pointer; color: #f5ead2; font: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; border-radius: 3px 3px 0 0; box-shadow: inset -6px 0 10px #0003, inset 3px 0 0 #fff2;
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.2); background: var(--navy); }
.spine::before, .spine::after { content: ''; position: absolute; left: 6px; right: 6px; height: 2px; background: #d9b86a99; }
.spine::before { top: 30px; } .spine::after { bottom: 40px; }
.spine .st { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; white-space: nowrap; max-height: 170px; overflow: hidden; margin-top: 26px; }
.spine .sa { font-family: var(--sc); font-size: .7rem; opacity: .8; }
.spine:hover, .spine:focus-visible { transform: translateY(-14px); }
.spine.is-out { transform: translateY(-34px) rotate(-2deg); }
.sp-rf { background: var(--ox); width: 70px; height: 270px; }
.sp-blank, .sp-blank2, .sp-blank3 { background: #d8ccb2; color: #6d604b; box-shadow: inset -6px 0 10px #0001; }
.sp-blank::before, .sp-blank::after, .sp-blank2::before, .sp-blank2::after, .sp-blank3::before, .sp-blank3::after { background: #a8977a66; }
.sp-blank2 { height: 228px; width: 50px; } .sp-blank3 { height: 238px; width: 54px; }
.sp-style { background: var(--sage); height: 210px; width: 46px; }
.sp-rejected { background: #2c2620; height: 236px; }
.sp-field { background: var(--gold); color: #2a1e0c; width: 64px; height: 260px; }
.book-card { max-width: 760px; margin: 2rem auto 0; background: var(--paper); border: 1px solid var(--line); padding: clamp(20px, 3.5vw, 36px); box-shadow: 0 20px 40px #3a2a1418; min-height: 140px; }
.book-card h3 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.book-card.pop { animation: pop .4s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.bc-body { line-height: 1.6; }
.fine { font-size: .9rem; opacity: .7; }

/* press */
.press { max-width: 1160px; margin: 0 auto; }
.press-head p { max-width: 60ch; }
.press-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .press-grid { grid-template-columns: 1fr; } }
.composer { background: #2b241c; color: #e8dcc2; padding: clamp(16px, 3vw, 26px); border-radius: 4px; box-shadow: inset 0 0 0 1px #00000040; }
.composer .sc { color: #d9b86a; }
#line { width: 100%; font-family: var(--display); font-size: 1.3rem; padding: .5em .7em; border: 1px solid #d9b86a66; background: #1e1913; color: #f5ead2; border-radius: 2px; }
.stick { display: flex; flex-wrap: wrap; gap: 3px; margin: 1rem 0; padding: 12px; min-height: 64px; background: linear-gradient(#8d8f93, #6d6f73); border-radius: 3px; box-shadow: inset 0 2px 6px #0007; direction: rtl; }
.sort { direction: ltr; display: inline-grid; place-items: center; width: 26px; height: 36px; background: linear-gradient(#b8bbc0, #8f9297); color: #2a2a2a; border-radius: 2px; box-shadow: inset -2px -2px 0 #0003, inset 1px 1px 0 #fff6;
  font-family: var(--display); font-weight: 700; font-size: 1.25rem; transform: scaleX(-1); }
.sort.sp { width: 12px; background: linear-gradient(#7d8085, #6a6c70); }
.press-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.composer .btn:not(.btn-ink) { color: #e8dcc2; border-color: #e8dcc2; }
.composer .btn:not(.btn-ink):hover { background: #e8dcc2; color: #2b241c; }
.sheet { position: relative; aspect-ratio: 4 / 3; background: #fffdf6; border: 1px solid var(--line); box-shadow: 0 24px 50px #3a2a1426; display: grid; place-items: center; padding: 8%; overflow: hidden; }
.sheet::before { content: ''; position: absolute; inset: 0; background: radial-gradient(#00000008 1px, transparent 1px); background-size: 3px 3px; pointer-events: none; }
.sheet-line { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.15; text-align: center; color: var(--ox); margin: 0; opacity: 0; filter: blur(2px); transition: opacity .6s, filter .6s; }
.sheet.is-printed .sheet-line { opacity: .92; filter: none; }
.sheet.is-pressing { animation: press .5s ease; }
@keyframes press { 40% { transform: scale(.985); filter: brightness(.9); } }
.sheet-imprint { position: absolute; bottom: 5%; left: 0; right: 0; text-align: center; font-family: var(--sc); font-size: .85rem; color: #6d604b; margin: 0; }
.ghost-secret { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }

.editions { text-align: center; background: var(--navy); color: #f1e8d6; }
.editions > p { max-width: 60ch; margin: 0 auto; }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; max-width: 1040px; margin: 1.8rem auto 0; }
.offer { display: grid; gap: .3rem; align-content: start; font: inherit; text-align: left; color: #f1e8d6; background: #172238; border: 1px solid #f1e8d630; padding: 1.3em; cursor: pointer; transition: border-color .2s, transform .2s; }
.offer:hover, .offer:focus-visible { border-color: var(--gold); transform: translateY(-2px); }
.o-k { font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.o-p { font-family: var(--sc); color: #d9b86a; }
.offer small { font-size: .98rem; opacity: .85; }

.signup { display: grid; justify-items: center; text-align: center; }
.signup > p { max-width: 54ch; }
.dw-optin { width: 100%; text-align: left; }
.dw-optin input[type=email] { background: #fff; border-radius: 2px; border-color: #1f1b1650; }
.dw-optin button[type=submit] { background: var(--ox); color: #fbf2e6; border-radius: 2px; font-family: var(--sc); font-weight: 400; font-size: 1.02rem; }
.offer-note { margin: 0; color: var(--ox); font-family: var(--sc); }

.writers { display: grid; justify-items: center; gap: 2rem; background: #ece3d1; }
.writers-card { max-width: 720px; width: 100%; background: var(--paper); border: 1px solid var(--line); padding: clamp(22px, 4vw, 44px); }
.genres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.2rem; }
.genre { font-family: var(--dw-font-body); font-size: 1rem; padding: .4em .9em; border: 1px solid #1f1b1640; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.genre:hover, .genre:focus-visible { border-color: var(--ox); color: var(--ox); }
.found-box { max-width: 720px; width: 100%; }
.found { font-family: var(--sc); text-align: center; color: var(--ox); }
.reward { padding: 1rem 1.2rem; border: 1px solid var(--gold); background: #b08a3c14; }
.journal li { margin: .5em 0; }

.foot { padding: 30px 16px 10px; text-align: center; border-top: 1px solid var(--line); }
.more { font-family: var(--sc); }
.more a { color: var(--ox); }
.colophon { cursor: pointer; border-bottom: 1px dotted currentColor; }
@media (max-width: 520px) {
  .shelf { gap: 4px; padding: 0 8px; height: 270px; }
  .spine, .sp-rf, .sp-blank2, .sp-blank3, .sp-style, .sp-field { width: 42px; }
  .sp-rf { width: 48px; }
  .spine .st { font-size: .98rem; }
}

[hidden] { display: none !important; }
@media (max-width: 860px) { .prin { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .prin { grid-template-columns: 1fr; } }
.sheet-hint { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--sc); color: #a8977a; margin: 0; transition: opacity .3s; }
.sheet.is-printed .sheet-hint { opacity: 0; }
