/* Quavatar blog — aligned with www.quavatar.com design tokens */
:root {
  --ink: #0E0B1F;
  --ink-muted: #4E4A6D;
  --ink-soft: #8A86A6;
  --line: #F0EFFA;
  --line-2: #E4E2F2;
  --surface: #FFFFFF;
  --surface-2: #F8F7FD;
  --ink-deep: #0B0820;
  --brand: #6E5BFF;
  --brand-2: #4F8BFF;
  --grad: linear-gradient(135deg, #4F8BFF 0%, #6E5BFF 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

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

.font-display { font-family: "Inter", "Pretendard", sans-serif; }

.container-x {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-x--wide { max-width: 960px; }

/* Nav */
.blog-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.blog-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.blog-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.blog-nav-brand:hover { text-decoration: none; }
.blog-nav-brand img { height: 28px; width: auto; }
.blog-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
}
.blog-nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
}
.blog-nav-links a:hover,
.blog-nav-links a.is-active { color: var(--ink); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-switch span { color: var(--line-2); }
.lang-switch a { color: var(--ink-soft); text-decoration: none; }
.lang-switch a:hover,
.lang-switch a.is-active { color: var(--brand); }

/* Hero / list */
.blog-hero {
  padding: 56px 0 28px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.blog-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.25;
}
.blog-hero p {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 16px;
  max-width: 36em;
}

/* Category filter chips (All + each allow-listed category) */
.category-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.category-chips a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.category-chips a:hover {
  color: var(--ink);
  border-color: #cfcce8;
  text-decoration: none;
}
.category-chips a.is-active {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 40px 0 72px;
}
.post-list li { margin: 0; }
.post-card {
  display: block;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.post-card:hover { text-decoration: none; }
.post-card:hover .post-card-title { color: var(--brand); }
.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.post-card-cat {
  color: var(--brand);
  letter-spacing: 0.02em;
  text-transform: none;
}
.post-card-dot {
  color: var(--line-2);
  text-transform: none;
}
.post-card-title {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.15s ease;
}
.post-card-summary {
  margin: 10px 0 0;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.7;
}
.post-list-empty {
  padding: 48px 0 80px;
  color: var(--ink-muted);
}

/* Article */
.article-header {
  padding: 48px 0 8px;
}
.article-header h1 {
  margin: 12px 0 0;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.28;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}
.article-cat {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.article-cat:hover {
  text-decoration: none;
  border-color: #cfcce8;
}
.article-body {
  padding: 28px 0 64px;
  font-size: 17px;
  color: var(--ink);
}
.article-body > *:first-child { margin-top: 0; }
.article-body h2 {
  margin: 2em 0 0.7em;
  font-size: 1.35em;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.article-body h3 {
  margin: 1.6em 0 0.55em;
  font-size: 1.15em;
  font-weight: 700;
}
.article-body p { margin: 0 0 1.15em; }
.article-body ul,
.article-body ol { margin: 0 0 1.15em; padding-left: 1.35em; }
.article-body li { margin: 0.35em 0; }
.article-body blockquote {
  margin: 0 0 1.15em;
  padding: 12px 18px;
  border-left: 3px solid var(--brand);
  background: var(--surface-2);
  color: var(--ink-muted);
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 1.4em 0;
}
.article-body pre {
  margin: 0 0 1.15em;
  padding: 16px 18px;
  overflow-x: auto;
  background: var(--ink-deep);
  color: #f5f5ff;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
}
.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}
.article-body :not(pre) > code {
  padding: 0.15em 0.4em;
  background: var(--surface-2);
  border-radius: 6px;
  color: var(--brand);
}
.article-body hr {
  border: 0;
  border-top: 1px solid var(--line-2);
  margin: 2em 0;
}
.article-back {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
}
.article-back:hover { color: var(--brand); }

/* Footer */
.blog-footer {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
  font-size: 13px;
}
.blog-footer a { color: rgba(255, 255, 255, 0.75); }
.blog-footer a:hover { color: #fff; }
.blog-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 640px) {
  .blog-nav-links { gap: 12px; font-size: 13px; }
  .article-body { font-size: 16px; }
}
