@charset "UTF-8";

:root {
    --ink: #163b34;
    --muted: #60716d;
    --paper: #f5f7f4;
    --white: #ffffff;
    --line: #dce5dd;
    --orange: #f77538;
    --lime: #d9ed96;
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: #b74714; }
button, input { font: inherit; }
button, .button { cursor: pointer; }
button { color: inherit; }
img { display: block; width: 100%; height: auto; max-width: 100%; object-fit: cover; background: #d6dfd8; color: #173b34; font-size: 14px; }
svg { width: 21px; height: 21px; flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.35; }
h2 { font-size: 28px; letter-spacing: -.7px; }
h3 { font-size: 18px; }
p + p { margin-top: 16px; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 20px; z-index: 10; background: white; padding: 12px; }
.skip:focus { top: 10px; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.masthead { min-height: 90px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 25px; letter-spacing: 1px; }
.brand img { width: 46px; height: 46px; border-radius: 14px; background: none; }
.brand small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 2px; line-height: 1.4; }
.mast-note { color: var(--muted); font-size: 14px; margin-left: auto; }
.shelf-link { display: flex; align-items: center; gap: 8px; padding: 9px 17px; border: 1px solid var(--line); border-radius: 30px; font-size: 14px; }
.nav { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; padding-bottom: 14px; }
.nav a { display: flex; justify-content: center; align-items: center; gap: 7px; padding: 11px 3px; font-size: 14px; border-radius: 9px; white-space: nowrap; }
.nav a:hover { background: #f1f5ee; }
.nav a[aria-current="page"] { background: var(--ink); color: white; }
.section { margin-block: 66px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.section-head h2 { display: flex; gap: 10px; align-items: center; }
.section-head h2 svg { color: #d95620; width: 25px; height: 25px; }
.section-head p { margin-top: 7px; color: var(--muted); font-size: 14px; }
.more { white-space: nowrap; font-size: 14px; font-weight: 700; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 800; }
.pill { display: inline-flex; gap: 7px; align-items: center; border-radius: 30px; padding: 5px 12px; font-size: 12px; background: #edf3e6; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 9px; padding: 12px 20px; background: var(--ink); color: white; font-weight: 700; font-size: 14px; text-align: center; }
.button:hover { color: white; background: #245347; }
.button.orange { background: var(--orange); color: #162f29; }
.button.light { color: var(--ink); background: #fff; border-color: var(--line); }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.hero { margin-top: 32px; display: grid; grid-template-columns: 1fr 1.02fr; border-radius: 22px; overflow: hidden; background: var(--ink); color: white; min-height: 405px; }
.hero-copy { padding: 42px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero .eyebrow { color: var(--lime); }
.hero h1 { margin-top: 13px; font-size: 49px; letter-spacing: 3px; }
.hero h1 a:hover { color: var(--lime); }
.hero h2 { font-size: 27px; font-weight: 500; margin-block: 12px 16px; }
.hero p { color: #d6e3dc; max-width: 420px; font-size: 15px; }
.hero-picture { position: relative; min-height: 405px; overflow: hidden; }
.hero-picture img { position: absolute; inset: 0; height: 100%; aspect-ratio: 5 / 4; }
.hero-picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,33,28,.88), transparent 70%); pointer-events: none; }
.hero-caption { position: absolute; bottom: 30px; left: 30px; right: 30px; z-index: 1; }
.hero-caption h3 { font-size: 29px; margin-block: 8px; }
.hero-caption p { font-size: 14px; }
.hero-caption a:hover { color: var(--lime); }
.quickline { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); padding: 17px 0; }
.quickline a { display: flex; justify-content: center; gap: 10px; font-size: 14px; border-right: 1px solid var(--line); }
.quickline a:last-child { border: 0; }
.update-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.update { display: flex; align-items: center; gap: 15px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 13px; min-width: 0; }
.update img { width: 76px; flex-shrink: 0; aspect-ratio: 3/4; border-radius: 7px; }
.update h3 { font-size: 16px; margin-block: 5px; }
.update p, .meta { color: var(--muted); font-size: 13px; }
.date-tag { color: #a54419; font-size: 12px; font-weight: 700; }
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category { padding: 23px; border: 1px solid var(--line); border-radius: 14px; background: #fff; position: relative; }
.category:nth-child(3n+1) { background: #eaf0e0; }
.category:nth-child(3n+2) { background: #fff0e5; }
.category:nth-child(3n) { background: #e8f0f4; }
.category svg { width: 30px; height: 30px; margin-bottom: 16px; }
.category h3 { margin-bottom: 6px; }
.category p { color: #53635e; font-size: 14px; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.editor { position: relative; min-height: 300px; border-radius: 17px; overflow: hidden; background: #24493e; color: white; }
.editor img { position: absolute; inset: 0; height: 100%; aspect-ratio: 2/1; }
.editor::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,36,30,.95), rgba(11,36,30,.62) 60%, rgba(11,36,30,.1)); }
.editor > div { position: relative; z-index: 1; padding: 30px; width: 80%; }
.editor h3 { font-size: 27px; margin-block: 18px 12px; }
.editor p { color: #e3ece5; font-size: 14px; }
.editor .more { display: inline-block; margin-top: 20px; color: #e5f4b8; }
.rank-panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.rank-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.rank-list li { border-top: 2px solid var(--ink); padding-top: 14px; }
.rank-num { color: #dc6129; font: italic 44px/1 Georgia, serif; display: block; margin-bottom: 15px; }
.rank-list h3 { margin-bottom: 7px; }
.rank-list p { font-size: 14px; color: var(--muted); margin-bottom: 15px; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.book-card { min-width: 0; }
.cover { display: block; overflow: hidden; border-radius: 12px; position: relative; }
.cover img { aspect-ratio: 3/4; transition: transform .3s; }
.cover:hover img { transform: scale(1.025); }
.cover .pill { position: absolute; bottom: 12px; left: 12px; background: rgba(255,255,255,.95); color: var(--ink); }
.book-card h3 { margin: 15px 0 5px; }
.book-card p { font-size: 14px; color: var(--muted); }
.book-card .intro { margin-top: 9px; }
.korean-panel { display: grid; grid-template-columns: .75fr 1.25fr; gap: 36px; padding: 35px; border-radius: var(--radius); background: #e6eee3; }
.korean-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.korean-copy h2 { margin: 12px 0 18px; font-size: 34px; }
.korean-copy p { color: #4e6359; }
.korean-books { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.korean-books img { aspect-ratio: 4/5; }
.complete-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.complete-item { display: grid; grid-template-columns: 130px 1fr; gap: 22px; background: white; padding: 24px; border-radius: 12px; border-left: 4px solid #99ae73; }
.complete-item img { aspect-ratio: 3/4; border-radius: 7px; }
.complete-item h3 { margin: 9px 0; }
.complete-item p { font-size: 14px; color: var(--muted); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.timeline > a { border-top: 1px solid #9eafa4; padding-top: 18px; }
.timeline time { font-size: 13px; color: #a94b24; }
.timeline h3 { margin-block: 8px; }
.timeline p { font-size: 14px; color: var(--muted); }
.reading-note { display: grid; grid-template-columns: 1fr 1fr 1fr; border-radius: 15px; padding: 32px 12px; background: #fff0e3; }
.reading-note article { padding-inline: 25px; border-right: 1px solid #e2cbbd; }
.reading-note article:last-child { border: none; }
.reading-note svg { width: 28px; height: 28px; color: #a94b24; }
.reading-note h3 { margin-block: 12px 8px; }
.reading-note p { color: #635e54; font-size: 14px; }
.about { display: grid; grid-template-columns: .7fr 1.3fr; gap: 65px; border-block: 1px solid var(--line); padding-block: 40px; }
.about h2 { font-size: 38px; margin-top: 13px; }
.about p { color: #50655c; }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.faq details { background: white; border: 1px solid var(--line); padding: 19px 22px; border-radius: 9px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 14px; font-size: 14px; color: var(--muted); }
.subscribe { display: grid; grid-template-columns: 100px 1fr auto; gap: 30px; align-items: center; padding: 38px; background: var(--ink); color: white; border-radius: 17px; margin-bottom: 35px; }
.subscribe img { width: 90px; height: 90px; background: none; border-radius: 22px; }
.subscribe h2 { margin-block: 5px 9px; }
.subscribe p { color: #d3e0d7; font-size: 14px; }
.site-footer { padding: 24px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; gap: 20px; }
.crumb { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); margin-top: 25px; font-size: 14px; }
.page-lead { padding: 35px 0 20px; }
.page-lead h1 { font-size: 38px; margin-bottom: 15px; }
.page-lead > p { max-width: 850px; color: var(--muted); }
.catalog-summary { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.catalog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.catalog-book { display: grid; grid-template-columns: 150px 1fr; gap: 23px; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.catalog-book img { aspect-ratio: 3/4; border-radius: 8px; }
.catalog-book h2 { font-size: 23px; margin-block: 8px 12px; }
.catalog-book p { font-size: 14px; color: var(--muted); }
.chapter-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; padding: 0; margin: 0; }
.chapter-list a { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.chapter-list time { white-space: nowrap; color: var(--muted); font-size: 12px; }
.detail { display: grid; grid-template-columns: 255px 1fr; gap: 42px; padding: 35px; background: white; border: 1px solid var(--line); border-radius: 18px; margin-top: 30px; }
.detail > img { aspect-ratio: 3/4; border-radius: 11px; }
.detail h1 { font-size: 36px; margin-block: 15px; }
.detail .synopsis { max-width: 720px; color: #52655b; }
.detail .meta { margin-block: 18px; }
.detail .button { margin-top: 5px; }
.detail > * { min-width: 0; }
.section-head > div { min-width: 0; }
.book-directory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.book-directory a { background: white; border: 1px solid var(--line); padding: 24px; border-radius: 12px; }
.book-directory span { font-size: 13px; color: #a34720; }
.book-directory h3 { margin-block: 10px; }
.book-directory p { font-size: 14px; color: var(--muted); }
.reader-wrap { max-width: 850px; margin: auto; }
.reader-title { padding: 35px 0; text-align: center; }
.reader-title h1 { font-size: 34px; margin-bottom: 14px; }
.reader-info { color: var(--muted); font-size: 14px; }
.reader-guide { padding: 20px 25px; background: #e7eee1; border-left: 3px solid #8da767; border-radius: 0 12px 12px 0; margin-bottom: 25px; }
.reader-guide h2 { font-size: 18px; margin-bottom: 7px; }
.reader-guide p { font-size: 14px; color: #506454; }
.reader-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 24px 0; }
.reader-controls button { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 8px 15px; font-size: 14px; }
.chapter-content { background: white; padding: 30px; border: 1px solid var(--line); border-radius: 14px; }
.chapter-content h2 { font-size: 22px; margin-bottom: 24px; }
.panel { margin: 0 0 40px; }
.panel:last-child { margin-bottom: 0; }
.panel img { aspect-ratio: 4/3; border-radius: 7px; }
.panel figcaption { padding: 24px 8px 0; font-size: var(--reading-size, 18px); line-height: 2; letter-spacing: .5px; }
.panel-num { display: block; font-size: 12px; color: #907e69; letter-spacing: 2px; margin-bottom: 7px; }
.chapter-end { text-align: center; margin-block: 35px; padding: 28px; border-block: 1px solid var(--line); }
.chapter-end h2 { font-size: 22px; margin-bottom: 8px; }
.chapter-end p { color: var(--muted); font-size: 14px; }
.chapter-nav { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 45px; }
.chapter-nav a { padding: 17px 10px; text-align: center; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: 14px; }
.chapter-nav .center { background: var(--ink); color: white; }
.status { font-size: 14px; color: #447041; min-height: 24px; margin-top: 12px; }
.guide-box { background: white; padding: 28px; border-radius: 14px; border: 1px solid var(--line); margin-block: 28px; }
.guide-box h2 { margin-bottom: 15px; font-size: 23px; }
.guide-box li { margin-block: 10px; }
.feed-address { display: block; overflow-wrap: anywhere; background: #eef3e8; padding: 15px; border-radius: 8px; margin-block: 20px; }
.saved-row { display: flex; gap: 15px; flex-wrap: wrap; padding: 20px; border-bottom: 1px solid var(--line); align-items: center; }
.saved-row a { font-weight: 700; margin-right: auto; }
.saved-row button { background: white; border: 1px solid var(--line); border-radius: 6px; padding: 7px 14px; }
.night { --paper: #14261f; --white: #20392d; --ink: #e3ede1; --muted: #acbdb0; --line: #476151; color: #e3ede1; }
.night .site-header, .night .chapter-content, .night .chapter-nav a, .night .reader-controls button { background: #20392d; }
.night .reader-guide { background: #2c4432; }
.night .reader-guide p { color: #d0dfce; }
.night .chapter-nav .center { background: #d9ed96; color: #17372b; }
.night .button { background: #d9ed96; color: #17372b; }
.night .nav a[aria-current="page"] { background: #d9ed96; color: #17372b; }
.night .subscribe { background: #20392d; }
.night .brand { color: #e3ede1; }

@media (max-width: 1050px) {
    .nav { grid-template-columns: repeat(5, 1fr); }
    .nav a:first-child { grid-row: span 2; }
    .hero-copy { padding: 30px; }
    .hero h1 { font-size: 39px; }
    .hero h2 { font-size: 23px; }
    .update-grid { grid-template-columns: repeat(2, 1fr); }
    .catalog-book { grid-template-columns: 110px 1fr; padding: 20px; gap: 18px; }
    .korean-panel { grid-template-columns: .8fr 1.2fr; padding: 27px; gap: 25px; }
    .complete-item { grid-template-columns: 100px 1fr; padding: 18px; gap: 17px; }
    .subscribe { grid-template-columns: 80px 1fr; gap: 23px; }
    .subscribe .button { grid-column: 2; justify-self: start; }
    .about { gap: 35px; }
}

@media (max-width: 700px) {
    .wrap { width: calc(100% - 32px); }
    .masthead { min-height: 80px; gap: 10px; }
    .brand { font-size: 21px; gap: 9px; }
    .brand img { width: 39px; height: 39px; }
    .brand small { font-size: 10px; letter-spacing: 1px; }
    .mast-note { display: none; }
    .shelf-link { padding: 8px 11px; font-size: 12px; }
    .nav { gap: 5px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .nav a:first-child { grid-row: auto; grid-column: 1 / -1; padding: 7px; flex-direction: row; }
    .nav a { padding: 10px 2px; font-size: 12px; gap: 5px; flex-direction: column; }
    .nav svg { width: 17px; height: 17px; }
    .hero { grid-template-columns: 1fr; margin-top: 22px; }
    .hero-copy { padding: 29px 25px; }
    .hero h1 { font-size: 40px; }
    .hero h2 { font-size: 23px; }
    .hero-picture { min-height: 280px; }
    .hero-caption { left: 24px; bottom: 24px; }
    .hero-caption h3 { font-size: 25px; }
    .section { margin-block: 44px; }
    h2 { font-size: 23px; }
    .section-head { align-items: flex-start; gap: 12px; }
    .section-head h2 { gap: 7px; }
    .section-head p { font-size: 13px; }
    .more { font-size: 12px; padding-top: 6px; }
    .section-head { flex-wrap: wrap; }
    .quickline { grid-template-columns: 1fr 1fr; gap: 17px 0; }
    .quickline a:nth-child(2) { border: none; }
    .update-grid { gap: 10px; }
    .update { display: block; padding: 11px; }
    .update img { width: 100%; aspect-ratio: 4/3; margin-bottom: 8px; }
    .update h3 { font-size: 15px; }
    .categories { grid-template-columns: 1fr 1fr; gap: 12px; }
    .category { padding: 19px 16px; }
    .category h3 { font-size: 17px; }
    .category p { font-size: 13px; }
    .editor-grid { grid-template-columns: 1fr; gap: 18px; }
    .editor { min-height: 275px; }
    .editor > div { padding: 26px; width: 87%; }
    .editor h3 { font-size: 25px; }
    .rank-panel { padding: 23px 19px; }
    .rank-list { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
    .rank-list h3 { font-size: 16px; }
    .rank-num { font-size: 37px; }
    .card-grid { grid-template-columns: 1fr 1fr; gap: 25px 16px; }
    .book-card h3 { font-size: 17px; }
    .book-card p { font-size: 13px; }
    .korean-panel { grid-template-columns: 1fr; padding: 25px 20px; }
    .korean-copy h2 { font-size: 29px; }
    .korean-books { gap: 16px; }
    .complete-list { grid-template-columns: 1fr; gap: 17px; }
    .complete-item { grid-template-columns: 100px 1fr; }
    .timeline { grid-template-columns: 1fr 1fr; gap: 25px 19px; }
    .timeline h3 { font-size: 17px; }
    .reading-note { grid-template-columns: 1fr; padding: 5px 23px; }
    .reading-note article { padding: 24px 0; border-right: 0; border-bottom: 1px solid #e2cbbd; }
    .about { grid-template-columns: 1fr; gap: 24px; padding-block: 30px; }
    .about h2 { font-size: 31px; }
    .faq { grid-template-columns: 1fr; }
    .subscribe { grid-template-columns: 60px 1fr; gap: 20px; padding: 26px 20px; }
    .subscribe img { width: 60px; height: 60px; border-radius: 14px; }
    .subscribe h2 { font-size: 23px; }
    .subscribe .eyebrow { font-size: 10px; }
    .subscribe p { grid-column: 1 / -1; }
    .subscribe .button { grid-column: 1 / -1; width: 100%; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .page-lead h1 { font-size: 31px; }
    .catalog-grid { grid-template-columns: 1fr; gap: 19px; }
    .catalog-book { grid-template-columns: 100px 1fr; gap: 16px; padding: 18px; }
    .catalog-book h2 { font-size: 22px; }
    .chapter-list { grid-template-columns: 1fr; }
    .chapter-list a { padding: 16px; }
    .detail { grid-template-columns: 1fr; padding: 23px; gap: 22px; }
    .detail > img { width: min(210px, 65%); margin: auto; }
    .detail h1 { font-size: 29px; }
    .book-directory { grid-template-columns: 1fr; }
    .reader-title h1 { font-size: 27px; }
    .reader-guide { padding: 18px; }
    .chapter-content { padding: 15px; }
    .panel figcaption { padding: 18px 2px 0; }
    .panel { margin-bottom: 30px; }
    .chapter-nav { gap: 8px; }
    .chapter-nav a { font-size: 12px; padding: 14px 7px; }
    .guide-box { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
