:root {
    --brand: #8C5A6B;
    --brand-soft: #C8A7AE;
    --ink: #2E2529;
    --paper: #FAF7F5;
    --paper-soft: #F1E8E8;
    --text: #3C3437;
    --muted: #786B70;
    --accent: #A96572;
    --line: rgba(92, 68, 77, .16);
    --shadow: 0 18px 50px rgba(55, 38, 45, .08);
    --radius: 24px;
    --content: min(1180px, calc(100% - 40px));
    font-family: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    line-height: 1.78;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.skip-link {
    position: fixed; left: 12px; top: -80px; z-index: 1000;
    background: var(--ink); color: white; padding: 10px 14px; border-radius: 0 0 10px 10px;
}
.skip-link:focus { top: 0; }
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250,247,245,.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.header-shell {
    width: var(--content); margin: 0 auto; min-height: 84px;
    display: flex; align-items: center; justify-content: space-between; gap: 26px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { border-radius: 16px; box-shadow: 0 8px 20px rgba(80,50,60,.12); }
.brand span { display: grid; line-height: 1.15; }
.brand strong { color: var(--ink); font-size: 1.18rem; letter-spacing: .08em; }
.brand small { color: var(--muted); font-size: .76rem; margin-top: 6px; }
.primary-nav { display: flex; align-items: center; gap: 8px; }
.primary-nav a {
    text-decoration: none; color: var(--muted); padding: 10px 13px; border-radius: 999px;
    transition: background .2s ease, color .2s ease;
}
.primary-nav a:hover, .primary-nav a.is-current { background: var(--paper-soft); color: var(--brand); }
.menu-button { display: none; border: 1px solid var(--line); background: white; padding: 9px 13px; border-radius: 12px; color: var(--ink); }
.site-main { min-height: 70vh; }
.hero-section {
    width: var(--content); margin: 0 auto; padding: 68px 0 52px;
    display: grid; grid-template-columns: 1.02fr .98fr; gap: 58px; align-items: center;
}
.hero-copy h1 { font-size: clamp(2.45rem, 5vw, 5.25rem); line-height: 1.08; margin: 12px 0 22px; color: var(--ink); letter-spacing: -.035em; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: .86rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
.hero-lead { font-size: 1.08rem; color: var(--muted); max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.button {
    display: inline-flex; min-height: 46px; align-items: center; justify-content: center;
    padding: 10px 20px; border-radius: 999px; text-decoration: none; font-weight: 700;
    border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--brand); color: white; box-shadow: 0 10px 24px rgba(140,90,107,.22); }
.button.secondary { background: white; color: var(--brand); border-color: rgba(140,90,107,.22); }
.button.ghost { background: transparent; color: var(--ink); border-color: rgba(46,37,41,.18); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 36px 0 0; }
.hero-facts div { padding: 14px 0; border-top: 1px solid var(--line); }
.hero-facts dt { color: var(--muted); font-size: .84rem; }
.hero-facts dd { margin: 2px 0 0; color: var(--ink); font-size: 1.1rem; font-weight: 700; }
.hero-visual { margin: 0; position: relative; }
.hero-visual img { border-radius: 48px 48px 14px 48px; box-shadow: var(--shadow); aspect-ratio: 760/620; object-fit: cover; }
.hero-visual figcaption { color: var(--muted); font-size: .86rem; margin-top: 12px; }
.section-shell { width: var(--content); margin: 0 auto; padding: 64px 0; }
.section-heading { max-width: 820px; margin-bottom: 30px; }
.section-heading h2, .support-panel h2, .reading-aside h2, .cross-read h2, .audio-notes h2 {
    color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.25; margin: 8px 0 14px;
}
.section-heading p { color: var(--muted); }
.split-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.text-link { color: var(--brand); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.chapter-list { border-top: 1px solid var(--line); }
.chapter-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 18px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.chapter-index { color: var(--brand-soft); font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.chapter-row h3 { margin: 0 0 6px; color: var(--ink); font-size: 1.16rem; }
.chapter-row h3 a { text-decoration: none; }
.chapter-row h3 a:hover { color: var(--brand); }
.chapter-row p { margin: 0; color: var(--muted); }
.reading-time { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.manga-band { background: var(--paper-soft); border-block: 1px solid var(--line); }
.manga-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 26px; }
.manga-card { background: rgba(255,255,255,.72); border: 1px solid rgba(140,90,107,.12); border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 34px rgba(80,50,60,.05); }
.manga-card img { width: 100%; aspect-ratio: 1.44; object-fit: cover; }
.manga-card-body { padding: 20px; }
.manga-card h3 { margin: 0 0 8px; color: var(--ink); }
.manga-card p { color: var(--muted); margin: 0; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.support-panel { background: white; border: 1px solid var(--line); border-radius: 30px; overflow: hidden; }
.support-panel img { width: 100%; aspect-ratio: 1.55; object-fit: cover; }
.support-panel > div { padding: 26px; }
.support-panel p { color: var(--muted); }
.reading-map { padding-top: 26px; }
.map-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; }
.map-step { padding: 24px; background: white; border: 1px solid var(--line); border-radius: 22px; }
.map-step span { color: var(--brand-soft); font-weight: 700; font-size: 1.4rem; }
.map-step strong { display: block; margin: 10px 0 6px; color: var(--ink); }
.map-step p { margin: 0; color: var(--muted); }
.map-arrow { align-self: center; color: var(--brand-soft); font-size: 1.5rem; }
.breadcrumb { width: var(--content); margin: 0 auto; padding-top: 24px; }
.breadcrumb ol { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; color: var(--muted); font-size: .86rem; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 10px; color: var(--brand-soft); }
.breadcrumb a { text-decoration: none; }
.page-intro { width: var(--content); margin: 0 auto; padding: 54px 0 28px; }
.text-intro { max-width: 900px; margin-left: max(20px, calc((100% - min(1180px, calc(100% - 40px))) / 2)); }
.page-intro h1 { color: var(--ink); font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: 1.1; margin: 10px 0 20px; }
.page-intro p { color: var(--muted); font-size: 1.06rem; max-width: 760px; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 46px; align-items: start; }
.section-heading.compact { margin-bottom: 18px; }
.section-heading.compact h2 { font-size: 2rem; margin-bottom: 6px; }
.reading-aside { position: sticky; top: 112px; background: var(--paper-soft); border-radius: 24px; padding: 18px; }
.reading-aside img { border-radius: 18px; margin-bottom: 18px; aspect-ratio: .82; object-fit: cover; }
.reading-aside h2 { font-size: 1.35rem; }
.reading-aside p { color: var(--muted); }
.prose-section { max-width: 900px; }
.prose-section h2 { color: var(--ink); font-size: 1.9rem; }
.prose-section p { font-size: 1.04rem; color: var(--text); }
.reader { max-width: 860px; padding-top: 54px; }
.reader-header { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.reader-header h1 { color: var(--ink); font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: 1.15; margin: 8px 0 16px; }
.reader-header > p:not(.eyebrow) { color: var(--muted); font-size: 1.02rem; }
.reader-meta { font-size: .86rem; color: var(--muted); }
.reader-body { font-size: 1.14rem; line-height: 2.05; padding: 34px 0; }
.reader-body p { margin: 0 0 1.55em; }
.reader-body p:first-child::first-letter { float: left; color: var(--brand); font-size: 3.8rem; line-height: .82; padding: .13em .12em 0 0; font-weight: 700; }
.chapter-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding-top: 26px; border-top: 1px solid var(--line); }
.chapter-nav a { color: var(--brand); text-decoration: none; font-weight: 700; }
.chapter-nav a:last-child { text-align: right; }
.chapter-index-link { color: var(--muted) !important; }
.manga-intro, .audio-intro { display: grid; grid-template-columns: 1fr .8fr; gap: 46px; align-items: center; }
.manga-intro img, .audio-intro img { border-radius: 36px 14px 36px 36px; box-shadow: var(--shadow); }
.manga-catalog { display: grid; gap: 34px; }
.episode-card { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.episode-card:nth-child(even) .episode-image-wrap { order: 2; }
.episode-image-wrap { position: relative; }
.episode-image-wrap img { width: 100%; border-radius: 30px; aspect-ratio: 1.48; object-fit: cover; }
.episode-image-wrap span { position: absolute; left: 16px; bottom: 16px; background: rgba(46,37,41,.82); color: white; padding: 8px 12px; border-radius: 999px; font-size: .8rem; }
.episode-copy h2 { color: var(--ink); font-size: 1.8rem; margin: 0 0 12px; }
.episode-copy p { color: var(--muted); }
.cross-read, .audio-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.cross-read img, .audio-notes img { border-radius: 28px; }
.narrow-intro { max-width: 860px; }
.version-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.version-grid article { background: white; border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.note-mark { color: var(--brand-soft); }
.version-grid h2 { color: var(--ink); font-size: 1.35rem; }
.version-grid p { color: var(--muted); }
.completion-table { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: white; }
.completion-row { display: grid; grid-template-columns: 120px 1fr 100px; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); align-items: center; }
.completion-row:last-child { border-bottom: 0; }
.completion-row a { color: var(--ink); text-decoration: none; }
.status-done { color: var(--brand); font-weight: 700; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); background: white; border-radius: 16px; padding: 0 18px; }
.faq-list summary { cursor: pointer; color: var(--ink); font-weight: 700; padding: 16px 0; }
.faq-list p { color: var(--muted); padding-bottom: 16px; margin: 0; }
.audio-list { display: grid; gap: 12px; }
.audio-item { display: grid; grid-template-columns: 70px 1fr 90px; gap: 20px; align-items: center; border: 1px solid var(--line); background: white; border-radius: 20px; padding: 22px; }
.audio-number { color: var(--brand-soft); font-size: 1.7rem; font-weight: 700; }
.audio-item h2 { margin: 0 0 4px; color: var(--ink); font-size: 1.25rem; }
.audio-item p { margin: 0; color: var(--muted); }
.audio-duration { text-align: right; color: var(--brand); font-variant-numeric: tabular-nums; }
.not-found { text-align: center; max-width: 760px; padding-block: 100px; }
.error-code { font-size: 5.5rem; line-height: 1; color: var(--brand-soft); margin: 0; font-weight: 700; }
.not-found h1 { font-size: 2.4rem; color: var(--ink); }
.not-found > p:not(.error-code) { color: var(--muted); }
.not-found-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); background: #f5efec; }
.footer-grid { width: var(--content); margin: 0 auto; padding: 48px 0 28px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.footer-grid p { color: var(--muted); }
.footer-brand { color: var(--ink); font-size: 1.35rem; }
.footer-grid nav { display: grid; align-content: start; gap: 8px; }
.footer-grid a { color: var(--brand); text-decoration: none; }
.copyright { width: var(--content); margin: 0 auto; padding: 18px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
:focus-visible { outline: 3px solid rgba(169,101,114,.38); outline-offset: 3px; }
@media (max-width: 980px) {
    .primary-nav { position: absolute; left: 20px; right: 20px; top: 76px; display: none; padding: 12px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
    .primary-nav.is-open { display: grid; }
    .menu-button { display: inline-flex; }
    .hero-section, .manga-intro, .audio-intro { grid-template-columns: 1fr; }
    .hero-visual { max-width: 720px; }
    .support-grid { grid-template-columns: 1fr; }
    .reading-layout { grid-template-columns: 1fr; }
    .reading-aside { position: static; display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: start; }
    .reading-aside img { margin: 0; }
    .version-grid { grid-template-columns: 1fr; }
}
@media (max-width: 740px) {
    :root { --content: min(100% - 28px, 1180px); }
    .header-shell { min-height: 72px; }
    .brand img { width: 44px; height: 44px; }
    .brand small { display: none; }
    .hero-section { padding-top: 44px; gap: 34px; }
    .hero-copy h1 { font-size: clamp(2.35rem, 12vw, 4rem); }
    .hero-facts { grid-template-columns: 1fr; gap: 0; }
    .section-shell { padding: 46px 0; }
    .split-heading { align-items: start; flex-direction: column; }
    .chapter-row { grid-template-columns: 42px 1fr; }
    .reading-time { grid-column: 2; }
    .manga-grid { grid-template-columns: 1fr; }
    .map-grid { grid-template-columns: 1fr; }
    .map-arrow { transform: rotate(90deg); justify-self: center; }
    .page-intro { padding-top: 42px; }
    .text-intro { margin: 0 auto; }
    .reading-aside { grid-template-columns: 1fr; }
    .reading-aside img { max-height: 360px; width: 100%; }
    .chapter-nav { grid-template-columns: 1fr; }
    .chapter-nav a, .chapter-nav a:last-child { text-align: center; }
    .chapter-nav span { display: none; }
    .episode-card { grid-template-columns: 1fr; }
    .episode-card:nth-child(even) .episode-image-wrap { order: 0; }
    .cross-read, .audio-notes { grid-template-columns: 1fr; }
    .completion-row { grid-template-columns: 76px 1fr; }
    .completion-row .status-done { grid-column: 2; }
    .audio-item { grid-template-columns: 48px 1fr; }
    .audio-duration { grid-column: 2; text-align: left; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
    .hero-actions, .not-found-links { display: grid; }
    .button { width: 100%; }
    .hero-visual img { border-radius: 26px 26px 10px 26px; }
    .reader-body { font-size: 1.05rem; line-height: 1.95; }
    .page-intro h1 { font-size: 2.4rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Print and long-form reading refinements */
@media print {
    .site-header, .site-footer, .breadcrumb, .chapter-nav, .hero-actions, .menu-button, .button, .text-link { display: none !important; }
    body { background: #fff; color: #111; font-size: 12pt; line-height: 1.65; }
    .site-main, .reader, .section-shell, .page-intro { width: 100%; max-width: none; margin: 0; padding: 0; }
    .reader-header { border-bottom: 1pt solid #bbb; margin-bottom: 18pt; }
    .reader-body { font-size: 12pt; line-height: 1.75; }
    a { text-decoration: none; color: #111; }
    img { max-height: 220mm; object-fit: contain; page-break-inside: avoid; }
    h1, h2, h3 { page-break-after: avoid; }
    p { orphans: 3; widows: 3; }
}

@media (min-width: 1280px) {
    .reader { max-width: 900px; }
    .reader-body { font-size: 1.17rem; }
    .home-page .hero-section { padding-top: 82px; }
}

@media (hover: hover) {
    .episode-card img, .manga-card img, .support-panel img, .hero-visual img { transition: transform .35s ease, filter .35s ease; }
    .episode-card:hover img, .manga-card:hover img, .support-panel:hover img { transform: scale(1.012); }
    .manga-card:hover, .support-panel:hover { border-color: rgba(140,90,107,.24); }
}
