/* ─── Design tokens (from videre landing page) ─── */
:root {
  --bg-deep: #0d0d1a;
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --border: rgba(255,255,255,0.06);
  --text-primary: #e0e0e0;
  --text-secondary: #aaa;
  --text-muted: #7f8c8d;
  --text-dim: #555;
  --accent-red: #e94560;
  --accent-green: #2ecc71;
  --accent-blue: #3498db;
  --accent-orange: #f39c12;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* ─── Nav ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,26,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 48px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-text { font-size: 17px; font-weight: 600; color: #fff; letter-spacing: -0.3px; }
.nav-links { display: flex; align-items: center; gap: 28px; }

/* Ghost navigation helper renders a <ul class="nav"> */
.nav-links .nav { list-style: none; display: flex; align-items: center; gap: 28px; }
.nav-links .nav li { margin: 0; }
.nav-links .nav a,
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 13px; font-weight: 500; transition: color 0.15s;
}
.nav-links .nav a:hover,
.nav-links a:hover { color: #fff; }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent-red), #c0392b);
  color: #fff; border: none; border-radius: 8px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 8px 18px; cursor: pointer; text-decoration: none;
  transition: filter 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(233,69,96,0.45); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 8px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  padding: 8px 18px; cursor: pointer; text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.25); transform: translateY(-1px); }

/* ─── Blog home ─── */
.post-feed-section { padding: 80px 48px; max-width: 1200px; margin: 0 auto; }
.post-feed-inner { max-width: 960px; margin: 0 auto; }

.blog-header { margin-bottom: 56px; }
.blog-eyebrow {
  display: inline-flex; align-items: center;
  background: rgba(52,152,219,0.1); border: 1px solid rgba(52,152,219,0.2);
  border-radius: 12px; padding: 4px 12px;
  font-size: 11px; font-weight: 600; color: var(--accent-blue);
  text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 16px;
}
.blog-title { font-size: 36px; font-weight: 700; color: #fff; letter-spacing: -0.5px; margin-bottom: 10px; }
.blog-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* ─── Post cards ─── */
.post-feed { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.post-card {
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.post-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.35); }

.post-card-image-link { display: block; overflow: hidden; }
.post-card-image { display: block; width: 100%; height: 200px; object-fit: cover; transition: transform 0.3s; }
.post-card:hover .post-card-image { transform: scale(1.02); }

.post-card-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }

.post-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-card-tag {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--accent-blue); background: rgba(52,152,219,0.1);
  border: 1px solid rgba(52,152,219,0.2); border-radius: 4px;
  padding: 2px 7px; text-decoration: none;
}
.post-card-tag:hover { background: rgba(52,152,219,0.2); }
.post-card-date { font-size: 11px; color: var(--text-dim); }

.post-card-title { font-size: 16px; font-weight: 600; line-height: 1.35; margin-bottom: 10px; }
.post-card-title a { color: #fff; text-decoration: none; transition: color 0.15s; }
.post-card-title a:hover { color: var(--accent-red); }

.post-card-excerpt { font-size: 12px; color: var(--text-secondary); line-height: 1.65; flex: 1; margin-bottom: 16px; }
.post-card-readmore { font-size: 12px; font-weight: 500; color: var(--accent-red); text-decoration: none; transition: color 0.15s; }
.post-card-readmore:hover { color: #f0708a; }

/* ─── Pagination ─── */
.pagination {
  margin-top: 48px; display: flex; align-items: center; justify-content: center; gap: 16px;
}
.pagination a, .pagination .page-number {
  font-size: 13px; color: var(--text-secondary); text-decoration: none;
}
.pagination a { transition: color 0.15s; }
.pagination a:hover { color: #fff; }
.pagination .page-number { color: var(--text-dim); }

/* ─── Article / Post ─── */
.article-wrap { max-width: 720px; margin: 0 auto; padding: 64px 48px 96px; }

.article-header { margin-bottom: 40px; }

.article-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.article-tag {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--accent-blue); background: rgba(52,152,219,0.1);
  border: 1px solid rgba(52,152,219,0.2); border-radius: 4px;
  padding: 2px 7px; text-decoration: none;
}
.article-date { font-size: 12px; color: var(--text-dim); }
.article-read { font-size: 12px; color: var(--text-dim); }

.article-title { font-size: clamp(26px, 4vw, 38px); font-weight: 700; color: #fff; letter-spacing: -0.5px; line-height: 1.2; }
.article-excerpt { font-size: 16px; color: var(--text-secondary); line-height: 1.7; margin-top: 16px; }

.article-feature-image { margin: 0 0 40px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.article-feature-image img { display: block; width: 100%; height: auto; }

/* ─── Post content typography ─── */
.gh-content { font-size: 15px; line-height: 1.8; color: var(--text-secondary); }

.gh-content h1,
.gh-content h2,
.gh-content h3,
.gh-content h4 { color: #fff; font-weight: 700; line-height: 1.25; letter-spacing: -0.3px; margin: 2em 0 0.6em; }
.gh-content h1 { font-size: 28px; }
.gh-content h2 { font-size: 22px; }
.gh-content h3 { font-size: 18px; }
.gh-content h4 { font-size: 15px; }

.gh-content p { margin-bottom: 1.4em; }

.gh-content a { color: var(--accent-blue); text-decoration: underline; text-underline-offset: 2px; transition: color 0.15s; }
.gh-content a:hover { color: #5dade2; }

.gh-content strong { color: #ddd; font-weight: 600; }
.gh-content em { font-style: italic; }

.gh-content ul, .gh-content ol { margin: 0 0 1.4em 1.5em; }
.gh-content li { margin-bottom: 0.4em; }

.gh-content blockquote {
  border-left: 3px solid var(--accent-red);
  margin: 0 0 1.4em; padding: 12px 20px;
  background: rgba(233,69,96,0.05);
  border-radius: 0 6px 6px 0;
  color: var(--text-primary); font-style: italic;
}

.gh-content code {
  font-family: var(--mono); font-size: 12.5px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  padding: 2px 6px; border-radius: 4px; color: var(--accent-green);
}

.gh-content pre {
  background: rgba(0,0,0,0.42); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; padding: 20px 24px; overflow-x: auto;
  margin-bottom: 1.4em;
}
.gh-content pre code {
  background: none; border: none; padding: 0;
  font-size: 13px; color: var(--text-primary); line-height: 1.7;
}

.gh-content img { max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--border); display: block; margin: 1.4em 0; }

.gh-content hr { border: none; border-top: 1px solid var(--border); margin: 2.5em 0; }

.gh-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; font-size: 13px; }
.gh-content th { text-align: left; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.1); color: #ddd; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.gh-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }

/* ─── Article footer / tags ─── */
.article-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill {
  font-size: 11px; font-weight: 500;
  color: var(--text-muted); background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 3px 9px; text-decoration: none; transition: border-color 0.15s, color 0.15s;
}
.tag-pill:hover { border-color: rgba(255,255,255,0.15); color: var(--text-primary); }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  max-width: 1200px; margin: 0 auto;
  padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.footer-logo-text { font-size: 15px; font-weight: 600; color: #fff; }
.footer-copy { font-size: 12px; color: var(--text-dim); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--text-secondary); }

/* ─── Ghost membership / subscribe cards ─── */
.gh-post-upgrade-cta {
  background: var(--bg-primary); border: 1px solid rgba(233,69,96,0.3);
  border-radius: 8px; padding: 32px; text-align: center; margin: 40px 0;
}
.gh-post-upgrade-cta h2 { color: #fff; font-size: 20px; margin-bottom: 10px; margin-top: 0; }
.gh-post-upgrade-cta p { color: var(--text-secondary); margin-bottom: 20px; }
.gh-post-upgrade-cta a { color: var(--accent-red); }

/* ─── Ghost Koenig editor width classes (required) ─── */
.gh-content .kg-width-wide {
  margin-left: -10%;
  margin-right: -10%;
  width: 120%;
  max-width: 120%;
}
.gh-content .kg-width-full {
  margin-left: calc(50% - 50vw + 24px);
  margin-right: calc(50% - 50vw + 24px);
  width: calc(100vw - 48px);
  max-width: calc(100vw - 48px);
}
.gh-content .kg-image { max-width: 100%; }
.gh-content .kg-image-card { margin: 1.4em 0; }
.gh-content .kg-image-card img { border-radius: 6px; border: 1px solid var(--border); }
.gh-content .kg-gallery-container { display: flex; flex-direction: column; gap: 8px; margin: 1.4em 0; }
.gh-content .kg-gallery-row { display: flex; gap: 8px; }
.gh-content .kg-gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.gh-content .kg-embed-card { margin: 1.4em 0; }
.gh-content .kg-bookmark-card { margin: 1.4em 0; }
.gh-content .kg-bookmark-container {
  display: flex; border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg-primary); text-decoration: none; overflow: hidden;
  transition: border-color 0.15s;
}
.gh-content .kg-bookmark-container:hover { border-color: rgba(255,255,255,0.12); }
.gh-content .kg-bookmark-content { padding: 16px; flex: 1; }
.gh-content .kg-bookmark-title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.gh-content .kg-bookmark-description { font-size: 12px; color: var(--text-secondary); }
.gh-content .kg-bookmark-metadata { font-size: 11px; color: var(--text-dim); margin-top: 8px; }
.gh-content .kg-bookmark-thumbnail { width: 160px; flex-shrink: 0; }
.gh-content .kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gh-content .kg-callout-card {
  display: flex; gap: 14px; padding: 18px;
  background: var(--bg-primary); border: 1px solid var(--border); border-radius: 6px; margin: 1.4em 0;
}
.gh-content .kg-callout-emoji { font-size: 20px; flex-shrink: 0; }
.gh-content .kg-callout-text { font-size: 14px; color: var(--text-secondary); }
.gh-content .kg-toggle-card { border: 1px solid var(--border); border-radius: 6px; margin: 1.4em 0; overflow: hidden; }
.gh-content .kg-toggle-heading { padding: 14px 16px; cursor: pointer; font-weight: 600; color: #fff; }
.gh-content .kg-toggle-content { padding: 0 16px 14px; color: var(--text-secondary); font-size: 13px; }
.gh-content .kg-video-card { margin: 1.4em 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.gh-content .kg-video-card video { display: block; width: 100%; }
.gh-content figcaption { font-size: 11px; color: var(--text-dim); text-align: center; margin-top: 6px; }

/* ─── Responsive ─── */
@media (max-width: 960px) {
  nav { padding: 0 24px; }
  .post-feed-section { padding: 48px 24px; }
  .post-feed { grid-template-columns: 1fr; }
  .article-wrap { padding: 48px 24px 64px; }
  .footer { padding: 32px 24px; }
}
@media (max-width: 600px) {
  .nav-links .nav { display: none; }
  .blog-title { font-size: 26px; }
  .article-title { font-size: 24px; }
}
