/* Global design tokens */
:root {
    color-scheme: dark;
    --bg: #100d1b;
    --panel: #1e192d;
    --ink: #f5f1fa;
    --muted: #c0b8d0;
    --gold: #f4c47e;
    --line: #3e3451;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.75 system-ui, "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { color: var(--gold); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0 0 12px; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.35; }
h2 { font-size: 25px; }
h3 { font-size: 19px; }
.shell { max-width: 1320px; width: calc(100% - 64px); margin-inline: auto; }
.skip { position: absolute; top: -100px; padding: 8px; background: var(--panel); }
.skip:focus { top: 0; z-index: 10; }
.header { border-bottom: 1px solid var(--line); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 23px; }
.brand small { color: var(--muted); font-size: 12px; font-weight: 400; }
.mark { display: inline-grid; place-items: center; background: var(--gold); color: #21152b; border-radius: 10px; width: 38px; height: 38px; }
nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; }
.hero { display: grid; grid-template-columns: 1fr 1.15fr; min-height: 440px; margin-top: 32px; background: linear-gradient(135deg,#29213e,#171322); border: 1px solid var(--line); overflow: hidden; border-radius: 22px; }
.hero-copy { padding: clamp(25px,5vw,65px); align-self: center; }
.hero h1 { font-size: clamp(36px,5vw,64px); letter-spacing: -.04em; }
.hero h1 span { display: block; font-size: clamp(20px,2.6vw,34px); letter-spacing: 0; margin-top: 12px; }
.hero-copy p, .card-copy p, .collection-head p { color: var(--muted); }
.eyebrow { display: block; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .08em; margin-bottom: 10px; }
.primary { display: inline-block; padding: 12px 22px; color: #21152b; background: var(--gold); font-weight: 700; border-radius: 8px; margin: 14px 0; }
.primary:hover { color: #21152b; background: #ffe0a9; }
.note { font-size: 13px; }
.hero-art { position: relative; display: block; min-height: 300px; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(transparent,rgba(10,7,18,.94)); font-weight: 700; }
.index-band, .feature, .shelf { margin-block: 42px; }
.topic-index { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.topic-index a { background: var(--panel); border: 1px solid var(--line); padding: 20px; display: grid; gap: 8px; border-radius: 10px; }
.topic-index span { font-size: 25px; color: var(--gold); }
.topic-index small { color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.section-head a, .read { color: var(--gold); font-size: 14px; }
.feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.story-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.story-card { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; min-width: 0; }
.cover { display: block; overflow: hidden; }
.cover img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-copy { padding: 18px; }
.card-copy p { font-size: 14px; }
.shelf { border-top: 1px solid var(--line); padding-top: 24px; }
.crumb { margin: 24px 0; color: var(--muted); }
.collection-head { padding: 45px 0 12px; }
.collection-head h1, .detail h1 { font-size: clamp(30px,4vw,48px); }
.detail { max-width: 850px; margin: 32px auto; }
.detail-head { margin-bottom: 24px; }
.detail-image { margin: 0 auto 28px; max-width: 520px; }
.detail-image img { width: 100%; border-radius: 14px; }
figcaption { color: var(--muted); font-size: 13px; text-align: center; margin-top: 8px; }
.prose h2 { margin-top: 32px; }
.prose p { color: var(--muted); line-height: 1.95; }
.footer { border-top: 1px solid var(--line); padding-block: 30px; margin-top: 48px; }
.foot { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot p { color: var(--muted); font-size: 14px; margin-top: 10px; }
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr 1fr; }
    .feature-grid, .story-grid { grid-template-columns: repeat(2,1fr); }
    .topic-index { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
    .shell { width: calc(100% - 28px); }
    .hero { grid-template-columns: 1fr; margin-top: 16px; }
    .hero-art { min-height: 0; }
    .hero-art img { aspect-ratio: 16/10; }
    .feature-grid, .story-grid { grid-template-columns: 1fr; }
    .section-head { flex-wrap: wrap; }
    nav { gap: 12px; }
    .topic-index a { padding: 14px; }
}
