/* tunov articles — shared style (홈 index.html 디자인 토큰과 정합) */
:root {
  color-scheme: light dark;
  --bg: #f5f6fa;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --border: #e4e6ef;
  --text: #16181f;
  --text-dim: #5b6070;
  --text-faint: #9198a8;
  --accent1: #7c5cff;
  --accent2: #ff5c8a;
  --accent-grad: linear-gradient(135deg, #7c5cff 0%, #ff5c8a 100%);
  --radius: 16px;
  --shadow: 0 8px 24px rgba(20, 20, 40, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --bg-elevated: #12151d;
    --card: #161a24;
    --border: #262b38;
    --text: #eef0f5;
    --text-dim: #a3aabb;
    --text-faint: #6b7285;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Malgun Gothic", "Apple SD Gothic Neo", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Top bar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.site-header .logo img { height: 32px; width: auto; display: block; }
.site-header nav { display: flex; gap: 18px; align-items: center; }
.site-header nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.site-header nav a:hover { color: var(--text); }
.site-header nav a.cta {
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent-grad);
}
.site-header nav a.cta:hover { color: #fff; opacity: 0.92; }

/* ---------- Layout ---------- */
.wrap { max-width: 760px; margin: 0 auto; padding: 40px 20px 96px; }
.breadcrumb { font-size: 13px; color: var(--text-faint); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent1); }

a { color: var(--accent1); }
a:hover { color: var(--accent2); }

/* ---------- Article typography ---------- */
article h1 {
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
article .meta { color: var(--text-faint); font-size: 14px; margin-bottom: 8px; }
article .lead {
  font-size: 18px;
  color: var(--text-dim);
  margin: 20px 0 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
article h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
  scroll-margin-top: 80px;
}
article h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
article p { margin: 0 0 18px; }
article ul, article ol { margin: 0 0 18px; padding-left: 22px; }
article li { margin: 8px 0; }
article strong { font-weight: 700; }
article blockquote {
  margin: 24px 0;
  padding: 4px 18px;
  border-left: 3px solid var(--accent1);
  color: var(--text-dim);
}
.callout {
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.callout p:last-child { margin-bottom: 0; }
.callout .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent1);
  margin-bottom: 6px;
}

/* ---------- CTA + related ---------- */
.cta-box {
  margin: 48px 0 8px;
  padding: 28px;
  border-radius: var(--radius);
  text-align: center;
  color: #fff;
  background: var(--accent-grad);
  box-shadow: var(--shadow);
}
.cta-box h3 { margin: 0 0 8px; font-size: 20px; color: #fff; }
.cta-box p { margin: 0 0 18px; opacity: 0.92; }
.cta-box a.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: #fff;
  color: #16181f;
  font-weight: 700;
  text-decoration: none;
}
.cta-box a.btn:hover { opacity: 0.9; color: #16181f; }

.related { margin-top: 56px; }
.related h2 { font-size: 18px; margin-bottom: 14px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin: 0 0 10px; }
.related a { font-weight: 600; text-decoration: none; }
.related a:hover { text-decoration: underline; }

/* ---------- Hub (index) ---------- */
.hub-head { text-align: center; margin-bottom: 44px; }
.hub-head h1 {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.hub-head p { color: var(--text-dim); font-size: 17px; max-width: 560px; margin: 0 auto; }
.card-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }
.post-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card .kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent1);
}
.post-card h2 { font-size: 18px; font-weight: 700; margin: 8px 0 8px; line-height: 1.35; }
.post-card p { font-size: 14px; color: var(--text-dim); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px 48px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}
.site-footer nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.site-footer nav a { color: var(--text-dim); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent1); }
