:root {
  --paper: #f5f2ea;
  --ink: #263339;
  --muted: #68716e;
  --line: #d8dbd1;
  --navy: #111b2c;
  --accent: #e7b18d;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  --reading-size: 20px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.8;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
button {
  background: none;
  border: 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
svg {
  width: 24px;
  height: 24px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
button:hover {
  opacity: 0.8;
}
:focus-visible {
  outline: 3px solid #a76134;
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1180px, calc(100% - 80px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 100;
  background: var(--paper);
  padding: 12px;
}
.skip-link:focus {
  top: 8px;
}
.site-header {
  background: var(--navy);
  color: #eef1f5;
}
.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.brand svg {
  color: var(--accent);
  width: 31px;
  height: 31px;
}
.brand b {
  font-weight: 400;
  color: #adb9c9;
  font-size: 10px;
  display: block;
  letter-spacing: 0.24em;
  line-height: 1.4;
}
.header-inner nav {
  display: flex;
  gap: 30px;
  font-size: 12px;
  align-items: center;
}
.header-inner nav a {
  padding: 12px 0;
}
.portal-link {
  color: var(--accent);
}
.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.19em;
  line-height: 1.6;
  color: var(--muted);
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
  padding-block: 66px 76px;
}
.hero-copy > .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.hero-copy > .eyebrow span {
  width: 28px;
  height: 1px;
  background: #a16d50;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 5.8vw, 78px);
  line-height: 1.45;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 13px;
  line-height: 2.1;
  color: var(--muted);
  margin-bottom: 35px;
}
.hero-book-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.hero-book-meta i {
  height: 1px;
  background: var(--line);
  width: 28px;
}
.hero h2 {
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: 0.08em;
  margin: 8px 0 12px;
}
.hero-description {
  font-size: 13px;
  line-height: 2;
  max-width: 430px;
  margin-bottom: 22px;
}
.hero-actions {
  display: flex;
  gap: 26px;
  align-items: center;
}
.button {
  display: inline-flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 24px;
  font-size: 13px;
  line-height: 1.8;
  border: 1px solid transparent;
  transition: background 0.2s;
}
.button:hover {
  text-decoration: none;
}
.button-dark {
  background: var(--ink);
  color: #fff;
}
.button-dark:hover {
  background: #405659;
}
.button-outline {
  border-color: var(--line);
}
.button-outline:hover {
  background: #e6e8de;
}
.text-link {
  font-size: 12px;
  border-bottom: 1px solid var(--muted);
  padding-block: 8px;
}
.micro-meta {
  font-size: 10px;
  color: var(--muted);
  margin: 14px 0 0;
}
.micro-meta span {
  padding-inline: 9px;
  color: #a5aca2;
}
.hero-art {
  position: relative;
  isolation: isolate;
  min-height: 605px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #dce3dc;
  background-image: linear-gradient(130deg, #e4e9df, #cbd8d2);
  text-decoration: none !important;
}
.book-object {
  width: 58%;
  transform: rotate(-7deg);
  box-shadow:
    15px 28px 35px #263c3845,
    2px 3px 4px #14282644;
  transition: transform 0.5s;
  z-index: 2;
}
.hero-art:hover .book-object {
  transform: rotate(-4deg) translateY(-6px);
}
.book-object img {
  width: 100%;
}
.art-orbit {
  position: absolute;
  border: 1px solid #95aca080;
  border-radius: 50%;
  width: 570px;
  height: 570px;
  z-index: -1;
}
.orbit-one {
  transform: translate(95px, 80px);
}
.orbit-two {
  width: 410px;
  height: 410px;
  transform: translate(-100px, -155px);
}
.vertical-note {
  position: absolute;
  top: 34px;
  right: 25px;
  writing-mode: vertical-rl;
  letter-spacing: 0.24em;
  font-family: var(--serif);
  font-size: 12px;
  color: #526962;
}
.art-caption {
  position: absolute;
  bottom: 24px;
  left: 26px;
  right: 26px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #50675f;
}
.continue-section {
  display: flex;
  align-items: center;
  gap: 25px;
  border-block: 1px solid var(--line);
  padding: 25px 0;
  margin-bottom: 65px;
}
.continue-mark {
  font-size: 36px;
  color: #8d6952;
}
.continue-section h2 {
  font-family: var(--serif);
  margin: 3px 0;
  font-size: 20px;
}
.continue-section p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.continue-section .button {
  margin-left: auto;
}
.library {
  padding: 30px 0 90px;
  scroll-margin-top: 30px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 30px;
}
.section-heading .eyebrow {
  margin-bottom: 10px;
}
.section-heading h2 {
  font-size: 30px;
  font-family: var(--serif);
  margin: 0;
  letter-spacing: 0.07em;
}
.section-heading > p,
.section-heading > span {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.count {
  font-family: var(--sans);
  font-size: 11px;
  vertical-align: top;
  display: inline-block;
  margin: 2px 0 0 15px;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 27px;
  height: 27px;
  line-height: 25px;
  text-align: center;
  letter-spacing: 0;
}
.search-form {
  display: flex;
  gap: 24px;
  border-block: 1px solid var(--line);
  padding: 15px 0;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.search-box svg {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.3;
  flex-shrink: 0;
  width: 20px;
}
.search-box input {
  background: transparent;
  border: 0;
  width: 100%;
  min-width: 0;
  font-size: 13px;
  min-height: 44px;
}
.search-box button {
  min-width: 44px;
  min-height: 44px;
}
.filter-select {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
}
.filter-select > span {
  color: var(--muted);
}
select {
  border: 1px solid var(--line);
  background: transparent;
  min-height: 44px;
  padding: 8px 30px 8px 12px;
  max-width: 180px;
}
.result-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin: 18px 0 24px;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.book-card {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 24px;
  padding: 26px;
  background: #eeeee5;
  border: 1px solid #dfe2d6;
}
.book-card:only-child {
  grid-column: 1/-1;
  grid-template-columns: 158px 1fr;
  gap: 40px;
  padding: 32px;
}
.card-cover {
  align-self: start;
  box-shadow: 4px 7px 12px #273c3824;
}
.card-cover img {
  width: 100%;
}
.card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tags {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 10px;
}
.status-tag {
  border: 1px solid #9aa99b;
  padding: 1px 8px;
  color: #435a4b;
}
.genre-tag {
  color: var(--muted);
}
.card-body h3 {
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: 0.07em;
  margin: 13px 0;
}
.card-body p {
  font-size: 12px;
  color: var(--muted);
  line-height: 2;
  max-width: 700px;
}
.card-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 11px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.card-bottom > span {
  color: var(--muted);
}
.card-link {
  padding-block: 8px;
}
.card-link span {
  margin-left: 14px;
}
.empty-state {
  text-align: center;
  padding: 60px 10px;
}
.empty-state h3 {
  font-family: var(--serif);
  font-size: 22px;
}
.empty-state p {
  font-size: 13px;
}
.about-section {
  background: #e9e9df;
  padding: 65px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 70px;
}
.about-grid h2 {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  margin-bottom: 0;
}
.about-grid > div > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 2.2;
}
.about-grid .about-note {
  color: var(--muted);
  font-size: 12px !important;
  margin: 24px 0 0;
}
.site-footer {
  padding-block: 42px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 19px;
}
.footer-brand svg {
  width: 28px;
  height: 28px;
}
.footer-brand small {
  display: block;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.15em;
}
.site-footer > p {
  grid-column: 1;
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.site-footer > a:not(.footer-brand) {
  grid-column: 2;
  grid-row: 1;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.site-footer > small {
  grid-column: 2;
  grid-row: 2;
  font-size: 9px;
  color: var(--muted);
}
.breadcrumb {
  display: flex;
  gap: 15px;
  font-size: 11px;
  color: var(--muted);
  padding: 25px 0 35px;
}
.detail-hero {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 75px;
  align-items: center;
  margin: 15px 0 75px;
}
.detail-cover {
  background: #dce3dc;
  padding: 28px;
}
.detail-cover img {
  box-shadow: 7px 12px 20px #263c3830;
}
.detail-copy h1 {
  font-family: var(--serif);
  font-size: 42px;
  letter-spacing: 0.07em;
  margin: 14px 0;
}
.detail-copy .subtitle {
  font-family: var(--serif);
  font-size: 18px;
}
.detail-copy > p:not(.eyebrow):not(.subtitle) {
  font-size: 13px;
  line-height: 2.1;
  max-width: 630px;
}
.book-facts {
  display: flex;
  gap: 32px;
  margin: 25px 0;
}
.book-facts dt {
  font-size: 10px;
  color: var(--muted);
}
.book-facts dd {
  margin: 4px 0 0;
  font-size: 13px;
}
.detail-resume {
  margin: 8px 0 0 8px;
}
.book-keywords {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 20px;
  flex-wrap: wrap;
}
.detail-columns {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 75px;
  padding-bottom: 80px;
}
.synopsis h2 {
  font-family: var(--serif);
  font-size: 25px;
}
.synopsis > p:not(.eyebrow) {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 2.2;
  margin: 22px 0;
}
.cast-section {
  margin-top: 40px;
  border-block: 1px solid var(--line);
}
summary {
  padding: 20px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 15px;
}
summary::-webkit-details-marker {
  display: none;
}
summary span {
  font-size: 10px;
  color: var(--muted);
}
figure {
  margin: 10px 0 25px;
}
figcaption {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 12px;
}
.cast-list > div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.cast-list dt {
  font-family: var(--serif);
  font-size: 17px;
}
.cast-list dt small {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--muted);
  margin-left: 16px;
}
.cast-list dd {
  margin: 8px 0 0;
  font-size: 12px;
}
.fiction-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 2;
  margin: 25px 0;
}
.download-link {
  display: inline-block;
  font-size: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.detail-toc .section-heading {
  margin-bottom: 15px;
}
.detail-toc h2 {
  font-size: 25px;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-list li {
  border-bottom: 1px solid var(--line);
}
.toc-list a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 5px;
  font-size: 13px;
  min-height: 52px;
}
.toc-list a:hover {
  background: #80917c12;
  text-decoration: none;
}
.toc-list a > span:last-child {
  margin-left: auto;
}
.toc-number {
  font-size: 10px;
  color: var(--muted);
  font-family: var(--sans);
}
.toc-list [aria-current="page"] {
  color: #956042;
  background: #a97b4a10;
}
.current-label {
  font-size: 10px;
}
.not-found {
  padding-block: 100px;
}
.not-found h1 {
  font-family: var(--serif);
  font-size: 36px;
}
html[data-reader] {
  --paper: #f6f2e9;
  --ink: #303631;
  --line: #d9dbd1;
}
html[data-theme="white"] {
  --paper: #fff;
  --ink: #292e30;
  --line: #e0e3e4;
}
html[data-theme="night"] {
  --paper: #182126;
  --ink: #d5d9d4;
  --muted: #a4afa9;
  --line: #36434a;
  color-scheme: dark;
}
.reader-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 12px max(24px, calc((100% - 1180px) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  min-height: 70px;
}
.reader-back {
  display: flex;
  gap: 15px;
  align-items: center;
  font-family: var(--serif);
  font-size: 16px;
  padding-block: 9px;
}
.reader-tools {
  display: flex;
  gap: 8px;
}
.reader-tools button {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 12px;
  border: 1px solid var(--line);
}
.reader-tools button:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reading-progress {
  position: sticky;
  top: 70px;
  z-index: 11;
  height: 2px;
  pointer-events: none;
}
.reading-progress span {
  height: 100%;
  width: 0;
  background: #9d7a55;
  display: block;
}
.reading-main {
  max-width: 740px;
  width: calc(100% - 48px);
  margin: auto;
  padding: 65px 0 35px;
}
.chapter-heading {
  margin-bottom: 55px;
}
.chapter-heading .eyebrow {
  margin-bottom: 16px;
}
.chapter-heading .eyebrow span {
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-left: 12px;
}
.chapter-heading h1 {
  font-family: var(--serif);
  font-size: clamp(25px, 4vw, 35px);
  line-height: 1.8;
  letter-spacing: 0.05em;
}
.prose {
  font-family: var(--serif);
  font-size: var(--reading-size);
  line-height: 2.05;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
  line-break: strict;
}
.prose p {
  margin: 0 0 1.15em;
  scroll-margin-top: 105px;
}
.prose blockquote {
  margin: 1.5em 0.6em;
  padding: 0.3em 0 0.3em 1.1em;
  border-left: 2px solid var(--line);
  font-size: 0.93em;
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose .scene-break {
  text-align: center;
  margin: 2.5em 0;
}
.prose .ending {
  text-align: right;
  margin-top: 3em;
}
.reader-figure {
  border-block: 1px solid var(--line);
  margin: 0 0 40px;
}
.reader-figure img {
  background: #fff;
}
.prose .inline-figure { margin: 2em 0; font-family: var(--sans, sans-serif); }
.prose .inline-figure summary { font-size: 16px; line-height: 1.7; }
.prose .inline-figure figcaption { font-size: 13px; line-height: 1.8; }
.reader-next {
  border-top: 1px solid var(--line);
  margin-top: 65px;
  padding-top: 30px;
}
.next-chapter {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  font-family: var(--serif);
  font-size: 25px;
  min-height: 80px;
  padding-bottom: 20px;
}
.reader-secondary {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
}
.reader-secondary a {
  padding-block: 12px;
}
.reader-secondary > span {
  padding-block: 12px;
}
.reading-notice {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  margin: 40px 0 0;
}
.finished-message {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 2;
}
.reader-next .button {
  margin-bottom: 15px;
}
dialog {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  width: min(560px, calc(100% - 32px));
  max-height: 85dvh;
  padding: 28px 32px;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #111b2c80;
  backdrop-filter: blur(3px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.dialog-heading h2 {
  font-family: var(--serif);
  font-size: 23px;
  margin: 0;
}
.dialog-heading button {
  font-size: 26px;
  min-height: 44px;
  min-width: 44px;
}
.dialog-book {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 20px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 30px 0;
}
legend {
  font-size: 12px;
  margin-bottom: 14px;
}
.setting-options {
  display: flex;
  gap: 10px;
}
.setting-options label {
  flex: 1;
  position: relative;
  cursor: pointer;
}
.setting-options input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.setting-options span {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  min-height: 50px;
  font-size: 13px;
}
.setting-options input:checked + span {
  outline: 2px solid #aa805b;
  outline-offset: 2px;
}
.setting-options input:focus-visible + span {
  outline: 3px solid #b87540;
  outline-offset: 4px;
}
.theme-paper {
  background: #f6f2e9;
  color: #303631;
}
.theme-white {
  background: white;
  color: #292e30;
}
.theme-night {
  background: #182126;
  color: #d5d9d4;
}
.settings-note {
  font-size: 11px;
  line-height: 2;
  color: var(--muted);
}
#reset-preferences {
  font-size: 11px;
  margin-top: 10px;
}
@media (min-width: 1500px) {
  .hero {
    gap: 100px;
  }
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .hero {
    gap: 35px;
  }
  .hero-art {
    min-height: 550px;
  }
  .hero h1 {
    font-size: 59px;
  }
  .book-object {
    width: 65%;
  }
  .detail-hero {
    gap: 40px;
    grid-template-columns: 240px 1fr;
  }
  .detail-columns {
    gap: 40px;
  }
  .book-card {
    grid-template-columns: 100px 1fr;
    padding: 20px;
    gap: 20px;
  }
  .card-body h3 {
    font-size: 22px;
  }
  .card-bottom {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .header-inner {
    min-height: 75px;
    gap: 15px;
  }
  .brand {
    font-size: 12px;
    letter-spacing: 0.09em;
    gap: 9px;
  }
  .brand b {
    font-size: 8px;
  }
  .brand svg {
    width: 25px;
  }
  .header-inner nav {
    gap: 16px;
    font-size: 11px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 38px 45px;
  }
  .hero h1 {
    font-size: 54px;
    line-height: 1.4;
    margin-bottom: 18px;
  }
  .hero-copy > .eyebrow {
    font-size: 9px;
    margin-bottom: 18px;
  }
  .hero-lead {
    margin-bottom: 25px;
    font-size: 12px;
  }
  .hero-description {
    max-width: none;
    font-size: 12px;
  }
  .hero h2 {
    font-size: 25px;
  }
  .hero-art {
    min-height: 370px;
  }
  .book-object {
    width: 195px;
  }
  .vertical-note {
    right: 20px;
    top: 25px;
    font-size: 10px;
  }
  .art-caption {
    left: 20px;
    right: 20px;
    bottom: 17px;
    font-size: 8px;
  }
  .art-orbit {
    width: 410px;
    height: 410px;
  }
  .orbit-two {
    width: 300px;
    height: 300px;
  }
  .hero-actions {
    gap: 24px;
  }
  .hero-actions .button {
    padding: 12px 22px;
  }
  .continue-section {
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
  }
  .continue-mark {
    display: none;
  }
  .continue-section .button {
    font-size: 11px;
    padding: 8px 14px;
    gap: 8px;
  }
  .continue-section h2 {
    font-size: 18px;
  }
  .continue-section p {
    font-size: 10px;
  }
  .continue-section .eyebrow {
    font-size: 8px;
  }
  .library {
    padding: 20px 0 50px;
  }
  .section-heading {
    align-items: start;
    margin-bottom: 20px;
  }
  .section-heading h2 {
    font-size: 25px;
  }
  .section-heading > p {
    display: none;
  }
  .search-form {
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .search-box {
    flex-basis: 100%;
  }
  .filter-select {
    width: 100%;
    justify-content: space-between;
    font-size: 11px;
  }
  .filter-select select {
    flex: 1;
    max-width: 210px;
    min-height: 40px;
  }
  .book-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .book-card,
  .book-card:only-child {
    grid-column: auto;
    grid-template-columns: 95px 1fr;
    gap: 18px;
    padding: 20px 16px;
  }
  .card-body h3 {
    font-size: 20px;
    letter-spacing: 0.03em;
    margin: 10px 0;
  }
  .card-body p {
    font-size: 11px;
    line-height: 1.95;
  }
  .card-bottom {
    flex-direction: column;
    align-items: start;
    font-size: 10px;
    padding-top: 12px;
  }
  .tags {
    gap: 8px;
    font-size: 9px;
  }
  .card-link {
    min-height: 38px;
  }
  .about-section {
    padding: 42px 0;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .about-grid h2 {
    font-size: 28px;
  }
  .about-grid > div > p:not(.eyebrow) {
    font-size: 13px;
  }
  .site-footer {
    padding-block: 30px;
    gap: 17px;
    grid-template-columns: 1fr auto;
  }
  .footer-brand {
    font-size: 16px;
  }
  .site-footer > p {
    font-size: 10px;
  }
  .site-footer > small {
    grid-column: 1/-1;
    grid-row: auto;
    font-size: 8px;
  }
  .site-footer > a:not(.footer-brand) {
    font-size: 8px;
  }
  .detail-hero {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 0 0 45px;
  }
  .detail-cover {
    width: 210px;
    margin: auto;
    padding: 20px;
  }
  .detail-copy h1 {
    font-size: 32px;
  }
  .detail-copy .subtitle {
    font-size: 16px;
  }
  .detail-copy .button {
    font-size: 12px;
    padding-inline: 18px;
    gap: 15px;
  }
  .detail-resume {
    margin-left: 0;
  }
  .book-facts {
    gap: 25px;
  }
  .detail-columns {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-bottom: 45px;
  }
  .breadcrumb {
    padding-block: 20px 30px;
  }
  .reader-header {
    padding: 10px 16px;
    min-height: 66px;
  }
  .reader-back {
    font-size: 14px;
    gap: 10px;
  }
  .reader-tools {
    gap: 6px;
  }
  .reader-tools button {
    padding: 8px 12px;
  }
  .tool-label {
    display: none;
  }
  .reading-progress {
    top: 66px;
  }
  .reading-main {
    width: calc(100% - 40px);
    padding-top: 40px;
  }
  .chapter-heading {
    margin-bottom: 38px;
  }
  .chapter-heading h1 {
    font-size: 26px;
  }
  .prose {
    line-height: 2.05;
    letter-spacing: 0.015em;
  }
  .prose p {
    margin-bottom: 1.05em;
  }
  .reader-next {
    margin-top: 45px;
  }
  .next-chapter {
    font-size: 22px;
  }
  .reader-secondary {
    font-size: 10px;
    gap: 8px;
  }
  dialog {
    padding: 20px;
  }
  .dialog-heading h2 {
    font-size: 21px;
  }
  .setting-options {
    gap: 9px;
  }
  .setting-options span {
    font-size: 12px;
  }
  .not-found {
    padding-block: 65px;
  }
  .not-found h1 {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .site-header,
  .site-footer,
  .reader-header,
  .reading-progress,
  .reader-next,
  .reading-notice,
  .skip-link,
  dialog {
    display: none;
  }
  .reading-main {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  .prose {
    font-size: 12pt;
    color: #000;
  }
  body {
    background: #fff;
  }
}
.prose .fin {
  text-align: right;
  margin-top: 3em;
}
html[data-reader] {
  scroll-behavior: auto;
}
@media (max-width: 700px) {
  .card-body p {
    font-size: 12px;
  }
  .hero-description {
    font-size: 13px;
  }
}
html[data-reader] {
  scroll-padding-top: 0;
}
.edition-switcher {
  max-width: 680px;
  margin: 22px 0 20px;
  border-block: 1px solid var(--line);
  padding: 14px 0;
}
.edition-current {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
}
.edition-current > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.edition-current strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.edition-current small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.05em;
}
.edition-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 7px;
  border: 1px solid currentColor;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.08em;
}
.edition-chip.latest {
  color: #385c52;
}
.edition-chip.archive {
  color: #7a6255;
}
.edition-latest-link {
  margin-left: auto;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.edition-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 11px;
}
.edition-picker label {
  color: var(--muted);
  font-size: 10px;
  margin-right: 2px;
}
.edition-picker select {
  max-width: 100%;
  min-width: 0;
  padding: 8px 32px 8px 10px;
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
}
.edition-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.edition-picker select:hover {
  border-color: currentColor;
}
.reader-edition {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.6;
}
.reader-edition strong {
  color: var(--ink);
  font-size: 10px;
  font-weight: 500;
}
.reader-edition a {
  margin-left: auto;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
html[data-theme="night"] .edition-chip.latest { color: #b9d8ce; }
html[data-theme="night"] .edition-chip.archive { color: #dec4b3; }
@media (max-width: 700px) {
  .edition-current {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .edition-current > div {
    flex-direction: column;
    gap: 2px;
  }
  .edition-latest-link {
    width: 100%;
    margin: 3px 0 0 54px;
  }
  .edition-picker {
    gap: 6px;
  }
  .edition-picker label {
    width: 100%;
    margin-bottom: 2px;
  }
  .edition-picker select {
    width: 100%;
    font-size: 16px;
  }
  .reader-edition a {
    width: 100%;
    margin-left: 0;
  }
}

.archive-lock { margin: 12px 0; }
.archive-lock button { padding: 6px 0; border: 0; background: transparent; color: var(--muted, #626963); font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.book-policy-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 20px; font-family: var(--sans); font-size: 12px; }
.book-policy-nav a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.book-policy-nav a:hover { text-decoration: underline; }
.reader-policy-footer { max-width: 760px; margin: 24px auto 0; padding: 16px 24px 32px; color: var(--muted); }

.portal-header { background: var(--navy); color: #eef1f5; border-bottom: 1px solid #adb9c930; font-family: var(--sans); }
.portal-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; padding-block: 8px; font-size: 12px; }
.portal-navigation a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.portal-navigation a:first-child { margin-right: auto; font-weight: 600; }
.portal-navigation a[aria-current] { color: var(--accent); box-shadow: inset 0 -2px var(--accent); }
.portal-navigation a:hover, .book-site-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.book-site-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 20px; font-family: var(--sans); font-size: 12px; }
.book-site-nav a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 700px) {
  .portal-navigation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; font-size: 11px; }
  .portal-navigation a { justify-content: center; }
  .portal-navigation a:first-child { margin-right: 0; }
  .header-inner { flex-wrap: wrap; padding-block: 12px; gap: 4px 16px; }
  .header-inner nav { flex-wrap: wrap; }
}
@media print { .portal-header, .reader-policy-footer { display: none; } }
