:root {
    --ink: #142437;
    --muted: #667382;
    --paper: #f5f7fa;
    --white: #ffffff;
    --line: #dde3e9;
    --accent: #f48236;
    --story-size: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 "Microsoft YaHei", "PingFang SC", sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: #c5520e; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; object-fit: cover; background: #d9e3ec; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.4; }
h2 { font-size: 28px; letter-spacing: -.5px; }
h3 { font-size: 18px; }
p { color: var(--muted); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #d76720; outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 116px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 18px 0; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; white-space: nowrap; }
.logo small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 2px; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; color: #ffbb75; background: var(--ink); border-radius: 13px 13px 13px 3px; font-size: 19px; }
#main-nav { order: 3; display: flex; justify-content: space-between; width: 100%; gap: 8px; }
#main-nav a { padding: 8px 17px; border-radius: 7px; font-size: 14px; }
#main-nav a span { margin-right: 8px; }
#main-nav a.active { background: var(--ink); color: white; }
.shelf-link { margin-left: auto; font-size: 14px; border: 1px solid var(--line); padding: 8px 16px; border-radius: 24px; }
.menu-toggle { display: none; }
.skip { position: absolute; top: -100px; }
.skip:focus { top: 0; background: white; z-index: 20; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 42px; margin-top: 32px; background: #e9eef3; border-radius: 20px; overflow: hidden; }
.eyebrow { display: block; color: #607184; font-size: 13px; letter-spacing: 1.5px; margin-bottom: 10px; }
.hero h1 { font-size: 20px; margin-bottom: 18px; }
.hero-lead { font-size: clamp(30px, 3.8vw, 48px); font-weight: 900; color: var(--ink); line-height: 1.3; letter-spacing: -2px; margin-bottom: 20px; }
.hero-copy > p:not(.hero-lead) { font-size: 14px; max-width: 430px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; padding: 11px 22px; background: var(--accent); color: #18212d; font-size: 14px; font-weight: 700; }
.button:hover { background: #ffae6f; color: #142437; }
.button.secondary { background: transparent; border-color: #abb8c6; }
.hero-stats { display: flex; gap: 34px; margin-top: 30px; }
.hero-stats span { font-size: 12px; color: var(--muted); }
.hero-stats strong { display: block; font-size: 24px; color: var(--ink); }
.hero-feature { position: relative; min-height: 380px; border-radius: 14px; overflow: hidden; background: #142437; }
.hero-image { width: 100%; height: 100%; position: absolute; opacity: .72; }
.feature-caption { position: absolute; bottom: 0; padding: 28px; width: 100%; background: linear-gradient(transparent, #101f32 50%); color: white; padding-top: 100px; }
.feature-caption span { font-size: 12px; color: #ffb879; }
.feature-caption h2 { font-size: 30px; margin: 8px 0; }
.feature-caption p { color: #e1e7ef; font-size: 14px; }
.feature-caption b { display: block; margin-top: 12px; font-size: 14px; }
.module { margin-top: 64px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 24px; }
.section-head > a, .section-head > span { font-size: 14px; color: var(--muted); }
.section-head h2 span { color: var(--accent); font-size: 22px; }
.grid { display: grid; gap: 24px; }
.six { grid-template-columns: repeat(6, 1fr); }
.three { grid-template-columns: repeat(3, 1fr); }
.comic-card { min-width: 0; position: relative; }
.cover { width: 100%; aspect-ratio: 3/4; height: auto; border-radius: 10px; }
.comic-card h3 { font-size: 16px; margin-top: 12px; }
.comic-card p { font-size: 12px; margin-top: 4px; }
.badge { position: absolute; top: 10px; left: 10px; padding: 3px 8px; font-size: 12px; color: white; background: #142437dd; border-radius: 4px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category { display: flex; gap: 16px; align-items: center; padding: 24px 20px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.category p { font-size: 12px; margin-top: 5px; }
.category > b { margin-left: auto; }
.category-icon { font-size: 28px; color: #bd5819; }
.editor-panel { display: grid; grid-template-columns: 210px 1fr; gap: 45px; padding: 32px; background: var(--ink); color: white; border-radius: 16px; align-items: center; }
.editor-panel h3 { font-size: 32px; margin: 15px 0; }
.editor-panel p { color: #c2ccda; }
.pill { display: inline-block; padding: 4px 10px; font-size: 12px; border: 1px solid #a1b0bf; border-radius: 4px; }
blockquote { margin: 24px 0; padding-left: 18px; border-left: 3px solid var(--accent); color: #ffd0a7; font-size: 20px; }
.text-link { color: #ffb879; }
.ranking { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; padding: 0; list-style: none; }
.ranking li { display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); padding: 20px 0; }
.rank { font-size: 34px; font-weight: 900; color: #c85c17; }
.ranking li > a { margin-left: auto; }
.ranking p { font-size: 13px; }
.korean-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.wide-card { display: grid; grid-template-columns: 130px 1fr; gap: 22px; padding: 16px; background: white; border-radius: 12px; }
.wide-card > div { padding: 10px 0; }
.wide-card span { font-size: 12px; color: #b45417; }
.wide-card h3 { margin: 8px 0; }
.wide-card p { font-size: 13px; }
.timeline { border-left: 2px solid #f0a56f; padding-left: 28px; }
.timeline a { position: relative; display: flex; gap: 30px; align-items: center; padding: 16px 20px; margin-bottom: 12px; background: white; border-radius: 8px; }
.timeline a:before { content: ''; width: 10px; height: 10px; background: var(--accent); border-radius: 100%; position: absolute; left: -34px; }
.timeline time { color: #b95413; font-weight: 700; }
.timeline small { display: block; color: var(--muted); }
.timeline em { font-size: 12px; font-style: normal; margin-left: auto; }
.complete-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.complete-grid a { padding: 26px 22px; border-top: 4px solid #e29555; background: #f0e9e0; border-radius: 0 0 10px 10px; }
.complete-grid span { font-size: 12px; color: #886347; }
.complete-grid h3 { margin: 10px 0; }
.complete-grid p { font-size: 14px; }
.complete-grid b { display: block; font-size: 13px; margin-top: 20px; }
.mood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mood-grid a { border-radius: 14px; background: #dce8ec; padding: 30px; }
.mood-grid a:nth-child(2) { background: #e3e3f1; }
.mood-grid a:nth-child(3) { background: #f4e4d6; }
.mood-grid span { font-size: 13px; }
.mood-grid h3 { margin: 22px 0 10px; font-size: 24px; }
.mood-grid p { font-size: 14px; }
.mood-grid b { display: block; margin-top: 25px; font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; border-block: 1px solid var(--line); padding: 30px 0; }
.steps b { font-size: 32px; color: #a0aebb; }
.steps h3 { margin: 12px 0; }
.steps p { font-size: 14px; }
.faq details { padding: 18px 24px; margin-bottom: 10px; background: white; border-radius: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { padding-top: 14px; font-size: 14px; }
.about-panel { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; }
.about-panel strong { font-size: 34px; line-height: 1.5; letter-spacing: -1px; }
.about-panel p + p { margin-top: 14px; }
.subscribe { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 35px; padding: 40px; background: #e3ebf2; border-radius: 16px; }
.subscribe p { margin: 14px 0 22px; max-width: 730px; }
.subscribe-mark { background: var(--ink); color: #ffc084; width: 140px; height: 140px; border-radius: 25px 25px 25px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 38px; font-weight: 800; }
.subscribe-mark span { font-size: 13px; letter-spacing: 4px; }
.subscribe-help { margin-left: 18px; font-size: 14px; }
footer { margin-top: 64px; background: var(--ink); color: white; padding: 38px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
footer p { color: #c3ceda; font-size: 13px; }
footer p:last-child { margin-left: auto; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.page-heading { padding: 40px 0 0; }
.page-heading h1 { font-size: 40px; margin-bottom: 16px; }
.book-detail { display: grid; grid-template-columns: 240px 1fr; gap: 45px; margin-top: 32px; padding: 36px; background: white; border-radius: 16px; align-items: center; }
.book-detail h1 { font-size: 36px; margin: 18px 0; }
.synopsis { font-size: 18px; margin-bottom: 20px; }
.chapter-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.chapter-list a { padding: 20px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.chapter-list span { display: block; color: var(--muted); font-size: 13px; }
.reader { max-width: 820px; margin: 30px auto 0; }
.reader-heading { text-align: center; padding: 30px 0; }
.reader-heading h1 { font-size: 30px; margin-bottom: 15px; }
.reading-note { padding: 24px; background: #e7edf2; border-radius: 12px; margin-bottom: 30px; }
.reading-note h2 { font-size: 18px; margin-bottom: 10px; }
.reading-note p { font-size: 14px; }
.reader-controls { display: flex; gap: 12px; margin-top: 18px; }
.reader-controls button { border: 1px solid #adbbc8; background: transparent; padding: 8px 15px; border-radius: 6px; color: inherit; }
.story { background: var(--white); padding: 30px; border-radius: 12px; }
.story figure { margin: 0; }
.reader-image { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; }
figcaption { font-size: 13px; text-align: center; color: var(--muted); padding: 10px; }
.story > p { font-size: var(--story-size); line-height: 2; color: var(--ink); margin: 20px 0 48px; }
.chapter-end { text-align: center; padding: 40px 10px; }
.chapter-nav { display: flex; justify-content: space-between; gap: 12px; }
.chapter-nav a { background: var(--white); padding: 12px 20px; border: 1px solid var(--line); border-radius: 8px; }
.prose { max-width: 800px; margin-inline: auto; }
.prose h2 { margin: 30px 0 12px; }
.prose p { margin: 12px 0; }
.shelf-row { display: flex; gap: 20px; align-items: center; padding: 22px; margin-bottom: 12px; background: var(--white); border-radius: 10px; }
.shelf-row > a:first-child { margin-right: auto; font-weight: bold; }
.shelf-row button { background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 6px; padding: 7px 12px; }
.dark { --paper: #14202c; --white: #1d2c3b; --ink: #e0e8f0; --muted: #aebdcb; --line: #415265; }
.dark .reading-note { background: #293c4e; }
.dark .brand-mark, .dark footer { background: #0f1823; }
@media (max-width: 1000px) {
    .six { grid-template-columns: repeat(3, 1fr); }
    .hero { padding: 28px; gap: 24px; }
    .category-grid, .complete-grid { grid-template-columns: repeat(2, 1fr); }
    #main-nav a { padding: 8px; font-size: 13px; }
    .wide-card { grid-template-columns: 100px 1fr; gap: 15px; }
    .mood-grid a { padding: 22px; }
    .about-panel { gap: 30px; }
}
@media (max-width: 640px) {
    .wrap { width: calc(100% - 32px); }
    .header-inner { gap: 14px; min-height: 84px; }
    .logo { font-size: 17px; gap: 8px; }
    .logo small { font-size: 10px; }
    .brand-mark { width: 40px; height: 40px; font-size: 16px; }
    .shelf-link { order: 4; margin: 0; width: 100%; text-align: center; }
    .menu-toggle { display: block; margin-left: auto; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: white; font-size: 13px; }
    #main-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .js-ready #main-nav:not(.open) { display: none; }
    #main-nav a { padding: 8px 2px; text-align: center; font-size: 12px; }
    #main-nav a span { display: block; margin: 0; }
    .hero { grid-template-columns: 1fr; padding: 24px; margin-top: 20px; gap: 28px; }
    .hero-lead { font-size: 37px; }
    .hero-feature { min-height: 300px; }
    .hero h1 { font-size: 18px; }
    .hero-stats { justify-content: space-between; gap: 12px; }
    .module { margin-top: 44px; }
    h2 { font-size: 23px; }
    .section-head { align-items: center; }
    .section-head > a { white-space: nowrap; font-size: 12px; }
    .eyebrow { font-size: 11px; letter-spacing: .5px; }
    .six, .three { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
    .three { grid-template-columns: 1fr; }
    .three .cover { aspect-ratio: 4/3; }
    .category-grid { gap: 10px; }
    .category { display: block; padding: 16px; }
    .category > b { display: none; }
    .category h3 { font-size: 16px; }
    .category p { font-size: 12px; }
    .editor-panel { grid-template-columns: 1fr; padding: 24px; gap: 22px; }
    .editor-panel .cover { aspect-ratio: 4/3; }
    .editor-panel h3 { font-size: 27px; }
    .ranking, .korean-grid { grid-template-columns: 1fr; }
    .wide-card { grid-template-columns: 100px 1fr; }
    .timeline { padding-left: 20px; }
    .timeline a { padding: 15px 12px; gap: 12px; }
    .timeline a:before { left: -26px; }
    .timeline em { display: none; }
    .timeline b { font-size: 14px; }
    .complete-grid { gap: 12px; }
    .complete-grid a { padding: 20px 16px; }
    .mood-grid, .steps { grid-template-columns: 1fr; gap: 16px; }
    .mood-grid a { padding: 24px; }
    .steps > div { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
    .about-panel { grid-template-columns: 1fr; gap: 24px; }
    .about-panel strong { font-size: 30px; }
    .subscribe { grid-template-columns: 1fr; padding: 26px; gap: 24px; }
    .subscribe-mark { width: 95px; height: 95px; font-size: 27px; border-radius: 16px; }
    .subscribe-mark span { font-size: 10px; }
    .subscribe-help { display: block; margin: 16px 0 0; }
    .footer-inner { flex-direction: column; align-items: start; gap: 16px; }
    footer p:last-child { margin-left: 0; }
    .page-heading h1 { font-size: 32px; }
    .book-detail { grid-template-columns: 1fr; padding: 22px; gap: 25px; }
    .book-detail > img { max-width: 220px; margin: auto; }
    .book-detail h1 { font-size: 28px; }
    .chapter-list { grid-template-columns: 1fr; }
    .reader-heading h1 { font-size: 24px; }
    .story { padding: 15px; }
    .chapter-nav a { padding: 10px 12px; font-size: 13px; }
    .shelf-row { flex-wrap: wrap; padding: 18px; gap: 12px; }
    .shelf-row > a:first-child { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
