:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --ink: #1d1f1a;
  --muted: #6a6f64;
  --line: #e4dfd4;
  --accent: #2f7d4f;
  --accent-soft: #e3f0e6;
  --shadow: 0 1px 2px rgba(30, 30, 20, .06), 0 8px 24px rgba(30, 30, 20, .06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14160f;
    --surface: #1d2018;
    --ink: #eef0e8;
    --muted: #a0a694;
    --line: #2d3126;
    --accent: #7fcf9a;
    --accent-soft: #223327;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  line-height: 1.7; word-break: keep-all; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.top, main, .foot { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 18px; letter-spacing: -.01em; text-decoration: none; }
.sprout { width: 24px; height: 24px; color: var(--accent); }
.top nav { display: flex; gap: 4px; }
.top nav a { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; }
.top nav a:hover { color: var(--ink); background: var(--accent-soft); }

.hero { padding: clamp(40px, 9vw, 96px) 0 clamp(32px, 6vw, 64px); }
.hero h1 { margin: 0; font-size: clamp(38px, 7.5vw, 76px); font-weight: 900; line-height: 1.12; letter-spacing: -.035em; }
.hero p { margin: 22px 0 0; max-width: 34em; font-size: clamp(16px, 2vw, 19px); color: var(--muted); }

h2 { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: .02em; margin: 0 0 18px; display: flex; align-items: center; gap: 8px; }
.count { font-size: 12px; background: var(--accent-soft); color: var(--accent); padding: 1px 9px; border-radius: 999px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden; text-decoration: none; box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.card-art { aspect-ratio: 16 / 9; background: var(--accent-soft); }
.card-art svg { display: block; width: 100%; height: 100%; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 10px; min-height: 24px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 10px; border-radius: 999px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.live[hidden] { display: none; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .5; }
.live.on i { background: #2fbf6b; opacity: 1; box-shadow: 0 0 0 4px rgba(47, 191, 107, .18); }
.live b { font-weight: 500; }
.card.soon { box-shadow: none; }
.card.soon:hover { transform: none; border-color: var(--line); }
.card.soon .card-art { filter: saturate(.55); opacity: .8; }
.soon-badge { font-size: 12px; font-weight: 700; color: var(--muted); border: 1px dashed var(--line); padding: 1px 9px; border-radius: 999px; }
.muted-go { color: var(--muted); }
.card h3 { margin: 10px 0 6px; font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.card p { margin: 0 0 18px; font-size: 15px; color: var(--muted); }
.go { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--accent); }
.card:hover .go span { display: inline-block; transform: translateX(4px); transition: transform .18s ease; }

.ad { margin-top: clamp(40px, 6vw, 72px); min-height: 100px; }
.ad + .details { margin-top: clamp(40px, 6vw, 72px); }
.details { margin-top: clamp(56px, 9vw, 104px); }
.detail { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); column-gap: 32px; }
.detail h3 { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: -.02em; grid-row: 1 / span 9; }
.detail p { margin: 0 0 12px; grid-column: 2; max-width: 40em; }
.detail .text-link { grid-column: 2; }
.text-link { font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.about { margin-top: clamp(56px, 9vw, 104px); padding-top: 28px; border-top: 1px solid var(--line); }
.about p { max-width: 40em; margin: 0 0 12px; }
.about a, .doc a { color: var(--accent); }

.doc { padding: clamp(32px, 6vw, 64px) 0 0; max-width: 44em; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 900; letter-spacing: -.03em; margin: 0 0 6px; }
.doc h2 { font-size: 18px; color: var(--ink); margin: 34px 0 8px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 8px; }
.muted { color: var(--muted); font-size: 14px; }
.notfound { text-align: center; margin: 0 auto; padding: 96px 0; }

.foot { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 40px 0 48px; margin-top: clamp(56px, 9vw, 104px); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 640px) {
  .detail { grid-template-columns: 1fr; }
  .detail h3 { grid-row: auto; margin-bottom: 10px; }
  .detail p, .detail .text-link { grid-column: 1; }
  .top nav a { padding: 6px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card:hover .go span { transition: none; }
  .card:hover { transform: none; }
}
