:root {
  --bg: #0f1218;
  --panel: #171b24;
  --panel-2: #1e2430;
  --text: #eef1f6;
  --muted: #9aa3b5;
  --accent: #ff6b9d;
  --accent-2: #7aa2ff;
  --good: #5dcea0;
  --warn: #f0c674;
  --border: #2a3140;
  --shadow: 0 10px 30px rgba(0,0,0,.28);
  --radius: 14px;
  --max: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 10% -10%, #243154 0%, transparent 55%),
              radial-gradient(900px 500px at 100% 0%, #3a1d33 0%, transparent 45%),
              var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: var(--accent-2); text-decoration-thickness: .08em; }
a:hover { color: #fff; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: .5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 1rem; top: 1rem; }
.site-header {
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: blur(10px);
  background: rgba(15,18,24,.82);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  padding: .9rem 0; flex-wrap: wrap;
}
.logo { color: #fff; font-weight: 800; text-decoration: none; letter-spacing: .02em; }
.nav { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a[aria-current="page"], .nav a:hover { color: #fff; }
.hero, .page-header { padding: 2.2rem 0 1.2rem; }
.hero h1, .page-header h1, .title-hero h1 { line-height: 1.15; margin: 0 0 .75rem; }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.btn {
  display: inline-block; background: var(--accent); color: #160812; font-weight: 700;
  padding: .7rem 1rem; border-radius: 999px; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); color: #160812; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid var(--border); }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin: 2rem 0 1rem;
}
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.card, .promo-card, .source-list, .note, .warn {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card { padding: 1rem 1.05rem; }
.card h3 { margin: .35rem 0; font-size: 1.1rem; }
.card h3 a { color: #fff; text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.korean, .korean-lg { color: var(--accent); margin: 0; }
.korean-lg { font-size: 1.15rem; }
.by, .muted, .fineprint { color: var(--muted); }
.excerpt { color: #c9d0de; font-size: .95rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: .35rem; }
.badge {
  display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
  padding: .2rem .45rem; border-radius: 999px; background: #2a3345; color: #d7deee;
}
.badge.status { background: #3a2a45; color: #ffc2d8; }
.badge.good { background: #1f3d33; color: var(--good); }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 1.5rem; }
.chip-row.tight { margin: .4rem 0 0; }
.chip {
  display: inline-flex; gap: .35rem; align-items: center;
  padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--border);
  background: #151a24; color: #d7deee; text-decoration: none; font-size: .88rem;
}
.chip span { color: var(--muted); }
.chip:hover, .chip.active { border-color: var(--accent-2); color: #fff; }
.chip.tiny { font-size: .75rem; padding: .2rem .5rem; }
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem; margin: 1.5rem 0 2rem;
}
.split > div, .promo-card, .note, .warn { padding: 1rem 1.1rem; }
.simple-list { padding-left: 1.1rem; }
.simple-list li { margin: .35rem 0; }
.title-page section { margin: 1.5rem 0; }
.crumbs { color: var(--muted); font-size: .9rem; margin: 1.2rem 0; }
.crumbs a { color: var(--muted); }
.source-list { list-style: none; padding: 1rem 1.1rem; margin: 0; }
.source-list li { padding: .55rem 0; border-bottom: 1px solid var(--border); }
.source-list li:last-child { border-bottom: 0; }
.note { color: #c9d0de; }
.warn { color: var(--warn); }
.promo-slot { margin: 1rem auto 2rem; }
.promo-card.placeholder { border-style: dashed; }
.site-footer {
  margin-top: 2rem; border-top: 1px solid var(--border);
  background: rgba(0,0,0,.25); padding: 2rem 0 1rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.footer-links { list-style: none; padding: 0; margin: .5rem 0 0; }
.footer-links li { margin: .3rem 0; }
.cross-promo { font-weight: 700; color: var(--accent); }
.footer-bottom { margin-top: 1.5rem; color: var(--muted); font-size: .9rem; }
.guide h2 { margin-top: 1.8rem; }
.guide ul { padding-left: 1.2rem; }
code { font-size: .9em; background: #10141c; padding: .1rem .35rem; border-radius: 6px; }
@media (max-width: 640px) {
  .nav { gap: .55rem .8rem; font-size: .9rem; }
  .hero { padding-top: 1.4rem; }
}

/* Covers — consistent 2:3 frames */
.cover-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  width: 100%;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #10141c;
  border-bottom: 1px solid var(--border);
}
.cover-frame.large {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  max-width: 320px;
}
.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: #10141c;
}
.cover-link { display: block; text-decoration: none; color: inherit; }
.cover-badge {
  position: absolute; left: .5rem; bottom: .5rem;
  background: rgba(0,0,0,.72); color: var(--warn);
  font-size: .7rem; padding: .25rem .45rem; border-radius: 999px;
}
.card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 1rem 1.05rem 1.05rem; }
.title-layout {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 1.5rem;
  align-items: start;
  margin: 1rem 0 1.5rem;
}
.cover-credit { font-size: .85rem; margin: .6rem 0 0; }
@media (max-width: 720px) {
  .title-layout { grid-template-columns: 1fr; }
  .cover-frame.large { max-width: 220px; }
}

.badge.both { background: #2a3d55; color: #9ec1ff; }
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .8rem;
  margin: 1rem 0 1.2rem;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.filters label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; color: var(--muted); }
.filters input, .filters select {
  background: #10141c; color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: .55rem .65rem; font: inherit;
}
#pager button { cursor: pointer; }
.split > div .card-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

.meta-box { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1rem 0; }
.meta-box h2 { margin-top: 0; }
.meta-box ul { margin: .4rem 0 .8rem; padding-left: 1.2rem; }
.availability-note { border-left: 3px solid var(--warn); padding: .6rem .9rem; background: #1a1710; margin: 1rem 0; }
.source-list li.unavailable a { color: var(--muted); text-decoration: line-through; }
.source-list .src-note { display: block; color: var(--muted); font-size: .85rem; }
.edition-list { list-style: none; padding: 0; }
.edition-list li { padding: .55rem 0; border-bottom: 1px solid var(--border); }

/* Promote / inquiry form */
.promote .lede { max-width: 46rem; }
.promote-form { display: grid; gap: .9rem; max-width: 36rem; margin: 1.25rem 0 2rem; }
.promote-form label { display: grid; gap: .35rem; font-weight: 600; }
.promote-form label span { font-size: .92rem; }
.promote-form input,
.promote-form textarea {
  font: inherit; font-weight: 400;
  padding: .65rem .75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #12161e;
  color: inherit;
}
.promote-form .hp { position: absolute; left: -10000px; height: 1px; width: 1px; overflow: hidden; }
.promote-form .btn { justify-self: start; border: 0; cursor: pointer; padding: .7rem 1.1rem; border-radius: 999px; background: var(--accent); color: #160812; font-weight: 700; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--muted); margin: 0 0 .35rem; }
