:root {
  color-scheme: light;
  --page: #f7f8fa;
  --paper: #ffffff;
  --ink: #172b43;
  --blue: #183b63;
  --muted: #5a6e82;
  --line: #dce3eb;
  --wash: #edf2f7;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--page); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-underline-offset: 3px; }
button, input { font: inherit; }
button { cursor: pointer; }
a, button, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #9b5808; outline-offset: 5px; }
input:focus-visible { outline-offset: 2px; }
main:focus { outline: none; }
button, input, .button { border-radius: 6px; }
button, .button { min-height: 44px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; }
h1 { font: 500 clamp(32px, 4.3vw, 48px)/1.12 var(--serif); letter-spacing: -0.035em; margin-bottom: 16px; }
h2 { font: 500 30px/1.2 var(--serif); letter-spacing: -0.025em; margin-bottom: 10px; }
h3 { font-weight: 600; }
p { margin-bottom: 16px; }
.container { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 12px 20px; color: #fff; background: var(--blue); }
.skip-link:focus { top: 12px; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--blue); font: 600 33px/1 var(--serif); letter-spacing: -0.035em; text-decoration: none; }
.brand-mark { flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 40px; }
.main-nav a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: #42576d; text-decoration: none; font-size: 15px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; }
.account-link { font-weight: 600; }
.account-label-short { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 1px solid transparent; font-weight: 600; font-size: 15px; line-height: 1.3; text-decoration: none; }
.button-primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.button-primary:hover { background: #102d4e; border-color: #102d4e; }
.button-secondary { color: var(--blue); background: var(--paper); border-color: #b6c4d3; }
.button-secondary:hover { background: #edf2f7; }
.button-small { padding: 10px 20px; font-size: 14px; }

.hero { display: grid; grid-template-columns: 1.06fr 1fr; gap: 24px; align-items: center; min-height: 394px; padding-block: 42px 46px; }
.hero-copy { position: relative; z-index: 1; padding-right: 15px; }
.hero-intro { color: var(--muted); font-size: 14px; margin-bottom: 15px; }
.hero h1 { font-size: clamp(38px, 4.3vw, 54px); max-width: 530px; margin-bottom: 20px; }
.hero-description { max-width: 465px; color: #52657a; font-size: 16px; line-height: 1.7; margin-bottom: 24px; }
.hero-shelf { position: relative; height: 300px; display: flex; align-items: flex-end; justify-content: center; gap: 5px; padding-bottom: 25px; isolation: isolate; }
.hero-shelf::before { content: ""; position: absolute; top: 10px; right: 4%; left: 8%; bottom: 5px; background: #e8eef4; border-radius: 50% 50% 12px 12px; z-index: -2; }
.shelf-line { position: absolute; height: 10px; background: #c1cbd7; border-bottom: 4px solid #a6b4c4; border-radius: 2px; bottom: 16px; left: 2%; right: 0; z-index: -1; }
.hero-book { flex: 0 1 156px; width: 156px; min-width: 0; height: 226px; transform-origin: bottom; box-shadow: 6px 8px 14px #183b6318; }
.hero-book-0 { transform: rotate(-9deg); margin-right: -20px; height: 214px; z-index: 1; }
.hero-book-1 { transform: rotate(-1deg); z-index: 3; }
.hero-book-2 { transform: rotate(9deg); margin-left: -15px; height: 216px; z-index: 2; }

.catalog-section { background: var(--paper); padding: 38px 0 56px; border-top: 1px solid var(--line); }
.catalog-heading { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-bottom: 30px; }
.catalog-heading p { font-size: 14px; margin-bottom: 0; }
.search-form { display: flex; position: relative; align-items: center; min-width: 320px; width: 390px; }
.search-form input { width: 100%; min-width: 0; min-height: 46px; padding: 11px 86px 11px 40px; border: 1px solid #c4cfdb; background: #fff; color: var(--ink); font-size: 14px; }
.search-form input::placeholder { color: #64768a; opacity: 1; }
.search-icon { position: absolute; left: 13px; pointer-events: none; color: #63768a; }
.search-form button { position: absolute; right: 3px; min-height: 38px; padding: 7px 13px; color: var(--blue); background: #edf2f7; border: 0; font-size: 14px; font-weight: 600; }
.search-form button:hover { background: #dce6f0; }
.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 28px; }
.book-card { min-width: 0; }
.book-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.book-stage { display: flex; justify-content: center; align-items: center; height: 290px; background: #f0f3f7; border-radius: 8px; padding: 22px; }
.book-cover { --cover-bg: #345f65; --cover-fg: #fff4da; --cover-shape: #c8d3a9; position: relative; display: flex; flex-direction: column; overflow: hidden; width: 166px; height: 240px; padding: 21px 18px 16px; color: var(--cover-fg); background: var(--cover-bg); border-radius: 1px 4px 4px 1px; box-shadow: inset 6px 0 0 #ffffff14, inset 8px 0 0 #00000017, 8px 7px 13px #172b431b; }
.book-cover::before { content: ""; position: absolute; top: 0; bottom: 0; left: 9px; width: 1px; background: #ffffff26; }
.cover-author { position: relative; z-index: 1; display: block; font: 400 11px/1.45 var(--sans); max-width: 120px; }
.cover-title { position: relative; z-index: 1; display: block; font: 500 24px/1.08 var(--serif); letter-spacing: -0.03em; margin-top: auto; max-width: 100%; overflow-wrap: anywhere; }
.cover-imprint { display: block; position: relative; z-index: 1; font: 400 8px/1.3 var(--sans); margin-top: 15px; }
.cover-art { position: absolute; top: 63px; right: -7px; width: 106px; height: 106px; border: 18px solid var(--cover-shape); border-radius: 50%; opacity: .95; }
.cover-1 { --cover-bg: #365a4f; --cover-fg: #fff5dc; --cover-shape: #b3c7a9; }
.cover-1 .cover-art { top: 67px; right: -20px; width: 116px; height: 92px; border-width: 1px; border-radius: 60% 0 60% 0; background: var(--cover-shape); transform: rotate(-24deg); }
.cover-2 { --cover-bg: #e4a34b; --cover-fg: #303b48; --cover-shape: #183b63; }
.cover-2 .cover-art { top: 66px; width: 126px; height: 62px; border-radius: 100px 100px 0 0; border-width: 0; background: var(--cover-shape); transform: rotate(-17deg); }
.cover-3 { --cover-bg: #365d8b; --cover-fg: #f3f1e9; --cover-shape: #b6cadc; }
.cover-3 .cover-art { top: 67px; right: -25px; border-width: 1px; box-shadow: -14px 5px 0 -1px var(--cover-bg), -14px 5px 0 0 var(--cover-shape), -28px 10px 0 -1px var(--cover-bg), -28px 10px 0 0 var(--cover-shape); }
.cover-4 { --cover-bg: #b95e52; --cover-fg: #fff3e5; --cover-shape: #edc8a8; }
.cover-4 .cover-art { top: 65px; right: 15px; width: 83px; height: 83px; border-radius: 0; border-width: 1px; transform: rotate(45deg); box-shadow: 10px 10px 0 -1px var(--cover-bg), 10px 10px 0 0 var(--cover-shape); }
.cover-5 { --cover-bg: #c9d6ca; --cover-fg: #253f3c; --cover-shape: #5e7f72; }
.cover-5 .cover-art { top: 60px; right: -20px; width: 120px; height: 78px; border-radius: 50%; border-width: 1px; transform: rotate(-28deg); box-shadow: -10px 8px 0 -1px var(--cover-bg), -10px 8px 0 0 var(--cover-shape), -20px 16px 0 -1px var(--cover-bg), -20px 16px 0 0 var(--cover-shape); }
.cover-6 { --cover-bg: #514f73; --cover-fg: #fff2dc; --cover-shape: #c2b7cf; }
.cover-6 .cover-art { top: 66px; right: 18px; width: 62px; height: 90px; border-radius: 50% 50% 0 0; border-width: 0; background: var(--cover-shape); }
.hero-book .cover-title { font-size: 23px; }
.hero-book .cover-author { font-size: 10px; }
.hero-book .cover-art { opacity: .75; }
.book-info { padding: 18px 1px 0; }
.book-genre { color: #66788b; font-size: 12px; line-height: 1.4; margin-bottom: 8px; }
.book-info h3 { margin: 0 0 6px; font: 500 22px/1.25 var(--serif); letter-spacing: -.02em; }
.book-author { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.book-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.book-price { font-weight: 600; font-size: 16px; }
.detail-link { color: var(--blue); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.book-link:hover .book-info h3 { color: #214f7f; text-decoration: underline; text-underline-offset: 4px; }
.catalog-note { display: flex; align-items: flex-start; gap: 18px; margin-top: 46px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--blue); }
.catalog-note svg { flex-shrink: 0; margin-top: 3px; }
.catalog-note h3 { margin-bottom: 5px; font-size: 16px; }
.catalog-note p { color: var(--muted); font-size: 14px; margin-bottom: 0; }

.page-space { padding-block: 38px 70px; min-height: 60vh; }
.breadcrumbs { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 14px; margin-bottom: 34px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.book-detail { display: grid; grid-template-columns: .9fr 1.2fr; gap: 76px; align-items: start; }
.detail-stage { background: #eaf0f5; border-radius: 10px; min-height: 500px; display: flex; align-items: center; justify-content: center; padding: 42px; }
.detail-stage .book-cover { width: 245px; height: 355px; padding: 29px 27px 23px; }
.detail-stage .cover-author { font-size: 15px; max-width: 180px; }
.detail-stage .cover-title { font-size: 37px; }
.detail-stage .cover-imprint { font-size: 11px; margin-top: 23px; }
.detail-stage .cover-art { transform: scale(1.45); transform-origin: right top; top: 92px; right: 10px; }
.detail-copy { padding-top: 12px; }
.detail-copy .book-genre { font-size: 14px; margin-bottom: 14px; }
.detail-copy h1 { margin-bottom: 12px; }
.detail-author { font-size: 18px; color: var(--muted); margin-bottom: 27px; }
.detail-description { color: #40566c; max-width: 600px; line-height: 1.8; margin-bottom: 28px; }
.book-facts { border-top: 1px solid var(--line); padding-top: 19px; margin-bottom: 24px; font-size: 14px; }
.book-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding-block: 5px; }
.book-facts dt { color: var(--muted); }
.book-facts dd { margin: 0; }
.detail-price { font-size: 26px; font-weight: 600; margin-bottom: 22px; }
.detail-caption { margin-top: 22px; max-width: 430px; }

.auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 980px; margin-block: 64px 80px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.auth-introduction { background: #e7eef5; padding: 50px 46px; display: flex; flex-direction: column; justify-content: center; }
.auth-introduction h2 { font-size: 34px; line-height: 1.15; margin-bottom: 17px; }
.auth-introduction p { font-size: 14px; color: #4b6178; max-width: 290px; margin: 0; }
.small-book { width: 102px; height: 135px; background: var(--blue); color: #f4ead4; border-left: 5px solid #34577b; padding: 22px 15px; margin-bottom: 32px; transform: rotate(-8deg); box-shadow: 7px 7px 0 #bdcbd9; font: 19px/1.15 var(--serif); }
.auth-panel { padding: 50px 44px; }
.auth-panel h1 { font-size: 34px; margin-bottom: 14px; }
.auth-panel > p { font-size: 14px; }
.stack-form { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field input { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--ink); background: #fff; border: 1px solid #aebdcd; }
.field input::placeholder { color: #6c7c8b; }
.field input[aria-invalid="true"] { border-color: #a43738; }
.stack-form .button { width: 100%; margin-top: 2px; }
.back-link { display: inline-block; margin-top: 26px; min-height: 36px; font-size: 14px; }
.notice { padding: 13px 16px; background: #edf4ed; color: #2f5837; border-left: 3px solid #5b8260; border-radius: 0 5px 5px 0; font-size: 14px; margin-bottom: 20px; }
.notice-error { background: #fcf0ed; color: #8f3531; border-left-color: #a9433d; }
.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.account-heading h1 { font-size: 38px; margin-bottom: 10px; }
.account-heading p { margin-bottom: 0; }
.section-intro { color: var(--muted); font-size: 14px; margin-bottom: 12px !important; }
.orders-section { padding: 30px 32px 12px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.section-heading { margin-bottom: 23px; }
.section-heading h2 { font-size: 28px; }
.section-heading p { font-size: 14px; margin-bottom: 0; }
.table-scroll { overflow-x: auto; }
.orders-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: 14px; }
.orders-table thead th { color: var(--muted); font-size: 12px; font-weight: 500; padding: 0 18px 13px 0; }
.orders-table tbody th, .orders-table td { padding: 23px 18px 23px 0; border-top: 1px solid var(--line); }
.orders-table tbody th { font-weight: 600; }
.orders-table td:last-child, .orders-table thead th:last-child { padding-right: 0; text-align: right; }
.order-status { display: inline-block; padding: 5px 11px; background: #eaf2ed; color: #3a6550; border-radius: 4px; font-size: 12px; line-height: 1.4; }
.table-link { display: inline-flex; align-items: center; min-height: 36px; font-weight: 600; }
.amount { font-weight: 600; white-space: nowrap; }
.empty-state { border: 1px dashed #c8d3df; padding: 48px 28px; border-radius: 8px; text-align: center; background: #f8fafc; }
.empty-state h3 { font: 500 26px/1.25 var(--serif); margin-bottom: 12px; }
.empty-state p { color: var(--muted); font-size: 14px; max-width: 480px; margin-inline: auto; }
.order-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.order-heading h1 { font-size: 40px; margin-bottom: 10px; }
.order-heading p { margin-bottom: 0; font-size: 14px; }
.order-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: start; }
.order-items { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 30px; }
.order-items h2 { font-size: 27px; margin-bottom: 24px; }
.order-line { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.order-line h3 { font: 500 21px/1.25 var(--serif); margin-bottom: 8px; }
.order-line p { font-size: 14px; margin-bottom: 0; }
.order-total { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 4px; }
.order-total strong { font-size: 24px; font-weight: 600; }
.pickup-panel { background: #e9eff5; color: var(--blue); border-radius: 8px; padding: 30px; }
.pickup-panel svg { margin-bottom: 20px; }
.pickup-panel h2 { font-size: 26px; margin-bottom: 14px; }
.pickup-panel p { color: #496078; font-size: 14px; line-height: 1.8; }
.pickup-code { margin-top: 24px; padding-top: 19px; border-top: 1px solid #cbd7e3; }
.pickup-code span { display: block; font-size: 12px; color: #52687e; margin-bottom: 8px; }
.pickup-code strong { display: block; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }

.access-section, .error-section { display: flex; justify-content: center; padding-block: 60px 80px; min-height: 65vh; }
.access-panel, .error-panel { align-self: flex-start; width: 100%; max-width: 490px; padding: 42px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.access-panel h1, .error-panel h1 { font-size: 36px; }
.access-panel > p, .error-panel > p { font-size: 14px; }
.invitation-mark { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 58px; font: 30px/1 var(--serif); color: #fff; background: var(--blue); border-left: 5px solid #547494; margin-bottom: 25px; }
.error-panel { text-align: center; border: 0; background: transparent; max-width: 600px; }
.error-book { display: flex; align-items: flex-end; margin: 0 auto 32px; width: 105px; height: 140px; padding: 18px 12px; color: #f5eddc; background: #516c84; border-left: 5px solid #274b69; transform: rotate(-7deg); font: 20px/1.1 var(--serif); box-shadow: 7px 7px 0 #d6e0e9; text-align: left; }
.error-panel .back-link { display: block; }

.site-footer { border-top: 1px solid var(--line); background: #f7f8fa; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 32px; }
.footer-brand { font: 600 25px/1.2 var(--serif); letter-spacing: -.03em; text-decoration: none; }
.footer-inner p { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.footer-inner .demo-note { text-align: right; margin-top: 0; line-height: 1.7; }

@media (min-width: 1200px) {
  .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .book-stage { height: 300px; }
}
@media (max-width: 950px) {
  .hero { grid-template-columns: 1.15fr .85fr; }
  .hero-shelf { height: 270px; }
  .hero-book { width: 120px; height: 190px; padding: 17px 13px; }
  .hero-book-0, .hero-book-2 { height: 180px; }
  .hero-book .cover-title { font-size: 19px; }
  .hero-book .cover-author { font-size: 8px; }
  .hero-book .cover-art { transform: scale(.8); transform-origin: right top; top: 48px; }
  .catalog-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .search-form { width: 100%; }
  .book-grid { gap: 28px 22px; }
  .book-stage { height: 252px; padding: 17px; }
  .book-cover { width: 143px; height: 210px; padding: 18px 16px 13px; }
  .cover-title { font-size: 22px; }
  .cover-author { font-size: 10px; }
  .cover-art { transform: scale(.9); transform-origin: right top; }
  .book-info h3 { font-size: 21px; }
  .book-detail { gap: 36px; }
  .detail-stage { min-height: 440px; padding: 30px; }
  .detail-stage .book-cover { width: 210px; height: 310px; padding: 25px 23px 20px; }
  .detail-stage .cover-title { font-size: 31px; }
  .auth-introduction, .auth-panel { padding: 40px 30px; }
  .order-layout { grid-template-columns: 1.4fr 1fr; gap: 20px; }
  .order-items, .pickup-panel { padding: 24px; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 36px); }
  .header-inner { min-height: 80px; gap: 18px; }
  .brand { font-size: 28px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .main-nav { gap: 17px; }
  .main-nav a { font-size: 13px; }
  .account-link svg { display: none; }
  .account-label-full { display: none; }
  .account-label-short { display: inline; }
  .hero { grid-template-columns: 1fr; padding-block: 32px 26px; gap: 6px; }
  .hero-copy { padding-right: 0; }
  .hero h1 { max-width: 490px; font-size: 42px; }
  .hero-description { max-width: 500px; font-size: 15px; }
  .hero-shelf { margin-top: 5px; height: 228px; width: min(390px, 100%); justify-self: center; }
  .hero-shelf::before { top: 7px; }
  .hero-book { flex-basis: 130px; width: 130px; height: 186px; }
  .hero-book-0, .hero-book-2 { height: 177px; }
  .hero-book .cover-title { font-size: 20px; }
  .hero-book .cover-author { font-size: 9px; }
  .catalog-section { padding-top: 28px; padding-bottom: 38px; }
  .catalog-heading { margin-bottom: 25px; }
  .catalog-heading h2 { font-size: 28px; }
  .search-form { min-width: 0; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 29px 18px; }
  .book-stage { height: 247px; padding: 18px 12px; }
  .book-info { padding-top: 14px; }
  .book-info h3 { font-size: 21px; }
  .book-author { font-size: 13px; margin-bottom: 11px; }
  .book-bottom { flex-wrap: wrap; gap: 5px 14px; }
  .book-genre { font-size: 11px; }
  .book-price { font-size: 15px; }
  .detail-link { font-size: 12px; }
  .catalog-note { margin-top: 34px; gap: 14px; }
  .catalog-note h3 { font-size: 15px; }
  .catalog-note p { font-size: 13px; }
  .page-space { padding-block: 26px 48px; }
  .breadcrumbs { font-size: 12px; gap: 9px; margin-bottom: 24px; }
  .book-detail { grid-template-columns: 1fr; gap: 27px; }
  .detail-stage { min-height: 385px; }
  .detail-copy { padding-top: 0; }
  .detail-copy h1 { font-size: 38px; }
  .detail-description { font-size: 15px; }
  .auth-layout { margin-block: 34px 44px; grid-template-columns: 1fr; max-width: 480px; }
  .auth-introduction { display: none; }
  .auth-panel { padding: 32px 26px 28px; }
  .auth-panel h1 { font-size: 32px; }
  .account-heading { align-items: flex-start; gap: 15px; margin-bottom: 28px; }
  .account-heading h1 { font-size: 30px; }
  .account-heading .muted { font-size: 13px; overflow-wrap: anywhere; }
  .account-heading .button { padding: 9px 14px; }
  .orders-section { padding: 24px 20px 8px; }
  .orders-table { min-width: 570px; }
  .orders-table thead th { font-size: 11px; }
  .orders-table td, .orders-table tbody th { font-size: 13px; }
  .order-heading { align-items: flex-start; }
  .order-heading h1 { font-size: 32px; }
  .order-heading .order-status { margin-top: 7px; }
  .order-layout { grid-template-columns: 1fr; }
  .order-items, .pickup-panel { padding: 24px; }
  .pickup-panel svg { margin-bottom: 14px; }
  .access-section, .error-section { padding-block: 35px 50px; min-height: 60vh; }
  .access-panel, .error-panel { padding: 30px 24px; }
  .access-panel h1, .error-panel h1 { font-size: 32px; }
  .footer-inner { align-items: flex-start; padding-block: 25px; }
  .footer-inner p { font-size: 11px; }
  .footer-brand { font-size: 23px; }
}
@media (max-width: 420px) {
  .header-inner { gap: 10px; }
  .brand { font-size: 25px; gap: 6px; }
  .brand-mark { width: 26px; height: 26px; }
  .main-nav { gap: 13px; }
  .main-nav a { font-size: 12px; }
  .hero h1 { font-size: 37px; }
  .hero-description { font-size: 14px; }
  .book-grid { gap: 25px 14px; }
  .book-stage { height: 210px; padding: 14px 8px; }
  .book-stage .book-cover { width: 120px; height: 180px; padding: 15px 12px 12px; }
  .book-stage .cover-title { font-size: 19px; }
  .book-stage .cover-author { font-size: 8px; }
  .book-stage .cover-art { transform: scale(.74); top: 50px; }
  .book-stage .cover-imprint { font-size: 7px; margin-top: 11px; }
  .book-info h3 { font-size: 19px; }
  .book-author { font-size: 12px; }
  .book-genre { font-size: 10px; }
  .detail-link { font-size: 11px; }
  .footer-inner { flex-direction: column; gap: 16px; }
  .footer-inner .demo-note { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
