@charset "UTF-8";

:root {
    --ink: #20332b;
    --muted: #64736d;
    --line: #e0e7e1;
    --green: #c8f45b;
    --paper: #f6f8f5;
    --reader-size: 19px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}

button, a, input {
    -webkit-tap-highlight-color: transparent;
}

button, summary {
    cursor: pointer;
}

button, .button {
    border: 0;
    border-radius: 10px;
}

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
    outline: 3px solid #48801f;
    outline-offset: 5px;
}

img {
    display: block;
    max-width: 100%;
    object-fit: cover;
    background: #e1e9dd;
    color: #27402f;
}

h1, h2, h3, p {
    margin: 0;
}

h1, h2, h3 {
    line-height: 1.35;
}

p {
    overflow-wrap: anywhere;
}

.container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.icon {
    display: inline-block;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -4px;
}

.sprites {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    padding: 12px;
    background: white;
    z-index: 10;
}

.skip-link:focus {
    top: 10px;
}

.site-header {
    background: white;
    border-bottom: 1px solid var(--line);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 88px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 25px;
    font-weight: 850;
    letter-spacing: -1px;
}

.brand img {
    background: none;
}

.brand small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--muted);
}

.header-note {
    font-size: 14px;
    color: var(--muted);
}

.header-note .icon {
    margin-right: 8px;
}

.nav-inner {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 4px;
    padding-bottom: 13px;
}

.nav-inner a {
    padding: 10px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 9px;
    font-size: 14px;
}

.nav-inner a.active {
    background: var(--green);
    font-weight: 700;
}

.nav-inner a:hover {
    background: #edf5e5;
}

.menu-toggle {
    display: none;
    padding: 10px 12px;
    background: var(--paper);
}

.hero {
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
    border: 1px solid #d8e7c4;
    border-radius: 22px;
    overflow: hidden;
    background: #e8f2db;
}

.hero-copy {
    padding: 40px;
}

.eyebrow {
    display: block;
    font-size: 12px;
    letter-spacing: 1.7px;
    font-weight: 700;
    color: #527140;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: 19px;
    margin-bottom: 16px;
}

.hero h2 {
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: -1px;
    line-height: 1.45;
    margin-bottom: 17px;
}

.hero-copy > p {
    color: #4c6153;
    max-width: 420px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 19px;
    background: var(--green);
    font-size: 14px;
    font-weight: 700;
    min-height: 46px;
}

.dark {
    background: var(--ink);
    color: white;
}

.ghost {
    background: transparent;
    border: 1px solid #a7b797;
}

.button:hover {
    filter: brightness(.94);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 12px;
    margin-top: 27px;
    color: #53654a;
}

.hero-art {
    position: relative;
    min-width: 0;
    min-height: 400px;
    background: #213d49;
    color: white;
}

.hero-art > img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-position: center 35%;
}

.hero-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 32px;
    background: linear-gradient(0deg, rgba(10, 25, 26, .94), transparent 80%);
}

.hero-caption > span:first-child {
    padding: 3px 10px;
    background: var(--green);
    color: var(--ink);
    border-radius: 5px;
    font-size: 12px;
}

.hero-caption h3 {
    margin: 12px 0 6px;
    font-size: 28px;
}

.hero-caption p {
    font-size: 14px;
}

.hero-read {
    margin-top: 18px;
    font-size: 14px;
}

.module {
    margin-top: 62px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.section-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    letter-spacing: -.6px;
}

.section-head h2 .icon {
    color: #658632;
}

.muted {
    color: var(--muted);
}

.section-head p {
    margin-top: 8px;
    font-size: 14px;
}

.more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 650;
    color: #486b30;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.category-card {
    padding: 22px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.category-card > .icon {
    margin-bottom: 10px;
    width: 30px;
    height: 30px;
    color: #66833a;
}

.category-card h3 {
    font-size: 17px;
}

.category-card p {
    margin-top: 7px;
    font-size: 12px;
    color: var(--muted);
}

.category-card:hover, .story-tile:hover {
    border-color: #759648;
}

.comic-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

.comic-card {
    min-width: 0;
}

.cover {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 2 / 3;
    background: #d5dfcc;
}

.cover img {
    width: 100%;
    height: 100%;
    transition: transform .25s;
}

.comic-card a:hover img {
    transform: scale(1.04);
}

.cover-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 2px 8px;
    border-radius: 5px;
    background: rgba(22, 38, 29, .85);
    color: white;
    font-size: 12px;
}

.comic-card h3 {
    margin-top: 13px;
    font-size: 16px;
}

.comic-card p {
    font-size: 14px;
    margin-top: 5px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: #55713d;
}

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px 24px;
    padding: 10px 26px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: white;
}

.rank-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.rank-row:nth-last-child(-n+3) {
    border-bottom: 0;
}

.rank-row > .icon {
    margin-left: auto;
}

.rank-number {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 34px;
    color: #7b993c;
}

.rank-row h3 {
    font-size: 16px;
}

.rank-row p {
    font-size: 12px;
    color: var(--muted);
}

.feature-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #e3ece7;
    border-radius: 18px;
    overflow: hidden;
}

.feature-panel > img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
}

.feature-panel > div {
    padding: 36px;
}

.feature-panel h3 {
    font-size: 30px;
    margin-bottom: 16px;
}

.feature-panel ul {
    padding-left: 20px;
    margin: 20px 0;
    color: #54645b;
    font-size: 14px;
}

.korean-panel {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 40px;
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 32px 0;
}

.korean-intro h3 {
    font-size: 27px;
    margin-bottom: 15px;
}

.korean-intro p {
    margin-bottom: 22px;
    color: var(--muted);
}

.korean-panel ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.korean-panel li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 14px;
    height: 100%;
    border-radius: 10px;
    background: #fff;
}

.korean-panel li span {
    color: #869b66;
    font-size: 14px;
}

.korean-panel li strong {
    font-size: 14px;
}

.korean-panel li .icon {
    margin-left: auto;
    width: 16px;
    flex-basis: 16px;
}

.timeline {
    background: white;
    padding: 8px 28px;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.update-row {
    display: grid;
    grid-template-columns: 70px 100px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.update-row:last-child {
    border: 0;
}

.update-row time {
    color: #6b8052;
    font-weight: 700;
}

.pill {
    border-radius: 5px;
    background: #eff4e9;
    padding: 3px 8px;
    font-size: 12px;
    color: #566943;
}

.ending-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.story-tile {
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
}

.story-tile h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.story-tile p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 25px;
}

.story-tile .more {
    margin-top: auto;
}

.two-grid, .shelf-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.shelf-pick, .saved-item {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #edf2e6;
    border-radius: 12px;
    padding: 24px;
    min-width: 0;
}

.shelf-pick p {
    font-size: 14px;
    color: var(--muted);
}

.shelf-pick > .icon:last-child {
    margin-left: auto;
}

#shelf-suggestions {
    margin-top: 24px;
}

.saved-item a {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.saved-item button {
    padding: 8px;
    white-space: nowrap;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.step-num {
    display: block;
    font-size: 38px;
    font-family: Georgia, serif;
    color: #8da965;
    margin-bottom: 10px;
}

.guide-grid h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.guide-grid p {
    font-size: 14px;
    color: var(--muted);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 40px;
}

.about-grid h3 {
    font-size: 24px;
    margin-bottom: 18px;
}

.about-grid p {
    margin-bottom: 16px;
    color: var(--muted);
}

.about-note {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #9fae91;
    padding-left: 35px;
}

.about-note strong {
    font-size: 30px;
    line-height: 1.6;
    max-width: 280px;
}

.about-note p {
    font-size: 12px;
    margin-top: 20px;
}

details {
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
}

summary {
    font-weight: 600;
}

details p {
    max-width: 900px;
    margin-top: 16px;
    color: var(--muted);
}

.subscribe {
    display: grid;
    grid-template-columns: 1fr 220px;
    align-items: center;
    gap: 55px;
    margin-top: 72px;
    padding: 44px;
    border-radius: 18px;
    background: var(--ink);
    color: white;
}

.subscribe .eyebrow {
    color: var(--green);
}

.subscribe h2 {
    font-size: 27px;
    margin-bottom: 15px;
}

.subscribe h2 .icon {
    margin-right: 10px;
}

.subscribe p {
    color: #cedad0;
    margin-bottom: 22px;
}

.subscribe .button {
    color: var(--ink);
}

.subscribe .sub-note {
    margin: 12px 0 0;
    font-size: 12px;
}

.subscribe-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    border-left: 1px solid #526559;
    padding: 10px 0 10px 30px;
}

.subscribe-brand img {
    background: none;
    margin-bottom: 6px;
}

.subscribe-brand span {
    font-size: 12px;
    color: #c9d3c7;
}

.site-footer {
    padding: 42px 0 30px;
    margin-top: 35px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 12px;
}

.footer-brand {
    font-size: 21px;
    font-weight: 750;
}

.site-footer p {
    margin-top: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 26px;
    margin-top: 18px;
    font-size: 14px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
    margin: 30px 0;
}

.column-hero {
    padding: 38px;
    border-radius: 18px;
    background: #e6efda;
}

.column-hero h1 {
    font-size: 36px;
    margin-bottom: 14px;
}

.column-hero > p {
    max-width: 800px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.search-form label {
    font-size: 14px;
}

.search-form input {
    width: min(330px, 100%);
    min-width: 0;
    padding: 11px 15px;
    border: 1px solid #adbba3;
    border-radius: 8px;
    background: white;
}

#search-status {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--muted);
}

.module > p + p {
    margin-top: 16px;
}

.reader {
    max-width: 880px;
    margin: auto;
}

.reader-heading {
    margin: 38px 0 28px;
}

.reader-heading h1 {
    font-size: clamp(25px, 3vw, 36px);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--muted);
}

.reader-note {
    padding: 26px;
    background: #eaf0e2;
    border-radius: 13px;
}

.reader-note h2 {
    font-size: 18px;
    margin-bottom: 13px;
}

.reader-note p {
    font-size: 14px;
    color: #506045;
}

.reader-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.reader-controls button {
    padding: 10px 15px;
    background: white;
    border: 1px solid #ccd6be;
    font-size: 14px;
}

.reader-panel {
    margin: 42px 0;
}

.reader-panel h2 {
    font-size: 18px;
    margin-bottom: 18px;
}

.reader-panel figure {
    margin: 0 0 24px;
}

.reader-panel img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    object-fit: contain;
}

.reader-panel figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.reader-panel p {
    font-size: var(--reader-size);
    line-height: 2.1;
    padding: 0 20px;
}

body.soft-reading {
    background: #e9e5d6;
}

.chapter-end {
    padding: 32px;
    text-align: center;
    background: #e3eed7;
    border-radius: 14px;
}

.chapter-end h2 {
    font-size: 21px;
    margin: 12px 0;
}

.chapter-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    margin: 24px 0 60px;
}

.chapter-nav a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px;
    border: 1px solid #b8c5ac;
    border-radius: 10px;
    font-size: 14px;
}

.text-page {
    max-width: 850px;
    margin: 40px auto 80px;
}

.text-page h1 {
    font-size: 36px;
    margin-bottom: 30px;
}

.text-page section {
    margin: 36px 0;
}

.text-page h2 {
    font-size: 22px;
    margin-bottom: 18px;
}

#toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #20332b;
    color: white;
    border-radius: 12px;
    padding: 12px 22px;
    max-width: calc(100% - 32px);
    z-index: 30;
    display: none;
    font-size: 14px;
}

#toast.show {
    display: block;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1050px) {
    .nav-inner {
        grid-template-columns: repeat(9, minmax(0, 1fr));
    }

    .nav-inner a {
        flex-direction: column;
        gap: 4px;
        font-size: 12px;
    }

    .hero-copy {
        padding: 28px;
    }

    .comic-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ranking-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rank-row:nth-last-child(3) {
        border-bottom: 1px solid var(--line);
    }

    .korean-panel {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .category-card {
        padding: 17px;
    }

    .feature-panel > div {
        padding: 28px;
    }
}

@media (max-width: 650px) {
    .container {
        width: calc(100% - 32px);
    }

    .topbar {
        min-height: 80px;
    }

    .brand {
        font-size: 22px;
        gap: 9px;
    }

    .brand small {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .header-note {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        gap: 5px;
        align-items: center;
        font-size: 14px;
    }

    .nav-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nav-inner a {
        flex-direction: row;
        font-size: 14px;
        padding: 12px 4px;
    }

    .js #main-nav:not(.is-open) {
        display: none;
    }

    .hero {
        margin-top: 24px;
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .hero-copy {
        padding: 26px 22px;
    }

    .hero h2 {
        font-size: 29px;
    }

    .hero-art {
        min-height: 310px;
    }

    .hero-caption {
        padding: 25px;
    }

    .hero-stats {
        gap: 13px;
    }

    .module {
        margin-top: 46px;
    }

    .section-head {
        flex-wrap: wrap;
        margin-bottom: 20px;
    }

    .section-head h2 {
        font-size: 22px;
    }

    .category-grid, .comic-grid, .ending-grid, .ranking-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .category-card {
        padding: 17px 13px;
    }

    .category-card p {
        font-size: 12px;
    }

    .comic-card h3 {
        font-size: 15px;
    }

    .card-meta {
        flex-wrap: wrap;
    }

    .ranking-grid {
        padding: 6px 15px;
        gap: 0 14px;
    }

    .rank-row {
        gap: 9px;
        padding: 18px 0;
    }

    .rank-number {
        font-size: 26px;
    }

    .rank-row h3 {
        font-size: 14px;
    }

    .rank-row > .icon {
        display: none;
    }

    .feature-panel, .about-grid, .subscribe, .two-grid, .shelf-list {
        grid-template-columns: 1fr;
    }

    .feature-panel > img {
        max-height: 320px;
    }

    .feature-panel > div {
        padding: 24px;
    }

    .korean-panel li a {
        padding: 13px 10px;
        gap: 6px;
    }

    .korean-panel li .icon {
        display: none;
    }

    .timeline {
        padding: 4px 16px;
    }

    .update-row {
        grid-template-columns: 58px 1fr auto;
        gap: 8px 12px;
    }

    .update-row a {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .story-tile {
        padding: 17px;
    }

    .story-tile h3 {
        font-size: 17px;
    }

    .story-tile p {
        font-size: 14px;
    }

    .guide-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .guide-grid article {
        padding-bottom: 20px;
        border-bottom: 1px solid var(--line);
    }

    .about-grid {
        gap: 20px;
    }

    .about-note {
        padding: 15px 22px;
    }

    .about-note strong {
        font-size: 24px;
        max-width: none;
    }

    .subscribe {
        padding: 27px;
        gap: 28px;
        margin-top: 48px;
    }

    .subscribe h2 {
        font-size: 23px;
    }

    .subscribe-brand {
        padding: 24px 0 0;
        border-left: 0;
        border-top: 1px solid #526559;
    }

    .subscribe-brand img {
        width: 74px;
        height: 74px;
    }

    .column-hero {
        padding: 26px;
    }

    .column-hero h1 {
        font-size: 30px;
    }

    .search-form {
        flex-wrap: wrap;
        gap: 10px;
    }

    .search-form label {
        width: 100%;
    }

    .search-form input {
        flex: 1;
    }

    .reader-note {
        padding: 20px;
    }

    .reader-panel p {
        padding: 0 5px;
    }

    .chapter-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .chapter-nav a:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .chapter-end {
        padding: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
