/* ============================================================
   AI SYNDICATE — Ghost Theme CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --dark:        #0d1117;
  --dark-2:      #161b22;
  --header-bg:   #3d3a3b;
  --nav-bg:      rgba(13,17,23,0.85);
  --body-bg:     #f8f9fa;
  --card-bg:     #ffffff;
  --accent:      #4a9eff;
  --accent-dim:  rgba(74,158,255,0.15);
  --accent-glow: rgba(74,158,255,0.35);
  --text-dark:   #0d1117;
  --text-body:   #374151;
  --text-muted:  #6b7280;
  --text-light:  rgba(255,255,255,0.85);
  --text-faint:  rgba(255,255,255,0.45);
  --border:      #e5e7eb;
  --border-dark: rgba(255,255,255,0.08);
  --radius:      8px;
  --radius-lg:   14px;
  --shadow:      0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover:0 8px 40px rgba(0,0,0,0.14);
  --transition:  0.22s ease;
  --font-head:   'Space Grotesk', sans-serif;
  --font-body:   'Inter', sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--body-bg);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-nav.scrolled {
  background: rgba(13,17,23,0.95);
  box-shadow: 0 1px 0 var(--border-dark);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  z-index: 1;
}
.nav-logo img {
  height: 32px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links li { list-style: none; }
.nav-links a,
.nav-links li a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
  display: block;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.nav-links a:hover,
.nav-links li a:hover,
.nav-links .nav-current a {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  padding: 8px;
  border-radius: 6px;
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.nav-search-btn:hover { color: #fff; }
.btn-subscribe {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-subscribe:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-signin {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.btn-signin:hover { color: #fff; }
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* ── Hero ───────────────────────────────────────────────────── */
.site-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: url('https://images.unsplash.com/photo-1639762681485-074b7f938ba0?w=1600&q=80');
  opacity: 0.55;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,17,23,0.3) 0%,
    rgba(13,17,23,0.1) 40%,
    rgba(13,17,23,0.85) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 700px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,0.72);
  opacity: 0.7;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 36px;
}
.hero-subscribe {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}
.hero-subscribe input {
  flex: 1;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: none;
  outline: none;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #fff;
}
.hero-subscribe input::placeholder { color: rgba(255,255,255,0.45); }
.hero-subscribe button {
  background: var(--accent);
  border: none;
  color: #fff;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 22px;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.hero-subscribe button:hover { background: #2d7dd2; }
.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  animation: bounce 2s ease infinite;
  cursor: pointer;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Featured Post Hero ─────────────────────────────────────── */
.featured-hero {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 0 24px;
}
.featured-hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}
.featured-hero-card:hover { box-shadow: var(--shadow-hover); }
.featured-hero-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.featured-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.featured-hero-card:hover .featured-hero-img img { transform: scale(1.03); }
.featured-hero-body {
  padding: 36px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-tag-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dark);
  background: rgba(13,17,23,0.06);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.featured-hero-title {
  font-family: var(--font-head);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-hero-excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.post-meta-dot { opacity: 0.4; }
.post-meta .read-time { color: var(--text-dark); font-weight: 600; }
.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ── Section Headers ────────────────────────────────────────── */
.section-header {
  max-width: 1200px;
  margin: 56px auto 24px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dark);
  white-space: nowrap;
}
.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Post Grid ──────────────────────────────────────────────── */
.post-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.post-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--dark-2);
}
.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
}
.post-card-img-placeholder svg { opacity: 0.15; }
.post-card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.post-card-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-excerpt {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
  font-weight: 300;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* ── Tag Page Grid ──────────────────────────────────────────── */
.tag-header {
  background: var(--dark);
  padding: 100px 24px 48px;
  text-align: center;
}
.tag-header h1 {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.tag-header p {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  margin: 0 auto;
}
.tag-count {
  display: inline-block;
  font-size: 11px;
  color: rgba(255,255,255,0.86);
  background: rgba(255,255,255,0.12);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ── Post / Article ─────────────────────────────────────────── */
.post-hero {
  background: var(--dark);
  padding: 100px 24px 80px;
}
.post-hero-inner {
  max-width: 740px;
  margin: 0 auto;
}
.post-hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.post-hero-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.post-hero-excerpt {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 28px;
}
.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}
.post-hero-meta .author-name { color: rgba(255,255,255,0.85); font-weight: 500; }
.post-feature-img {
  max-width: 900px;
  margin: 40px auto 40px;
  padding: 0 24px;
}
.post-feature-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}

/* ── Post Content ───────────────────────────────────────────── */
.post-content-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.post-content-wrap.has-image { padding-top: 0; }
.gh-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-body);
}
.gh-content h2 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 2.2em 0 0.7em;
  letter-spacing: -0.01em;
}
.gh-content h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 1.8em 0 0.6em;
}
.gh-content p { margin-bottom: 1.4em; }
.gh-content a {
  color: var(--text-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gh-content a:hover { opacity: 0.8; }
.gh-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin: 2em 0;
  font-style: italic;
  color: var(--text-muted);
}
.gh-content code {
  background: var(--dark-2);
  color: #e6edf3;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Fira Mono', monospace;
}
.gh-content pre {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
  margin: 2em 0;
}
.gh-content pre code {
  background: none;
  color: #e6edf3;
  padding: 0;
  font-size: 14px;
  line-height: 1.7;
}
.gh-content img {
  border-radius: var(--radius);
  margin: 2em auto;
}
.gh-content ul, .gh-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.4em;
}
.gh-content li { margin-bottom: 0.4em; }
.gh-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3em 0;
}

/* ── Post Footer / Related ──────────────────────────────────── */
.post-footer {
  border-top: 1px solid var(--border);
  max-width: 740px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.post-footer-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.tag-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--body-bg);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 20px;
  transition: all var(--transition);
}
.tag-pill:hover {
  background: rgba(13,17,23,0.06);
  border-color: rgba(13,17,23,0.18);
  color: var(--text-dark);
}
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.author-box-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-box-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.author-box-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.author-box-content {
  flex: 1;
}
.author-box-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.author-box-link {
  font-size: 13px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.author-box-link:hover {
  opacity: 1;
  text-decoration: underline;
}


/* ── Subscribe Section ──────────────────────────────────────── */
.subscribe-section {
  max-width: 920px;
  margin: 72px auto 64px;
  padding: 42px 32px;
  text-align: center;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 34px rgba(13,17,23,0.06);
  position: relative;
  overflow: hidden;
}
.subscribe-section::before { content: none; }
.subscribe-section h2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  position: relative;
}
.subscribe-section p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 26px;
  position: relative;
  font-weight: 400;
}
.subscribe-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: visible;
  box-shadow: none;
  position: relative;
}
.subscribe-form input {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  box-shadow: 0 1px 2px rgba(13,17,23,0.04);
}
.subscribe-form input::placeholder { color: #9ca3af; }
.subscribe-form input:focus {
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(13,17,23,0.06);
}
.subscribe-form button {
  background: var(--text-dark);
  border: 1px solid var(--text-dark);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 22px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.subscribe-form button:hover {
  background: #1f2937;
  border-color: #1f2937;
  transform: translateY(-1px);
}
.subscribe-form.is-loading button { background: #6b7280; border-color: #6b7280; cursor: not-allowed; opacity: 0.85; transform: none; }
.subscribe-form.has-error { outline: 2px solid #b91c1c; border-radius: var(--radius); }

/* Subscribe success state */
.subscribe-success {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid #d1d5db;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(13,17,23,0.04);
}
.subscribe-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #14532d;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.subscribe-success p { margin: 0; color: var(--text-dark); }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  max-width: 1200px;
  margin: 48px auto 64px;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.pagination a, .pagination span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all var(--transition);
}
.pagination a:hover, .pagination .current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Site Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-dark);
  flex-wrap: wrap;
}
.footer-brand-text {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  max-width: 260px;
  line-height: 1.5;
}
.footer-nav {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-nav-group h4 {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}
.footer-nav-group ul { list-style: none; }
.footer-nav-group li { margin-bottom: 8px; }
.footer-nav-group a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-nav-group a:hover { color: #fff; }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.footer-ghost-credit {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}
.footer-ghost-credit a { color: rgba(255,255,255,0.4); }
.footer-ghost-credit a:hover { color: rgba(255,255,255,0.8); }

/* ── Search Overlay ─────────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,17,23,0.95);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.search-box {
  width: 100%;
  max-width: 640px;
  padding: 0 24px;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid rgba(255,255,255,0.15);
  padding-bottom: 16px;
}
.search-input-wrap svg { color: rgba(255,255,255,0.35); flex-shrink: 0; }
#search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 600;
  color: #fff;
}
#search-input::placeholder { color: rgba(255,255,255,0.25); }
.search-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font-size: 24px;
  padding: 4px;
  transition: color var(--transition);
}
.search-close:hover { color: #fff; }
.search-hint {
  font-size: 13px;
  color: rgba(255,255,255,0.25);
  margin-top: 16px;
  text-align: center;
}

/* ── Members Portal ─────────────────────────────────────────── */
.members-area {
  max-width: 480px;
  margin: 100px auto 80px;
  padding: 0 24px;
  text-align: center;
}
.members-area h1,
.members-area h2 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.newsletter-members-area {
  margin-top: 64px;
}
.newsletter-content-wrap {
  padding-top: 0;
}
.members-area p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}
.members-form input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 12px;
  outline: none;
  transition: border-color var(--transition);
}
.members-form input:focus { border-color: var(--accent); }
.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-primary:hover { background: #2d7dd2; }

/* ── Error Page ─────────────────────────────────────────────── */
.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.error-code {
  font-family: var(--font-head);
  font-size: 120px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  opacity: 0.15;
  margin-bottom: -20px;
}
.error-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.error-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ── Utilities ──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-hero-card { grid-template-columns: 1fr; }
  .featured-hero-img { aspect-ratio: 16/7; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.nav-open { display: flex !important; }
  .nav-burger { display: flex; }
  .footer-top { flex-direction: column; }
  .footer-nav { gap: 24px; }
  .hero-subscribe { flex-direction: column; border-radius: var(--radius); }
  .hero-subscribe input { border-radius: var(--radius) var(--radius) 0 0; }
  .hero-subscribe button { border-radius: 0 0 var(--radius) var(--radius); }
  .subscribe-section { margin: 48px 16px; padding: 32px 20px; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form button { width: 100%; }
  .featured-hero-body { padding: 24px; }
}

/* ── Koenig Card Assets (required by Ghost) ─────────────────── */

/* Width utilities */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: auto calc(50% - 50vw) * 0.15;
  transform: translateX(calc(50vw - 50% - ((50vw - 50%) * 0.15)));
}
@media (min-width: 1200px) {
  .kg-width-wide {
    width: 1060px;
    transform: translateX(calc(530px - 50%));
  }
}
.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Image card */
.kg-image-card { margin: 2em 0; }
.kg-image-card img { margin: 0 auto; border-radius: var(--radius); }
.kg-image-card figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* Gallery card */
.kg-gallery-card { margin: 2em 0; }
.kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kg-gallery-row {
  display: flex;
  gap: 4px;
}
.kg-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* Embed / bookmark card */
.kg-bookmark-card { margin: 2em 0; }
.kg-bookmark-container {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition);
}
.kg-bookmark-container:hover { box-shadow: var(--shadow); }
.kg-bookmark-content { flex: 1; padding: 16px 20px; }
.kg-bookmark-title { font-weight: 600; font-size: 15px; color: var(--text-dark); margin-bottom: 4px; }
.kg-bookmark-description { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }
.kg-bookmark-metadata { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.kg-bookmark-icon { width: 16px; height: 16px; }
.kg-bookmark-thumbnail { width: 160px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Video card */
.kg-video-card { margin: 2em 0; }
.kg-video-card video { width: 100%; border-radius: var(--radius); }

/* Audio card */
.kg-audio-card {
  margin: 2em 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

/* HR card */
.kg-divider { border: none; border-top: 1px solid var(--border); margin: 2.5em 0; }

/* Callout card */
.kg-callout-card {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius);
  margin: 2em 0;
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
}
.kg-callout-emoji { font-size: 20px; flex-shrink: 0; }
.kg-callout-text { font-size: 15px; line-height: 1.6; }

/* Toggle card */
.kg-toggle-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 2em 0;
  overflow: hidden;
}
.kg-toggle-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
}
.kg-toggle-content { padding: 0 18px 14px; font-size: 14px; line-height: 1.7; }

/* Button card */
.kg-button-card { text-align: center; margin: 2em 0; }
.kg-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: opacity var(--transition);
}
.kg-btn-accent { background: var(--accent); color: #fff; }
.kg-btn-accent:hover { opacity: 0.85; }

/* NFT / Product card — minimal */
.kg-nft-card, .kg-product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2em 0;
}

/* Header card */
.kg-header-card {
  background: var(--dark);
  padding: 60px 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 2em 0;
}
.kg-header-card h2 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.kg-header-card p { color: rgba(255,255,255,0.55); font-size: 16px; margin-bottom: 0; }

/* Code block */
.kg-code-card { margin: 2em 0; }
.kg-code-card pre {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
}
.kg-code-card code {
  background: none;
  color: #e6edf3;
  font-size: 14px;
  line-height: 1.7;
  padding: 0;
}

/* post-card-link fix */
.post-card { position: relative; }
.post-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

/* ── Ghost {{navigation}} helper output compatibility ───────── */
/* Ghost wraps navigation partial in nothing extra — our partial controls the output */
/* Ensure nav-current styling works */
.nav-links .nav-current a,
.nav-links li.nav-current a {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
/* Footer nav links from @site.navigation — these are plain url strings */
.footer-nav-group a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color 0.22s ease;
  text-decoration: none;
}
.footer-nav-group a:hover { color: #fff; }

/* Footer nav-list from secondary navigation helper */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav-list li { margin-bottom: 8px; }
.footer-nav-list a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.22s ease;
}
.footer-nav-list a:hover { color: #fff; }

/* ── Title links fix ─────────────────────────────────────────── */
.post-card-title a {
  color: var(--text-dark);
  text-decoration: none;
  display: block;
}
.post-card-title a:hover { color: var(--text-dark); opacity: 0.78; }
.post-card-img-link { display: block; overflow: hidden; }
.post-card-img-link img { 
  width: 100%; 
  aspect-ratio: 16/9; 
  object-fit: cover;
  transition: transform 0.3s ease;
}
.post-card-img-link:hover img { transform: scale(1.03); }


/* ── Mobile nav open state ───────────────────────────────────── */
@media (max-width: 640px) {
  .site-nav { background: var(--header-bg); }

  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    transform: none;
    background: var(--dark);
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 999;
    gap: 0;
  }
  .nav-links.nav-open li { width: 100%; }
  .nav-links.nav-open a {
    padding: 14px 24px;
    font-size: 16px;
    border-radius: 0;
  }

  .nav-burger { display: flex; }

  /* Hamburger → X when open */
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  /* Post hero smaller on mobile */
  .post-hero { padding: 80px 16px 40px; }
  .post-hero-title { font-size: 28px; }
  .post-content-wrap { padding: 32px 16px; }

  /* Hero on mobile */
  .site-hero { min-height: 360px; }
  .hero-bg {
    background-size: cover;
    background-position: center top;
  }
  .hero-content { padding: 88px 16px 52px; }
  .hero-title { font-size: 28px; }

  /* Mobile cards: keep editorial images readable instead of ultra-wide crops */
  .post-card-img,
  .featured-hero-img,
  .post-card-img-link img {
    aspect-ratio: 16 / 9;
  }
}

.author-role {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  opacity: 0.8;
  margin-left: 2px;
}

/* ── Ghost Paywall Card Override ────────────────────────────── */
.gh-post-upgrade-cta {
  margin: 40px 0;
}
.gh-post-upgrade-cta-content {
  border-radius: var(--radius-lg) !important;
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb;
  padding: 34px 24px;
  text-align: center;
  box-shadow: 0 12px 34px rgba(13,17,23,0.06);
}
.gh-post-upgrade-cta-content h2 {
  color: var(--text-dark) !important;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.gh-post-upgrade-cta-content p {
  color: var(--text-muted) !important;
}
.gh-post-upgrade-cta-content .gh-btn {
  background: var(--text-dark) !important;
  color: #fff !important;
  border-radius: var(--radius);
  padding: 12px 28px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.gh-post-upgrade-cta-content .gh-btn:hover {
  background: #1f2937 !important;
}
.gh-post-upgrade-cta-content small,
.gh-post-upgrade-cta-content small a {
  color: var(--text-muted) !important;
}
.gh-post-upgrade-cta-content small a { text-decoration: underline; }
