/* VoZara blog — builds on /vozara-design-system.css tokens.
   Layout: the site's glass header, one ~66ch reading column, wide figures. */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
}

.blog-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Header (matches the landing page) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .blog-wrap { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.brand img { height: 28px; width: auto; border-radius: 7px; display: block; }
.brand span { font-size: 1.4rem; font-weight: var(--fw-medium); letter-spacing: var(--ls-head); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--fg-muted); text-decoration: none; font-size: var(--text-sm); font-weight: var(--fw-medium); white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--fg); }
.site-nav .nav-cta {
  padding: 8px 20px;
  background: var(--accent-teal);
  color: #fff;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-md);
  transition: background var(--dur-base) var(--ease-out-quint), transform var(--dur-base) var(--ease-out-quint);
}
.site-nav .nav-cta:hover { background: var(--accent-teal-hover); color: #fff; transform: translateY(-2px); }

/* ---------- Shared ---------- */
.kicker {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-teal);
}
.meta { color: var(--fg-subtle); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
a:focus-visible { outline: none; box-shadow: var(--glow-voice); border-radius: 4px; }

/* ---------- Blog index ---------- */
.blog-intro { max-width: 720px; padding-block: var(--space-4xl) var(--space-2xl); }
.blog-intro h1 {
  font-size: clamp(36px, 6vw, var(--text-5xl));
  line-height: var(--lh-tight);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-display);
  margin: 12px 0 16px;
}
.blog-intro p { font-size: var(--text-md); line-height: 1.55; color: var(--fg-muted); margin: 0; }

.post-list { list-style: none; margin: 0; padding: 0 0 var(--space-4xl); max-width: 720px; display: grid; }
.post-list li { border-top: 1px solid var(--border-strong); }
.post-list li:last-child { border-bottom: 1px solid var(--border-strong); }
.post-card { display: grid; gap: 8px; padding-block: 28px; text-decoration: none; color: inherit; }
.post-card h2 {
  font-size: var(--text-xl);
  line-height: var(--lh-snug);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-head);
  margin: 0;
  text-wrap: balance;
  transition: color var(--dur-fast);
}
.post-card p { margin: 0; color: var(--fg-muted); text-wrap: pretty; }
.post-card .meta { display: flex; gap: 12px; flex-wrap: wrap; }
.post-card:hover h2 { color: var(--accent-teal); }
.post-card:focus-visible { box-shadow: none; }
.post-card:focus-visible h2 { color: var(--accent-teal); text-decoration: underline; }

/* ---------- Article ---------- */
.article { padding-block: var(--space-3xl) var(--space-4xl); }
.col { max-width: 680px; margin-inline: auto; }
.article-head h1 {
  font-size: clamp(32px, 5.5vw, 46px);
  line-height: 1.12;
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-display);
  margin: 12px 0 16px;
  text-wrap: balance;
}
.article-head .kicker { text-decoration: none; }
.summary { font-size: var(--text-md); line-height: 1.55; color: var(--fg-muted); margin: 0; text-wrap: pretty; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; line-height: 1.4; }
.avatar {
  width: 40px; height: 40px; flex: none;
  border-radius: var(--r-full);
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: 14px; font-weight: var(--fw-semibold); color: var(--fg-muted);
}
.byline .name { font-weight: var(--fw-semibold); font-size: var(--text-sm); }

.prose { margin-top: var(--space-xl); font-size: 18px; line-height: 1.7; }
.prose p { margin: 0 0 1.15em; text-wrap: pretty; }
.prose h2 {
  font-size: 26px;
  line-height: var(--lh-snug);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-head);
  margin: 2em 0 0.6em;
  text-wrap: balance;
}
.prose h3 { font-size: var(--text-md); font-weight: var(--fw-semibold); margin: 1.6em 0 0.5em; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.2em; display: grid; gap: 0.55em; }
.prose li::marker { color: var(--accent-teal); }
.prose a { color: var(--accent-teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent-teal-hover); }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 2px solid var(--teal-200); color: var(--fg-muted); }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-2); border-radius: var(--r-xs); padding: 0.1em 0.35em; }
.prose pre { overflow-x: auto; background: var(--bg-2); border-radius: 12px; padding: 16px 18px; font-size: 14.5px; line-height: 1.55; }
.prose pre code { background: none; padding: 0; }
.prose figure { margin: 2.2em 0; }
.prose figure img {
  display: block; width: 100%; height: auto;
  border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.prose figcaption { margin-top: 12px; font-size: var(--text-sm); line-height: 1.5; color: var(--fg-subtle); }
.prose > p:last-child { font-size: var(--text-md); line-height: 1.55; font-weight: var(--fw-medium); letter-spacing: -0.01em; }

.article-foot { margin-top: var(--space-2xl); padding-top: 20px; border-top: 1px solid var(--border-strong); display: grid; gap: 28px; }
.source { color: var(--fg-subtle); font-size: var(--text-sm); margin: 0; }
.source a { color: var(--fg-muted); }
.author-card { display: flex; gap: 14px; align-items: center; }
.author-card .name { font-weight: var(--fw-semibold); }
.author-card a { color: var(--accent-teal); font-size: var(--text-sm); text-decoration: none; }
.author-card a:hover { text-decoration: underline; }
.more { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.more a {
  display: grid; gap: 4px; padding: 16px 18px;
  border: 1px solid var(--border-strong); border-radius: 16px;
  text-decoration: none; color: var(--fg); font-weight: var(--fw-medium); line-height: 1.35;
  transition: border-color var(--dur-fast), transform var(--dur-base) var(--ease-out-quint);
}
.more a:hover { border-color: var(--teal-300); transform: translateY(-2px); }
.more .meta { font-weight: 400; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; }
.more .newer { grid-column: 2; text-align: right; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 36px; color: var(--fg-subtle); font-size: 13px; }
.site-footer .blog-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--fg-muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

@media (max-width: 640px) {
  .site-nav { gap: 16px; }
  .site-nav .nav-cta { display: none; }
  .brand span { font-size: 1.25rem; }
  .blog-intro { padding-block: var(--space-2xl) var(--space-xl); }
  .article { padding-block: var(--space-xl) var(--space-3xl); }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 23px; }
  .more { grid-template-columns: 1fr; }
  .more .newer { grid-column: auto; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
