:root {
    --ink: #172b42;
    --muted: #5e6b7b;
    --paper: #ffffff;
    --base: #f4f6f9;
    --line: #dfe5ec;
    --orange: #c64a10;
    --sun: #ffd37e;
    --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--base); color: var(--ink); font: 16px/1.75 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #d35219; outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.4; }
h2 { font-size: 28px; letter-spacing: -.5px; }
h3 { font-size: 18px; }
p { margin-top: 10px; }
img { display: block; width: 100%; height: auto; object-fit: cover; background: #dbe3ec; color: #283c51; font-size: 14px; }
.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.icon { width: 21px; height: 21px; flex: 0 0 21px; vertical-align: middle; }
h2 .icon { margin-right: 10px; color: var(--orange); }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 94px; gap: 20px; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 13px; font-size: 26px; font-weight: 800; letter-spacing: 1px; }
.brand small { display: block; font-size: 12px; letter-spacing: 2px; color: var(--muted); font-weight: 400; }
.brand-mark { width: 50px; height: 52px; background: var(--ink); color: white; border-radius: 12px 12px 12px 3px; display: inline-flex; align-items: center; justify-content: center; font-size: 25px; position: relative; flex-shrink: 0; }
.brand-mark span { font-size: 11px; line-height: 20px; width: 20px; text-align: center; position: absolute; right: -5px; bottom: -3px; background: var(--orange); border: 2px solid white; border-radius: 6px; }
.shelf-link { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 8px 16px; border-radius: 30px; font-size: 14px; }
.nav { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding-bottom: 14px; }
.nav-link { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 5px; font-size: 14px; border-radius: 8px; font-weight: 600; }
.nav-link:hover { background: #f6f7f9; }
.nav-link[aria-current="page"] { background: var(--ink); color: white; }
.section { margin-top: 64px; }
.hero { margin-top: 30px; background: var(--ink); color: white; display: grid; grid-template-columns: 1.15fr 1fr; min-height: 480px; border-radius: 22px; overflow: hidden; }
.hero-copy { padding: 42px; }
.hero-kicker { font-size: 14px; letter-spacing: 2px; color: #ffcf93; }
.hero h1 { margin: 15px 0 12px; font-size: 42px; }
.hero h2 { font-weight: 400; color: #f1f4f9; font-size: 26px; }
.hero-copy p { max-width: 440px; color: #d2dce7; font-size: 15px; line-height: 1.9; margin-top: 19px; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 25px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--orange); color: white; border: 1px solid transparent; border-radius: 8px; padding: 11px 20px; font-weight: 600; font-size: 14px; line-height: 1.5; }
.button:hover { background: #a93b09; color: white; }
.secondary { background: white; color: var(--ink); border-color: var(--line); }
.secondary:hover { background: #edf1f6; color: var(--ink); }
.hero .secondary { background: transparent; color: white; border-color: #718195; }
.hero-facts { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px; font-size: 12px; color: #c7d3e1; }
.hero-art { position: relative; min-height: 460px; padding: 26px; }
.hero-image { display: block; height: 100%; transform: rotate(3deg); border: 7px solid #fff; border-radius: 10px; overflow: hidden; }
.hero-image img { height: 100%; aspect-ratio: 1; }
.hero-caption { position: absolute; bottom: 28px; left: 12px; right: 40px; border: 1px solid #ffffff50; background: #ffffffef; border-radius: 12px; color: var(--ink); padding: 20px 24px; box-shadow: 0 12px 30px #0002; }
.hero-caption h3 { margin-top: 5px; font-size: 23px; }
.hero-caption p { font-size: 14px; }
.hero-caption .text-link { margin-top: 10px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.3px; color: var(--orange); }
.meta { font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); font-size: 15px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.section-head h2 { margin-top: 7px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 14px; font-weight: 600; }
.search-strip { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; align-items: center; padding: 24px 28px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.search-intro { display: flex; gap: 16px; align-items: center; }
.search-intro > .icon { width: 30px; height: 30px; flex-basis: 30px; color: var(--orange); }
.search-intro h2 { font-size: 19px; }
.search-intro p { font-size: 13px; color: var(--muted); margin-top: 3px; }
#search-form { display: flex; gap: 8px; }
input[type="search"] { width: 100%; min-width: 0; border: 1px solid #bac6d5; border-radius: 8px; padding: 10px 14px; background: #f8fafc; font-size: 14px; }
#search-form button { flex-shrink: 0; }
#search-status, .search-results { grid-column: 1 / -1; }
.search-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.search-result { padding: 14px; background: var(--base); border-radius: 8px; }
.search-result span { display: block; }
[hidden] { display: none !important; }
.comic-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 22px; }
.comic-card { min-width: 0; }
.comic-card .cover { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 11px; background: #d5dfe9; box-shadow: 0 6px 14px #15294210; }
.cover img { aspect-ratio: 3 / 4; height: 100%; transition: transform .25s; }
.comic-card a:hover img { transform: scale(1.04); }
.comic-card .eyebrow { display: block; margin: 14px 0 6px; font-size: 12px; }
.comic-card h3 { font-size: 16px; min-height: 45px; }
.comic-card .meta { margin-top: 4px; }
.spotlight { display: grid; grid-template-columns: .85fr 1.15fr; background: #f8e5cc; border: 1px solid #ead1af; border-radius: var(--radius); overflow: hidden; }
.spot-image { min-height: 330px; display: block; }
.spot-image img { height: 100%; aspect-ratio: 4 / 3; }
.spot-copy { padding: 38px; }
.spot-copy h3 { font-size: 30px; margin-top: 16px; }
.spot-copy p { line-height: 1.9; }
.pill { display: inline-block; border: 1px solid #d7bea1; padding: 4px 12px; border-radius: 24px; font-size: 13px; }
blockquote { border-left: 3px solid var(--orange); margin: 22px 0; padding-left: 16px; font-size: 18px; }
.category-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.category-tile { display: grid; grid-template-columns: 44px 1fr; column-gap: 15px; padding: 24px; border: 1px solid var(--line); background: white; border-radius: 12px; }
.category-tile > .icon { grid-row: 1 / 4; width: 42px; height: 42px; padding: 8px; color: var(--orange); background: #fff1df; border-radius: 11px; }
.category-tile:nth-child(2n) > .icon { background: #eaf1fd; color: #265694; }
.category-tile p { margin: 4px 0 8px; color: var(--muted); font-size: 14px; }
.ranking { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.ranking li { display: flex; align-items: center; gap: 20px; border-bottom: 1px solid #ccd5df; padding: 24px 0; }
.rank-num { font: italic 36px Georgia, serif; color: var(--orange); }
.ranking li > a:nth-child(2) { flex: 1; }
.ranking p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.round-link { display: flex; padding: 10px; background: white; border-radius: 50%; }
.korean-section { border-top: 3px solid var(--ink); padding-top: 28px; }
.korean-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.wide-comic { display: grid; grid-template-columns: 136px 1fr; background: white; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.wide-comic > a img { height: 100%; aspect-ratio: 3 / 5; }
.wide-comic > div { padding: 22px; }
.wide-comic h3 { margin-top: 8px; }
.wide-comic p { font-size: 14px; color: var(--muted); }
.wide-comic .text-link { margin-top: 15px; font-size: 13px; }
.journal-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.journal-card { background: white; border-bottom: 3px solid #c99953; }
.journal-card img { aspect-ratio: 5 / 4; }
.journal-card > div { padding: 20px; }
.journal-card h3 { margin: 8px 0; }
.journal-card p { font-size: 14px; color: var(--muted); }
.fantasy-section { padding: 35px; background: var(--ink); border-radius: 18px; color: white; }
.fantasy-section .muted { color: #c6d3e1; }
.fantasy-section .eyebrow, .fantasy-section h2 .icon { color: var(--sun); }
.voyage-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.voyage { border: 1px solid #53667b; padding: 24px; border-radius: 10px; position: relative; }
.voyage h3 { margin: 10px 0; font-size: 22px; }
.voyage p { font-size: 14px; color: #d4dfea; }
.voyage-link { display: block; color: var(--sun); font-size: 14px; margin-top: 18px; }
.complete-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.finished-row { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: grid; grid-template-columns: 40px 1fr 24px; align-items: center; gap: 4px 14px; }
.complete-badge { grid-row: 1 / 3; background: #eaf2ec; color: #356248; font-size: 13px; padding: 10px 5px; border-radius: 6px; text-align: center; }
.finished-row h3 { font-size: 17px; }
.finished-row > .meta { grid-column: 2; }
.finished-row > .icon { grid-column: 3; grid-row: 1 / 3; }
.about { border-top: 1px solid var(--line); padding-top: 32px; }
.about-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; }
.about-layout p { font-size: 15px; line-height: 2; color: #47586b; }
.about-layout dl { border-left: 2px solid #d9a66b; padding-left: 28px; margin: 0; }
.about-layout dt { font-weight: 700; margin: 6px 0; }
.about-layout dd { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.subscribe { display: grid; grid-template-columns: 90px 1fr auto; gap: 26px; align-items: center; background: #ffedd8; border: 1px solid #ead4b6; border-radius: 16px; padding: 30px; margin-bottom: 64px; }
.subscribe-mark { height: 90px; display: grid; place-items: center; background: white; border-radius: 16px; }
.subscribe h2 { font-size: 22px; margin-top: 6px; }
.subscribe p { font-size: 14px; }
.subscribe .meta { font-size: 12px; }
.site-footer { background: white; border-top: 1px solid var(--line); padding: 32px 0; margin-top: 64px; }
.footer-brand { font-size: 19px; }
.footer-brand .brand-mark { transform: scale(.7); margin-left: -8px; margin-right: -8px; }
.site-footer > div { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.site-footer p { font-size: 14px; color: var(--muted); }
.footer-links { display: flex; gap: 22px; grid-column: 2; grid-row: 1; font-size: 14px; }
.site-footer .meta { font-size: 12px; }
.breadcrumb { display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-top: 28px; }
.category-hero { margin-top: 24px; padding: 38px; background: #e5ecf5; border-left: 5px solid var(--orange); border-radius: 0 14px 14px 0; }
.category-hero h1 { font-size: 36px; margin-top: 12px; }
.category-tagline { font-size: 23px; }
.category-hero > p:last-child { max-width: 850px; color: #47596e; }
.directory-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.directory-grid article { padding: 24px; background: white; border-radius: 12px; border: 1px solid var(--line); }
.directory-grid p { font-size: 14px; color: var(--muted); min-height: 75px; }
.chapter-links { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.chapter-link { padding: 10px 14px; background: var(--base); border-radius: 6px; font-size: 14px; }
.detail-hero { display: grid; grid-template-columns: 260px 1fr; gap: 42px; padding: 32px; background: white; border: 1px solid var(--line); border-radius: 18px; margin-top: 24px; }
.detail-cover img { aspect-ratio: 3 / 4; height: 100%; border-radius: 10px; }
.detail-hero h1 { font-size: 34px; margin: 14px 0; }
.synopsis { font-size: 17px; max-width: 700px; }
.book-meta { display: grid; grid-template-columns: 90px 1fr; font-size: 14px; gap: 8px; }
.book-meta dt { color: var(--muted); }
.book-meta dd { margin: 0; }
.chapter-menu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.chapter-menu a { display: grid; grid-template-columns: 46px 1fr; background: white; border: 1px solid var(--line); padding: 24px; border-radius: 12px; }
.chapter-menu .meta { grid-column: 2; }
.chapter-num { color: var(--orange); font: 28px Georgia, serif; grid-row: 1 / 3; }
.story-notes { background: #e9eef4; border-radius: 14px; padding: 30px; }
.story-notes p { line-height: 2; }
.related-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.reader-heading { max-width: 900px; margin: 28px auto 35px; }
.reader-heading h1 { font-size: 30px; margin-top: 12px; }
.reader-heading > p { color: var(--muted); font-size: 14px; }
.reader-panels { max-width: 820px; margin: auto; }
.story-panel { margin-bottom: 36px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: white; }
.panel-image { position: relative; }
.panel-image img { aspect-ratio: 4 / 3; object-fit: contain; background: #e0e6ed; }
.panel-number { position: absolute; z-index: 1; top: 16px; left: 16px; padding: 4px 12px; background: var(--ink); color: white; border-radius: 5px; font: 18px/1.7 Georgia, serif; }
figcaption { padding: 25px 30px 30px; }
figcaption h2 { color: var(--orange); font-size: 14px; }
figcaption p { font-size: 19px; line-height: 2; }
.large-reading figcaption p { font-size: 24px; }
.reader-end { max-width: 900px; margin: 50px auto; padding: 35px; text-align: center; background: #e8edf4; border-radius: 15px; }
.reader-end h2 { margin-top: 12px; font-size: 25px; }
.reader-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.shelf-hero h1 { font-size: 36px; margin-top: 12px; }
.shelf-hero input { display: block; max-width: 190px; font-size: 12px; margin-left: 8px; }
.shelf-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.saved-book { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.saved-book .actions { margin-top: 14px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 20; background: var(--ink); color: white; padding: 13px 24px; border-radius: 10px; box-shadow: 0 8px 30px #0003; width: max-content; max-width: calc(100% - 30px); display: none; }
.toast.visible { display: block; }
.skip-link { position: fixed; left: 10px; top: -100px; z-index: 30; background: white; padding: 12px; }
.skip-link:focus { top: 10px; }
.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: 1000px) {
    .hero-copy { padding: 30px; }
    .hero h1 { font-size: 36px; }
    .hero h2 { font-size: 23px; }
    .hero-art { padding: 24px 18px; }
    .comic-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; }
    .journal-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .wide-comic { grid-template-columns: 100px 1fr; }
    .wide-comic > div { padding: 16px; }
    .wide-comic > a img { aspect-ratio: 1 / 3; }
    .subscribe { grid-template-columns: 76px 1fr; }
    .subscribe > .button { grid-column: 2; justify-self: start; }
    .category-tile { padding: 18px; grid-template-columns: 34px 1fr; gap: 10px; }
    .category-tile > .icon { width: 34px; height: 34px; }
    .nav { gap: 4px; }
    .nav-link { gap: 4px; font-size: 13px; }
    .search-strip { grid-template-columns: 1fr; }
    .detail-hero { grid-template-columns: 210px 1fr; gap: 25px; }
}
@media (max-width: 650px) {
    .wrap { width: calc(100% - 32px); }
    .topbar { min-height: 80px; gap: 10px; }
    .brand { font-size: 22px; gap: 10px; }
    .brand-mark { width: 42px; height: 45px; font-size: 23px; }
    .brand small { font-size: 10px; letter-spacing: 1px; }
    .shelf-link { font-size: 12px; padding: 7px 10px; }
    .shelf-link .icon { width: 16px; height: 16px; flex-basis: 16px; }
    .nav { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; padding-bottom: 12px; }
    .nav-link { padding: 8px 2px; font-size: 12px; gap: 4px; }
    .nav-link .icon { width: 16px; height: 16px; flex-basis: 16px; }
    .section { margin-top: 44px; }
    .hero { grid-template-columns: 1fr; margin-top: 20px; }
    .hero-copy { padding: 28px 24px; }
    .hero h1 { font-size: 36px; }
    .hero h2 { font-size: 24px; }
    .hero-art { min-height: 290px; height: 330px; padding: 10px 30px 26px; }
    .hero-caption { bottom: 18px; left: 20px; right: 20px; padding: 16px 20px; }
    .hero-caption h3 { font-size: 21px; }
    .hero-caption p { display: none; }
    .hero-facts { gap: 12px; font-size: 11px; margin-top: 20px; }
    .hero .actions { gap: 8px; }
    .button { padding: 11px 14px; font-size: 13px; }
    .search-strip { padding: 20px; margin-top: 20px; }
    #search-form { flex-wrap: wrap; }
    #search-form input { flex-basis: 100%; }
    #search-form button { flex: 1; }
    .section-head { align-items: flex-start; gap: 12px; }
    h2 { font-size: 23px; }
    .section-head > .text-link { font-size: 12px; margin-top: 30px; gap: 2px; }
    .section-head > .text-link .icon { width: 16px; flex-basis: 16px; }
    .section-head .muted { font-size: 14px; }
    .comic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 16px; }
    .comic-card h3 { min-height: 45px; font-size: 16px; }
    .spotlight { grid-template-columns: 1fr; }
    .spot-image { height: 260px; min-height: 0; }
    .spot-copy { padding: 25px; }
    .spot-copy h3 { font-size: 26px; }
    .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .category-tile { display: block; padding: 18px 14px; }
    .category-tile h3 { margin-top: 10px; font-size: 16px; }
    .category-tile p { min-height: 48px; font-size: 13px; }
    .ranking { grid-template-columns: 1fr; }
    .ranking li { padding: 20px 0; gap: 15px; }
    .korean-grid { grid-template-columns: 1fr; gap: 15px; }
    .wide-comic { grid-template-columns: 104px 1fr; }
    .wide-comic > a img { aspect-ratio: 1 / 2; }
    .wide-comic h3 { font-size: 17px; }
    .wide-comic p { font-size: 13px; }
    .journal-grid { gap: 14px; }
    .journal-card > div { padding: 15px 12px; }
    .journal-card h3 { font-size: 16px; }
    .journal-card p { font-size: 13px; }
    .fantasy-section { padding: 25px 20px; }
    .voyage-grid { grid-template-columns: 1fr; }
    .voyage { padding: 20px; }
    .complete-list { grid-template-columns: 1fr; }
    .about-layout { grid-template-columns: 1fr; gap: 25px; }
    .about-layout dl { padding-left: 20px; }
    .subscribe { grid-template-columns: 1fr; padding: 24px; gap: 18px; margin-bottom: 44px; }
    .subscribe-mark { width: 70px; height: 70px; }
    .subscribe > .button { grid-column: 1; }
    .subscribe h2 { font-size: 21px; }
    .site-footer { margin-top: 44px; }
    .site-footer > div { display: block; }
    .footer-links { flex-wrap: wrap; gap: 12px 20px; margin: 22px 0; }
    .category-hero { padding: 26px 22px; margin-top: 22px; }
    .category-hero h1 { font-size: 30px; }
    .category-tagline { font-size: 20px; }
    .directory-grid { grid-template-columns: 1fr; }
    .directory-grid p { min-height: 0; }
    .detail-hero { grid-template-columns: 1fr; padding: 24px; gap: 24px; margin-top: 24px; }
    .detail-cover { width: 180px; margin: auto; }
    .detail-hero h1 { font-size: 29px; }
    .chapter-menu { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 16px; }
    .reader-heading h1 { font-size: 25px; }
    figcaption { padding: 20px; }
    figcaption p { font-size: 18px; }
    .reader-end { padding: 25px 18px; }
    .reader-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .shelf-list, .search-results { grid-template-columns: 1fr; }
    .shelf-hero .actions { align-items: flex-start; }
    .shelf-hero label { flex-wrap: wrap; justify-content: flex-start; }
}
@media (max-width: 360px) {
    .nav-link { flex-direction: column; gap: 5px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
