:root {
    --ink: #17243b;
    --muted: #687184;
    --orange: #ef622a;
    --line: #e6e9ee;
    --paper: #f7f8fb;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.8 "Microsoft YaHei", "PingFang SC", sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; width: 100%; max-width: 100%; object-fit: cover; background: #e3e9ef; aspect-ratio: 3 / 4; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.35; letter-spacing: -1px; }
h2 { font-size: 26px; line-height: 1.5; }
h3 { font-size: 18px; line-height: 1.55; }
p + p { margin-top: 16px; }
.wrap { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding-block: 24px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 800; line-height: 1.3; }
.logo small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 5px; letter-spacing: 2px; }
.brandmark { display: grid; place-items: center; color: white; background: var(--orange); border-radius: 15px 15px 15px 3px; width: 54px; height: 54px; font-size: 34px; }
.header-actions { display: flex; gap: 25px; font-size: 14px; }
.nav { display: grid; grid-template-columns: repeat(9, 1fr); padding-block: 4px 13px; gap: 7px; }
.nav a { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 9px 3px; border-radius: 8px; font-size: 14px; white-space: nowrap; }
.nav .active { color: #c44112; background: #fff0e9; font-weight: 700; }
.nav span { font-size: 19px; }
.hero { margin-top: 32px; background: #eaf0f5; border-radius: 22px; display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; min-height: 430px; }
.hero > div:first-child { padding: 42px; align-self: center; }
.eyebrow { color: #b84b21; font-weight: 700; letter-spacing: 2px; font-size: 13px; margin-bottom: 15px; }
.hero h1 { font-size: 54px; margin-bottom: 12px; }
.hero h1 + p { font-size: 24px; font-weight: 700; }
.hero-copy { max-width: 470px; color: #4d5a6d; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.button { display: inline-flex; justify-content: center; align-items: center; padding: 10px 20px; border: 1px solid transparent; background: var(--orange); color: white; border-radius: 8px; font-size: 14px; font-weight: 700; }
.button:hover { background: #cc4717; color: white; }
.secondary { background: white; border-color: #d9dfe8; color: var(--ink); }
.hero-note { margin-top: 24px; color: var(--muted); font-size: 12px; }
.hero-art { position: relative; min-width: 0; }
.hero-art > a { display: block; height: 100%; }
.hero-art img { height: 100%; max-height: 470px; object-position: center 30%; }
.hero-caption { position: absolute; bottom: 0; inset-inline: 0; padding: 70px 30px 25px; color: white; background: linear-gradient(transparent, #15223beb); }
.hero-caption span, .hero-caption strong, .hero-caption a { display: block; }
.hero-caption strong { font-size: 28px; margin: 3px 0; }
.hero-caption span, .hero-caption a { font-size: 14px; }
.module { margin-top: 64px; }
.section-head { margin-bottom: 24px; }
.section-head h2 > span { color: var(--orange); margin-right: 8px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-tile { padding: 22px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.cat-icon { float: right; font-size: 30px; color: var(--orange); }
.category-tile p { font-size: 14px; margin-top: 10px; color: var(--muted); }
.comic-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.cover { position: relative; display: block; border-radius: 10px; overflow: hidden; }
.cover img { transition: transform .2s; }
.cover:hover img { transform: scale(1.04); }
.badge { position: absolute; left: 8px; bottom: 8px; border-radius: 4px; padding: 2px 7px; background: #17243bd9; color: white; font-size: 12px; }
.comic-card h3 { margin-top: 13px; font-size: 16px; }
.comic-card p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.section-tail { margin-top: 22px; text-align: right; color: #c44112; }
.editor { position: relative; display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; background: var(--ink); color: white; border-radius: 16px; padding: 30px; }
.editor .section-head { grid-column: 1 / -1; margin: 0; }
.editor-photo img { aspect-ratio: 16 / 9; max-height: 240px; border-radius: 8px; }
.editor-copy { align-self: center; }
.editor-copy h3 { font-size: 26px; margin-bottom: 16px; }
.editor-copy p:not(.eyebrow) { color: #d7deea; }
.editor .eyebrow { color: #ffaf87; }
.text-link { display: inline-block; color: #c44112; font-weight: 700; margin-top: 22px; }
.editor .text-link { color: #ffb596; }
.muted { color: var(--muted); font-size: 14px; }
.ranking { padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.ranking li { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid #dfe3e9; }
.rank-no { font-size: 36px; font-weight: 900; font-style: italic; color: var(--orange); }
.ranking li > a { margin-left: auto; white-space: nowrap; font-size: 14px; }
.ranking p { color: var(--muted); font-size: 13px; }
.korean-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.korean-grid article { display: grid; grid-template-columns: 130px 1fr; background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.korean-grid article > div { padding: 18px; }
.korean-grid img { height: 100%; }
.korean-grid p:not(.eyebrow) { color: var(--muted); font-size: 14px; margin-top: 8px; }
.moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mood { display: flex; flex-direction: column; min-height: 140px; justify-content: space-between; padding: 24px; border-radius: 60px 12px 12px 12px; background: #f8e0df; }
.mood:nth-child(2) { background: #e1e7fb; }
.mood:nth-child(3) { background: #dce9ec; }
.mood:nth-child(4) { background: #f9ebca; }
.mood span { font-size: 14px; }
.adventure { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; border-top: 3px solid var(--ink); padding-top: 24px; }
.chapter-number { font-size: 42px; color: #98a5b6; font-weight: 800; }
.adventure h3 { margin: 8px 0 12px; }
.adventure p { color: var(--muted); font-size: 14px; }
.adventure a:last-child { display: block; margin-top: 18px; font-size: 14px; color: #c44112; }
.completed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.completed-grid article { display: grid; grid-template-columns: 100px 1fr; gap: 20px; background: #ecf1e9; padding: 20px; border-radius: 10px; }
.completed-grid img { border-radius: 6px; }
.completed-grid h3 { margin-top: 8px; }
.completed-grid p, .completed-grid a { font-size: 14px; }
.pill { display: inline-block; background: white; padding: 2px 10px; border-radius: 5px; font-size: 12px; color: #4a6451; }
.shelf-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 30px; border: 1px dashed #aab6c7; border-radius: 12px; }
.shelf-layout h3 { font-size: 24px; margin-bottom: 15px; }
.shelf-layout p { color: var(--muted); }
.shelf-suggestion, .saved-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.saved-row { padding: 10px; border-bottom: 1px solid var(--line); }
.saved-row button { background: transparent; border: 0; color: #b54423; white-space: nowrap; }
.about { border-top: 1px solid var(--line); padding-top: 40px; }
.about-layout { display: grid; grid-template-columns: 1fr 1.7fr; gap: 50px; }
.about-lead { font-size: 32px; font-weight: 800; line-height: 1.7; }
.about-layout > div { color: #596376; }
.subscribe { display: grid; grid-template-columns: 1fr 180px; gap: 25px; padding: 32px; background: #ffebe0; border-radius: 16px; }
.subscribe .section-head { grid-column: 1 / -1; margin: 0; }
.subscribe h3 { font-size: 28px; margin-bottom: 10px; }
.subscribe-copy > p:not(.eyebrow) { max-width: 720px; }
.subscription-brand { display: flex; align-items: center; justify-content: center; flex-direction: column; border: 2px solid #edb99e; border-radius: 18px; align-self: center; aspect-ratio: 1; }
.subscription-brand strong { color: var(--orange); font-size: 72px; line-height: 1.3; }
.subscription-brand span { font-size: 12px; }
.footer { padding-block: 35px; margin-top: 45px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: center; }
.footer p + p { margin: 3px 0 8px; }
.breadcrumb { font-size: 14px; margin: 28px 0; color: var(--muted); overflow-wrap: anywhere; }
.page-intro { background: #e9eff5; border-radius: 16px; padding: 35px; margin-bottom: 34px; }
.page-intro p:not(.eyebrow) { margin: 18px 0; max-width: 960px; }
.synopsis-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.synopsis-list article { background: white; padding: 25px; border-radius: 10px; }
.synopsis-list h2 { font-size: 20px; }
.synopsis-list p { margin: 12px 0; color: var(--muted); }
.detail-hero { display: grid; grid-template-columns: 250px 1fr; gap: 45px; align-items: center; background: white; padding: 35px; border-radius: 16px; }
.detail-cover img { border-radius: 12px; }
.detail-hero h1 { margin-bottom: 20px; }
.chapter-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chapter-list a { display: block; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.reader { max-width: 820px; margin-inline: auto; }
.reader-heading { text-align: center; padding: 25px 0; }
.reader h1 { font-size: 32px; margin-bottom: 18px; }
.read-note { text-align: left; background: #e8edf3; padding: 18px; border-radius: 8px; color: #4c5b70; font-size: 14px; margin-bottom: 20px; }
.panel { margin: 42px 0; }
.panel h2 { font-size: 20px; margin-bottom: 20px; }
.panel img { aspect-ratio: 3 / 4; object-fit: contain; max-height: 900px; }
.panel figcaption { color: var(--muted); font-size: 12px; margin: 8px 0 20px; text-align: center; }
.panel p { font-size: 18px; line-height: 2.2; background: white; padding: 28px; border-radius: 8px; }
.chapter-end { text-align: center; color: var(--muted); padding-block: 20px; }
.reader-nav { display: flex; justify-content: space-between; gap: 10px; margin: 20px 0 45px; flex-wrap: wrap; }
body.reading-soft { background: #e6eddf; }
.reading-soft .panel p { background: #f0f4e9; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 12px 24px; border-radius: 8px; z-index: 10; display: none; max-width: 90%; }
.toast.show { display: block; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 10px; z-index: 20; background: white; padding: 10px; }
:focus-visible { outline: 3px solid #2075be; outline-offset: 4px; }
@media (max-width: 1000px) {
    .nav { grid-template-columns: repeat(5, 1fr); }
    .comic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero > div:first-child { padding: 28px; }
    .hero h1 { font-size: 44px; }
    .category-grid, .moods, .adventure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .korean-grid article { grid-template-columns: 100px 1fr; }
    .korean-grid article > div { padding: 14px; }
}
@media (max-width: 650px) {
    .wrap { width: calc(100% - 28px); }
    .topbar { padding-block: 18px; }
    .logo { font-size: 22px; }
    .logo small { font-size: 10px; letter-spacing: 0; }
    .brandmark { width: 44px; height: 44px; font-size: 28px; }
    .header-actions { font-size: 12px; gap: 0; }
    .header-actions a:first-child { display: none; }
    .nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
    .nav a { font-size: 13px; padding: 7px 2px; }
    .hero { grid-template-columns: 1fr; margin-top: 20px; }
    .hero > div:first-child { padding: 28px 22px; }
    .hero h1 { font-size: 42px; }
    .hero h1 + p { font-size: 21px; }
    .hero-art { height: 290px; }
    .hero-art img { object-position: center 35%; }
    .module { margin-top: 44px; }
    h2 { font-size: 22px; }
    .category-tile { padding: 16px; }
    .category-tile h3 { font-size: 16px; }
    .cat-icon { float: none; display: block; margin-bottom: 6px; }
    .comic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
    .editor, .korean-grid, .completed-grid, .shelf-layout, .about-layout, .synopsis-list, .detail-hero, .chapter-list { grid-template-columns: 1fr; }
    .editor, .shelf-layout { padding: 22px; gap: 22px; }
    .editor-copy h3 { font-size: 22px; }
    .ranking { grid-template-columns: 1fr; }
    .korean-grid article { grid-template-columns: 110px 1fr; }
    .mood { padding: 20px; min-height: 130px; border-top-left-radius: 35px; }
    .adventure { gap: 24px 18px; }
    .about-layout { gap: 20px; }
    .about-lead { font-size: 27px; }
    .subscribe { grid-template-columns: 1fr; padding: 24px; }
    .subscribe h3 { font-size: 24px; }
    .subscription-brand { width: 140px; justify-self: center; }
    .page-intro, .detail-hero { padding: 24px; }
    .detail-cover { width: 170px; margin-inline: auto; }
    .detail-hero { gap: 24px; }
    .reader h1 { font-size: 26px; }
    .panel p { padding: 20px; font-size: 17px; }
    .reader-nav .button { padding: 10px 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
