:root {
    --paper: #f7f3ea;
    --paper-deep: #eee7d9;
    --ink: #18201f;
    --muted: #68706c;
    --line: #d9d2c5;
    --coral: #f06a4d;
    --teal: #187e78;
    --white: #fffdf8;
    --shadow: 0 20px 60px rgba(24, 32, 31, .10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
    line-height: 1.7;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(24, 32, 31, .045) .7px, transparent .7px);
    background-size: 8px 8px;
    content: "";
    pointer-events: none;
}

img {
    display: block;
    max-width: 100%;
    object-fit: cover;
}

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

button,
input {
    font: inherit;
}

.shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.shell-narrow {
    width: min(820px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(217, 210, 197, .8);
    background: rgba(247, 243, 234, .92);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand img {
    width: 168px;
    height: 48px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: grid;
    min-width: 68px;
    padding: 8px 7px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
    place-items: center;
    border-radius: 10px;
}

.nav-link span:first-child {
    font-size: 17px;
}

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

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
}

.hero {
    display: grid;
    min-height: 700px;
    padding-top: 72px;
    padding-bottom: 74px;
    grid-template-columns: 1fr .95fr;
    align-items: center;
    gap: 64px;
}

.hero-kicker,
.eyebrow {
    margin: 0 0 12px;
    color: var(--coral);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-family: Georgia, "Songti SC", serif;
    font-size: clamp(74px, 9vw, 132px);
    line-height: .92;
    letter-spacing: -.08em;
}

.hero h1 a {
    display: inline-block;
}

.hero-lead {
    max-width: 610px;
    margin: 30px 0 0;
    color: #3f4946;
    font-size: 20px;
}

.hero-actions {
    display: flex;
    margin-top: 34px;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    min-height: 48px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ink);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
}

.button-primary {
    background: var(--ink);
    color: var(--white);
}

.button-primary:hover {
    background: var(--teal);
    border-color: var(--teal);
}

.button-ghost:hover {
    background: var(--white);
}

.hero-stats {
    display: flex;
    margin: 48px 0 0;
    gap: 34px;
}

.hero-stats div {
    display: grid;
}

.hero-stats dt {
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 700;
}

.hero-stats dd {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.hero-art {
    position: relative;
    min-height: 570px;
}

.hero-frame {
    position: absolute;
    overflow: hidden;
    border: 8px solid var(--white);
    box-shadow: var(--shadow);
}

.frame-main {
    inset: 0 70px 28px 0;
    transform: rotate(2deg);
    border-radius: 45% 45% 18px 18px;
}

.frame-main img {
    width: 100%;
    height: 100%;
}

.frame-small {
    right: 0;
    bottom: 0;
    width: 43%;
    height: 45%;
    transform: rotate(-4deg);
    border-radius: 16px;
}

.frame-small img {
    width: 100%;
    height: 100%;
}

.scribble {
    position: absolute;
    top: 22px;
    right: -8px;
    padding: 15px;
    transform: rotate(8deg);
    background: var(--coral);
    color: white;
    font-weight: 900;
    line-height: 1;
}

.news-strip {
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: var(--ink);
    color: white;
}

.ticker {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    white-space: nowrap;
}

.ticker strong {
    color: #ffb49f;
}

.section {
    padding-block: 100px;
}

.section-heading {
    display: flex;
    margin-bottom: 38px;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
}

.section-heading h2,
.feature-copy h2,
.ranking-intro h2,
.about-section h2,
.app-section h2 {
    margin: 0;
    font-family: Georgia, "Songti SC", serif;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.1;
}

.section-heading > p {
    max-width: 480px;
    margin: 0;
    color: var(--muted);
}

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

.category-tile {
    display: grid;
    min-height: 145px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--tile);
    border-radius: 16px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    transition: transform .2s, box-shadow .2s;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-icon {
    display: grid;
    width: 46px;
    height: 46px;
    background: color-mix(in srgb, var(--tile) 13%, white);
    color: var(--tile);
    font-size: 24px;
    place-items: center;
    border-radius: 50%;
}

.category-tile strong,
.category-tile small {
    display: block;
}

.category-tile small {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.45;
}

.arrow {
    font-size: 22px;
}

.comic-grid {
    display: grid;
    gap: 24px;
}

.four-up {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.comic-card {
    display: flex;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    flex-direction: column;
}

.cover-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.cover-link img {
    width: 100%;
    height: 100%;
    transition: transform .4s;
}

.comic-card:hover .cover-link img {
    transform: scale(1.035);
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 10px;
    background: var(--coral);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
}

.card-copy {
    display: flex;
    padding: 22px;
    flex: 1;
    flex-direction: column;
}

.card-copy h3 {
    min-height: 2.6em;
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.card-copy > p:not(.eyebrow) {
    min-height: 4.8em;
    margin: 12px 0 20px;
    color: var(--muted);
    font-size: 14px;
}

.card-meta {
    display: flex;
    margin-top: auto;
    padding-top: 15px;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}

.section-cta {
    margin-top: 32px;
    text-align: right;
}

.text-link {
    font-weight: 800;
}

.feature-band {
    background: #dce8df;
}

.feature-layout {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 70px;
}

.feature-image {
    position: relative;
}

.feature-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 120px 18px 18px 18px;
}

.feature-image span {
    position: absolute;
    right: -18px;
    bottom: 28px;
    padding: 12px 18px;
    transform: rotate(-3deg);
    background: var(--coral);
    color: white;
    font-weight: 700;
}

.feature-copy > p:not(.eyebrow) {
    color: #40504a;
}

.feature-quote {
    margin: 24px 0;
    color: var(--ink) !important;
    font-family: Georgia, "Songti SC", serif;
    font-size: 25px;
    font-weight: 700;
}

.feature-copy .button {
    margin-top: 20px;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 22px;
}

.spotlight-card {
    position: relative;
    min-height: 290px;
    overflow: hidden;
    border-radius: var(--radius);
}

.spotlight-large {
    min-height: 602px;
    grid-row: 1 / 3;
}

.spotlight-card::after {
    position: absolute;
    inset: 25% 0 0;
    background: linear-gradient(transparent, rgba(8, 12, 12, .9));
    content: "";
}

.spotlight-card img {
    width: 100%;
    height: 100%;
}

.spotlight-card > div {
    position: absolute;
    right: 28px;
    bottom: 28px;
    left: 28px;
    z-index: 1;
    color: white;
}

.spotlight-card h3 {
    margin: 0;
    font-family: Georgia, "Songti SC", serif;
    font-size: 32px;
}

.spotlight-card p:not(.eyebrow) {
    max-width: 480px;
}

.ranking-section {
    background: var(--ink);
    color: white;
}

.ranking-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 80px;
}

.ranking-intro > p:not(.eyebrow) {
    color: #b7c0bc;
}

.ranking-tabs {
    display: flex;
    margin-top: 34px;
    gap: 8px;
    flex-wrap: wrap;
}

.rank-tab {
    padding: 9px 14px;
    border: 1px solid #4d5855;
    background: transparent;
    color: #b7c0bc;
    border-radius: 999px;
    cursor: pointer;
}

.rank-tab.is-active {
    background: var(--coral);
    color: white;
    border-color: var(--coral);
}

.ranking-list {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-list.is-active {
    display: block;
}

.ranking-list li {
    display: grid;
    min-height: 82px;
    padding: 15px 0;
    border-bottom: 1px solid #3c4643;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 20px;
}

.rank-number {
    color: #ffb49f;
    font-family: Georgia, serif;
    font-size: 28px;
}

.ranking-list strong,
.ranking-list small {
    display: block;
}

.ranking-list small {
    color: #87918e;
}

.trend {
    color: #78cbb6;
}

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

.duet-card {
    display: grid;
    min-height: 530px;
    padding: 36px;
    overflow: hidden;
    border-radius: var(--radius);
}

.duet-card.dark {
    background: #243238;
    color: white;
}

.duet-card.light {
    background: #f0d9bf;
}

.duet-card > span {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
}

.duet-card h3 {
    margin: 8px 0 0;
    font-family: Georgia, "Songti SC", serif;
    font-size: 38px;
}

.duet-card p {
    margin-top: 4px;
}

.duet-card img {
    width: calc(100% + 72px);
    height: 300px;
    margin: 28px -36px -36px;
}

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

.guide-section {
    background: #e9ded3;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.guide-grid article {
    padding: 32px;
    border-top: 2px solid var(--ink);
}

.guide-grid span {
    color: var(--coral);
    font-family: Georgia, serif;
    font-size: 28px;
}

.guide-grid h3 {
    margin: 36px 0 8px;
    font-size: 24px;
}

.guide-grid p {
    margin: 0;
    color: var(--muted);
}

.about-section {
    display: grid;
    grid-template-columns: 180px 1fr .8fr;
    align-items: center;
    gap: 50px;
}

.about-mark {
    display: grid;
    width: 160px;
    height: 160px;
    background: var(--coral);
    color: white;
    font-family: Georgia, "Songti SC", serif;
    font-size: 80px;
    place-items: center;
    border-radius: 50%;
}

.about-section blockquote {
    margin: 0;
    padding-left: 30px;
    border-left: 2px solid var(--coral);
    font-family: Georgia, "Songti SC", serif;
    font-size: 25px;
}

.app-section {
    padding-block: 100px;
    overflow: hidden;
    background: var(--teal);
    color: white;
}

.app-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    align-items: center;
    gap: 90px;
}

.app-layout > div:first-child > p:not(.eyebrow) {
    max-width: 650px;
    color: #cbe6e2;
    font-size: 18px;
}

.subscribe-form {
    display: flex;
    max-width: 610px;
    margin-top: 30px;
    padding: 7px;
    background: white;
    border-radius: 999px;
}

.subscribe-form input {
    min-width: 0;
    padding: 0 20px;
    border: 0;
    outline: 0;
    flex: 1;
}

.form-note {
    min-height: 1.7em;
    font-size: 14px !important;
}

.phone-mockup {
    position: relative;
    width: 310px;
    margin: 0 auto -170px;
    padding: 12px;
    background: #111;
    border: 2px solid #7b9692;
    border-radius: 42px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .25);
}

.phone-mockup img {
    width: 100%;
    height: 500px;
    border-radius: 31px;
}

.phone-speaker {
    position: absolute;
    top: 22px;
    left: 50%;
    z-index: 1;
    width: 84px;
    height: 20px;
    transform: translateX(-50%);
    background: #111;
    border-radius: 999px;
}

.phone-caption {
    position: absolute;
    right: 28px;
    bottom: 32px;
    left: 28px;
    padding: 15px;
    background: rgba(255, 255, 255, .9);
    color: var(--ink);
    border-radius: 14px;
}

.phone-caption strong,
.phone-caption span {
    display: block;
}

.phone-caption span {
    color: var(--muted);
    font-size: 12px;
}

.site-footer {
    padding-block: 52px;
    background: #101615;
    color: #aab4b1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
}

.footer-grid img {
    filter: brightness(0) invert(1);
}

.footer-grid p {
    margin: 8px 0 0;
}

.footer-links {
    display: flex;
    gap: 22px;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    padding-top: 24px;
    border-top: 1px solid #303937;
    grid-column: 1 / -1;
    font-size: 13px;
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 20;
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    background: var(--coral);
    color: white;
    border-radius: 50%;
    cursor: pointer;
}

.back-top.is-visible {
    display: block;
}

.subhero {
    padding-block: 52px 82px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--paper)), var(--paper));
    border-bottom: 1px solid var(--line);
}

.breadcrumb {
    display: flex;
    margin-bottom: 45px;
    color: var(--muted);
    font-size: 13px;
    gap: 9px;
}

.breadcrumb a:hover {
    color: var(--coral);
}

.subhero-copy {
    display: flex;
    align-items: center;
    gap: 30px;
}

.subhero-icon {
    display: grid;
    width: 96px;
    height: 96px;
    background: var(--accent);
    color: white;
    font-size: 46px;
    place-items: center;
    border-radius: 28px;
}

.subhero h1 {
    margin: 0;
    font-family: Georgia, "Songti SC", serif;
    font-size: clamp(48px, 8vw, 90px);
    line-height: 1;
}

.subhero p:last-child {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--muted);
}

.catalog-toolbar {
    display: flex;
    margin-bottom: 28px;
    padding-bottom: 16px;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.catalog-toolbar p {
    margin: 0;
}

.catalog-toolbar a {
    color: var(--teal);
    font-weight: 700;
}

.catalog-grid {
    row-gap: 34px;
}

.category-note {
    display: grid;
    margin-bottom: 90px;
    padding: 30px;
    background: var(--paper-deep);
    border-radius: 18px;
    grid-template-columns: 160px 1fr;
    gap: 30px;
}

.category-note p {
    margin: 0;
}

.reader-header {
    padding-top: 56px;
    padding-bottom: 44px;
    text-align: center;
}

.reader-header .breadcrumb {
    text-align: left;
}

.reader-header h1 {
    margin: 0;
    font-family: Georgia, "Songti SC", serif;
    font-size: clamp(48px, 7vw, 84px);
    line-height: 1.1;
}

.chapter-name {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 20px;
}

.article-meta {
    display: grid;
    max-width: 760px;
    margin: 38px auto 0;
    padding: 22px;
    border-block: 1px solid var(--line);
    grid-template-columns: repeat(4, 1fr);
}

.article-meta div {
    display: grid;
    gap: 3px;
}

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

.article-meta dd {
    margin: 0;
    font-weight: 700;
}

.reading-note {
    max-width: 760px;
    margin: 28px auto 0;
    padding: 18px 22px;
    background: #e8eee9;
    border-left: 4px solid var(--teal);
    text-align: left;
}

.reading-note p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.story-body {
    padding-block: 30px 70px;
    font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
    font-size: 20px;
    line-height: 2;
}

.story-body > p {
    margin: 42px 0;
}

.dropcap::first-letter {
    float: left;
    margin: 10px 10px 0 0;
    color: var(--coral);
    font-size: 74px;
    line-height: .8;
}

.manga-panel {
    margin: 50px 0;
}

.manga-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--paper-deep);
    border-radius: 12px;
}

.manga-panel.wide-panel img {
    aspect-ratio: 3 / 2;
}

.manga-panel figcaption {
    padding-top: 10px;
    color: var(--muted);
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 12px;
    text-align: center;
}

.story-body blockquote {
    margin: 60px 0;
    padding: 36px;
    background: var(--ink);
    color: white;
    font-size: 28px;
    text-align: center;
    border-radius: 14px;
}

.chapter-end {
    margin-bottom: 90px;
    padding: 58px 32px 32px;
    background: var(--white);
    border: 1px solid var(--line);
    text-align: center;
    border-radius: var(--radius);
}

.chapter-end > span {
    color: var(--coral);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
}

.chapter-end h2 {
    margin: 10px 0;
    font-family: Georgia, "Songti SC", serif;
    font-size: 38px;
}

.chapter-nav {
    display: grid;
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.chapter-nav a {
    padding: 12px;
    background: var(--paper);
    border-radius: 10px;
    font-weight: 700;
}

.chapter-nav a:hover {
    background: var(--ink);
    color: white;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1020px) {
    .main-nav {
        position: absolute;
        top: 78px;
        right: 20px;
        left: 20px;
        display: none;
        padding: 14px;
        background: var(--white);
        box-shadow: var(--shadow);
        grid-template-columns: repeat(4, 1fr);
        border-radius: 16px;
    }

    .main-nav.is-open {
        display: grid;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .hero-art {
        min-height: 600px;
    }

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

    .feature-layout,
    .ranking-layout,
    .app-layout {
        grid-template-columns: 1fr;
    }

    .phone-mockup {
        margin-bottom: -220px;
    }

    .about-section {
        grid-template-columns: 160px 1fr;
    }

    .about-section blockquote {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .shell,
    .shell-narrow {
        width: min(100% - 28px, 1180px);
    }

    .section {
        padding-block: 70px;
    }

    .main-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding-top: 52px;
        gap: 30px;
    }

    .hero h1 {
        font-size: 68px;
    }

    .hero-lead {
        font-size: 17px;
    }

    .hero-stats {
        gap: 16px;
        justify-content: space-between;
    }

    .hero-stats dt {
        font-size: 22px;
    }

    .hero-art {
        min-height: 430px;
    }

    .frame-main {
        right: 42px;
    }

    .ticker {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .category-grid,
    .four-up,
    .horizontal-shelf,
    .duet-grid,
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .spotlight-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .spotlight-large {
        min-height: 430px;
        grid-row: auto;
    }

    .feature-layout {
        gap: 42px;
    }

    .ranking-layout {
        gap: 40px;
    }

    .about-section {
        grid-template-columns: 1fr;
    }

    .about-mark {
        width: 100px;
        height: 100px;
        font-size: 48px;
    }

    .subscribe-form {
        padding: 0;
        background: transparent;
        border-radius: 0;
        flex-direction: column;
        gap: 10px;
    }

    .subscribe-form input {
        min-height: 50px;
        background: white;
        border-radius: 999px;
    }

    .phone-mockup {
        width: 280px;
        margin-bottom: -230px;
    }

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

    .footer-links {
        flex-wrap: wrap;
    }

    .subhero-copy {
        align-items: start;
        flex-direction: column;
    }

    .catalog-toolbar,
    .category-note {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 10px;
    }

    .article-meta {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .story-body {
        font-size: 18px;
    }

    .story-body blockquote {
        padding: 26px;
        font-size: 22px;
    }

    .chapter-nav {
        grid-template-columns: 1fr;
    }
}
