/* --- Variables --- */
:root {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --text: #14161c;
  --muted: #5c6570;
  --border: #e2e5ea;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --brand-orange: #c2410c;
  --brand-amber: #ea580c;
  --brand-gold: #f59e0b;
  --brand-glow: rgba(234, 88, 12, 0.25);
  --radius: 12px;
  --shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 8px 28px rgba(15, 23, 42, 0.12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

html {
  scroll-behavior: smooth;
}

[data-theme="dark"] {
  --bg: #07080b;
  --surface: #111318;
  --text: #f4f5f7;
  --muted: #8b919d;
  --border: #1e222b;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --brand-orange: #fb923c;
  --brand-amber: #fcd34d;
  --brand-gold: #fde047;
  --brand-glow: rgba(252, 211, 77, 0.45);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.layout-home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.layout-home .home-main {
  flex: 1;
}

.layout-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.layout-page .page-main,
.layout-page .admin-main {
  flex: 1;
}

.page-main {
  max-width: 720px;
}

.page-heading {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.lead--page {
  margin-bottom: 1.75rem;
}

.manga-list-main {
  max-width: 680px;
}

.manga-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: chap;
}

.manga-list > li {
  counter-increment: chap;
  position: relative;
}

.manga-list > li .chapter-card::before {
  content: counter(chap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  margin-right: 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
  background: var(--bg);
  border-radius: 8px;
  flex-shrink: 0;
}

.legal-main {
  max-width: 42rem;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.legal-content h2 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--text);
}

.legal-content p {
  margin: 0 0 0.85rem;
  line-height: 1.65;
  color: var(--muted);
}

.legal-content p strong {
  color: var(--text);
}

.contact-main {
  max-width: 520px;
}

.contact-form {
  margin-top: 0.5rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.hidden {
  display: none !important;
}

/* --- Header --- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.site-header--home {
  background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 92%, var(--bg)) 100%);
}

[data-theme="dark"] .site-header--home {
  background: linear-gradient(180deg, #0e1016 0%, #0a0b0f 100%);
  border-bottom-color: #1a1d26;
}

.site-header--sticky {
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--accent);
  text-decoration: none;
}

.header-link-chapters {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.header-link-chapters:hover {
  text-decoration: underline;
}

.logo--brand {
  font-weight: 800;
  font-size: clamp(0.95rem, 2.8vw, 1.2rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: min(100%, 18rem);
  color: var(--brand-orange);
  text-shadow: 0 1px 2px rgba(194, 65, 12, 0.12), 0 2px 14px var(--brand-glow);
}

.logo--brand:hover {
  color: var(--brand-amber);
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(194, 65, 12, 0.18), 0 2px 18px var(--brand-glow);
}

[data-theme="dark"] .logo--brand {
  color: #fcd34d;
  text-shadow:
    0 0 18px rgba(252, 211, 77, 0.55),
    0 0 36px rgba(249, 115, 22, 0.28),
    0 1px 2px rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .logo--brand:hover {
  color: #fde68a;
  text-shadow:
    0 0 22px rgba(253, 230, 138, 0.6),
    0 0 44px rgba(251, 146, 60, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.9);
}

.header-chapter-title {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  color: var(--muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-nav a {
  font-size: 0.9rem;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.mode-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.mode-label input {
  accent-color: var(--accent);
}

/* --- Toolbar --- */
.chapter-toolbar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.5rem 1rem 0.65rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.chapter-toolbar--footer {
  border-top: none;
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn:hover {
  background: var(--bg);
  text-decoration: none;
}

.btn--nav {
  min-width: 8rem;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.btn--small {
  padding: 0.3rem 0.55rem;
  font-size: 0.8rem;
  min-width: auto;
}

.form-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

.form-actions-row .btn {
  margin-top: 0;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}

.data-table--chapters {
  font-size: 0.8rem;
  min-width: 720px;
}

.data-table__clip {
  max-width: 10rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* --- Layout --- */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

.home-main {
  max-width: 680px;
  padding-bottom: 2.5rem;
}

/* --- Home hero (SEO) --- */
.home-hero {
  text-align: center;
  margin: 0 auto 2.25rem;
  padding: 0 0.25rem;
}

.home-hero__title {
  font-size: clamp(1.35rem, 4.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 auto 1.1rem;
  color: var(--text);
  max-width: 38rem;
}

.home-hero__intro {
  margin: 0 auto;
  max-width: 40rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}

.home-hero__intro em {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}

.section-heading {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  text-align: center;
  color: var(--text);
}

.page-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.lead--home {
  text-align: center;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.75rem;
  font-size: 0.92rem;
}

.empty-state {
  color: var(--muted);
  padding: 2rem 0;
}

/* --- Chapter list --- */
.chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chapter-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
}

.chapter-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(180deg, var(--brand-gold), var(--brand-amber));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.chapter-card:hover {
  border-color: color-mix(in srgb, var(--brand-amber) 55%, var(--border));
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.chapter-card:hover::before {
  opacity: 1;
}

[data-theme="dark"] .chapter-card:hover {
  border-color: color-mix(in srgb, #fcd34d 35%, var(--border));
}

.chapter-card-title {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.chapter-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.chapter-card-date {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.chapter-card-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-amber) 12%, transparent);
  color: var(--brand-amber);
  font-size: 0.9rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

[data-theme="dark"] .chapter-card-chevron {
  background: rgba(252, 211, 77, 0.12);
  color: #fcd34d;
}

.chapter-card:hover .chapter-card-chevron {
  transform: translateX(3px);
  background: color-mix(in srgb, var(--brand-amber) 22%, transparent);
}

[data-theme="dark"] .chapter-card:hover .chapter-card-chevron {
  background: rgba(252, 211, 77, 0.22);
}

/* --- Reader --- */
.reader-body {
  padding-bottom: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.reader-body .reader-main {
  flex: 1;
}

.reader-main {
  min-height: 40vh;
}

.reader-scroll {
  max-width: 800px;
  margin: 0 auto;
  padding: 0.5rem 0.5rem 2rem;
}

.manga-page {
  margin: 0 0 0.35rem;
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.manga-img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface);
}

/* Page mode overlay (below sticky header + toolbar) */
.reader-page-mode {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  padding-top: 108px;
  z-index: 50;
  display: flex;
  align-items: stretch;
  background: var(--bg);
}

.page-mode-figure {
  flex: 1;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  min-width: 0;
}

.page-mode-img {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: var(--shadow);
  border-radius: 4px;
}

.page-hit {
  position: relative;
  width: 22%;
  max-width: 120px;
  min-width: 48px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

.page-hit--prev:hover,
.page-hit--next:hover {
  background: rgba(37, 99, 235, 0.06);
}

[data-theme="dark"] .page-hit--prev:hover,
[data-theme="dark"] .page-hit--next:hover {
  background: rgba(59, 130, 246, 0.12);
}

.reader-footer {
  position: sticky;
  bottom: 0;
  z-index: 90;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  padding-top: 1rem;
}

body.page-mode-active .reader-footer {
  display: none;
}

/* --- Ad placeholders (replace .ad-space__slot with AdSense / Adsterra) --- */
.ad-space {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.35rem 1.15rem;
  background: #e8eaef;
  border: 1px solid #d1d5dc;
  border-radius: var(--radius);
  box-sizing: border-box;
}

[data-theme="dark"] .ad-space {
  background: #151821;
  border-color: #2a3040;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ad-space__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.7rem;
}

[data-theme="dark"] .ad-space__label {
  color: #8b92a1;
}

.ad-space__slot {
  width: 100%;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.78rem;
  color: #9ca3af;
  line-height: 1.4;
}

[data-theme="dark"] .ad-space__slot {
  color: #6b7280;
}

.ad-space__hint {
  font-size: 0.68rem;
  color: #9ca3af;
  margin-top: 0.55rem;
  font-style: italic;
  opacity: 0.9;
}

[data-theme="dark"] .ad-space__hint {
  color: #6b7280;
}

.ad-space--home-top {
  margin-bottom: 1.85rem;
}

.ad-space--home-bottom {
  margin-top: 2.35rem;
}

.ad-space--reader {
  margin: 1rem auto;
  width: 100%;
}


/* --- Admin & forms --- */
.admin-main {
  max-width: 720px;
}

.lead--admin-login {
  margin-bottom: 1.25rem;
  color: var(--muted, #666);
  font-size: 0.98rem;
}

.admin-session-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.65rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-session-bar__text {
  font-size: 0.9rem;
  color: var(--muted, #666);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.form-card label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.75rem 0 0.35rem;
}

.form-card input[type="text"],
.form-card input[type="password"],
.form-card textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--bg);
  color: var(--text);
}

.form-card textarea {
  resize: vertical;
  min-height: 160px;
}

.form-card input[type="number"] {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--bg);
  color: var(--text);
}

.form-card .btn {
  margin-top: 1rem;
}

.btn--block {
  width: 100%;
  margin-top: 1.25rem;
}

.form-card__title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.form-card--chapter .form-section {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
  min-width: 0;
}

.form-card--chapter .form-section__legend {
  padding: 0;
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.hint--tight {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.method-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

@media (max-width: 520px) {
  .method-picker {
    grid-template-columns: 1fr;
  }
}

.method-option {
  display: block;
  cursor: pointer;
  margin: 0;
}

.method-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.method-option__box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 100%;
}

.method-option:hover .method-option__box {
  border-color: var(--muted);
}

.method-option input:focus-visible + .method-option__box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.method-option input:checked + .method-option__box {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  background: var(--surface);
}

.method-option__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.method-option__desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.method-panel {
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
}

.method-panel--auto {
  padding-top: 1rem;
}

.auto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  align-items: start;
}

.auto-grid__full {
  grid-column: 1 / -1;
}

@media (max-width: 520px) {
  .auto-grid {
    grid-template-columns: 1fr;
  }
}

.fetch-url-form {
  margin: 0 0 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.fetch-url-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
}

.fetch-url-row label {
  width: 100%;
  margin-bottom: -0.35rem;
}

.fetch-url-input {
  flex: 1;
  min-width: 200px;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--bg);
  color: var(--text);
}

.fetch-url-row .btn {
  margin-top: 0;
  flex-shrink: 0;
}

.hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.hint code {
  font-size: 0.8rem;
  background: var(--bg);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.alert {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  margin: 0 0 1rem;
}

.alert--error {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.25);
}

[data-theme="dark"] .alert--error {
  color: #fca5a5;
}

.alert--ok {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

[data-theme="dark"] .alert--ok {
  color: #86efac;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  color: var(--muted);
  font-weight: 600;
}

.data-table code {
  font-size: 0.8rem;
  background: var(--bg);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0 0 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.site-footer__nav a {
  color: var(--text);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer__sep {
  color: var(--muted);
  user-select: none;
  font-weight: 400;
  opacity: 0.75;
}

.site-footer--home,
.site-footer--page,
.site-footer--reader,
.site-footer--admin {
  margin-top: auto;
  padding: 2.5rem 1.25rem 2rem;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, var(--bg));
}

[data-theme="dark"] .site-footer--home,
[data-theme="dark"] .site-footer--page,
[data-theme="dark"] .site-footer--reader,
[data-theme="dark"] .site-footer--admin {
  background: #0a0b0f;
  border-top-color: #1e222b;
}

.site-footer--reader {
  padding: 1.5rem 1rem 1.75rem;
}

.site-footer--admin {
  padding: 2rem 1rem 2.25rem;
}

body.page-mode-active .site-footer--reader {
  display: none;
}

.site-footer__copyright {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.site-footer__brand {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

[data-theme="dark"] .site-footer__brand {
  color: #e8eaef;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .header-chapter-title {
    display: none;
  }

  .header-nav--reader .mode-label span {
    display: none;
  }

  .chapter-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .reader-page-mode {
    padding-top: 96px;
  }

  .page-mode-img {
    max-height: calc(100vh - 112px);
  }
}

