/* Hyver Blog — lightweight styles that mirror the intro design tokens.
   Standalone so blog pages don't pull the full 100KB intro.css. */
:root {
  --bg-primary: #020617;
  --bg-secondary: #0f172a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --primary: #00b7a8;
  --accent-2: #22c55e;
  --gradient-primary: linear-gradient(135deg, #00b7a8, #22c55e);
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans:
    system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  --maxw: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #001a17;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 5vw, 2.5rem);
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
}
.brand:hover {
  text-decoration: none;
}
.brand svg {
  width: 30px;
  height: 30px;
}
.header-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.95rem;
}
.header-nav a {
  color: var(--text-secondary);
}
.header-nav a:hover {
  color: var(--text-primary);
  text-decoration: none;
}
.btn-cta {
  background: var(--gradient-primary);
  color: #001a17 !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
}
.btn-cta:hover {
  text-decoration: none;
  opacity: 0.92;
}

/* Layout */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 5vw, 2rem);
}

.page-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.page-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin: 0 0 2.5rem;
}

/* Blog index cards */
.post-grid {
  display: grid;
  gap: 1.25rem;
}
.post-card {
  display: block;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}
.post-card-thumb {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
}
.post-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  text-decoration: none;
}
.post-card h2 {
  margin: 0.4rem 0 0.5rem;
  font-size: 1.4rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.post-card p {
  margin: 0;
  color: var(--text-secondary);
}
.post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Article */
article.post {
}
.post-hero {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-bottom: 1.75rem;
}
.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.post-header .post-meta {
  margin-bottom: 0.75rem;
}
article.post h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
article.post .subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 0;
}
article.post h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}
article.post h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.5rem;
}
article.post p,
article.post li {
  color: #cbd5e1;
}
article.post ul,
article.post ol {
  padding-left: 1.4rem;
}
article.post li {
  margin: 0.4rem 0;
}
article.post strong {
  color: var(--text-primary);
}
article.post blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--primary);
  background: var(--bg-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
}
.key-takeaways {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: rgba(0, 183, 168, 0.06);
  border: 1px solid rgba(0, 183, 168, 0.25);
  border-radius: var(--radius-lg);
}
.key-takeaways h2 {
  margin-top: 0;
  font-size: 1.15rem;
  color: var(--primary);
}
.key-takeaways ul {
  margin: 0.5rem 0 0;
}

.post-cta {
  margin: 3rem 0 0;
  padding: 2rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}
.post-cta h2 {
  margin: 0 0 0.5rem;
}
.post-cta p {
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem clamp(1rem, 5vw, 2.5rem);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.site-footer nav a {
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .header-nav a:not(.btn-cta) {
    display: none;
  }
}
