@charset "UTF-8";

:root {
  color-scheme: light;
  --page: #f3f9ff;
  --surface: #ffffff;
  --surface-soft: #eaf5fd;
  --surface-raised: #ffffff;
  --ink: #172b3d;
  --ink-soft: #52687b;
  --muted: #596f80;
  --line: #dce9f3;
  --line-strong: #cbdce9;
  --accent: #0878d1;
  --accent-text: #006fc4;
  --accent-bright: #55b8f4;
  --focus: #0878d1;
  --accent-soft: #e2f3ff;
  --shadow: 0 18px 44px rgb(30 76 112 / 8%);
  --radius: 18px;
  --shell: 1160px;
  --reader-font-size: 20px;
  --reader-line-height: 1.85;
  --reader-column-width: 680px;
  --motion-fast: 160ms;
  --motion-ui: 210ms;
  --motion-theme: 250ms;
  --motion-page: 400ms;
  --ease-standard: cubic-bezier(.2, .65, .25, 1);
  --ease-enter: cubic-bezier(.22, 1, .36, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #111a23;
  --surface: #18232e;
  --surface-soft: #1d2b38;
  --surface-raised: #202e3b;
  --ink: #edf5fb;
  --ink-soft: #b3c3d0;
  --muted: #8ea2b3;
  --line: #2b3b49;
  --line-strong: #3b5061;
  --accent: #66baf4;
  --accent-text: #66baf4;
  --accent-bright: #88d0ff;
  --focus: #88d0ff;
  --accent-soft: #1d3a51;
  --shadow: 0 18px 44px rgb(0 0 0 / 18%);
}

html[data-theme="warm"] {
  color-scheme: light;
  --page: #f7f3eb;
  --surface: #fffdf8;
  --surface-soft: #f0e9dc;
  --surface-raised: #fffefa;
  --ink: #302b24;
  --ink-soft: #625b50;
  --muted: #6a6258;
  --line: #e6ddce;
  --line-strong: #d8cbb8;
  --accent: #246f9e;
  --accent-text: #206a95;
  --accent-bright: #6aadd1;
  --focus: #206a95;
  --accent-soft: #e6f0f4;
  --shadow: 0 18px 44px rgb(85 65 34 / 8%);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--motion-theme) var(--ease-standard), color var(--motion-theme) var(--ease-standard);
}
body { display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; transition: color var(--motion-fast) var(--ease-standard); }
button, select, input { font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
a, button, select, input { outline-offset: 4px; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus);
}
::selection { background: var(--accent-bright); color: #102c40; }
.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: fixed; z-index: 10; top: 10px; left: 10px; padding: 10px 14px; transform: translateY(-160%); background: var(--ink); color: var(--page); border-radius: 9px; }
.skip-link:focus { transform: translateY(0); }
.page-shell { width: min(var(--shell), calc(100% - 64px)); margin-inline: auto; }

body[data-page="home"] > main,
body[data-page="book"] > main,
body[data-page="about"] > main { animation: page-enter var(--motion-page) var(--ease-enter) both; }
body[data-page="reader"] > main { animation: reader-enter var(--motion-page) var(--ease-enter) both; }
@keyframes page-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes reader-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.site-header, .site-footer, .theme-picker select, .hero-note, .resume-panel,
.cover-placeholder, .detail-cover-placeholder, .detail-status, .detail-annotation,
.detail-cover-image, .chapter-list, .chapter-row, .chapter-row-static, .chapter-count,
.chapter-number, .chapter-state, .reader-tools, .reader-copy, .reader-message,
.message-card, .hero h1, .hero h1 span, .hero-description, .eyebrow,
.section-heading h2, .section-caption, .book-card-meta, .book-author,
.book-author span, .brand-in, .status-dot, .eyebrow-dot,
.resume-panel strong, .resume-panel span, .detail-copy h1, .detail-author,
.detail-author strong, .unavailable-note, .chapter-name, .reader-heading h1,
.about-content h1, .about-content p, .about-content strong,
.range-setting > span, .range-setting output, .progress-note, .footer-inner,
.footer-mark, .footer-mark > span:last-child {
  transition-property: color, background-color, border-color, box-shadow;
  transition-duration: var(--motion-theme);
  transition-timing-function: var(--ease-standard);
}

.site-header { position: sticky; z-index: 5; top: 0; background: color-mix(in srgb, var(--page) 92%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, transparent); backdrop-filter: blur(14px); }
.header-inner { width: min(1280px, calc(100% - 64px)); min-height: 76px; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-size: 16px; font-weight: 760; letter-spacing: -.035em; }
.brand-in { color: var(--accent-text); }
.wordmark-divider { width: 1px; height: 21px; background: var(--line-strong); }
.wordmark-books { color: var(--ink-soft); font-weight: 540; letter-spacing: -.015em; }
.main-nav { display: flex; align-items: center; gap: 34px; height: 76px; }
.main-nav a { display: grid; align-items: center; height: 100%; position: relative; color: var(--ink-soft); font-size: 13px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"]::after { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--accent); content: ""; }
.theme-picker { justify-self: end; }
.theme-picker select { width: 148px; padding: 9px 34px 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-soft); font-size: 12px; cursor: pointer; }

.hero { min-height: 435px; padding: 74px 0 68px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: center; gap: 90px; }
.hero-copy { max-width: 690px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; color: var(--accent-text); font-size: 11px; font-weight: 740; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow-dot, .status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-bright) 17%, transparent); }
.hero h1 { margin: 0; font-size: clamp(42px, 5.25vw, 68px); line-height: 1.07; letter-spacing: -.055em; font-weight: 630; }
.hero h1 span { color: var(--accent); }
.hero h1 .hero-second-line, .hero h1 .hero-author { display: block; }
.hero h1 .hero-second-line { color: var(--ink); }
.hero h1 .hero-author { color: var(--accent); }
.hero-description { max-width: 495px; margin: 22px 0 27px; color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 22px; padding: 0 19px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 640; transition: transform var(--motion-fast) var(--ease-standard), background-color var(--motion-ui) var(--ease-standard), border-color var(--motion-ui) var(--ease-standard), color var(--motion-ui) var(--ease-standard); }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--accent); color: #fff; box-shadow: 0 7px 17px color-mix(in srgb, var(--accent) 20%, transparent); }
html[data-theme="dark"] .button-primary { color: #10202d; }
.button-primary:hover { background: var(--accent-bright); color: #102c40; }
.button-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button-outline:hover, .button-quiet:hover { background: var(--surface-soft); border-color: var(--accent-bright); }
.button-quiet { padding-inline: 13px; border-color: var(--line); background: var(--surface); color: var(--ink-soft); }
.hero-note { min-height: 245px; padding: 27px 25px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.hero-note::after { position: absolute; right: -38px; bottom: -50px; width: 180px; height: 180px; border: 1px solid color-mix(in srgb, var(--accent-bright) 50%, transparent); border-radius: 50%; content: ""; box-shadow: 0 0 0 24px color-mix(in srgb, var(--accent-bright) 8%, transparent), 0 0 0 48px color-mix(in srgb, var(--accent-bright) 5%, transparent); }
.note-index { color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.note-index span { display: inline-block; width: 30px; height: 1px; margin: 0 8px 3px; background: var(--line-strong); }
.hero-note p { margin: auto 0; font-family: Georgia, "Times New Roman", serif; font-size: 21px; line-height: 1.55; }
.note-signature { z-index: 1; color: var(--accent-text); font-size: 11px; font-weight: 650; letter-spacing: .08em; }

.library-section { padding: 28px 0 88px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2, .chapter-section h2 { margin: 0; font-size: 27px; line-height: 1.2; font-weight: 610; letter-spacing: -.04em; }
.section-caption, .chapter-count { margin: 0 2px 4px; color: var(--muted); font-size: 12px; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.book-card { min-width: 0; }
.book-card-link { width: 100%; min-width: 0; min-height: 232px; display: grid; grid-template-columns: 178px minmax(0, 1fr); align-items: stretch; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: var(--ink); cursor: pointer; transition: transform var(--motion-ui) var(--ease-standard), box-shadow var(--motion-ui) var(--ease-standard), border-color var(--motion-theme) var(--ease-standard), background-color var(--motion-theme) var(--ease-standard), color var(--motion-theme) var(--ease-standard); }
.book-card-link:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--surface-soft); box-shadow: var(--shadow); }
.book-card-link:active { transform: translateY(0); }
.book-card-link:focus-visible { position: relative; z-index: 1; outline: 3px solid var(--focus); outline-offset: -5px; }
.book-card-cover { min-width: 0; min-height: 204px; margin: 14px 0 14px 14px; }
.cover-placeholder { height: 100%; min-height: 204px; padding: 18px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; overflow: hidden; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 9px; }
.cover-overline { color: var(--accent-text); font-size: 9px; font-weight: 720; letter-spacing: .14em; }
.cover-title { color: var(--ink-soft); font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.32; }
.cover-foot { color: var(--muted); font-size: 10px; letter-spacing: .05em; }
.book-cover-image { display: block; width: 100%; height: 100%; min-height: 204px; border: 1px solid var(--line); border-radius: 9px; object-fit: cover; }
.book-card-info { min-width: 0; padding: 23px 30px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.book-card-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.book-card-meta .status-dot { width: 6px; height: 6px; box-shadow: none; }
.book-card h3 { margin: 11px 0 5px; font-size: 22px; font-weight: 625; letter-spacing: -.025em; transition: color var(--motion-fast) var(--ease-standard); }
.book-card-link:hover h3 { color: var(--accent); }
.book-author { margin: 0; color: var(--ink-soft); font-size: 12px; }
.book-author span { margin-left: 4px; color: var(--ink); font-weight: 620; }
.book-availability { width: 100%; margin-top: 17px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.resume-panel { margin-top: 20px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.resume-panel[hidden] { display: none; }
.resume-panel > div { display: grid; gap: 2px; }
.resume-panel .eyebrow { margin-bottom: 2px; font-size: 9px; }
.resume-panel strong { font-size: 14px; }
.resume-panel span { color: var(--muted); font-size: 11px; }
.empty-state { color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { width: min(1280px, calc(100% - 64px)); min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; }
.footer-mark { color: var(--ink); font-size: 11px; font-weight: 730; letter-spacing: -.025em; }
.footer-mark > span:last-child { color: var(--muted); font-weight: 520; }
.footer-inner > a:last-child { color: var(--ink-soft); }
.footer-inner > a:last-child:hover, .back-link:hover { color: var(--accent-text); }

.interior-page { min-height: calc(100vh - 150px); padding-top: 35px; padding-bottom: 80px; }
.about-content { max-width: 760px; margin: 0 auto; padding: 47px 0 55px; }
.about-content h1 { margin: 0 0 29px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6vw, 60px); line-height: 1.12; font-weight: 520; letter-spacing: -.045em; }
.about-content p { max-width: 680px; margin: 0 0 23px; color: var(--ink-soft); font-family: Georgia, "Times New Roman", serif; font-size: clamp(17px, 2vw, 20px); line-height: 1.85; }
.about-content p:last-child { margin-bottom: 0; color: var(--ink); font-size: 17px; font-weight: 560; }
.about-content strong { color: var(--ink); font-weight: 650; }
.back-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 12px; }
.book-detail-hero { padding: 45px 0 61px; display: grid; grid-template-columns: 255px minmax(0, 1fr); align-items: center; gap: 68px; }
.detail-cover { width: 255px; }
.detail-cover-placeholder { aspect-ratio: 3 / 4; padding: 23px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface-soft); box-shadow: var(--shadow); }
.detail-cover-title { color: var(--ink-soft); font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1.35; }
.detail-cover-image { display: block; width: 100%; aspect-ratio: 3 / 4; border: 1px solid var(--line); border-radius: 11px; object-fit: cover; box-shadow: var(--shadow); }
.detail-copy { max-width: 650px; }
.detail-copy h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 56px); line-height: 1.12; font-weight: 520; letter-spacing: -.045em; }
.detail-author { margin: 15px 0 17px; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.detail-author strong { margin-left: 5px; color: var(--ink); font-weight: 620; }
.detail-status { display: flex; align-items: center; gap: 9px; width: fit-content; margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 30px; color: var(--ink-soft); font-size: 12px; }
.detail-annotation { max-width: 520px; margin: 19px 0 23px; color: var(--ink-soft); font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.8; }
.detail-annotation p { margin: 0 0 .85em; }
.detail-annotation p:last-child { margin-bottom: 0; }
.detail-annotation .detail-annotation-empty { color: var(--muted); font-size: 15px; }
.detail-actions { display: flex; align-items: center; gap: 15px; }
.unavailable-note { margin: 0; color: var(--muted); font-size: 12px; }
.chapter-section { max-width: 850px; border-top: 1px solid var(--line); padding-top: 28px; }
.chapter-section .section-heading { margin-bottom: 15px; }
.chapter-section h2 { font-size: 24px; }
.chapter-section .chapter-count { margin-bottom: 2px; font-size: 14px; }
.chapter-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.chapter-row { border-bottom: 1px solid var(--line); }
.chapter-row-link, .chapter-row-static { min-height: 64px; padding: 10px 12px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.chapter-row-link { border-radius: 8px; color: var(--ink); cursor: pointer; transition: background-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard); }
.chapter-row-link:hover { background: var(--surface-soft); color: var(--accent-text); }
.chapter-row-link:active { background: var(--accent-soft); }
.chapter-row-link:focus-visible { position: relative; z-index: 1; outline: 3px solid var(--focus); outline-offset: -2px; }
.chapter-row-static { color: var(--ink-soft); cursor: default; }
.chapter-number { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.chapter-name { min-width: 0; font-size: 14px; font-weight: 560; line-height: 1.45; overflow-wrap: anywhere; }
.chapter-state { color: var(--ink-soft); font-size: 12px; line-height: 1.4; text-align: right; }
.chapter-state-live { color: var(--accent-text); font-weight: 620; }
.message-card { max-width: 620px; margin: 85px auto; padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.message-card h1 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 35px; font-weight: 520; }
.message-card p:not(.eyebrow) { margin: 0 0 25px; color: var(--ink-soft); }

.reader-page { background: var(--page); }
.reader-header .header-inner { grid-template-columns: 1fr 1fr 1fr; }
.reader-return { justify-self: center; color: var(--ink-soft); font-size: 12px; }
.reader-return:hover { color: var(--accent-text); }
.reader-main { width: min(100%, 1000px); padding-top: 48px; padding-bottom: 90px; }
.reader-content { max-width: 920px; margin: auto; }
.reader-content[hidden], .reader-message[hidden] { display: none; }
.reader-heading { max-width: 740px; margin: auto; padding: 0 20px 31px; text-align: center; }
.reader-heading .eyebrow { justify-content: center; font-size: 10px; }
.reader-heading h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 36px; font-weight: 520; letter-spacing: -.03em; line-height: 1.23; }
.demo-badge { width: fit-content; margin: 15px auto 0; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 20px; color: var(--accent-text); font-size: 9px; font-weight: 650; letter-spacing: .06em; }
.demo-badge[hidden] { display: none; }
.reader-tools { width: fit-content; max-width: 100%; margin: 0 auto 43px; padding: 15px 18px; display: flex; justify-content: center; gap: 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.range-setting { width: 165px; min-width: 0; display: grid; gap: 7px; }
.range-setting > span { display: flex; justify-content: space-between; gap: 7px; color: var(--ink-soft); font-size: 9px; white-space: nowrap; }
.range-setting output { color: var(--ink); font-variant-numeric: tabular-nums; }
.range-setting input { width: 100%; height: 14px; margin: 0; accent-color: var(--accent); cursor: pointer; transition: accent-color var(--motion-fast) var(--ease-standard); }
.range-setting input:hover { accent-color: var(--accent-bright); }
.reader-copy { width: min(var(--reader-column-width), 100%); margin-inline: auto; padding-inline: 18px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: var(--reader-font-size); line-height: var(--reader-line-height); overflow-wrap: anywhere; }
.reader-copy p { margin: 0 0 1.35em; }
.reader-copy p:first-child::first-letter { color: var(--accent-text); }
.chapter-navigation { width: min(var(--reader-column-width), 100%); margin: 40px auto 0; padding: 22px 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.chapter-navigation [hidden] { display: none; }
.progress-note { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 10px; }
.reader-message { max-width: 620px; margin: 75px auto 95px; padding: 37px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.reader-message h1 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 34px; font-weight: 520; }
.reader-message p:not(.eyebrow) { margin: 0 0 25px; color: var(--ink-soft); }

@media (max-width: 800px) {
  .page-shell, .header-inner, .footer-inner { width: min(100% - 40px, var(--shell)); }
  .hero { min-height: unset; padding: 55px 0 42px; grid-template-columns: minmax(0, 1fr) 245px; gap: 35px; }
  .hero-note { min-height: 210px; }
  .book-card-link { grid-template-columns: 152px minmax(0, 1fr); }
  .book-card-info { padding-inline: 22px; }
  .book-detail-hero { grid-template-columns: 210px minmax(0, 1fr); gap: 38px; }
  .detail-cover { width: 210px; }
  .reader-tools { gap: 12px; }
  .range-setting { width: 145px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 74px; }
  .page-shell, .header-inner, .footer-inner { width: calc(100% - 36px); }
  .header-inner { min-height: 67px; grid-template-columns: 1fr auto; gap: 10px; }
  .wordmark { gap: 7px; font-size: 14px; }
  .wordmark-divider { height: 17px; }
  .main-nav { order: 3; grid-column: 1 / -1; grid-row: 2; height: 37px; gap: 25px; }
  .main-nav a { font-size: 11px; }
  .site-header:not(.reader-header) .header-inner { padding-top: 6px; }
  .theme-picker select { width: 120px; padding: 8px 23px 8px 9px; font-size: 10px; }
  .site-header:not(.reader-header) { position: relative; }
  .hero { padding: 45px 0 36px; display: block; }
  .hero h1 { font-size: clamp(39px, 10vw, 54px); }
  .hero-description { margin: 17px 0 22px; font-size: 14px; }
  .hero-note { display: none; }
  .library-section { padding: 14px 0 60px; }
  .section-heading h2 { font-size: 24px; }
  .book-grid { grid-template-columns: 1fr; gap: 13px; }
  .book-card-link { min-height: 166px; grid-template-columns: 96px minmax(0, 1fr); }
  .book-card-cover { min-height: 136px; margin: 11px 0 11px 11px; }
  .cover-placeholder, .book-cover-image { min-height: 136px; height: 100%; }
  .cover-placeholder { padding: 10px; }
  .cover-title { font-size: 13px; }
  .cover-overline { font-size: 7px; }
  .cover-foot { font-size: 8px; }
  .book-card-info { padding: 13px 12px; }
  .book-card-meta { align-items: start; font-size: 9px; }
  .book-card h3 { margin: 8px 0 3px; font-size: 16px; }
  .book-author { font-size: 10px; }
  .book-availability { margin-top: 10px; padding-top: 8px; font-size: 9px; }
  .resume-panel { align-items: flex-start; flex-direction: column; }
  .footer-inner { min-height: 86px; flex-wrap: wrap; justify-content: space-between; gap: 6px 15px; padding: 15px 0; }
  .footer-inner > span { order: 3; width: 100%; }
  .footer-inner > a:last-child { font-size: 9px; }
  .interior-page { padding-top: 25px; padding-bottom: 55px; }
  .about-content { padding: 28px 0 35px; }
  .about-content h1 { margin-bottom: 22px; font-size: clamp(38px, 10vw, 48px); }
  .about-content p { font-size: 17px; line-height: 1.78; }
  .book-detail-hero { padding: 31px 0 41px; grid-template-columns: 105px minmax(0, 1fr); align-items: start; gap: 19px; }
  .detail-cover { width: 105px; }
  .detail-cover-placeholder { padding: 11px; border-radius: 7px; }
  .detail-cover-placeholder .cover-overline { font-size: 6px; }
  .detail-cover-title { font-size: 13px; }
  .detail-cover-placeholder .cover-foot { font-size: 7px; }
  .detail-copy h1 { font-size: 28px; overflow-wrap: anywhere; }
  .detail-author { margin: 10px 0; font-size: 14px; }
  .detail-status { padding: 6px 9px; font-size: 11px; }
  .detail-status .status-dot { width: 5px; height: 5px; }
  .detail-annotation { margin: 14px 0 17px; font-size: 14px; line-height: 1.72; }
  .detail-annotation .detail-annotation-empty { font-size: 13px; }
  .detail-actions { grid-column: 1 / -1; }
  .unavailable-note { font-size: 10px; }
  .chapter-row-link, .chapter-row-static { min-height: 58px; padding: 9px 7px; grid-template-columns: 28px minmax(0, 1fr) minmax(64px, auto); gap: 8px; }
  .chapter-number { font-size: 11px; }
  .chapter-name { font-size: 12px; }
  .chapter-state { max-width: 76px; font-size: 10px; }
  .reader-header { position: relative; }
  .reader-header .header-inner { grid-template-columns: 1fr auto; }
  .reader-return { grid-column: 1 / -1; grid-row: 2; justify-self: start; margin: 0 0 11px; font-size: 10px; }
  .reader-header .header-inner { padding-top: 7px; }
  .reader-main { padding-top: 34px; padding-bottom: 55px; }
  .reader-heading { padding-inline: 5px; padding-bottom: 23px; }
  .reader-heading h1 { font-size: 29px; }
  .reader-tools { width: 100%; margin-bottom: 30px; padding: 13px; display: grid; grid-template-columns: 1fr; gap: 10px; }
  .range-setting { width: 100%; grid-template-columns: minmax(100px, .8fr) minmax(100px, 1.2fr); align-items: center; gap: 10px; }
  .range-setting > span { font-size: 9px; }
  .reader-copy { padding-inline: 5px; }
  .chapter-navigation { padding-inline: 5px; }
  .chapter-navigation .button { min-height: 42px; gap: 8px; padding-inline: 11px; font-size: 10px; }
  .reader-message { margin: 45px auto 60px; padding: 25px; }
  .reader-message h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  body[data-page="home"] > main,
  body[data-page="book"] > main,
  body[data-page="about"] > main,
  body[data-page="reader"] > main { animation: none; opacity: 1; transform: none; }
  .book-card-link:hover, .book-card-link:active, .button:hover, .button:active { transform: none; }
}
