:root {
    --ink: #122746;
    --text: #26354b;
    --muted: #64728a;
    --paper: #f5f7fb;
    --white: #ffffff;
    --line: #e0e6ef;
    --yellow: #f5dc62;
    --blue: #325bba;
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--paper);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid #5284e8;
    outline-offset: 5px;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    background: #dfe8ee;
    color: #26354b;
    font-size: 14px;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
    line-height: 1.4;
}

h2 {
    font-size: 26px;
    font-weight: 800;
}

h3 {
    font-size: 18px;
}

.container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    vertical-align: middle;
}

.skip {
    position: fixed;
    z-index: 100;
    top: -100px;
    left: 20px;
    padding: 10px 18px;
    color: #fff;
    background: var(--ink);
}

.skip:focus {
    top: 12px;
}

.header {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.header-top {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--ink);
    font-size: 26px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 1px;
}

.brand-mark {
    display: grid;
    place-items: center;
    background: var(--ink);
    color: var(--yellow);
    width: 48px;
    height: 48px;
    border-radius: 12px 12px 12px 3px;
    border-bottom: 4px solid var(--yellow);
    font-size: 30px;
}

.brand small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
    letter-spacing: 2px;
}

.header-note {
    color: var(--muted);
    font-size: 14px;
    padding-left: 28px;
    border-left: 1px solid var(--line);
}

.shelf-link {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
    font-size: 14px;
    font-weight: 700;
}

.shelf-count {
    min-width: 24px;
    padding: 0 6px;
    text-align: center;
    background: var(--yellow);
    border-radius: 5px;
}

.nav {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.nav-link {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 17px 13px;
    color: #5b687b;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

.nav-link.active,
.nav-link:hover {
    color: var(--ink);
}

.nav-link.active::after {
    position: absolute;
    content: "";
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 4px;
    background: var(--yellow);
    border-radius: 4px 4px 0 0;
}

.menu-toggle {
    display: none;
    padding: 8px;
    border: 0;
    background: var(--paper);
    border-radius: 8px;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    position: relative;
    margin-top: 32px;
    padding: 44px 46px 32px;
    background: var(--ink);
    border-radius: 24px;
    color: #e0e8f5;
    overflow: hidden;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.hero .eyebrow {
    color: #e7d471;
}

.live-dot {
    width: 7px;
    height: 7px;
    background: var(--yellow);
    border-radius: 50%;
}

.hero h1 {
    color: var(--yellow);
    font-size: 18px;
    margin: 18px 0 10px;
    letter-spacing: 2px;
}

.hero-line {
    font-size: clamp(32px, 3.8vw, 48px);
    line-height: 1.4;
    font-weight: 900;
    color: white;
    letter-spacing: 2px;
}

.hero-description {
    margin-top: 18px;
    max-width: 410px;
    color: #c0cde1;
    font-size: 15px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 26px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    transition: transform 160ms, background 160ms;
}

.button:hover {
    transform: translateY(-2px);
}

.yellow {
    background: var(--yellow);
    color: #172843;
}

.dark {
    background: var(--ink);
    color: #fff;
}

.secondary {
    background: #fff;
    border-color: #cfd8e4;
    color: var(--ink);
}

.save-book[aria-pressed="true"] {
    background: #fff7cf;
    border-color: #d9bb4f;
}

.hero-anchor {
    font-size: 14px;
    color: #d7e1f0;
}

.hero-facts {
    display: flex;
    gap: 25px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #344864;
    font-size: 12px;
    color: #b5c2d6;
}

.hero-facts strong {
    display: inline-block;
    margin-right: 6px;
    color: white;
    font-size: 20px;
}

.hero-gallery {
    position: relative;
    min-width: 0;
    align-self: center;
    height: 370px;
}

.hero-cover {
    position: absolute;
    width: 45%;
    height: 310px;
    bottom: 14px;
    border: 5px solid #fff;
    border-radius: 12px;
    overflow: hidden;
    background: #a1bbd4;
    box-shadow: 0 18px 26px #0004;
}

.hero-cover img {
    height: 100%;
}

.hero-cover > span {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 28px 14px 16px;
    color: #fff;
    background: linear-gradient(transparent, #081a32e8);
    font-weight: 700;
}

.side-one {
    left: 0;
    transform: rotate(-11deg);
}

.side-two {
    right: 0;
    transform: rotate(11deg);
}

.hero-cover.center {
    width: 51%;
    height: 348px;
    left: 25%;
    z-index: 2;
    bottom: 2px;
    transform: rotate(3deg);
}

.hero-cover small,
.hero-cover strong,
.hero-cover em {
    display: block;
}

.hero-cover small {
    color: var(--yellow);
    font-size: 12px;
}

.hero-cover strong {
    font-size: 25px;
    margin: 4px 0;
}

.hero-cover em {
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
}

.hero-sticker {
    position: absolute;
    top: -4px;
    right: -16px;
    padding: 12px 18px;
    z-index: 3;
    background: var(--yellow);
    color: var(--ink);
    font-size: 12px;
    line-height: 1.5;
    transform: rotate(8deg);
    border-radius: 2px 12px 12px;
}

.section {
    margin-top: 68px;
    margin-bottom: 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.section-head h2 {
    display: flex;
    gap: 10px;
    align-items: center;
}

.section-head p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 14px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.category-tile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: border-color 150ms, transform 150ms;
}

.category-tile:hover {
    border-color: #8a9ab6;
    transform: translateY(-2px);
}

.category-tile > .icon {
    margin-left: auto;
    color: #8b99af;
    width: 18px;
}

.category-tile h3 {
    font-size: 17px;
}

.category-tile p {
    margin-top: 4px;
    font-size: 13px;
    color: var(--muted);
}

.category-icon {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 11px;
    flex-shrink: 0;
    background: #e8eefc;
    color: #355ab0;
}

.tone-1 .category-icon {
    background: #fff0de;
    color: #9a5817;
}

.tone-2 .category-icon {
    background: #ece9fd;
    color: #6b4faf;
}

.tone-3 .category-icon {
    background: #e2f2f7;
    color: #287288;
}

.tone-4 .category-icon {
    background: #e5f1ea;
    color: #34765a;
}

.tone-5 .category-icon {
    background: #fff4c8;
    color: #826119;
}

.cover-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

.cover-card {
    min-width: 0;
}

.cover-art {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 3 / 4;
    box-shadow: 0 7px 16px #1326440c;
}

.cover-art img {
    height: 100%;
    transition: transform 300ms;
}

.cover-art:hover img {
    transform: scale(1.035);
}

.cover-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 7px;
    border-radius: 4px;
    background: #142a46df;
    color: white;
    font-size: 12px;
}

.cover-arrow {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #fff;
    border-radius: 50%;
    padding: 5px;
    line-height: 1;
}

.cover-meta h3 {
    font-size: 16px;
    margin-top: 13px;
}

.cover-meta p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 6px;
}

.cover-meta p span {
    display: block;
    margin-top: 2px;
}

.editorial {
    display: grid;
    grid-template-columns: 44% 56%;
    min-height: 405px;
    overflow: hidden;
    border-radius: 20px;
    background: #e7edf4;
}

.editorial-image {
    position: relative;
    min-height: 400px;
}

.editorial-image img {
    height: 100%;
    position: absolute;
    inset: 0;
}

.editorial-seal {
    position: absolute;
    top: 22px;
    left: 22px;
    padding: 11px 15px;
    background: #fff;
    border-left: 4px solid var(--yellow);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
}

.editorial-copy {
    padding: 34px 42px;
}

.editorial-copy h2 {
    margin: 15px 0;
    font-size: 32px;
}

.editorial-copy > p:not(.eyebrow) {
    color: #52647c;
    font-size: 15px;
}

blockquote {
    margin: 20px 0;
    padding-left: 16px;
    border-left: 3px solid #aebed4;
    color: #50627a;
    font-size: 14px;
}

.rank-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 44px;
}

.rank-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.rank-number {
    font-size: 27px;
    color: #697d9e;
    font-style: italic;
    min-width: 35px;
    font-family: Georgia, serif;
}

.rank-row:first-child .rank-number {
    color: #a07919;
}

.rank-row img {
    width: 64px;
    height: 84px;
    border-radius: 5px;
}

.rank-row h3 {
    font-size: 17px;
}

.rank-row p {
    color: var(--muted);
    font-size: 12px;
    margin: 3px 0;
}

.rank-row div > span {
    color: #52647a;
    font-size: 13px;
}

.rank-row > .icon {
    margin-left: auto;
    color: #718098;
}

.update-section {
    padding: 32px 36px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 16px;
}

.update-row {
    display: grid;
    grid-template-columns: 55px 9px 1fr 1.5fr 60px 22px;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px dashed #dce3ed;
}

.update-row time {
    font-size: 14px;
    color: #586b86;
    font-variant-numeric: tabular-nums;
}

.update-dot {
    width: 7px;
    height: 7px;
    background: #4971ba;
    border-radius: 50%;
}

.update-row h3 {
    font-size: 16px;
}

.update-chapter {
    font-size: 14px;
    color: var(--muted);
}

.update-status {
    color: #377463;
    background: #edf6f0;
    text-align: center;
    font-size: 12px;
    border-radius: 4px;
}

.wide-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.wide-story {
    display: grid;
    grid-template-columns: 40% 60%;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
}

.wide-story > img {
    height: 100%;
    aspect-ratio: 3 / 4;
}

.wide-story > div {
    padding: 27px 24px;
}

.wide-story h3 {
    margin: 12px 0;
    font-size: 22px;
}

.wide-story p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 20px;
}

.wide-story .eyebrow {
    font-size: 12px;
    color: #71559c;
    letter-spacing: 0;
}

.fantasy-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding: 42px;
    color: #bfcede;
    background: #182e4c;
    border-radius: 18px;
}

.fantasy-band .eyebrow {
    color: #d8c76c;
}

.fantasy-band h2 {
    color: #fff;
    font-size: 29px;
    margin: 13px 0;
}

.fantasy-band h2 .icon {
    margin-right: 10px;
}

.fantasy-intro > p:not(.eyebrow) {
    font-size: 15px;
    margin-bottom: 24px;
}

.fantasy-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fantasy-links a {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #415571;
}

.fantasy-links a > span {
    font-size: 14px;
    color: #e2d181;
}

.fantasy-links h3 {
    color: white;
    font-size: 19px;
}

.fantasy-links p {
    font-size: 13px;
    margin-top: 4px;
}

.fantasy-links .icon {
    margin-left: auto;
}

.complete-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.complete-item {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--line);
    border-top: 4px solid #a4b6d0;
    border-radius: 3px 3px 12px 12px;
    background: #fff;
}

.complete-no {
    color: #687d9c;
    font-size: 12px;
    letter-spacing: 2px;
}

.complete-item h3 {
    margin: 14px 0 12px;
    font-size: 20px;
}

.complete-item p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 22px;
}

.complete-tail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: #536c8e;
}

.bookshelf {
    padding: 32px 36px;
    background: #eaf0f7;
    border-radius: 16px;
    border-left: 5px solid #8fa9ce;
}

.shelf-empty {
    color: #51637e;
}

.saved-books:has(.saved-book) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.saved-book {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
}

.saved-book button {
    border: 0;
    background: transparent;
    color: #667792;
    padding: 8px;
    font-size: 14px;
}

.shelf-suggestions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px 24px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #cbd7e5;
    font-size: 14px;
}

.shelf-suggestions > span {
    color: #64748b;
}

.shelf-suggestions a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

details {
    padding: 21px 24px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
}

summary {
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

details p {
    margin-top: 15px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.9;
}

.about {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 70px;
    padding: 42px 0;
    border-top: 1px solid #d8e0ec;
    border-bottom: 1px solid #d8e0ec;
}

.about .eyebrow {
    color: var(--muted);
}

.about h2 {
    font-size: 32px;
    margin-top: 16px;
    line-height: 1.65;
}

.about p:not(.eyebrow) {
    color: #53647c;
    margin-bottom: 18px;
    line-height: 1.95;
    font-size: 15px;
}

.subscribe {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 32px;
    background: #f9eaa0;
    border-radius: 16px;
    margin-bottom: 64px;
}

.subscribe-symbol {
    position: relative;
    width: 90px;
    height: 100px;
    border: 2px solid var(--ink);
    border-radius: 13px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--ink);
}

.subscribe-symbol > span {
    font-size: 49px;
    font-weight: 900;
}

.subscribe-symbol > .icon {
    position: absolute;
    bottom: -9px;
    right: -9px;
    background: #f9eaa0;
    width: 30px;
    height: 30px;
}

.subscribe-copy {
    flex: 1;
    min-width: 0;
}

.subscribe h2 {
    font-size: 26px;
    margin: 6px 0 8px;
}

.subscribe h2 .icon {
    margin-right: 8px;
}

.subscribe p:not(.eyebrow) {
    max-width: 600px;
    font-size: 14px;
    color: #5b542e;
}

.subscribe-address {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: #5e5630;
    overflow-wrap: anywhere;
}

.subscribe-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    text-align: center;
    flex-shrink: 0;
}

.subscribe-actions > a {
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.subscribe-actions > span {
    font-size: 12px;
    color: #5f5735;
}

.footer {
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 35px 0;
    margin-top: 64px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    color: var(--muted);
    font-size: 12px;
}

.footer-brand {
    font-size: 21px;
    color: var(--ink);
    font-weight: 800;
}

.footer-brand span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    margin-top: 6px;
}

.footer-inner > div {
    text-align: right;
}

.footer-inner p {
    margin-bottom: 5px;
}

.breadcrumbs {
    margin: 26px 0;
    font-size: 14px;
    color: var(--muted);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li + li::before {
    content: "/";
    margin-right: 9px;
    color: #98a7be;
}

.breadcrumbs a:hover {
    color: var(--blue);
}

.collection-hero {
    padding: 36px 42px;
    background: #e7edf7;
    border-radius: 16px;
}

.collection-hero h1 {
    font-size: 38px;
    margin: 12px 0;
}

.collection-hero > p:not(.eyebrow) {
    max-width: 870px;
    line-height: 1.9;
    color: #536783;
}

.collection-slogan {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.collection-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 23px;
    font-size: 14px;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.collection-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    padding: 23px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.collection-art img {
    height: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 7px;
}

.collection-card h2 {
    font-size: 22px;
    margin: 9px 0 12px;
}

.collection-card p {
    font-size: 14px;
    color: var(--muted);
}

.collection-card .eyebrow {
    font-size: 12px;
    color: #657e9e;
    letter-spacing: 0;
}

.small-meta {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin: 14px 0;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 23px;
}

.category-pills a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 17px;
    border: 1px solid #ccd7e5;
    border-radius: 6px;
    font-size: 14px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 46px;
    padding: 36px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.detail-cover {
    position: relative;
    align-self: start;
}

.detail-cover img {
    aspect-ratio: 3 / 4;
    height: auto;
    border-radius: 11px;
}

.detail-cover > span {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--ink);
    background: var(--yellow);
    font-size: 13px;
    font-weight: 700;
}

.detail-copy h1 {
    font-size: 36px;
    margin: 13px 0 18px;
}

.tag-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-row > span {
    padding: 4px 10px;
    background: #edf2f8;
    border-radius: 5px;
    font-size: 13px;
}

.detail-intro {
    margin-top: 21px;
    color: #53647d;
    line-height: 1.95;
}

.work-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 34px;
    margin: 24px 0;
}

.work-facts dt {
    font-size: 12px;
    color: var(--muted);
}

.work-facts dd {
    font-size: 15px;
    margin: 5px 0 0;
    color: var(--ink);
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.chapter-grid > a {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.chapter-index {
    color: #8fa2bf;
    font-size: 29px;
    font-style: italic;
    font-family: Georgia, serif;
}

.chapter-grid p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 6px;
}

.chapter-grid .icon {
    margin-left: auto;
}

.story-notes {
    background: #eaf0f6;
    padding: 30px 36px;
    border-radius: 14px;
}

.story-notes .icon {
    margin-right: 10px;
}

.story-notes p {
    margin-top: 18px;
    color: #52637a;
    line-height: 1.95;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.reader {
    max-width: 820px;
    margin-inline: auto;
}

.reader-heading {
    text-align: center;
    padding: 22px 0 30px;
}

.reader-heading .eyebrow {
    justify-content: center;
    color: #577196;
}

.reader-heading h1 {
    font-size: 32px;
    margin: 14px 0;
}

.reader-heading p {
    color: var(--muted);
    font-size: 14px;
}

.reader-toolbar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
    background: #e4ebf4;
    border-radius: 10px;
}

.reader-toolbar button,
.reader-toolbar a {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    padding: 8px 15px;
    font-size: 14px;
    color: inherit;
}

.reader-tip {
    padding: 20px 24px;
    margin: 26px 0 36px;
    background: #fff9de;
    border-left: 3px solid #d5b54d;
    color: #75613b;
    font-size: 14px;
}

.reader-tip p {
    margin-top: 5px;
}

.story-panel {
    margin-top: 45px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.panel-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 24px;
    background: #f0f3f8;
}

.panel-label > span {
    color: #677c99;
    font-size: 12px;
    letter-spacing: 2px;
}

.panel-label h2 {
    font-size: 15px;
    font-weight: 500;
}

.story-panel figure {
    margin: 0;
}

.story-panel img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #e8eef4;
}

figcaption {
    padding: 10px 24px;
    font-size: 12px;
    color: #657792;
    background: #f7f9fb;
}

.panel-text {
    padding: 28px 32px 34px;
    font-size: 19px;
    line-height: 2.05;
    letter-spacing: .4px;
}

.large-text .panel-text {
    font-size: 23px;
}

.chapter-end {
    text-align: center;
    padding: 58px 15px 32px;
}

.chapter-end > span {
    display: block;
    font-size: 25px;
    color: #988241;
    margin-bottom: 15px;
}

.chapter-end h2 {
    font-size: 23px;
}

.chapter-end p {
    color: var(--muted);
    margin-top: 12px;
    font-size: 14px;
}

.chapter-navigation {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.reader-page.night {
    background: #111b29;
    color: #d5deea;
    --ink: #dce7f7;
    --muted: #a6b4c9;
    --line: #344255;
}

.night .header,
.night .footer,
.night .story-panel {
    background: #1c293b;
}

.night .nav-link,
.night .shelf-link {
    color: #becade;
}

.night .brand-mark,
.night .shelf-count {
    background: #f5dc62;
    color: #122746;
}

.night .reader-toolbar,
.night .panel-label,
.night figcaption {
    background: #26364d;
    color: #b8c9df;
}

.night .reader-tip {
    color: #e0d19f;
    background: #39352c;
}

.night .dark {
    background: #d7e5f8;
    color: #122746;
}

.night .secondary {
    background: #233650;
    color: #d7e5f8;
}

.night .reader-heading .eyebrow,
.night .panel-label > span {
    color: #b8c9df;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.sitemap-grid section {
    padding: 26px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.sitemap-grid h2 .icon {
    margin-right: 10px;
}

.sitemap-grid ul {
    padding-left: 20px;
    line-height: 2.2;
    font-size: 14px;
}

.policy {
    max-width: 820px;
    margin-inline: auto;
    padding: 35px;
    background: white;
    border-radius: 15px;
}

.policy h1 {
    font-size: 30px;
    margin-bottom: 14px;
}

.policy h2 {
    font-size: 23px;
    margin: 30px 0 14px;
}

.policy p {
    color: #596c87;
    line-height: 1.95;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 50;
    transform: translate(-50%, 25px);
    max-width: calc(100% - 32px);
    padding: 12px 22px;
    background: #132a46;
    box-shadow: 0 6px 30px #0003;
    color: white;
    border-radius: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms, transform 160ms;
    text-align: center;
    font-size: 14px;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 1100px) {
    .nav {
        gap: 5px;
        justify-content: space-between;
    }

    .nav-link {
        padding-inline: 8px;
        gap: 5px;
    }

    .hero {
        padding: 34px;
        gap: 24px;
    }

    .hero-gallery {
        height: 330px;
    }

    .hero-cover {
        height: 260px;
    }

    .hero-cover.center {
        height: 305px;
    }

    .hero-actions {
        gap: 14px;
        flex-wrap: wrap;
    }

    .category-tile {
        padding: 18px;
        gap: 10px;
    }

    .category-tile > .icon {
        display: none;
    }

    .cover-grid {
        gap: 14px;
    }

    .collection-card {
        grid-template-columns: 120px 1fr;
        gap: 18px;
        padding: 18px;
    }

    .wide-story > div {
        padding: 22px 19px;
    }

    .rank-grid {
        column-gap: 25px;
    }

    .rank-row {
        gap: 12px;
    }

    .subscribe-symbol {
        display: none;
    }
}

@media (max-width: 820px) {
    .header-note {
        display: none;
    }

    .nav-link {
        flex-direction: column;
        font-size: 13px;
        padding-block: 12px;
    }

    .hero {
        grid-template-columns: 1fr 0.9fr;
        padding: 30px;
    }

    .hero-line {
        font-size: 34px;
    }

    .hero-gallery {
        height: 280px;
    }

    .hero-cover {
        height: 220px;
    }

    .hero-cover.center {
        height: 265px;
        width: 62%;
        left: 19%;
    }

    .hero-cover strong {
        font-size: 19px;
    }

    .hero-cover em {
        display: none;
    }

    .hero-facts {
        gap: 14px;
    }

    .hero-facts strong {
        display: block;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cover-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 25px;
    }

    .editorial-copy {
        padding: 28px;
    }

    .editorial-copy h2 {
        font-size: 27px;
    }

    .rank-row img {
        display: none;
    }

    .rank-row div > span {
        font-size: 12px;
    }

    .update-row {
        grid-template-columns: 50px 8px 1fr 1.3fr 20px;
        gap: 12px;
    }

    .update-status {
        display: none;
    }

    .wide-story {
        grid-template-columns: 1fr;
    }

    .wide-story > img {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .fantasy-band {
        gap: 30px;
        padding: 30px;
    }

    .fantasy-band h2 {
        font-size: 24px;
    }

    .complete-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about {
        gap: 35px;
        grid-template-columns: 1fr 1.3fr;
    }

    .about h2 {
        font-size: 26px;
    }

    .collection-card {
        grid-template-columns: 1fr;
    }

    .collection-art img {
        aspect-ratio: 4 / 3;
        height: auto;
    }

    .detail-hero {
        grid-template-columns: 200px 1fr;
        gap: 27px;
        padding: 26px;
    }

    .detail-copy h1 {
        font-size: 30px;
    }

    .chapter-grid > a {
        padding: 18px;
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .container {
        width: calc(100% - 32px);
    }

    .header-top {
        min-height: 80px;
        gap: 12px;
    }

    .brand {
        gap: 9px;
        font-size: 21px;
    }

    .brand-mark {
        width: 40px;
        height: 43px;
        font-size: 26px;
    }

    .brand small {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .shelf-link {
        gap: 5px;
    }

    .shelf-link > span:not(.shelf-count) {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        padding-bottom: 10px;
    }

    .js .nav:not(.is-open) {
        display: none;
    }

    .nav-link {
        gap: 6px;
        min-width: 0;
        white-space: normal;
    }

    .hero {
        margin-top: 20px;
        padding: 27px 25px 24px;
        grid-template-columns: 1fr;
        gap: 30px;
        border-radius: 16px;
    }

    .hero h1 {
        margin-top: 14px;
        font-size: 17px;
    }

    .hero-line {
        font-size: 37px;
        line-height: 1.35;
    }

    .hero-line br {
        display: none;
    }

    .hero-description {
        font-size: 14px;
        margin-top: 14px;
    }

    .hero-actions {
        margin-top: 22px;
        gap: 19px;
    }

    .hero-anchor {
        font-size: 13px;
    }

    .hero-facts {
        margin-top: 24px;
        justify-content: space-between;
    }

    .hero-facts strong {
        display: inline-block;
    }

    .hero-gallery {
        height: 282px;
        max-width: 360px;
        width: 100%;
        margin-inline: auto;
    }

    .hero-cover {
        height: 230px;
    }

    .hero-cover.center {
        height: 276px;
        width: 52%;
        left: 24%;
    }

    .hero-sticker {
        top: -5px;
        right: -9px;
    }

    .section {
        margin-top: 44px;
    }

    .section-head {
        gap: 12px;
        align-items: flex-start;
        margin-bottom: 20px;
    }

    h2,
    .section-head h2 {
        font-size: 22px;
    }

    .section-head h2 {
        gap: 7px;
    }

    .section-head > .text-link {
        font-size: 12px;
        margin-top: 6px;
        gap: 4px;
    }

    .section-head > .text-link .icon {
        width: 16px;
        flex-basis: 16px;
    }

    .section-head p {
        font-size: 13px;
    }

    .category-grid {
        gap: 12px;
    }

    .category-tile {
        flex-direction: column;
        align-items: flex-start;
        padding: 17px;
        gap: 12px;
    }

    .category-tile p {
        font-size: 12px;
    }

    .cover-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
    }

    .editorial {
        grid-template-columns: 1fr;
    }

    .editorial-image {
        min-height: 240px;
        aspect-ratio: 3 / 2;
    }

    .editorial-copy {
        padding: 25px;
    }

    .editorial-copy h2 {
        font-size: 29px;
    }

    .rank-grid {
        column-gap: 15px;
    }

    .rank-row {
        gap: 8px;
        align-items: flex-start;
        padding: 18px 0;
    }

    .rank-number {
        font-size: 21px;
        min-width: 25px;
    }

    .rank-row h3 {
        font-size: 15px;
    }

    .rank-row > .icon {
        display: none;
    }

    .rank-row div > span {
        display: block;
        font-size: 12px;
    }

    .update-section {
        padding: 22px 19px;
    }

    .update-row {
        grid-template-columns: 45px 1fr 20px;
        gap: 4px 12px;
    }

    .update-row h3 {
        font-size: 15px;
    }

    .update-dot {
        display: none;
    }

    .update-chapter {
        grid-column: 2;
        grid-row: 2;
        font-size: 12px;
    }

    .update-row > .icon {
        grid-column: 3;
        grid-row: 1 / 3;
    }

    .wide-duo {
        gap: 14px;
    }

    .wide-story > img {
        aspect-ratio: 4 / 5;
    }

    .wide-story > div {
        padding: 17px 14px;
    }

    .wide-story .eyebrow {
        font-size: 11px;
    }

    .wide-story h3 {
        font-size: 18px;
        margin: 10px 0;
    }

    .wide-story p {
        font-size: 13px;
        line-height: 1.8;
    }

    .fantasy-band {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 26px;
    }

    .fantasy-links a {
        padding: 16px 0;
    }

    .complete-grid {
        gap: 14px;
    }

    .complete-item {
        padding: 19px 15px;
    }

    .complete-item h3 {
        font-size: 18px;
    }

    .complete-item p {
        font-size: 13px;
    }

    .complete-tail {
        font-size: 12px;
        gap: 6px;
    }

    .bookshelf {
        padding: 23px 20px;
    }

    .shelf-empty {
        font-size: 14px;
    }

    .saved-books:has(.saved-book) {
        grid-template-columns: 1fr;
    }

    .shelf-suggestions {
        gap: 14px;
        font-size: 13px;
    }

    .shelf-suggestions > span {
        width: 100%;
    }

    .guide-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    details {
        padding: 18px;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 23px;
        padding-block: 28px;
    }

    .about h2 {
        font-size: 28px;
        margin-top: 10px;
    }

    .subscribe {
        display: grid;
        grid-template-columns: 1fr;
        gap: 23px;
        padding: 26px;
        margin-bottom: 44px;
    }

    .subscribe-symbol {
        display: grid;
        width: 60px;
        height: 65px;
    }

    .subscribe-symbol > span {
        font-size: 35px;
    }

    .subscribe h2 {
        font-size: 23px;
    }

    .subscribe-actions {
        text-align: left;
        align-items: flex-start;
    }

    .footer {
        margin-top: 44px;
    }

    .footer-inner {
        display: block;
    }

    .footer-inner > div {
        text-align: left;
        margin-top: 20px;
    }

    .collection-hero {
        padding: 26px;
    }

    .collection-hero h1 {
        font-size: 31px;
    }

    .collection-slogan {
        font-size: 19px;
    }

    .collection-hero > p:not(.eyebrow) {
        font-size: 14px;
    }

    .collection-grid {
        gap: 16px;
    }

    .collection-card {
        padding: 13px;
        gap: 14px;
    }

    .collection-art img {
        aspect-ratio: 3 / 4;
    }

    .collection-card h2 {
        font-size: 18px;
        margin: 8px 0 10px;
    }

    .collection-card p {
        font-size: 13px;
    }

    .collection-card .eyebrow {
        font-size: 11px;
    }

    .collection-card .small-meta {
        font-size: 11px;
    }

    .category-pills {
        gap: 10px;
    }

    .detail-hero {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 28px;
    }

    .detail-cover {
        max-width: 230px;
        width: 65%;
        margin-inline: auto;
    }

    .detail-copy h1 {
        font-size: 29px;
    }

    .detail-intro {
        font-size: 15px;
    }

    .work-facts {
        gap: 18px 22px;
    }

    .detail-actions .button {
        padding: 11px 14px;
        font-size: 14px;
    }

    .chapter-grid {
        gap: 12px;
    }

    .chapter-grid > a {
        flex-direction: column;
        align-items: flex-start;
        padding: 17px;
    }

    .chapter-grid h3 {
        font-size: 16px;
    }

    .chapter-grid .icon {
        display: none;
    }

    .chapter-index {
        font-size: 24px;
    }

    .story-notes {
        padding: 24px;
    }

    .story-notes h2 {
        font-size: 21px;
    }

    .story-notes p {
        font-size: 14px;
    }

    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 16px;
    }

    .reader-heading {
        padding-top: 12px;
    }

    .reader-heading h1 {
        font-size: 25px;
    }

    .reader-heading p {
        font-size: 12px;
    }

    .reader-toolbar {
        gap: 3px;
        padding: 10px 5px;
    }

    .reader-toolbar button,
    .reader-toolbar a {
        padding: 9px 6px;
        font-size: 12px;
        gap: 5px;
    }

    .reader-toolbar .icon {
        width: 18px;
        flex-basis: 18px;
    }

    .reader-tip {
        padding: 17px;
        font-size: 13px;
    }

    .story-panel {
        margin-top: 30px;
    }

    .panel-label {
        padding: 14px 17px;
    }

    .panel-label h2 {
        font-size: 14px;
    }

    .panel-text {
        font-size: 18px;
        padding: 22px;
        line-height: 2;
    }

    figcaption {
        padding: 10px 16px;
    }

    .chapter-navigation {
        gap: 8px;
    }

    .chapter-navigation .button {
        padding: 12px 6px;
        font-size: 13px;
    }

    .chapter-end h2 {
        font-size: 21px;
    }

    .sitemap-grid {
        grid-template-columns: 1fr;
    }

    .sitemap-grid section {
        padding: 22px;
    }

    .policy {
        padding: 24px;
    }

    .policy h1 {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
