/* The blog's styles: the studio's tokens, header and footer (src/index.css),
   plus the post list and the article. Copied to public/blog by build.mjs. */
:root {
  --bg: #07070b;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f7;
  --text-2: #b6b8c6;
  --text-3: #7a7d8f;
  --accent: #8b7cff;
  --accent-soft: rgba(139, 124, 255, 0.16);
  --grad: linear-gradient(115deg, #8b7cff 0%, #6f8cff 45%, #46d9ff 100%);
  --grad-text: linear-gradient(100deg, #ffffff 10%, #cfc6ff 55%, #8fe6ff 100%);
  --r-md: 14px;
  --r-lg: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 20% -10%, rgba(139, 124, 255, 0.14), transparent 60%),
    radial-gradient(800px 500px at 90% 0%, rgba(70, 217, 255, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.shell { width: 100%; max-width: 1312px; margin-inline: auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 14, 0.7);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand:hover { opacity: 0.8; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-divider { width: 1px; height: 22px; background: var(--line-strong); }
.brand-word { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--text-3); white-space: nowrap; }
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
}
.header-nav a:hover { color: var(--text); background: var(--surface-2); }
.header-nav .header-cta { margin-left: 6px; background: var(--grad); color: #0a0a10; font-weight: 600; }
.header-nav .header-cta:hover { background: var(--grad); color: #0a0a10; opacity: 0.9; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--grad);
  color: #0a0a10;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.9; }

/* The list */
.blog-hero { text-align: center; padding: 72px 0 40px; }
.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.04em;
}
.blog-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 6vw, 60px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.blog-hero p { margin: 0 auto; max-width: 520px; color: var(--text-2); font-size: 17px; line-height: 1.55; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.post-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.post-card:hover { transform: translateY(-2px); border-color: rgba(139, 124, 255, 0.45); background: var(--surface-2); }
.post-card h2 { margin: 4px 0 0; font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; }
.post-card p { margin: 0; color: var(--text-3); font-size: 14px; line-height: 1.6; flex: 1; }
.post-more { font-size: 13px; font-weight: 600; color: #c3b8ff; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-3); }
.post-tag {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(139, 124, 255, 0.35);
  background: var(--accent-soft);
  color: #c3b8ff;
  font-size: 11px;
  font-weight: 600;
}

/* A post */
.post { max-width: 720px; margin: 0 auto; padding: 40px 0 0; }
.back { display: inline-block; margin-bottom: 28px; font-size: 13.5px; color: var(--text-3); text-decoration: none; }
.back:hover { color: var(--text); }
.post h1 { margin: 16px 0 14px; font-size: clamp(32px, 5vw, 46px); line-height: 1.1; letter-spacing: -0.03em; }
.lede { margin: 0 0 32px; font-size: 19px; line-height: 1.55; color: var(--text-2); }
.post-body { font-size: 17px; line-height: 1.75; color: #d6d7e0; }
.post-body h2 { margin: 40px 0 10px; font-size: 24px; letter-spacing: -0.02em; color: var(--text); }
.post-body p { margin: 0 0 18px; }
.post-body ul { margin: 0 0 20px; padding-left: 22px; }
.post-body li { margin-bottom: 8px; }
.post-body li::marker { color: var(--accent); }
.post-body strong { color: var(--text); }
.post-body a { color: #c3b8ff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(195, 184, 255, 0.4); }
.post-body a:hover { text-decoration-color: currentColor; }
.post-body blockquote {
  margin: 0 0 22px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-2);
}

.post-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 44px 0 0;
  padding: 22px 24px;
  border: 1px solid rgba(139, 124, 255, 0.35);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(139, 124, 255, 0.14), rgba(70, 217, 255, 0.06));
}
.post-cta strong { font-size: 17px; }
.post-cta p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }

.more { max-width: 1000px; margin: 72px auto 0; }
.more h3 { font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-2); margin: 0 0 16px; }

/* Footer: the same as the app's */
.site-footer-full { margin-top: 88px; padding-top: 44px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand .brand-logo { height: 28px; }
.footer-brand p { margin: 14px 0 18px; max-width: 300px; line-height: 1.6; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-2);
}
.footer-social a:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 { margin: 4px 0 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-2); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a, .footer-bottom a { color: var(--text-3); text-decoration: none; }
.footer-col a:hover, .footer-bottom a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .shell { padding: 0 16px; }
  .header-inner { height: 60px; gap: 10px; }
  .brand-divider, .brand-word { display: none; }
  .brand-logo { height: 26px; }
  .header-nav a { padding: 7px 9px; }
  .header-nav a[target] { display: none; }
  .blog-hero { padding: 48px 0 28px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-body { font-size: 16.5px; }
  .post-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-bottom { flex-direction: column; }
}
