/* ── Shared styling for individual blog post pages ─────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Great+Vibes&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Geist', 'Geist Placeholder', sans-serif;
  background: #ffffff;
  color: #05080c;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

/* Sticky top nav */
.blog-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(5, 8, 12, 0.06);
}
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #05080c;
  transition: opacity .18s ease, transform .18s ease;
}
.blog-back:hover { opacity: .7; transform: translateX(-2px); }
.blog-back-arrow {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #05080c;
  color: #ffffff;
  font-size: 13px;
}
.blog-brand { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }

/* Article container */
.blog-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

/* Eyebrow row above the title */
.blog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(5, 8, 12, 0.55);
}
.blog-eyebrow .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(5, 8, 12, 0.35);
}
.blog-eyebrow .tag {
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(5, 8, 12, 0.05);
  color: #05080c;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Title */
.blog-title {
  margin: 0 0 28px 0;
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #05080c;
}
.blog-title em {
  font-family: 'Great Vibes', cursive;
  font-style: normal;
  font-weight: 400;
  font-size: 1.05em;
}

/* Author + meta strip */
.blog-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 48px 0;
  padding: 16px 0;
  border-top: 1px solid rgba(5, 8, 12, 0.08);
  border-bottom: 1px solid rgba(5, 8, 12, 0.08);
}
.blog-meta-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: linear-gradient(135deg, #2d2d2d, #0a0a0a);
}
.blog-meta-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.blog-meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
}
.blog-meta-name {
  font-size: 14px;
  font-weight: 600;
  color: #05080c;
}
.blog-meta-detail {
  font-size: 13px;
  color: rgba(5, 8, 12, 0.55);
}

/* Cover image */
.blog-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f5;
  margin: 0 0 48px 0;
}
.blog-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Body content */
.blog-body {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(5, 8, 12, 0.85);
}
.blog-body > * + * { margin-top: 1.2em; }
.blog-body h2 {
  margin-top: 2em;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #05080c;
  line-height: 1.25;
}
.blog-body h3 {
  margin-top: 1.6em;
  font-size: 19px;
  font-weight: 600;
  color: #05080c;
}
.blog-body p { margin: 0; }
.blog-body ul, .blog-body ol {
  padding-left: 1.4em;
  margin: 0;
}
.blog-body li + li { margin-top: 0.4em; }
.blog-body blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid #05080c;
  font-style: italic;
  color: rgba(5, 8, 12, 0.7);
}
.blog-body strong { color: #05080c; font-weight: 600; }

/* "Back to all posts" CTA at the bottom */
.blog-footer {
  margin-top: 64px;
  padding: 32px 0 0;
  border-top: 1px solid rgba(5, 8, 12, 0.08);
  display: flex;
  justify-content: center;
}
.blog-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #05080c;
  color: #ffffff;
  border-radius: 100px;
  padding: 12px 16px 12px 22px;
  font-size: 14px;
  font-weight: 500;
  transition: transform .2s ease, background .2s ease;
}
.blog-footer-btn:hover {
  transform: translateY(-2px);
  background: #1a1f26;
}
.blog-footer-btn-arrow {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  color: #05080c;
  font-size: 13px;
}

@media (max-width: 600px) {
  .blog-article { padding: 40px 18px 64px; }
  .blog-title { font-size: clamp(28px, 8vw, 40px); }
  .blog-cover { border-radius: 12px; margin-bottom: 32px; }
  .blog-body { font-size: 16px; line-height: 1.7; }
}

/* ── Shared sub-page navbar (matches the home page pill) ───────────────── */
.site-nav {
  position: sticky;
  top: 20px;
  z-index: 60;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 16px;
  margin-bottom: 8px;
}
.site-nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  padding: 6px 8px 6px 8px;
  gap: 22px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
}
@media (min-width: 768px) { .site-nav-pill { gap: 40px; padding: 8px 10px 8px 8px; } }
.site-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-nav-avatar {
  position: relative;
  display: grid;
  place-items: center;
  height: 36px; width: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #2d2d2d, #0a0a0a);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex: none;
}
.site-nav-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.site-nav-name {
  font-size: 13px;
  font-weight: 700;
  color: #05080c;
  white-space: nowrap;
  padding-right: 4px;
}
.site-nav-links {
  display: flex; align-items: center; gap: 24px;
  list-style: none; margin: 0; padding: 0;
  white-space: nowrap;
}
.site-nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: #05080c;
  text-decoration: none;
  transition: opacity .18s ease;
}
.site-nav-links a:hover { opacity: .7; }
.site-nav-links a.site-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: linear-gradient(180deg, #1c2128 0%, #05080c 100%);
  padding: 8px 18px;
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 0.005em;
  outline: 1px solid rgba(0, 0, 0, 0.6);
  outline-offset: -1px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 2px 5px rgba(0, 0, 0, 0.18);
  transition: transform .18s ease, box-shadow .2s ease;
}
.site-nav-links a.site-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(0,0,0,.45), 0 4px 8px rgba(0,0,0,.22);
}
.site-nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px; height: 38px;
  margin-left: auto;
  background: #05080c;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  color: #ffffff;
  transition: background .15s ease, transform .15s ease;
}
.site-nav-hamburger:hover { background: #1a1f26; transform: scale(1.05); }
.site-nav-hamburger svg { display: block; pointer-events: none; }

/* Mobile: collapse inline links into a hamburger drawer */
@media (max-width: 767px) {
  .site-nav-links { display: none !important; }
  .site-nav-hamburger { display: inline-flex !important; }
  .site-nav-pill { padding: 6px 6px 6px 8px !important; gap: 8px !important; }
  .site-nav-name { font-size: 13px !important; }
  .site-nav-avatar { height: 32px !important; width: 32px !important; }
}

.site-nav-drawer {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 8, 12, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.site-nav-drawer.is-open { opacity: 1; pointer-events: auto; }
.site-nav-drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(360px, 86vw);
  background: #05080c; color: #ffffff;
  padding: 20px 24px 32px;
  display: flex; flex-direction: column; gap: 28px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
}
.site-nav-drawer.is-open .site-nav-drawer-panel { transform: translateX(0); }
.site-nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-nav-drawer-brand {
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em; color: #ffffff;
}
.site-nav-drawer-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 0; color: #ffffff;
  border-radius: 50%; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.site-nav-drawer-close:hover { background: rgba(255,255,255,.16); transform: rotate(90deg); }
.site-nav-drawer-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.site-nav-drawer-links a {
  display: block; padding: 14px 6px;
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 500; letter-spacing: -0.02em;
  color: #ffffff !important; text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: padding-left .2s ease, color .2s ease;
}
.site-nav-drawer-links a:hover { padding-left: 14px; color: rgba(255,255,255,.85) !important; }
body.site-drawer-open { overflow: hidden; }

/* ── Shared sub-page footer (matches the home page) ───────────────────── */
.site-footer {
  position: relative;
  z-index: 50;
  width: 100%;
  background: #05080c;
  color: #ffffff;
  padding: clamp(56px, 9vw, 120px) clamp(24px, 4vw, 60px) clamp(48px, 6vw, 80px);
  text-align: center;
  margin-top: 80px;
}
.site-footer-name {
  margin: 0;
  font-size: clamp(40px, 8vw, 110px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: #ffffff;
  text-transform: uppercase;
}
.site-footer-tag {
  margin: clamp(14px, 1.8vw, 24px) auto 0;
  max-width: 520px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}
.site-footer-social {
  display: inline-flex; align-items: center; gap: 12px;
  margin: clamp(30px, 4vw, 48px) auto 0;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%; color: #ffffff;
  text-decoration: none; background: transparent;
  transition: background .2s ease, transform .2s ease;
}
.site-footer-social a:hover {
  background: rgba(255,255,255,.16);
  transform: translateY(-2px) scale(1.05);
}
.site-footer-social svg { width: 20px; height: 20px; fill: currentColor; pointer-events: none; }
