:root {
    --paper: #eef2f5;
    --paper-deep: #e2e8ed;
    --ink: #243746;
    --muted: #536777;
    --wine: #2c5a75;
    --line: #bdcbd3;
    --serif: "Noto Serif CJK SC", "Songti SC", "SimSun", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.7; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { touch-action: manipulation; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
p, h1, h2, h3, dl { margin: 0; }
h1, h2, h3 { font-weight: 600; }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 4px; }
.shell { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 5; padding: 10px 18px; color: var(--paper); background: var(--wine); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.skip-link:focus-visible { outline-color: var(--ink); }
.demo-catalog-bar { background: var(--paper-deep); border-bottom: 1px solid var(--line); }
.demo-catalog-bar a { display: inline-block; padding: 9px 0; color: var(--wine); font-size: 13px; text-decoration: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 24px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-seal { display: grid; place-content: center; width: 40px; height: 49px; color: var(--paper); background: var(--wine); font-family: var(--serif); font-size: 17px; line-height: 1.25; text-align: center; }
.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-copy strong { font-family: var(--serif); font-size: 23px; letter-spacing: .12em; }
.brand-copy > span { font-size: 9px; letter-spacing: .18em; color: var(--muted); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 29px; font-size: 13px; }
.site-nav a { padding: 8px 0; text-decoration: none; white-space: nowrap; }
.site-nav a[aria-current="page"] { color: var(--wine); border-bottom: 1px solid var(--wine); }
.site-nav .bag-jump { font-size: 12px; color: var(--wine); }
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .15em; line-height: 1.6; }
.eyebrow > span { margin-inline: 9px; color: var(--wine); }
.hero { display: grid; grid-template-columns: 1.7fr 1fr; gap: 70px; padding: 52px 0 43px; border-bottom: 1px solid var(--line); }
.hero-copy { min-width: 0; }
.hero h1 { margin: 17px 0 19px; font-family: var(--serif); font-size: clamp(35px, 3.6vw, 51px); line-height: 1.4; letter-spacing: .055em; }
.hero-intro { max-width: 580px; color: var(--muted); font-size: 14px; line-height: 1.95; }
.demo-notice { display: inline-flex; gap: 8px; align-items: center; margin-top: 25px; color: var(--wine); font-size: 12px; }
.demo-notice > span { font-size: 16px; }
.hero-note { position: relative; min-width: 0; padding: 5px 0 0 34px; border-left: 1px solid var(--line); }
.hero-number { display: flex; align-items: baseline; gap: 19px; margin-top: 7px; color: var(--wine); font-family: Georgia, serif; font-size: 64px; line-height: 1.2; }
.hero-number > span { color: var(--ink); font-family: var(--serif); font-size: 15px; }
.hero-categories { margin-top: 7px; color: var(--muted); font-family: var(--serif); font-size: 14px; letter-spacing: .12em; }
.hero-categories i { margin-inline: 13px; font-style: normal; }
.shelf-illustration { display: flex; align-items: flex-end; gap: 4px; height: 64px; margin-top: 17px; border-bottom: 2px solid var(--wine); }
.shelf-illustration i { width: 17px; height: 44px; border: 1px solid var(--wine); background: #e5c3b4; box-shadow: inset 3px 0 0 rgba(115, 45, 60, .12); }
.shelf-illustration i:nth-child(2) { height: 51px; width: 21px; background: #d8d5bc; }
.shelf-illustration i:nth-child(3) { height: 39px; width: 13px; background: #cba37f; }
.shelf-illustration i:nth-child(4) { height: 47px; background: var(--wine); }
.shelf-illustration i:nth-child(5) { height: 41px; transform: rotate(-10deg); transform-origin: bottom; margin-left: 6px; }
.shelf-illustration > span { margin-left: auto; padding: 0 0 6px 15px; color: var(--muted); font-family: var(--serif); font-size: 12px; }
.store-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 39px; padding-top: 36px; }
.catalog { min-width: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.section-heading h2 { margin-top: 4px; font-family: var(--serif); font-size: 27px; letter-spacing: .08em; }
#result-summary { color: var(--muted); font-size: 12px; white-space: nowrap; }
.filter-controls { display: flex; align-items: end; gap: 14px; padding: 17px 0 22px; border-top: 1px solid var(--line); }
.filter-field { min-width: 0; }
.filter-field label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; letter-spacing: .03em; }
.category-field { flex: 0 0 128px; }
.search-field { flex: 1; }
.filter-field input, .filter-field select { width: 100%; min-width: 0; height: 43px; border: 1px solid #b6aa9b; border-radius: 0; padding: 8px 11px; background: #fbfcfd; color: var(--ink); font-size: 13px; }
.filter-field input::placeholder { color: #6f6258; opacity: 1; }
.filter-field input:disabled, .filter-field select:disabled { color: var(--muted); background: var(--paper-deep); opacity: 1; cursor: not-allowed; }
.text-button { flex: 0 0 auto; min-height: 43px; padding: 8px 3px; border: 0; background: transparent; color: var(--wine); font-size: 12px; text-decoration: underline; text-underline-offset: 5px; }
.text-button:disabled { color: var(--muted); }
.noscript-note { margin-bottom: 24px; padding: 12px 14px; border-left: 2px solid var(--wine); background: var(--paper-deep); color: var(--ink); font-size: 13px; }
.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 33px 24px; }
.book-card { min-width: 0; display: flex; flex-direction: column; }
.book-copy, .book-order { display: contents; }
.cover-stage { display: flex; justify-content: center; align-items: center; min-width: 0; padding: 23px 18px 25px; background: #eee8df; border: 1px solid #e3dbd0; }
.book-cover { position: relative; isolation: isolate; display: flex; flex-direction: column; width: min(100%, 190px); aspect-ratio: 3 / 4; overflow: hidden; padding: 17px 18px 12px 21px; color: #432b24; background: #e5c5a3; box-shadow: 7px 8px 12px -8px rgba(56, 36, 25, .4), inset 4px 0 0 rgba(40, 25, 20, .13), inset 6px 0 0 rgba(255, 255, 255, .14); }
.cover-series { position: relative; z-index: 1; font-size: 8px; letter-spacing: .1em; }
.cover-title { position: relative; z-index: 1; max-width: 6.5em; margin-top: 13px; font-family: var(--serif); font-weight: 700; font-size: 23px; letter-spacing: .05em; line-height: 1.4; overflow-wrap: anywhere; }
.cover-author { position: relative; z-index: 1; margin-top: 9px; font-size: 8px; letter-spacing: .12em; }
.cover-art { position: absolute; z-index: 0; pointer-events: none; }
.cover-edition { display: flex; justify-content: space-between; margin-top: auto; position: relative; z-index: 1; padding-top: 13px; font-size: 7px; letter-spacing: .11em; }
.cover-edition > span { font-family: Georgia, serif; font-size: 10px; }
.cover--wind { background: #dec795; color: #4a2823; }
.cover--wind .cover-art { width: 128%; height: 34%; left: -20%; bottom: 29px; border-radius: 50%; background: repeating-linear-gradient(-12deg, transparent 0 9px, #805844 10px 11px, transparent 12px 19px); transform: rotate(-9deg); }
.cover--letter { background: #2c5a75; color: #fff7e5; }
.cover--letter .cover-art { left: 24px; right: 18px; bottom: 35px; height: 52px; border: 1px solid #efd0b7; background: linear-gradient(27deg, transparent 49%, #efd0b7 50%, transparent 51%), linear-gradient(-27deg, transparent 49%, #efd0b7 50%, transparent 51%); }
.cover--rain { background: #244e55; color: #fff3db; }
.cover--rain .cover-art { left: 25px; bottom: 31px; width: 140px; height: 67px; border-radius: 90px 90px 0 0; background: repeating-linear-gradient(90deg, #cbbb89 0 1px, transparent 1px 9px); }
.cover--city { background: #edd4c5; color: #6d2b3a; }
.cover--city .cover-art { left: 27px; bottom: 30px; width: 29px; height: 40px; background: #b48b75; box-shadow: 29px 8px 0 #bc9e88, 58px -13px 0 #a27662, 87px 2px 0 #c6ae95; }
.cover--space { background: #ebe5d2; color: #303d36; }
.cover--space .cover-art { width: 76px; height: 76px; border: 1px solid #677763; border-radius: 50%; right: 23px; bottom: 32px; box-shadow: -21px -8px 0 -1px #d4bd82, -21px -8px 0 0 #8c794e; }
.cover--type { background: #273e52; color: #fff4dd; }
.cover--type .cover-art { right: 10px; bottom: 21px; }
.cover--type .cover-art::after { content: "Aa"; color: #ba9b78; font-family: Georgia, serif; font-size: 88px; line-height: 1; letter-spacing: -.08em; }
.cover--fold { background: #c6855e; color: #32251f; }
.cover--fold .cover-art { left: 24px; bottom: 28px; width: 126px; height: 72px; background: linear-gradient(130deg, #eed4b0 0 48%, #9e6341 49% 70%, #f3dfbe 71%); clip-path: polygon(0 100%, 47% 0, 100% 100%); }
.cover--map { background: #c7cfb9; color: #31423b; }
.cover--map .cover-art { width: 70px; height: 70px; left: 29px; bottom: 30px; border: 1px solid #4f6657; border-radius: 50%; box-shadow: 39px 5px 0 -1px #c7cfb9, 39px 5px 0 0 #60735b; }
.cover--weekend { background: #ece2d2; color: #56342e; }
.cover--weekend .cover-art { width: 76px; height: 76px; border-radius: 50%; background: #b99071; left: 28px; bottom: 31px; }
.cover--weekend .cover-art::after { content: ""; position: absolute; width: 66px; height: 1px; background: #6e4536; bottom: 10px; left: 31px; transform: rotate(-43deg); }
.cover--plant { background: #365748; color: #fff2d9; }
.cover--plant .cover-art { left: 55px; bottom: 29px; width: 47px; height: 85px; border-radius: 100% 0 100% 0; background: #b3ba8a; transform: rotate(19deg); }
.cover--plant .cover-art::after { content: ""; position: absolute; left: 36px; bottom: 6px; width: 34px; height: 59px; border-radius: 0 100% 0 100%; background: #7f9a6e; transform: rotate(-19deg); }
.cover--breakfast { background: #e7c779; color: #4b3423; }
.cover--breakfast .cover-art { right: 23px; bottom: 29px; width: 83px; height: 62px; border: 1px solid #8c6742; border-radius: 50%; background: #f1deb1; box-shadow: inset 0 0 0 7px #e7c779, inset 0 0 0 8px #9f7a4b; }
.cover--repair { background: #713946; color: #fff4e1; }
.cover--repair .cover-art { width: 94px; height: 64px; right: 22px; bottom: 31px; border: 1px dashed #dbc3a2; transform: rotate(-9deg); }
.cover--repair .cover-art::after { content: ""; position: absolute; width: 21px; height: 21px; border: 1px solid #e7cda6; border-radius: 50%; left: 28px; top: 16px; box-shadow: inset 0 0 0 5px #713946, inset 0 0 0 6px #e7cda6; }
.book-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; font-size: 10px; }
.category-tag { padding: 1px 7px; border: 1px solid #c6b7a6; color: var(--wine); }
.book-author { color: var(--muted); }
.book-card h3 { margin-top: 7px; font-family: var(--serif); font-size: 19px; line-height: 1.55; overflow-wrap: anywhere; }
.book-description { margin: 9px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.95; }
.book-purchase { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 9px; margin-top: auto; }
.book-price { color: var(--wine); font-family: Georgia, serif; font-size: 20px; font-variant-numeric: tabular-nums; }
.book-stock { color: var(--muted); font-size: 10px; }
.book-stock.is-sold-out { color: var(--wine); }
.add-button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 42px; margin-top: 11px; padding: 8px 13px; border: 1px solid var(--wine); border-radius: 0; color: var(--wine); background: transparent; font-size: 12px; transition: color .15s, background .15s; }
.add-button:hover:not(:disabled):not([aria-disabled="true"]) { color: var(--paper); background: var(--wine); }
.add-button:disabled { color: #65564d; background: #e8e0d4; border-color: #b9aa98; opacity: 1; }
.add-button[aria-disabled="true"]:not(:disabled) { border-style: dashed; cursor: not-allowed; }
.empty-state { padding: 54px 15px; border-block: 1px solid var(--line); text-align: center; }
.empty-state > span { color: var(--wine); font-family: Georgia, serif; font-size: 39px; }
.empty-state h3 { margin: 6px 0 10px; font-family: var(--serif); font-size: 21px; }
.empty-state p { color: var(--muted); font-size: 13px; }
.catalog-note { margin-top: 26px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.bag-panel { position: sticky; top: 24px; min-width: 0; padding: 25px 23px 19px; border: 1px solid #c7b8a7; border-top: 3px solid var(--wine); background: #f3ede2; }
.bag-heading h2 { margin-top: 8px; color: var(--wine); font-family: var(--serif); font-size: 25px; letter-spacing: .06em; }
.bag-heading > p:last-child { margin-top: 9px; color: var(--muted); font-size: 12px; }
.bag-empty { padding: 39px 10px 30px; text-align: center; }
.bag-drawing { display: block; position: relative; width: 44px; height: 40px; margin: 0 auto 20px; border: 1px solid #916d5c; transform: rotate(-5deg); }
.bag-drawing::before { content: ""; position: absolute; width: 18px; height: 15px; top: -11px; left: 12px; border: 1px solid #916d5c; border-bottom: 0; border-radius: 12px 12px 0 0; }
.bag-drawing::after { content: ""; position: absolute; height: 21px; width: 15px; right: -5px; top: 9px; background: var(--paper-deep); border: 1px solid #916d5c; transform: rotate(15deg); }
.bag-empty h3 { font-family: var(--serif); font-size: 16px; }
.bag-empty p { margin-top: 8px; font-size: 12px; line-height: 1.9; color: var(--muted); }
.bag-lines { max-height: 470px; overflow-y: auto; scrollbar-gutter: stable; list-style: none; padding: 0; margin: 21px 0 0; }
.bag-line { padding: 15px 2px 17px; border-top: 1px solid var(--line); }
.bag-line-top { display: flex; align-items: start; gap: 12px; justify-content: space-between; }
.bag-book-details { min-width: 0; }
.bag-book-title { font-family: var(--serif); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.bag-book-author { margin-top: 3px; color: var(--muted); font-size: 10px; }
.bag-unit-price { margin-top: 5px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.remove-button { flex: 0 0 auto; min-height: 32px; padding: 2px 0 2px 5px; border: 0; background: transparent; color: var(--wine); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.bag-line-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.quantity-stepper { display: inline-flex; align-items: center; border: 1px solid #b4a48f; }
.quantity-button { width: 32px; height: 33px; padding: 0; border: 0; background: transparent; color: var(--wine); font-size: 17px; line-height: 1; }
.quantity-button:hover:not([aria-disabled="true"]) { background: #e6d9c6; }
.quantity-button[aria-disabled="true"] { color: #6c6052; cursor: not-allowed; background: #e9e0d1; }
.bag-quantity { min-width: 27px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.bag-line-total { color: var(--wine); font-family: Georgia, serif; font-size: 17px; font-variant-numeric: tabular-nums; }
.bag-summary { padding-top: 17px; border-top: 1px solid #b9aa96; }
.bag-summary dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 12px; }
.bag-summary dd { margin: 0; font-variant-numeric: tabular-nums; }
.bag-summary .subtotal-row { margin-top: 11px; }
#bag-subtotal { color: var(--wine); font-family: Georgia, serif; font-size: 28px; }
.bag-summary > p { margin-top: 4px; color: var(--muted); font-size: 10px; }
.clear-button { width: 100%; min-height: 41px; margin-top: 17px; padding: 8px 10px; border: 1px solid #bca997; border-radius: 0; background: transparent; color: var(--wine); font-size: 12px; }
.clear-button:hover:not([aria-disabled="true"]):not(:disabled) { border-color: var(--wine); background: var(--paper); }
.clear-button[aria-disabled="true"], .clear-button:disabled { color: #6c6052; cursor: not-allowed; }
.bag-message { min-height: 40px; padding-top: 15px; color: var(--wine); font-size: 11px; line-height: 1.85; overflow-wrap: anywhere; }
.bag-notice { margin-top: 11px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.9; }
.closing-note { display: flex; align-items: center; gap: 28px; margin-top: 48px; padding: 27px 0 35px; border-top: 1px solid var(--line); }
.closing-note > span { color: var(--wine); font-family: var(--serif); font-size: 43px; line-height: 1; }
.closing-note p { font-family: var(--serif); font-size: 19px; line-height: 1.8; letter-spacing: .06em; }
.closing-note a { margin-left: auto; color: var(--wine); font-size: 12px; text-decoration: none; }
.site-footer { border-top: 1px solid var(--line); background: #f2ebdf; }
.footer-inner { display: flex; justify-content: space-between; gap: 22px; align-items: center; padding-block: 25px; color: var(--muted); font-size: 11px; }
.footer-inner p { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-inner strong { color: var(--ink); font-family: var(--serif); font-size: 13px; font-weight: 500; }
.footer-inner a { flex-shrink: 0; color: var(--wine); text-decoration: none; }
.about-page { padding-block: 46px 60px; }
.about-heading { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.about-heading h1 { margin: 15px 0; font-family: var(--serif); font-size: clamp(29px, 3.4vw, 43px); line-height: 1.5; letter-spacing: .055em; }
.about-heading > p:last-child { color: var(--muted); font-size: 14px; }
.about-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 66px; align-items: start; margin-top: 33px; }
.about-card { padding: 28px 25px; background: #f0e6d7; border-top: 3px solid var(--wine); }
.about-seal { display: block; margin-bottom: 21px; color: var(--wine); font-family: var(--serif); font-size: 36px; letter-spacing: .2em; }
.about-card h2 { margin: 9px 0 25px; font-family: var(--serif); font-size: 22px; line-height: 1.75; }
.about-card dl { border-top: 1px solid #ccbdab; }
.about-card dl > div { margin-top: 17px; font-size: 12px; }
.about-card dt { color: var(--muted); font-size: 10px; }
.about-card dd { margin: 4px 0 0; }
.about-card a { display: inline-block; margin-top: 28px; color: var(--wine); font-size: 12px; text-decoration: none; }
.prose { min-width: 0; max-width: 690px; font-size: 14px; line-height: 2.05; }
.prose h2 { margin: 28px 0 11px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 22px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 15px; color: #574d46; }

@media (max-width: 1100px) {
    .store-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 27px; }
    .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { gap: 35px; }
    .hero-note { padding-left: 24px; }
    .hero-number { gap: 12px; }
    .shelf-illustration > span { font-size: 10px; padding-left: 6px; }
    .about-layout { gap: 38px; }
}
@media (max-width: 860px) {
    .shell { width: calc(100% - 40px); }
    .hero { grid-template-columns: 1fr 250px; gap: 24px; }
    .hero h1 { font-size: 35px; }
    .hero-number { font-size: 53px; }
    .hero-number > span { font-size: 12px; }
    .shelf-illustration > span { display: none; }
    .store-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 27px 19px; }
    .cover-stage { padding-inline: 13px; }
    .book-cover { padding-left: 15px; padding-right: 12px; }
    .cover-title { font-size: 21px; }
    .bag-panel { position: static; max-width: 550px; width: 100%; margin-inline: auto; }
    .bag-lines { max-height: none; }
    .about-layout { grid-template-columns: 235px minmax(0, 1fr); gap: 27px; }
}
@media (max-width: 650px) {
    .header-inner { align-items: start; flex-direction: column; gap: 15px; padding-block: 20px 14px; }
    .site-nav { gap: 24px; width: 100%; }
    .site-nav .bag-jump { margin-left: auto; }
    .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; }
    .hero h1 { font-size: clamp(32px, 7.7vw, 44px); }
    .hero-intro { font-size: 13px; }
    .hero-note { padding: 19px 0 0; border-left: 0; border-top: 1px solid var(--line); }
    .hero-number { font-size: 44px; }
    .hero-number > span { font-size: 14px; }
    .hero-categories { position: absolute; right: 0; bottom: 8px; font-size: 12px; }
    .hero-categories i { margin-inline: 7px; }
    .shelf-illustration { display: none; }
    .store-layout { padding-top: 28px; }
    .section-heading h2 { font-size: 25px; }
    .filter-controls { flex-wrap: wrap; gap: 12px; padding-top: 14px; }
    .category-field { flex: 1 1 100px; }
    .search-field { flex: 2 1 180px; }
    .text-button { margin-left: auto; min-height: 34px; padding-block: 5px; }
    .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
    .book-cover { padding-top: 14px; }
    .cover-stage { padding-block: 17px 20px; }
    .cover-title { margin-top: 10px; font-size: 22px; }
    .cover-series { font-size: 7px; }
    .book-card h3 { font-size: 17px; }
    .book-description { font-size: 11px; }
    .book-author { font-size: 9px; }
    .closing-note { gap: 15px; flex-wrap: wrap; }
    .closing-note p { font-size: 18px; }
    .closing-note a { margin-left: auto; font-size: 11px; }
    .footer-inner { align-items: start; flex-direction: column; gap: 13px; }
    .footer-inner p { gap: 6px; flex-direction: column; }
    .about-page { padding-block: 32px 40px; }
    .about-layout { grid-template-columns: minmax(0, 1fr); gap: 29px; }
    .about-card { max-width: none; }
    .about-card h2 br { display: none; }
    .about-card dl { display: flex; flex-wrap: wrap; gap: 0 25px; }
    .prose { font-size: 13px; }
}
@media (max-width: 480px) {
    .book-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .cover-stage { padding-block: 23px; }
    .book-cover { width: 178px; padding: 17px 18px 12px 21px; }
    .cover-title { font-size: 23px; }
    .cover-series { font-size: 8px; }
    .book-meta { margin-top: 13px; }
    .book-card h3 { font-size: 20px; }
    .book-description { font-size: 12px; margin-bottom: 12px; }
    .book-stock { font-size: 11px; }
}
@media (max-width: 390px) {
    .shell { width: calc(100% - 32px); }
    .site-nav { gap: 17px; font-size: 12px; }
    .site-nav .bag-jump { font-size: 11px; }
    .hero-categories { position: static; margin-top: 10px; }
    .hero-note { padding-top: 15px; }
    .filter-controls { gap: 11px; }
    .category-field { flex: 0 0 109px; }
    .search-field { flex: 1 1 100px; }
    .filter-field input, .filter-field select { font-size: 12px; padding-inline: 8px; }
    .bag-panel { padding-inline: 20px; }
    .closing-note a { width: calc(100% - 43px); margin-left: 43px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* Paper folds and blue ink belong to the literary shelf. */
body[data-template="classic"] .brand-seal { font-size: 14px; letter-spacing: .1em; background: #2c5a75; }
body[data-template="classic"] .hero-note { position: relative; padding: 22px; background: #fbfcfd; border: 1px solid #bdcbd3; }
body[data-template="classic"] .hero-note::after { content: ""; position: absolute; right: -1px; top: -1px; width: 26px; height: 26px; background: linear-gradient(45deg, #d6e0e7 49%, #eef2f5 50%); }
.hero h1, .reading-intro h1, .closing-note p, .about-card h2 { white-space: pre-line; }
.brand-copy > span { letter-spacing: .03em; }
.eyebrow { letter-spacing: .03em; }
.book-cover[class*="cover--art-"], .book-cover[class*="cover--life-"] { background: #f7f8fb; color: #16316f; box-shadow: 8px 9px 0 #bdc9df, inset 4px 0 0 #234db8; }
.book-cover[class*="cover--art-"] .cover-art, .book-cover[class*="cover--life-"] .cover-art { left: 8px; right: 8px; bottom: 27px; height: 44%; background-position: center; background-size: contain; background-repeat: no-repeat; }
.book-cover[class*="cover--art-"] .cover-title { max-width: none; font-family: var(--sans); font-weight: 650; font-size: 26px; line-height: 1.25; }
.book-cover[class*="cover--life-"] { background: #f3f6eb; color: #164f41; box-shadow: 5px 7px 0 #b4ccc0, inset 4px 0 0 #164f41; }
.book-cover[class*="cover--life-"] .cover-title { max-width: none; font-family: var(--sans); line-height: 1.3; }
.book-cover[class*="cover--art-"] .cover-series, .book-cover[class*="cover--art-"] .cover-edition,
.book-cover[class*="cover--life-"] .cover-series, .book-cover[class*="cover--life-"] .cover-edition { letter-spacing: .03em; }
