/* SonoDraft Blog — Static Pages Stylesheet */

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

:root {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --brand: #4F46E5;
  --brand-accent: #6366F1;
  --brand-light: #EEF2FF;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --max-width: 720px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #F0F8FF 0%, #E6F3FA 50%, #D3E3FC 100%);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.75;
}

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

a:hover {
  text-decoration: underline;
}

/* ── Header ── */

.site-header {
  background: transparent;
  border-bottom: none;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
}

.site-logo svg {
  width: 32px;
  height: 32px;
  color: var(--brand);
  flex-shrink: 0;
}

.site-logo span {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.header-nav a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.btn-waitlist-sm {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #38BDF8 0%, #818CF8 40%, #C084FC 100%);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none !important;
  transition: opacity 0.2s;
}

.btn-waitlist-sm:hover {
  opacity: 0.9;
}

/* ── Article Layout ── */

.article-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* ── Blog Meta ── */

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.blog-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 600;
  font-size: 12px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Typography ── */

.article-container h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.article-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
}

.article-container h2 {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-top: 40px;
  margin-bottom: 16px;
}

.article-container p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.article-container blockquote {
  margin: 32px 0;
  padding: 24px;
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.article-container hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ── CTA Block ── */

.blog-cta {
  margin-top: 56px;
  padding: 40px 32px;
  background: linear-gradient(135deg, #38BDF8 0%, #818CF8 40%, #C084FC 100%);
  border-radius: 20px;
  text-align: center;
  color: #fff;
}

.blog-cta h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.blog-cta p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.btn-waitlist {
  display: inline-block;
  padding: 14px 36px;
  background: #fff;
  color: var(--brand) !important;
  font-size: 16px;
  font-weight: 700;
  border-radius: 28px;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-waitlist:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ── Footer ── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Blog Index ── */

.index-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.index-header {
  text-align: center;
  margin-bottom: 48px;
}

.index-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.index-header p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.post-card .blog-tag {
  align-self: flex-start;
  margin-bottom: 16px;
}

.post-card h2 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.post-card .card-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card .card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .article-container h1 {
    font-size: 1.625rem;
  }

  .article-container h2 {
    font-size: 1.1875rem;
  }

  .blog-cta {
    padding: 32px 24px;
  }

  .header-nav {
    gap: 12px;
  }

  .header-nav .nav-link-desktop {
    display: none;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }
}
