:root {
  --paper: #fbf8ef;
  --parchment: #f0e8d7;
  --green: #173b33;
  --dark: #102f28;
  --ink: #192e25;
  --muted: #566356;
  --line: #d9d6c8;
  --gold: #f4cb7d;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; font: 16px/1.55 var(--sans); background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #ae6a20; outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1,h2,h3,p { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(1264px, calc(100% - 96px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { height: 1px; width: 1px; overflow: hidden; position: absolute; clip: rect(0,0,0,0); white-space: nowrap; }
.skip:focus { z-index: 14; position: fixed; top: 8px; left: 8px; background: white; padding: 10px; }
.notice { min-height: 33px; display: flex; align-items: center; justify-content: center; gap: 11px; padding: 5px 12px; background: var(--dark); color: #f8eee0; font-size: 12px; }
.notice a { text-decoration: underline; text-underline-offset: 3px; }
.notice-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.header { border-bottom: 1px solid #e9e1d2; }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 26px; min-height: 77px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font: 37px/.85 var(--serif); letter-spacing: -.04em; }
.brand-period { color: #a7652c; }
.brand small { display: block; font: 700 9px/1 var(--sans); margin: 8px 0 0 2px; letter-spacing: .26em; }
.mark { display: inline-flex; gap: 3px; align-items: flex-end; height: 29px; padding: 3px 1px; transform: rotate(-10deg); }
.mark i { width: 6px; height: 20px; border-radius: 1px; border: 1px solid currentColor; background: currentColor; }
.mark i:nth-child(2) { height: 25px; background: transparent; }
.mark i:nth-child(3) { height: 16px; }
.nav nav, .nav-actions { display: flex; gap: clamp(14px, 2.4vw, 31px); align-items: center; font-size: 14px; font-weight: 600; }
.nav nav a:hover, .nav-writers:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-actions { justify-content: flex-end; white-space: nowrap; }
.bag-button { display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 1px solid #aab3a4; border-radius: 30px; min-height: 41px; padding: 0 13px; font-weight: 700; }
.bag-button span { border-radius: 50%; min-width: 23px; height: 23px; display: inline-grid; place-items: center; color: #fff; background: var(--green); font-size: 11px; }
.hero { display: grid; grid-template-columns: minmax(335px, .96fr) 1.25fr; margin-top: 28px; overflow: hidden; background: var(--green); border-radius: 5px; }
.hero-copy { padding: clamp(37px, 5.5vw, 81px) clamp(34px, 5vw, 76px); color: #fff7e6; align-self: center; }
.kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .17em; line-height: 1.4; }
.hero .kicker { color: #fae2a8; }
.hero h1 { margin-top: 18px; font: 400 clamp(59px, 6.35vw, 105px)/.9 var(--serif); letter-spacing: -.03em; }
.hero h1 em { color: var(--gold); font-weight: 400; }
.hero-copy > p:nth-of-type(2) { margin-top: 20px; max-width: 345px; color: #f2e8d3; font-size: clamp(15px, 1.3vw, 18px); }
.hero-image { min-height: 100%; overflow: hidden; position: relative; }
.hero-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.button { min-height: 45px; padding: 10px 17px; display: inline-flex; justify-content: center; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; border: 1px solid transparent; border-radius: 3px; text-align: center; text-decoration: none; }
.gold { background: var(--gold); color: #192b21; }
.gold:hover { background: #f9d897; }
.hero .button { margin-top: 24px; }
.outline { border-color: #a5ab9d; background: transparent; }
.outline:hover { background: var(--parchment); }
.solid { background: var(--green); color: #fff7e8; }
.solid:hover { background: #275548; }
.benefits { min-height: 63px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; text-align: center; border-bottom: 1px solid var(--line); color: #394d41; font-size: 13px; font-weight: 600; }
.benefits span + span { border-left: 1px solid var(--line); }
.shelf { padding: 64px 0 74px; }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; }
.section-heading .kicker, .about .kicker { color: #4e6859; }
h2 { font: 400 clamp(42px, 4.5vw, 65px)/.98 var(--serif); letter-spacing: -.023em; }
.section-heading h2, .about h2 { margin-top: 9px; }
.search-group { display: flex; gap: 9px; flex-wrap: wrap; }
.search-group :is(input,select) { min-height: 42px; border: 1px solid #b7b9ac; border-radius: 3px; background: #fffcf5; padding: 8px 12px; font-size: 14px; }
input[type="search"] { width: 215px; }
.age-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.pill { border-radius: 24px; border: 1px solid #b9c0b1; background: transparent; min-height: 35px; padding: 5px 15px; font-weight: 600; font-size: 13px; }
.pill:hover { background: #edf0e3; }
.pill[aria-pressed="true"] { color: #fff; background: var(--green); border-color: var(--green); }
.result-count { color: var(--muted); font-size: 12px; margin: 13px 0 16px; min-height: 19px; }
.book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 31px 20px; }
.book-card { display: flex; flex-direction: column; min-width: 0; }
.cover-button { position: relative; border: 0; width: 100%; background: #ede6d5; border-radius: 3px; aspect-ratio: 1.02; padding: 13px; display: grid; place-items: center; overflow: hidden; }
.cover-button img { width: auto; height: 100%; max-height: 280px; min-height: 0; object-fit: contain; box-shadow: 0 7px 12px #252d2840; transition: transform .2s ease; }
.cover-button:hover img { transform: translateY(-3px); }
.book-meta { text-transform: uppercase; color: #546d5e; font-size: 10px; letter-spacing: .13em; font-weight: 700; margin-top: 11px; }
.book-card h3 { margin: 4px 0; line-height: 1.04; }
.title-button { border: 0; padding: 0; text-align: left; background: transparent; font: 400 clamp(22px,2.35vw,34px)/.98 var(--serif); }
.title-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.book-format { color: var(--muted); font-size: 12px; margin-bottom: 11px; }
.card-actions { display: flex; align-items: center; gap: 7px; justify-content: space-between; padding-top: 9px; border-top: 1px solid var(--line); margin-top: auto; }
.price { font-weight: 700; white-space: nowrap; }
.add-button { min-height: 34px; padding: 5px 9px; border: 1px solid #9ba99c; border-radius: 3px; background: transparent; font-size: 12px; font-weight: 700; }
.add-button:hover { background: #e8ede2; }
.empty { min-height: 190px; padding: 32px 0; }
.empty .button { margin-top: 15px; }
.about { display: grid; grid-template-columns: .62fr 1fr; min-height: 350px; margin-bottom: 65px; border: 1px solid var(--line); background: #f1ebde; }
.about-art { background: #dfdfcb; display: grid; place-items: center; padding: 34px; }
.about img { width: 182px; height: auto; transform: rotate(-7deg); box-shadow: 5px 13px 18px #273b364c; }
.about-copy { padding: clamp(28px, 5vw, 62px); }
.about-copy > p:not(.kicker) { margin-top: 15px; max-width: 480px; }
.text-link { display: inline-block; margin-top: 18px; text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }
.footer { background: var(--dark); color: #fff3dc; padding: 29px 0; }
.footer-row { display: flex; justify-content: space-between; gap: 23px; align-items: center; flex-wrap: wrap; }
.footer .brand-period { color: var(--gold); }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer nav, .footer p { font-size: 13px; }
dialog { color: var(--ink); background: var(--paper); padding: 28px; border: 1px solid #b5ad98; border-radius: 5px; max-height: calc(100% - 34px); overflow: auto; }
dialog::backdrop { background: #102a24a8; }
.book-dialog { width: min(825px, calc(100% - 24px)); }
.bag-dialog { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(490px, 100%); max-width: 100%; border-radius: 0; padding: 36px 24px 28px; }
.bag-dialog h2 { font-size: 49px; padding-right: 35px; }
.close { position: absolute; top: 10px; right: 10px; width: 37px; height: 37px; border: 1px solid var(--line); background: var(--paper); border-radius: 50%; font-size: 25px; line-height: 1; }
.detail-layout { display: grid; grid-template-columns: 0.47fr 1fr; gap: 25px; align-items: start; }
.detail-cover { width: 100%; max-width: 235px; height: auto; }
.detail-description h2 { font-size: clamp(38px,6vw,60px); margin: 5px 24px 12px 0; }
.detail-description > p { margin-bottom: 11px; }
.detail-description .detail-meta { color: var(--muted); font-size: 13px; }
.detail-excerpt { padding: 16px 18px; margin-top: 17px; background: #f1ebdf; border-left: 2px solid #72907a; }
.detail-excerpt h3 { font: 27px/1 var(--serif); margin-bottom: 7px; }
.detail-excerpt p { margin-top: 7px; font-family: Georgia, serif; }
.detail-buttons { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.bag-empty { margin-top: 20px; }
.bag-list { list-style: none; padding: 0; margin: 18px 0; }
.bag-list li { border-bottom: 1px solid var(--line); padding: 13px 0; display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; align-items: center; }
.bag-list img { width: 42px; height: auto; }
.bag-list h3 { font-size: 15px; }
.bag-list .text-link { margin: 3px 0 0; font-size: 12px; }
.bag-list .remove { padding: 6px 2px; border: 0; background: transparent; text-decoration: underline; font-size: 12px; }
.total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; padding-bottom: 12px; }
.bag-note { background: #eee8da; padding: 11px 13px; margin: 0 0 12px; font-size: 13px; }
body:has(dialog[open]) { overflow: hidden; }
@media (max-width: 980px) {
  .wrap { width: calc(100% - 54px); }
  .nav { gap: 13px; }
  .hero { grid-template-columns: .88fr 1fr; }
  .book-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .search-group input[type="search"] { width: 175px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 30px); }
  .nav { min-height: 67px; grid-template-columns: 1fr auto auto; gap: 13px; }
  .nav-age, .nav-about, .nav-writers { display: none; }
  .brand { font-size: 31px; }
  .hero { display: flex; flex-direction: column; margin-top: 16px; }
  .hero-copy { padding: 36px 28px; width: 100%; }
  .hero h1 { font-size: clamp(58px,13vw,85px); }
  .hero-image { height: clamp(180px, 55vw, 320px); }
  .benefits { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 13px; padding: 11px 5px; font-size: 11px; }
  .benefits span + span { border-left: 0; }
  .shelf { padding: 38px 0 46px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .search-group { width: 100%; }
  .search-group input[type="search"] { flex: 1 1 133px; width: auto; min-width: 0; }
  .age-filters { margin-top: 16px; gap: 5px; }
  .pill { padding-inline: 10px; }
  .book-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 23px 12px; }
  .cover-button { aspect-ratio: .85; padding: 10px; }
  .title-button { font-size: clamp(22px, 6vw, 33px); }
  .book-meta { font-size: 9px; letter-spacing: .08em; }
  .about { grid-template-columns: 1fr; margin-bottom: 42px; }
  .about-art { padding: 23px; }
  .about img { width: 118px; }
  .detail-layout { grid-template-columns: 1fr; gap: 14px; }
  .detail-cover { width: 120px; }
  .book-dialog { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.cover-placeholder {aspect-ratio:2/3;background:#20483f;color:#fbf5df;display:flex;flex-direction:column;align-items:center;justify-content:space-between;text-align:center;box-shadow:0 8px 16px #19362f30;padding:18px 14px;min-width:0;}
.cover-placeholder .placeholder-brand {font:11px/1.4 var(--sans);letter-spacing:1.2px;}
.cover-placeholder .placeholder-title {font:clamp(20px,2.4vw,31px)/1.05 var(--serif);overflow-wrap:anywhere;}
.cover-placeholder .placeholder-note {font:13px/1.4 var(--sans);color:#f6d38a;}
.cover-button>.cover-placeholder {height:100%;width:auto;max-width:80%;margin:auto;}
.detail-cover.cover-placeholder {width:100%;height:auto;min-height:290px;}
.bag-list .cover-placeholder {width:55px;height:82px;padding:4px;}.bag-list .cover-placeholder .placeholder-brand,.bag-list .cover-placeholder .placeholder-note{display:none}.bag-list .cover-placeholder .placeholder-title{font-size:12px;}
.novel-feature {display:grid;grid-template-columns:1fr 1.15fr;gap:50px;align-items:center;padding:48px 0;border-bottom:1px solid var(--line);}
.novel-feature h2,.media-feature h2{font:clamp(35px,4.3vw,59px)/1.02 var(--serif);margin:10px 0 16px}.collection-summary{font-weight:700;margin-bottom:12px}.feature-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.media-feature{background:#e8eee5;padding:32px;margin-top:24px;margin-bottom:45px}.media-feature p{max-width:780px}.book-format,.edition-line,#result-count,.notice{font-size:14px}.book-meta{font-size:13px}
@media(max-width:760px){.novel-feature{grid-template-columns:1fr;gap:20px;padding:30px 0}.nav-middle{display:none}.media-feature{padding:24px}.cover-placeholder .placeholder-title{font-size:24px}}
.cover-button>.cover-placeholder{position:absolute;top:13px;bottom:13px;left:50%;transform:translateX(-50%);height:calc(100% - 26px);width:auto;aspect-ratio:2/3;max-width:calc(100% - 26px);min-height:0;}
