:root {
  --paper:#f8faf6;
  --white:#fff;
  --ink:#263f38;
  --muted:#647970;
  --line:#dce6dd;
  --green:#326653;
  --pale:#e6eee4;
  --sky:#e6f1f3;
  --serif:'Noto Serif TC','PMingLiU','Songti TC',Georgia,serif;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  color:var(--ink);
  background:var(--paper);
  font-family:'Segoe UI','Microsoft JhengHei',system-ui,sans-serif;
  font-size:14px;
  line-height:1.75;
}
a {
  color:inherit;
  text-decoration:none;
}
button,input,select {
  font:inherit;
  color:inherit;
}
button,a,input,select {
  -webkit-tap-highlight-color:transparent;
  outline-offset:5px;
}
button {
  cursor:pointer;
  background:none;
  border:0;
}
button:disabled {
  opacity:.4;
  cursor:not-allowed;
}
a:hover {
  color:var(--green);
}
h1,h2,h3,p {
  margin:0;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline:2px solid #307466;
}
input,select {
  min-width:0;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px 13px;
  background:var(--white);
}
[hidden] {
  display:none!important;
}
.skip-link {
  position:fixed;
  top:-100px;
  left:20px;
  z-index:100;
  padding:10px 20px;
  background:white;
  border:1px solid var(--green);
}
.skip-link:focus {
  top:12px;
}
.app-shell {
  min-height:100vh;
}
.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:230px;
  padding:34px 20px 170px;
  background:#edf2e9;
  border-right:1px solid #e0e8dc;
  display:flex;
  flex-direction:column;
  overflow-y:auto;
}
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  margin:0 14px 7px;
  font-family:var(--serif);
  font-size:28px;
  font-weight:600;
  letter-spacing:4px;
}
.brand-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:46px;
  color:#497457;
}
.brand-icon svg {
  width:40px;
  height:40px;
}
.brand small {
  display:block;
  font-family:'Segoe UI',sans-serif;
  font-size:9px;
  font-weight:500;
  letter-spacing:2.3px;
  margin-top:-3px;
  color:#5a7866;
}
.nav-caption {
  color:#647d6b;
  font-size:11px;
  letter-spacing:1px;
  margin:27px 16px 10px;
}
.sidebar>.nav-caption {
  font-size:10px;
  letter-spacing:.8px;
  margin:15px 16px 30px;
}
.sidebar nav a {
  display:flex;
  align-items:center;
  gap:13px;
  padding:11px 15px;
  margin:3px 0;
  border:1px solid transparent;
  border-radius:12px;
  font-size:14px;
  transition:background .16s;
}
.sidebar nav a:hover {
  background:#e3ebdd;
}
.sidebar nav a[aria-current=page] {
  background:#fffdf5;
  color:#315c47;
  border-color:#d9e2d2;
  box-shadow:0 3px 8px #35513304;
  font-weight:600;
}
.nav-icon {
  width:19px;
  text-align:center;
  font-size:20px;
  font-weight:400;
  line-height:1;
}
.nav-count {
  margin-left:auto;
  font-size:11px;
  background:#dfe8d9;
  min-width:25px;
  text-align:center;
  border-radius:7px;
  padding:0 5px;
}
.sidebar-bottom {
  margin-top:auto;
  padding-top:38px;
  text-align:center;
}
.sidebar-landscape {
  display:block;
  width:100%;
  height:72px;
  object-fit:cover;
  border-radius:60% 60% 8px 8px;
  opacity:.9;
}
.privacy-card {
  padding:14px 4px;
}
.privacy-card strong {
  font-family:var(--serif);
  font-size:12px;
  font-weight:500;
}
.privacy-card p {
  font-size:10px;
  color:#6a806e;
  margin-top:9px;
}
#export-progress {
  font-size:11px;
  color:#52735e;
  border-bottom:1px solid #b7cbb9;
  padding:6px 0;
}
.main-wrap {
  margin-left:230px;
}
.topbar {
  height:73px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 46px;
  border-bottom:1px solid #e7ece4;
  font-size:11px;
  color:var(--muted);
  letter-spacing:.7px;
}
.topbar i {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#82a380;
  margin:0 8px 1px 0;
}
.main-content {
  max-width:1320px;
  margin:auto;
  padding:34px 46px 46px;
  min-height:70vh;
}
#view:focus {
  outline:none;
}
.page-heading {
  margin-bottom:25px;
}
.eyebrow {
  display:block;
  font-size:9px;
  letter-spacing:2px;
  font-weight:600;
  color:#52735e;
  margin-bottom:10px;
}
.page-heading h1 {
  font-family:var(--serif);
  font-size:30px;
  font-weight:500;
  letter-spacing:1px;
}
.heading-dot {
  color:#93ad82;
}
.page-heading p {
  color:var(--muted);
  font-size:12px;
  margin-top:6px;
}
.landscape-hero {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border-radius:24px;
  background:#e6eee5;
}
.landscape {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:-2;
}
.landscape-hero:after {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,#edf2e9 2%,#edf2e9f5 23%,#edf2e947 57%,transparent 80%);
  z-index:-1;
}
.home-hero {
  min-height:342px;
}
.hero-copy {
  padding:40px 42px;
  max-width:65%;
}
.hero-copy h2 {
  font-family:var(--serif);
  font-size:32px;
  line-height:1.65;
  font-weight:500;
  letter-spacing:1px;
}
.hero-copy p {
  color:#536d60;
  font-size:12px;
  margin:14px 0 24px;
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  border-radius:10px;
  padding:11px 20px;
  font-size:12px;
  font-weight:600;
  min-height:44px;
  border:1px solid transparent;
}
.button.primary {
  background:var(--green);
  color:white;
}
.button.primary:hover {
  background:#254f40;
}
.button.secondary {
  background:white;
  border-color:var(--line);
}
.button.secondary:hover {
  border-color:#8da896;
}
.button-row {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.home-section {
  margin-top:34px;
}
.section-title {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:19px;
}
.section-title h2 {
  font-family:var(--serif);
  font-size:21px;
  font-weight:500;
  letter-spacing:.4px;
}
.section-title .eyebrow {
  margin-bottom:6px;
}
.section-title>span {
  font-size:11px;
  color:var(--muted);
}
.shelf-portals {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.shelf-portal {
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  transition:transform .16s,box-shadow .16s;
}
.shelf-portal:hover {
  transform:translateY(-3px);
  box-shadow:0 8px 20px #354e3a0a;
}
.shelf-portal img {
  display:block;
  width:100%;
  height:108px;
  object-fit:cover;
  object-position:right;
}
.shelf-portal>div {
  padding:20px 21px;
}
.portal-count {
  float:right;
  font-size:10px;
  color:var(--muted);
  padding-top:3px;
}
.portal-count strong {
  font-family:Georgia,serif;
  font-size:20px;
  font-weight:400;
  color:var(--ink);
}
.shelf-portal h3 {
  font-family:var(--serif);
  font-weight:500;
  font-size:21px;
}
.shelf-portal h3>span {
  font-family:system-ui;
  font-size:14px;
  color:#769480;
  margin-left:4px;
}
.shelf-portal p {
  font-size:11px;
  color:var(--muted);
  margin-top:9px;
}
.continue-card {
  display:flex;
  align-items:center;
  gap:20px;
  padding:22px 26px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
}
.continue-icon {
  padding:14px 19px;
  border-radius:50%;
  background:#eaf0e6;
  color:#64876b;
  font-size:24px;
}
.continue-card>div {
  flex:1;
}
.continue-card h3 {
  font-size:15px;
  font-weight:500;
}
.continue-card p,.continue-card>span:last-child {
  color:var(--muted);
  font-size:11px;
}
.continue-card .eyebrow {
  margin-bottom:4px;
}
.shelf-note {
  font-size:11px;
  color:var(--muted);
  margin-top:26px;
  line-height:1.8;
}
.shelf-hero {
  min-height:253px;
  margin-bottom:25px;
}
.shelf-hero .hero-copy {
  padding:30px 36px;
}
.shelf-hero h1 {
  font-family:var(--serif);
  font-size:35px;
  font-weight:500;
  letter-spacing:3px;
}
.shelf-hero h2 {
  font-family:inherit;
  font-size:13px;
  letter-spacing:.5px;
  margin-top:10px;
}
.shelf-hero p {
  font-size:11px;
  margin:7px 0 0;
}
.shelf-hero.reading:after {
  background:linear-gradient(90deg,#e8f1f3 2%,#e8f1f3ef 24%,#e8f1f355 56%,transparent 80%);
}
.shelf-hero.completed:after {
  background:linear-gradient(90deg,#efeeeb 2%,#efeeebf5 24%,#efeeeb55 56%,transparent 80%);
}
.shelf-tabs {
  display:flex;
  gap:6px;
  width:fit-content;
  max-width:100%;
  padding:5px;
  background:#edf1e9;
  border:1px solid #e3e9de;
  border-radius:14px;
  margin-bottom:28px;
}
.shelf-tabs a {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:10px 22px;
  border-radius:9px;
  font-size:13px;
  white-space:nowrap;
  color:#61786b;
}
.shelf-tabs a[aria-current=page] {
  background:#fff;
  box-shadow:0 2px 5px #223b2b0a;
  color:var(--green);
  font-weight:600;
}
.shelf-tabs span {
  font-size:10px;
  min-width:19px;
  text-align:center;
  border-radius:5px;
  background:#e8eee3;
  padding:0 4px;
}
.library-controls {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding-bottom:20px;
  border-bottom:1px solid var(--line);
}
.filter-tabs {
  display:flex;
  gap:4px;
  flex-wrap:wrap;
}
.filter-tabs a {
  padding:8px 14px;
  font-size:12px;
  color:var(--muted);
  border-radius:20px;
}
.filter-tabs a.active {
  background:#e3ece1;
  color:#315e45;
  font-weight:600;
}
.search-box {
  display:flex;
  align-items:center;
  border:1px solid var(--line);
  border-radius:10px;
  background:white;
  max-width:270px;
}
.search-box input {
  border:0;
  background:transparent;
  width:100%;
  font-size:12px;
  padding:9px 12px;
}
.search-box button {
  flex-shrink:0;
  font-size:11px;
  padding:10px 13px;
  border-left:1px solid var(--line);
}
.results-heading {
  display:flex;
  justify-content:space-between;
  gap:15px;
  margin:19px 0 21px;
}
.results-heading>span,.muted {
  font-size:11px;
  color:var(--muted);
}
.book-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:32px 24px;
}
.book-card {
  min-width:0;
  background:white;
  border:1px solid #e2e9df;
  border-radius:16px;
  padding:20px;
  transition:transform .18s,box-shadow .18s;
}
.book-card:hover {
  transform:translateY(-3px);
  box-shadow:0 10px 25px #1b39280b;
}
.book-cover {
  position:relative;
  width:100%;
  aspect-ratio:2/3;
  display:flex;
  flex-direction:column;
  border-radius:4px 10px 10px 4px;
  padding:20px;
  overflow:hidden;
  box-shadow:2px 6px 14px #1c302b14;
}
.book-cover.has-cover-image {
  padding:0;
  background:#e9eee6;
}
.book-cover img {
  object-fit:cover;
  width:100%;
  height:100%;
  display:block;
}
.cover-olive {
  background:#4f604a;
  color:#e7e5ce;
}
.cover-clay {
  background:#ac8066;
  color:#f1e5d5;
}
.cover-label {
  font-size:7px;
  letter-spacing:1px;
  opacity:.75;
}
.cover-art {
  width:70%;
  height:37%;
  min-height:50px;
  margin:15px auto 10px;
  display:flex;
  justify-content:center;
  align-items:flex-end;
  position:relative;
}
.cover-art i {
  border:1px solid #e4d7b859;
  border-bottom:0;
  border-radius:50% 50% 0 0;
  width:30%;
  height:100%;
  margin-left:-9px;
}
.cover-art i:nth-child(2) {
  height:80%;
}
.cover-art i:nth-child(3) {
  height:60%;
}
.cover-art i:nth-child(4) {
  height:40%;
}
.cover-type {
  white-space:pre-line;
  font-family:Georgia,serif;
  font-size:12px;
  line-height:1.25;
  letter-spacing:.5px;
  opacity:.75;
}
.book-cover strong {
  font-family:var(--serif);
  font-weight:500;
  letter-spacing:1.5px;
  font-size:18px;
  line-height:1.5;
  margin:10px 0 15px;
}
.cover-footer {
  margin-top:auto;
  display:flex;
  justify-content:space-between;
  gap:6px;
  font-size:6px;
  letter-spacing:1.5px;
  padding-top:7px;
  border-top:1px solid #ffffff25;
}
.card-category {
  font-size:9px;
  color:#64816b;
  margin-top:19px;
  letter-spacing:.4px;
}
.card-title {
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:10px;
  margin-top:6px;
}
.card-title h3 {
  font-family:var(--serif);
  font-size:17px;
  line-height:1.65;
  font-weight:500;
}
.card-title>span {
  color:#85a28b;
  font-size:14px;
}
.card-description {
  font-size:11px;
  color:var(--muted);
  line-height:1.8;
  margin:8px 0 15px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.card-meta {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  font-size:9px;
  color:var(--muted);
  border-top:1px solid #e8ede5;
  padding-top:12px;
}
.card-meta time {
  margin-left:auto;
}
.shelf-empty {
  grid-column:1/-1;
  text-align:center;
  border:1px dashed #c9d8cc;
  background:#f1f5ee;
  border-radius:18px;
  padding:45px 20px;
}
.empty-mark {
  font-family:var(--serif);
  font-size:38px;
  color:#729579;
}
.shelf-empty h2 {
  font-family:var(--serif);
  font-weight:500;
  font-size:22px;
  margin:7px 0;
}
.shelf-empty p {
  font-size:12px;
  color:var(--muted);
}
.shelf-empty a {
  display:inline-block;
  font-size:12px;
  margin-top:21px;
  border-bottom:1px solid #7c9e85;
}
.back-link {
  display:inline-block;
  color:#627d6b;
  font-size:12px;
  margin-bottom:25px;
}
.book-hero {
  display:flex;
  align-items:flex-start;
  gap:38px;
  margin-bottom:42px;
}
.cover-large {
  width:220px;
  flex-shrink:0;
}
.book-intro {
  min-width:0;
  padding:6px 0;
  flex:1;
}
.book-intro h1 {
  font-family:var(--serif);
  font-size:29px;
  line-height:1.65;
  font-weight:500;
  letter-spacing:.4px;
}
.book-intro>p {
  font-size:13px;
  color:var(--muted);
  line-height:1.95;
  margin-top:17px;
}
.detail-meta {
  display:flex;
  gap:8px 16px;
  flex-wrap:wrap;
  font-size:10px;
  color:var(--muted);
  margin:20px 0;
}
.book-intro .local-note {
  font-size:10px;
  line-height:1.8;
}
.reading-status-row {
  padding:15px 0;
  border-bottom:1px solid var(--line);
  display:flex;
  gap:10px 18px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:8px;
}
#reading-status {
  display:flex;
  padding:3px;
  gap:3px;
  background:#edf3e9;
  border:1px solid #d6e3d2;
  border-radius:10px;
}
#reading-status button {
  font-size:11px;
  padding:5px 12px;
  border-radius:7px;
  min-height:32px;
}
#reading-status button[aria-pressed=true] {
  background:white;
  color:var(--green);
  box-shadow:0 1px 4px #314e3010;
}
.reading-status-row>span {
  font-size:10px;
  color:var(--muted);
}
.chapter-list {
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
}
.chapter-row+.chapter-row {
  border-top:1px solid #e8ede5;
}
.chapter-summary {
  display:flex;
  align-items:center;
  gap:20px;
  padding:22px;
}
.chapter-number {
  font-family:Georgia,serif;
  color:#8ba292;
  font-size:24px;
}
.chapter-name {
  flex:1;
  min-width:0;
}
.chapter-name h3 {
  font-size:14px;
  font-weight:500;
}
.chapter-name>span {
  font-size:10px;
  color:var(--muted);
  display:block;
  margin-top:4px;
}
.chapter-actions {
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
}
.read-button {
  font-size:11px;
  padding:10px 2px;
  color:#5e7868;
}
.chapter-play {
  font-size:11px;
  border-radius:9px;
  padding:8px 14px;
  min-width:55px;
  min-height:38px;
  background:#e9f0e5;
  color:var(--green);
}
.chapter-play[aria-current=true] {
  background:var(--green);
  color:white;
}
.references {
  margin-top:24px;
  font-size:12px;
}
.references summary {
  cursor:pointer;
  padding:17px 0;
  border-bottom:1px solid var(--line);
}
.references .prose {
  padding:22px 0;
}
.reader-toolbar {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding-bottom:20px;
  border-bottom:1px solid var(--line);
  margin-bottom:28px;
  font-size:12px;
}
.reader-toolbar button {
  padding:0;
}
#reading {
  padding:30px 35px;
  background:#fffef9;
  border:1px solid var(--line);
  border-radius:18px;
  margin-top:28px;
  scroll-margin-top:25px;
}
#reader-content .prose {
  max-width:760px;
  margin:auto;
  overflow-wrap:anywhere;
}
.prose {
  font-size:15px;
  line-height:2.05;
  overflow-wrap:anywhere;
}
.prose h1,.prose h2,.prose h3 {
  font-family:var(--serif);
  font-weight:500;
  line-height:1.65;
  margin:1.6em 0 .7em;
}
.prose h1 {
  font-size:26px;
}
.prose h2 {
  font-size:23px;
}
.prose h3 {
  font-size:19px;
}
.prose p {
  margin:1em 0;
}
.prose ul,.prose ol {
  padding-left:1.6em;
  margin:1em 0;
}
.prose a {
  color:var(--green);
  text-decoration:underline;
  text-underline-offset:3px;
}
.prose pre,code {
  font-family:Consolas,monospace;
  background:#f0f3eb;
  border-radius:4px;
}
.prose pre {
  padding:15px;
  overflow:auto;
  font-size:12px;
}
.prose code {
  font-size:.9em;
  padding:2px 4px;
}
.prose table {
  border-collapse:collapse;
  width:100%;
  display:block;
  overflow-x:auto;
  font-size:12px;
}
.prose td,.prose th {
  border:1px solid var(--line);
  padding:10px 12px;
}
.prose blockquote {
  margin:1em 0;
  padding:8px 20px;
  background:#edf3e9;
  border-left:3px solid #8ba88c;
}
.guide {
  max-width:780px;
  background:#fffef9;
  border:1px solid var(--line);
  border-radius:18px;
  padding:0 32px 25px;
}
.site-footer {
  margin:0 46px;
  padding:25px 0 185px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:16px;
  color:var(--muted);
  font-size:10px;
  letter-spacing:.4px;
}
.player {
  position:fixed;
  left:230px;
  right:0;
  bottom:0;
  display:grid;
  grid-template-columns:minmax(150px,1fr) auto;
  gap:10px 20px;
  padding:16px 28px 13px;
  border:1px solid #d6e2d8;
  border-bottom:0;
  border-radius:18px 18px 0 0;
  background:#fcfffaf7;
  box-shadow:0 -6px 30px #2d483912;
  z-index:40;
  backdrop-filter:blur(16px);
}
.now {
  min-width:0;
  align-self:center;
}
.now strong {
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:12px;
  font-weight:500;
}
#status {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:3px;
}
.controls {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  flex-wrap:wrap;
}
.controls button {
  border:1px solid #dbe5d9;
  border-radius:8px;
  padding:7px 9px;
  font-size:10px;
  background:#fff;
  min-height:34px;
}
.controls button:hover {
  border-color:#7b9e89;
}
#play {
  background:var(--green);
  border-color:var(--green);
  color:white;
  min-width:57px;
}
#rate {
  display:flex;
  gap:2px;
  margin-left:4px;
}
#rate button {
  border-color:transparent;
  background:transparent;
  padding:6px;
  font-size:10px;
}
#rate button[aria-pressed=true] {
  background:#e4eddf;
  color:#315d47;
  border-color:#d0dfc9;
}
.timeline {
  grid-column:1/-1;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:10px;
  font-variant-numeric:tabular-nums;
  color:#5d7869;
}
#seek {
  flex:1;
  min-width:0;
  accent-color:#44775e;
  padding:0;
  height:20px;
  background:transparent;
  cursor:pointer;
}
audio {
  display:none;
}
@media(min-width:1500px) {
  .book-grid {
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .main-content {
    padding-top:40px;
  }
  .home-hero {
    min-height:368px;
  }
  .hero-copy {
    padding-top:48px;
  }
}
@media(max-width:1150px) {
  .main-content {
    padding:28px 30px 35px;
  }
  .topbar {
    padding:0 30px;
  }
  .sidebar {
    width:208px;
    padding-left:14px;
    padding-right:14px;
  }
  .main-wrap {
    margin-left:208px;
  }
  .player {
    left:208px;
    grid-template-columns:1fr;
    gap:9px;
    padding:13px 22px;
  }
  .book-grid {
    gap:24px 18px;
  }
  .book-card {
    padding:15px;
  }
  .card-title h3 {
    font-size:15px;
  }
  .card-meta time {
    width:100%;
    margin:0;
  }
  .shelf-portals {
    gap:13px;
  }
  .shelf-portal>div {
    padding:16px;
  }
  .shelf-portal p {
    font-size:10px;
  }
  .hero-copy {
    max-width:75%;
  }
  .book-intro h1 {
    font-size:25px;
  }
  .cover-large {
    width:190px;
  }
  .site-footer {
    margin:0 30px;
    padding-bottom:205px;
  }
  .chapter-summary {
    gap:14px;
    padding:18px;
  }
  .chapter-actions {
    gap:10px;
  }
  .chapter-name h3 {
    font-size:13px;
  }
}
@media(max-width:800px) {
  .sidebar {
    position:static;
    width:auto;
    padding:16px 22px 11px;
    border-right:0;
    border-bottom:1px solid var(--line);
    display:block;
    overflow:visible;
  }
  .brand {
    font-size:23px;
    margin:0;
    gap:6px;
    letter-spacing:3px;
  }
  .brand small {
    font-size:8px;
    letter-spacing:1.6px;
    display:inline-block;
    margin-left:13px;
  }
  .brand-icon {
    width:32px;
    height:36px;
  }
  .brand-icon svg {
    width:32px;
    height:32px;
  }
  .sidebar>.nav-caption,.sidebar nav .nav-caption,.sidebar-bottom {
    display:none;
  }
  .sidebar nav {
    display:flex;
    gap:6px;
    margin-top:10px;
  }
  .sidebar nav a {
    padding:7px 10px;
    gap:7px;
    font-size:12px;
    border-radius:9px;
    margin:0;
  }
  .sidebar nav a:last-child {
    margin-left:auto;
  }
  .nav-icon {
    font-size:16px;
    width:17px;
  }
  .nav-count {
    font-size:9px;
    min-width:19px;
    border-radius:4px;
  }
  .main-wrap {
    margin:0;
  }
  .topbar {
    height:47px;
    padding:0 24px;
    font-size:10px;
  }
  .main-content {
    padding:24px;
  }
  .page-heading h1 {
    font-size:27px;
  }
  .hero-copy {
    padding:32px;
    max-width:65%;
  }
  .hero-copy h2 {
    font-size:29px;
  }
  .home-hero {
    min-height:306px;
  }
  .shelf-hero {
    min-height:225px;
  }
  .shelf-hero .hero-copy {
    padding:28px;
  }
  .shelf-hero h1 {
    font-size:32px;
  }
  .shelf-hero h2 {
    font-size:12px;
  }
  .player {
    left:0;
    padding:12px 20px 10px;
  }
  .book-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:21px 15px;
  }
  .book-card {
    padding:14px;
  }
  .card-title h3 {
    font-size:14px;
  }
  .shelf-tabs a {
    padding:9px 22px;
  }
  .site-footer {
    margin:0 24px;
  }
  .book-hero {
    gap:26px;
  }
  .cover-large {
    width:180px;
  }
  .book-intro h1 {
    font-size:24px;
  }
  .section-title h2 {
    font-size:20px;
  }
}
@media(max-width:560px) {
  body {
    font-size:13px;
  }
  .sidebar {
    padding:15px 16px 10px;
  }
  .brand {
    font-size:22px;
  }
  .brand small {
    margin-left:10px;
    font-size:7px;
  }
  .sidebar nav {
    gap:3px;
    flex-wrap:wrap;
  }
  .sidebar nav a {
    font-size:11px;
    padding:7px 9px;
    gap:5px;
  }
  .sidebar nav a:last-child {
    display:none;
  }
  .sidebar nav a:first-child {
    padding-left:5px;
    padding-right:6px;
  }
  .sidebar nav a:first-child .nav-icon {
    display:none;
  }
  .nav-count {
    min-width:16px;
    font-size:8px;
  }
  .topbar {
    height:41px;
    padding:0 19px;
    font-size:9px;
    letter-spacing:.3px;
  }
  .topbar>span:last-child {
    display:none;
  }
  .main-content {
    padding:22px 18px 28px;
  }
  .page-heading {
    margin-bottom:19px;
  }
  .page-heading h1 {
    font-size:26px;
  }
  .page-heading p {
    font-size:11px;
  }
  .eyebrow {
    font-size:8px;
    letter-spacing:1.4px;
  }
  .home-hero {
    min-height:370px;
    border-radius:19px;
  }
  .home-hero .landscape {
    object-fit:cover;
    object-position:70%;
  }
  .home-hero:after {
    background:linear-gradient(180deg,#edf2e9 0%,#edf2e9e8 35%,#edf2e930 73%,transparent);
  }
  .hero-copy {
    max-width:100%;
    padding:27px;
  }
  .hero-copy h2 {
    font-size:28px;
    line-height:1.6;
  }
  .hero-copy p {
    font-size:11px;
    margin:12px 0 20px;
  }
  .button {
    font-size:11px;
    padding:10px 15px;
    min-height:42px;
  }
  .home-section {
    margin-top:27px;
  }
  .section-title {
    align-items:start;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:16px;
  }
  .section-title h2 {
    font-size:20px;
  }
  .section-title>span {
    font-size:10px;
  }
  .shelf-portals {
    grid-template-columns:1fr;
    gap:12px;
  }
  .shelf-portal {
    display:flex;
    flex-direction:row-reverse;
    border-radius:14px;
    min-height:116px;
  }
  .shelf-portal img {
    width:34%;
    height:auto;
    object-fit:cover;
    object-position:75%;
  }
  .shelf-portal>div {
    padding:18px;
    flex:1;
  }
  .shelf-portal h3 {
    font-size:20px;
  }
  .shelf-portal p {
    font-size:10px;
  }
  .portal-count strong {
    font-size:18px;
  }
  .continue-card {
    gap:14px;
    padding:18px;
  }
  .continue-icon {
    padding:9px 14px;
    font-size:20px;
  }
  .continue-card>span:last-child {
    display:none;
  }
  .shelf-note {
    font-size:10px;
    margin-top:23px;
  }
  .shelf-hero {
    min-height:220px;
    border-radius:18px;
    margin-bottom:20px;
  }
  .shelf-hero .landscape {
    object-position:60%;
  }
  .shelf-hero .hero-copy {
    padding:26px 23px;
    max-width:100%;
  }
  .shelf-hero h1 {
    font-size:30px;
  }
  .shelf-hero h2 {
    font-size:12px;
    margin-top:11px;
  }
  .shelf-hero p {
    font-size:10px;
    max-width:205px;
  }
  .shelf-hero:after {
    background:linear-gradient(90deg,#edf2e9f7,#edf2e9ba 55%,#edf2e922);
  }
  .shelf-hero.reading:after {
    background:linear-gradient(90deg,#e8f1f3f7,#e8f1f3ba 55%,#e8f1f322);
  }
  .shelf-hero.completed:after {
    background:linear-gradient(90deg,#efeeebf7,#efeeebba 55%,#efeeeb22);
  }
  .shelf-tabs {
    width:100%;
    gap:3px;
    padding:4px;
    margin-bottom:23px;
  }
  .shelf-tabs a {
    flex:1;
    padding:9px 7px;
    font-size:12px;
    gap:10px;
  }
  .library-controls {
    flex-direction:column;
    align-items:stretch;
    gap:15px;
    padding-bottom:17px;
  }
  .filter-tabs a {
    padding:7px 14px;
    font-size:11px;
  }
  .search-box {
    width:100%;
    max-width:none;
  }
  .search-box input {
    padding:10px 12px;
  }
  .results-heading {
    margin:17px 0;
  }
  .results-heading>span,.muted {
    font-size:10px;
  }
  .book-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:17px 12px;
  }
  .book-card {
    padding:11px;
    border-radius:12px;
  }
  .book-cover {
    padding:13px;
    border-radius:3px 7px 7px 3px;
  }
  .book-cover strong {
    font-size:13px;
    letter-spacing:.5px;
    margin:8px 0 10px;
  }
  .cover-type {
    font-size:9px;
  }
  .cover-label {
    font-size:5px;
  }
  .cover-art {
    margin:10px auto 7px;
    min-height:35px;
  }
  .cover-footer {
    font-size:5px;
    letter-spacing:.7px;
  }
  .card-category {
    font-size:8px;
    margin-top:13px;
    letter-spacing:0;
  }
  .card-title {
    gap:4px;
    margin-top:4px;
  }
  .card-title h3 {
    font-size:14px;
    line-height:1.7;
  }
  .card-title>span {
    font-size:11px;
  }
  .card-description {
    font-size:10px;
    line-height:1.7;
    margin:7px 0 11px;
  }
  .card-meta {
    font-size:8px;
    gap:7px;
    padding-top:9px;
  }
  .card-meta time {
    width:auto;
    margin-left:auto;
    font-size:7px;
  }
  .shelf-empty {
    padding:32px 18px;
  }
  .shelf-empty h2 {
    font-size:19px;
  }
  .shelf-empty p {
    font-size:11px;
  }
  .back-link {
    margin-bottom:20px;
  }
  .book-hero {
    display:block;
    margin-bottom:30px;
  }
  .cover-large {
    width:165px;
    margin:0 auto 26px;
    padding:17px;
  }
  .cover-large strong {
    font-size:16px;
  }
  .book-intro {
    padding:0;
  }
  .book-intro h1 {
    font-size:25px;
  }
  .book-intro>.eyebrow {
    text-align:center;
  }
  .book-intro>p {
    font-size:12px;
    margin-top:13px;
  }
  .book-intro h1 {
    text-align:center;
  }
  .detail-meta {
    font-size:10px;
    margin:17px 0;
  }
  .reading-status-row {
    padding:13px 0;
  }
  .book-intro .local-note {
    font-size:10px;
  }
  .chapter-summary {
    padding:17px 15px;
    gap:13px;
    flex-wrap:wrap;
  }
  .chapter-number {
    font-size:21px;
  }
  .chapter-name h3 {
    font-size:13px;
  }
  .chapter-name>span {
    font-size:9px;
  }
  .chapter-actions {
    width:100%;
    justify-content:flex-end;
    gap:16px;
  }
  .read-button {
    font-size:11px;
    padding:7px;
  }
  .chapter-play {
    font-size:11px;
    min-height:36px;
  }
  .chapters-section .section-title>span {
    font-size:9px;
  }
  #reading {
    padding:22px 18px;
    border-radius:12px;
    margin-top:24px;
  }
  .reader-toolbar {
    font-size:10px;
    gap:8px;
  }
  .prose {
    font-size:14px;
    line-height:2.05;
  }
  .prose h1 {
    font-size:24px;
  }
  .prose h2 {
    font-size:21px;
  }
  .prose h3 {
    font-size:18px;
  }
  .prose td,.prose th {
    padding:8px;
  }
  .guide {
    padding:0 20px 20px;
  }
  .site-footer {
    margin:0 18px;
    padding:22px 0 218px;
    font-size:9px;
    flex-wrap:wrap;
    gap:7px;
  }
  .player {
    border-radius:16px 16px 0 0;
    padding:11px 13px max(9px,env(safe-area-inset-bottom));
    gap:9px;
  }
  .now strong {
    font-size:11px;
  }
  #status {
    font-size:9px;
  }
  .controls {
    gap:4px;
  }
  .controls button {
    font-size:9px;
    padding:7px 8px;
    min-height:32px;
  }
  #play {
    min-width:52px;
  }
  #rate {
    justify-content:center;
    margin:0;
    width:100%;
    gap:5px;
  }
  #rate button {
    padding:4px 11px;
    font-size:10px;
    min-height:27px;
  }
  .timeline {
    font-size:9px;
    gap:8px;
  }
  #seek {
    height:18px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important;
  }
}
