:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #1e2430;
  --text-soft: #5a6472;
  --line: #e6e4de;
  --accent: #0b6e4f;
  --accent-soft: #e3f2ec;
  --amber: #f5a623;
  --radius: 14px;
  --maxw: 760px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.site-logo {
  font-size: 1.25rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em;
}
.site-logo span { color: var(--accent); }
.site-logo:hover { text-decoration: none; }
.site-nav { display: flex; gap: 18px; }
.site-nav a { color: var(--text-soft); font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }

/* hero */
.hero { padding: 56px 0 40px; }
.hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; margin: 0 0 14px;
}
.hero p { color: var(--text-soft); max-width: 560px; margin: 0; }

/* post list */
.section-title {
  font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em;
  margin: 36px 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--text);
}
.post-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 64px; }
.post-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; transition: border-color .15s ease, box-shadow .15s ease;
}
.post-card:hover { border-color: var(--accent); box-shadow: 0 2px 12px rgba(11,110,79,.08); }
.post-card h3 { margin: 8px 0 6px; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.4; }
.post-card h3 a { color: var(--text); }
.post-card p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }

.post-meta {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-soft); font-size: 0.85rem;
}
.badge {
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: 0.78rem;
  padding: 2px 10px; border-radius: 999px;
}

/* article */
.post { padding: 48px 0 64px; }
.post-header { margin-bottom: 32px; }
.post-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.4; margin: 10px 0 8px;
}
.post-desc { color: var(--text-soft); margin: 0; }

.post-body h2 {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em;
  margin: 44px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.post-body h3 { font-size: 1.1rem; font-weight: 700; margin: 32px 0 10px; }
.post-body p { margin: 0 0 18px; }
.post-body img { max-width: 100%; border-radius: 10px; }
.post-body blockquote {
  margin: 24px 0; padding: 14px 20px;
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0; color: var(--text);
}
.post-body blockquote p { margin: 0; }
.post-body table {
  width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.95rem;
  display: block; overflow-x: auto;
}
.post-body th, .post-body td {
  border: 1px solid var(--line); padding: 10px 14px; text-align: left;
  word-break: keep-all; vertical-align: top;
}
.post-body th { background: var(--surface); font-weight: 700; white-space: nowrap; }
.post-body td:first-child { white-space: nowrap; }
.post-body td:nth-child(2) { min-width: 180px; }
.post-body ul, .post-body ol { padding-left: 24px; margin: 0 0 18px; }
.post-body li { margin-bottom: 6px; }
.post-body code {
  background: #eef0ee; border-radius: 5px; padding: 2px 6px; font-size: 0.9em;
}

.post-tags { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; font-size: 0.85rem; color: var(--text-soft);
}
.tag:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* footer */
.site-footer {
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 28px 0 36px; margin-top: 40px;
}
.footer-links { margin: 0 0 10px; font-size: 0.9rem; }
.footer-links a { color: var(--text-soft); }
.footer-copy { margin: 0; color: var(--text-soft); font-size: 0.82rem; }

@media (max-width: 560px) {
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 0.85rem; }
  .hero { padding: 40px 0 28px; }
}
