:root {
  --bg: #fafafa;
  --surface: #fff;
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
  --border: #e5e5e5;
  --accent: #1a5276;
  --accent-light: #2471a3;
  --tag-positive: #27ae60;
  --tag-negative: #c0392b;
  --tag-neutral: #7f8c8d;
  --max-width: 760px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* -- header -- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.site-title:hover { opacity: 0.8; }

.site-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* -- main content -- */
.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* -- index: post list -- */
.post-list { list-style: none; }

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.15s;
}

.post-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.post-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.post-card h2 {
  font-size: 1.2rem;
  margin: 0.3rem 0 0.5rem;
  color: var(--accent);
  font-weight: 600;
}

.post-summary {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* -- post page -- */
.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--accent);
}

.post-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.post-meta {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.disclaimer {
  background: #f7f9fb;
  border-left: 3px solid var(--accent-light);
  padding: 0.75rem 1rem;
  margin-bottom: 2rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.lead {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 2rem;
  line-height: 1.85;
}

/* -- sections -- */
.section {
  margin-bottom: 2.5rem;
}

.section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.section p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* -- metadata tags -- */
.meta-tags {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 1rem 0;
  font-size: 0.88rem;
}

.meta-tags .tag-row {
  display: flex;
  gap: 0.5rem;
}

.tag-label {
  font-weight: 600;
  white-space: nowrap;
  min-width: 5.5em;
}

.sentiment-positive { color: var(--tag-positive); }
.sentiment-negative { color: var(--tag-negative); }
.sentiment-neutral { color: var(--tag-neutral); }

.term-explain {
  background: #f5f7fa;
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0.75rem 0;
}

/* -- sources -- */
.sources {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.sources a {
  color: var(--accent-light);
  text-decoration: none;
  margin-right: 0.5rem;
}

.sources a:hover { text-decoration: underline; }

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* -- footer -- */
.post-footer {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.post-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--accent-light);
  text-decoration: none;
}

.back-link:hover { text-decoration: underline; }

/* -- responsive -- */
@media (max-width: 600px) {
  .site-header .inner {
    flex-direction: column;
    gap: 0.25rem;
  }
  .post-header h1 { font-size: 1.3rem; }
  .content { padding: 1.5rem 1rem 3rem; }
  .post-card { padding: 1.2rem; }
}
