:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #1a1a18;
  --sub: #4a4a46;
  --muted: #86857f;
  --line: #e7e5df;
  --accent: #ff5a36;
  --accent-ink: #d9431f;
  --accent-soft: #fff0eb;
  --link: #1f5fd6;
  --shadow: 0 1px 2px rgba(20, 20, 18, .04), 0 4px 16px rgba(20, 20, 18, .05);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211;
    --surface: #1c1c1a;
    --text: #efeee9;
    --sub: #c9c8c2;
    --muted: #8f8e88;
    --line: #2c2c29;
    --accent: #ff7454;
    --accent-ink: #ff9a80;
    --accent-soft: #3a2119;
    --link: #8fb4ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); font-size: .88rem; }

/* header */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.head-row { display: flex; align-items: center; gap: 16px; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--sub); padding: 6px 10px; border-radius: 8px; font-size: .93rem; white-space: nowrap; }
.nav a:hover { background: var(--bg); text-decoration: none; }
.nav .nav-cta { background: var(--accent); color: #fff; font-weight: 600; }
.nav .nav-cta:hover { background: var(--accent-ink); }

/* hero */
.hero { background: linear-gradient(180deg, var(--surface), var(--bg)); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 40px; padding-bottom: 32px; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.25; margin: 6px 0 10px; letter-spacing: -.03em; }
.eyebrow { margin: 0; color: var(--accent-ink); font-weight: 700; font-size: .9rem; }
.lede { color: var(--sub); margin: 0 0 8px; }
.br-m { display: none; }

/* layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding-top: 28px; padding-bottom: 48px; }
.side { display: flex; flex-direction: column; gap: 16px; }
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.crumb a { color: var(--muted); }
.page-title { font-size: 1.8rem; letter-spacing: -.02em; margin: 0 0 8px; line-height: 1.3; }
.section-title { font-size: 1.05rem; margin: 0 0 6px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,20,18,.05), 0 10px 28px rgba(20,20,18,.08); }
.card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .82rem; }
.rank { font-weight: 800; color: var(--accent-ink); }
.traffic { color: var(--muted); }
.card-title { margin: 0; font-size: 1.12rem; line-height: 1.4; letter-spacing: -.01em; }
.card-title a { color: var(--text); }
.card-hook { margin: 0; color: var(--sub); font-size: .95rem; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; font-size: .85rem; }
.kw { color: var(--muted); }
.more { font-weight: 600; color: var(--accent-ink); }
.card-featured { padding: 26px 28px; border-color: transparent; background: linear-gradient(135deg, var(--surface) 60%, var(--accent-soft)); margin-bottom: 18px; }
.card-featured .card-title { font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.3; letter-spacing: -.02em; }
.card-featured .card-hook { font-size: 1.02rem; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: .78rem; }
.chip:hover { text-decoration: none; filter: brightness(.97); }
.chip-stock, .chip-economy, .chip-business { background: #eaf3ff; color: #1d5fc4; }
.chip-realestate { background: #eefaf0; color: #1f8a3c; }
.chip-tech { background: #f1edff; color: #6142d4; }
.chip-politics { background: #f2f2f0; color: #55554f; }
.chip-incident { background: #fdecec; color: #c62828; }
.chip-entertainment { background: #fff1f7; color: #c2185b; }
.chip-sports { background: #eafaf7; color: #00796b; }
@media (prefers-color-scheme: dark) {
  .chip-stock, .chip-economy, .chip-business { background: #1b2a40; color: #8fb4ff; }
  .chip-realestate { background: #18301f; color: #7fd895; }
  .chip-tech { background: #261f40; color: #b9a6ff; }
  .chip-politics { background: #2a2a27; color: #c9c8c2; }
  .chip-incident { background: #3a1d1d; color: #ff8a80; }
  .chip-entertainment { background: #3a1d2b; color: #ff8fbf; }
  .chip-sports { background: #173230; color: #6fd6c6; }
}

.numbers { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; }
.numbers div { background: var(--bg); border-radius: 12px; padding: 8px 12px; min-width: 120px; }
.numbers dt { font-size: .75rem; color: var(--muted); }
.numbers dd { margin: 0; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.numbers-big { margin: 18px 0 4px; }
.numbers-big div { background: var(--surface); border: 1px solid var(--line); flex: 1 1 150px; }
.numbers-big dd { font-size: 1.3rem; color: var(--accent-ink); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--sub); font-size: .85rem; }
.tag:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }
.unclear { margin-top: 28px; padding-top: 20px; border-top: 1px dashed var(--line); }
.unclear .tags { margin-top: 10px; }

/* sidebar */
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.side-box h2 { font-size: .98rem; margin: 0 0 10px; }
.side-box p { margin: 0 0 12px; color: var(--sub); font-size: .9rem; }
.side-cta { background: linear-gradient(160deg, var(--accent-soft), var(--surface)); border-color: transparent; }
.btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; padding: 9px 16px; border-radius: 10px; font-size: .92rem; }
.btn:hover { background: var(--accent-ink); text-decoration: none; }
.rank-list { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rank-list li { counter-increment: r; display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.rank-list li:last-child { border-bottom: 0; }
.rank-list li::before { content: counter(r); font-weight: 800; color: var(--accent-ink); width: 1.2em; }
.rank-list a { color: var(--text); flex: 1; }
.plain-list { margin: 0 0 8px; padding: 0; list-style: none; }
.plain-list li { padding: 4px 0; }
.plain-list a { color: var(--text); }
.side-more { font-size: .85rem; font-weight: 600; color: var(--accent-ink); }

/* story page */
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow); }
.post-title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.3; letter-spacing: -.03em; margin: 10px 0 8px; }
.post-meta { color: var(--muted); font-size: .9rem; margin: 0; }
.post-lead { margin-top: 22px; padding: 18px 20px; border-radius: 14px; background: var(--accent-soft); }
.post-lead h2, .post-section h2 { font-size: 1.08rem; margin: 0 0 8px; letter-spacing: -.01em; }
.post-lead p { margin: 0; font-size: 1.06rem; font-weight: 500; }
.post-section { margin-top: 28px; }
.points { margin: 0; padding-left: 0; list-style: none; }
.points li { position: relative; padding: 8px 0 8px 22px; border-bottom: 1px solid var(--line); }
.points li:last-child { border-bottom: 0; }
.points li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.points-watch li::before { background: transparent; border: 2px solid var(--accent); width: 6px; height: 6px; }
.explainer { background: var(--bg); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.explainer p { margin: 4px 0 0; color: var(--sub); font-size: .95rem; }
.note { color: var(--muted); font-size: .8rem; margin: 6px 0 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 8px 0 8px; position: relative; border-left: 2px solid var(--line); margin-left: 6px; padding-left: 16px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.timeline li.is-trend::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline time { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; padding-top: 1px; }
.timeline a { color: var(--text); }
.timeline p { margin: 2px 0 0; color: var(--sub); }
.timeline-big li { grid-template-columns: 120px minmax(0, 1fr); padding-bottom: 16px; }
.tl-title { display: block; font-weight: 700; margin-top: 2px; }
.sources { margin: 0; padding: 0; list-style: none; }
.sources li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.sources li:last-child { border-bottom: 0; }
.sources a { color: var(--text); }
.inline-cta { margin-top: 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.inline-cta p { margin: 0; color: var(--sub); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.pager a { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; color: var(--text); font-weight: 600; }
.pager a:hover { border-color: var(--accent); text-decoration: none; }
.pager-next { text-align: right; grid-column: 2; }
.related { margin-top: 28px; }
.related-list { list-style: none; margin: 8px 0 0; padding: 0; }
.related-list a { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); }

/* archive */
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.archive-when { font-weight: 700; color: var(--text); }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--sub); font-size: .85rem; }
.site-foot .wrap { padding-top: 24px; padding-bottom: 36px; }
.site-foot p { margin: 0 0 6px; }

@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .nav a:not(.nav-cta) { display: none; }
  .br-m { display: inline; }
  .hero .wrap { padding-top: 28px; padding-bottom: 22px; }
  .post { padding: 20px 18px; border-radius: 14px; }
  .card-featured { padding: 20px; }
  .timeline li, .timeline-big li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .archive-list li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager-next { grid-column: auto; }
}

/* storytelling & opinion sections */
.post-intro { margin: 16px 0 0; font-size: 1.12rem; line-height: 1.7; color: var(--sub); font-weight: 500; border-left: 3px solid var(--accent); padding-left: 14px; }
.previously { background: var(--bg); border-radius: 14px; padding: 16px 18px; }
.previously p { margin: 0 0 6px; }
.points-meaning li::before { background: #2e9d5b; }
.editor-note { margin-top: 28px; padding: 18px 20px; border-radius: 14px; border: 1px dashed var(--accent); background: linear-gradient(135deg, var(--surface), var(--accent-soft)); }
.editor-note h2 { font-size: 1.02rem; margin: 0 0 6px; }
.editor-note p { margin: 0; }
.editor-note .note { margin-top: 8px; }

/* overseas */
.geo { font-weight: 700; font-size: .8rem; color: var(--sub); background: var(--bg); padding: 2px 8px; border-radius: 999px; }
.overseas { margin-top: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.overseas .grid { margin-top: 12px; }

/* about / privacy */
.prose h2 { font-size: 1.1rem; margin: 28px 0 8px; }
.prose p { margin: 0 0 10px; }
.foot-links a { color: var(--sub); }
