:root {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #8b5cf6;
  --accent-dark: #7c3aed;
  --code-bg: #000;
  --border: #334155;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family:
    "Pretendard",
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.8;
}
.container {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
  padding: 5rem 1rem 10rem;
}
header {
  text-align: center;
  padding-bottom: 4rem;
  border-bottom: 2px solid var(--border);
}
h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  background: linear-gradient(90deg, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1.5px;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
  color: var(--muted);
  font-size: 0.98rem;
}
section {
  margin: 6rem 0;
}
h2 {
  color: var(--accent);
  font-size: 2.2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
h2::before {
  content: "◈";
  font-size: 1.5rem;
}

/* --- 포스트 카드 스타일 --- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}
.post-card .category {
  font-size: 0.75rem;
  color: #f472b6;
  font-weight: 700;
  margin-bottom: 0.7rem;
  letter-spacing: 0.05em;
}
.post-card h4 {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  line-height: 1.4;
  color: #e2e8f0;
}
.post-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  text-align: left;
  color: var(--muted);
}
.post-card .read-more {
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

/* --- 기존 백서 스타일 --- */
h3 {
  color: #f472b6;
  font-size: 1.6rem;
  margin: 3.5rem 0 1.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border);
  display: inline-block;
}
h4 {
  color: #e0e7ff;
  font-size: 1.35rem;
  margin: 2.4rem 0 1.2rem;
}
p {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 1.8rem;
  text-align: justify;
}
.code-block {
  background: var(--code-bg);
  padding: 1.8rem;
  border-radius: 1rem;
  margin: 2.5rem 0;
  border-left: 5px solid var(--accent);
  overflow-x: auto;
}
pre {
  color: #34d399;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.9rem;
}
.feature-box {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 2rem;
  margin: 3rem 0;
}
.feature-box ul {
  list-style: none;
}
.feature-box li {
  margin: 1.2rem 0;
  padding-left: 2rem;
  position: relative;
}
.feature-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.btn {
  display: inline-block;
  margin-top: 3rem;
  padding: 1rem 2.5rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 600;
  transition: 0.3s;
}
.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
}
footer {
  text-align: center;
  padding: 6rem 1rem 4rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
