/* ================================================================
   Bruce Ghost Theme — screen.css
   Colors: bg #05080f · text #d8e2f4 · muted #7b8fae · blue #4954FF
   Type: Instrument Serif (headlines/italic) + DM Sans (body)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Base ───────────────────────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  background: #05080f;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #d8e2f4;
  -webkit-font-smoothing: antialiased;
}

a { color: #4954FF; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Site Header ─────────────────────────────────────────────────── */
.site-header {
  background: rgba(5,8,15,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-header-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  opacity: 1;
  transition: opacity 0.2s;
}
.site-header-logo:hover { opacity: 0.8; }
.site-header-logo img { display: block; }
.site-header-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,0.1);
  margin-left: 2px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #7b8fae;
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:hover { color: #d8e2f4; }
.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #4954FF;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: filter 0.2s, transform 0.15s;
}
.site-nav .nav-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ── Blog Index ──────────────────────────────────────────────────── */
.blog-header {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 40px 32px;
}
.blog-header-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4954FF;
  margin-bottom: 12px;
}
.blog-header h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 38px;
  font-weight: normal;
  font-style: italic;
  color: #eef3ff;
  margin: 0 0 12px 0;
  line-height: 1.2;
}
.blog-header-deck {
  font-size: 16px;
  color: #7b8fae;
  font-weight: 300;
  line-height: 1.6;
}

.post-grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 40px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Post Card ───────────────────────────────────────────────────── */
.post-card {
  background: #0d1224;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(-2px);
  text-decoration: none;
}
.post-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0d1224;
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card-no-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #192E51 0%, #2a4070 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-card-no-image-mark {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 48px;
  color: rgba(255,255,255,0.15);
}
.post-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4954FF;
  margin-bottom: 10px;
}
.post-card h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 20px;
  font-weight: normal;
  font-style: italic;
  color: #eef3ff;
  line-height: 1.3;
  margin: 0 0 12px 0;
}
.post-card-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: #7b8fae;
  margin-bottom: 20px;
  flex: 1;
}
.post-card-meta {
  font-size: 12px;
  color: #7b8fae;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.post-card-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #7b8fae;
  display: inline-block;
}

/* ── Pagination ──────────────────────────────────────────────────── */
.pagination {
  max-width: 1080px;
  margin: 0 auto 64px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #eef3ff;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 20px;
  background: #0d1224;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.pagination-btn:hover {
  border-color: #4954FF;
  background: rgba(73,84,255,0.12);
  text-decoration: none;
}
.pagination-count {
  font-size: 13px;
  color: #7b8fae;
}

/* ── Single Post ─────────────────────────────────────────────────── */
.article-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4954FF;
  margin-bottom: 20px;
}
.article-wrap h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 40px;
  font-weight: normal;
  font-style: italic;
  line-height: 1.18;
  color: #eef3ff;
  margin: 0 0 24px 0;
}
.deck {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: #d8e2f4;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}
.byline-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #4954FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.byline-avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline-text {
  font-size: 13px;
  color: #7b8fae;
  line-height: 1.4;
}
.byline-text strong { color: #d8e2f4; font-weight: 600; }

/* ── Post Feature Image ─────────────────────────────────────────── */
.post-feature-image {
  max-width: 760px;
  margin: 0 auto 48px;
  padding: 0 32px;
}
.post-feature-image img {
  width: 100%;
  border-radius: 12px;
}

/* ── Article Body (Ghost card output) ────────────────────────────── */
.gh-content p {
  font-size: 17px;
  line-height: 1.78;
  margin: 0 0 24px 0;
  color: #eef3ff;
}
.gh-content h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 24px;
  font-weight: normal;
  font-style: italic;
  color: #eef3ff;
  margin: 52px 0 20px 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.gh-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #eef3ff;
  margin: 36px 0 12px 0;
}
.gh-content blockquote {
  margin: 40px 0;
  padding: 0 0 0 24px;
  border-left: 3px solid #4954FF;
  border-top: none;
  border-right: none;
  border-bottom: none;
}
.gh-content blockquote p {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: #eef3ff;
  margin: 0;
}
.gh-content ul, .gh-content ol {
  font-size: 17px;
  line-height: 1.78;
  color: #eef3ff;
  padding-left: 24px;
  margin: 0 0 24px 0;
}
.gh-content li { margin-bottom: 8px; }
.gh-content strong { font-weight: 600; }
.gh-content em { font-style: italic; }
.gh-content hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 48px 0;
}
.gh-content a { color: #4954FF; }
.gh-content a:hover { text-decoration: underline; }

/* ── Ghost Card: HTML Card (custom components) ──────────────────── */

/* Stat callout */
.stat-callout {
  background: #0d1224;
  border-radius: 12px;
  padding: 32px 36px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  gap: 28px;
}
.stat-number {
  font-family: 'Instrument Serif', serif;
  font-size: 56px;
  font-style: italic;
  color: #4954FF;
  line-height: 1;
  flex-shrink: 0;
}
.stat-label { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,0.8); }
.stat-label strong { display: block; color: #fff; font-size: 17px; margin-bottom: 4px; }

/* Takeaway box */
.takeaway {
  background: rgba(73,84,255,0.12);
  border-radius: 10px;
  padding: 24px 28px;
  margin: 36px 0;
}
.takeaway-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4954FF;
  margin-bottom: 12px;
}
.takeaway ul { margin: 0; padding-left: 20px; }
.takeaway li {
  font-size: 15px;
  line-height: 1.65;
  color: #eef3ff;
  margin-bottom: 8px;
}
.takeaway li:last-child { margin-bottom: 0; }

/* Profile card */
.profile-card {
  background: #0d1224;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 28px 32px;
  margin-top: 56px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.profile-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(73,84,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  color: #4954FF;
  flex-shrink: 0;
}
.profile-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: #eef3ff;
  margin: 0 0 2px 0;
}
.profile-info p {
  font-size: 13px;
  color: #7b8fae;
  margin: 0 0 12px 0;
  line-height: 1.4;
}
.profile-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(73,84,255,0.12);
  color: #4954FF;
  border-radius: 99px;
  padding: 3px 10px;
}

/* Callout */
.callout {
  background: #0d1224;
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid #4954FF;
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 36px 0;
}
.callout p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #d8e2f4;
}

/* Article footer */
.article-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  color: #7b8fae;
  line-height: 1.6;
}
.article-footer a { color: #4954FF; text-decoration: none; }
.article-footer a:hover { text-decoration: underline; }


/* Signup/membership disabled — handled via Customer.io */
.kg-signup-card { display: none !important; }

/* ── Ghost Card Width Utilities (required by GScan) ─────────────── */
.kg-width-wide {
  margin-left: calc(50% - 50vw + 40px);
  margin-right: calc(50% - 50vw + 40px);
  width: auto;
}
.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}
.kg-width-wide img,
.kg-width-full img {
  width: 100%;
}
@media (max-width: 600px) {
  .kg-width-wide {
    margin-left: calc(50% - 50vw + 20px);
    margin-right: calc(50% - 50vw + 20px);
  }
}

/* ── Site Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: #05080f;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #7b8fae;
  font-size: 14px;
}
.site-footer-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 32px;
}
.site-footer-links a {
  color: #7b8fae;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.site-footer-links a:hover { color: #d8e2f4; }
.site-footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
}
.site-footer-social a {
  color: #eef3ff;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  text-decoration: none;
}
.site-footer-social a svg { width: 16px; height: 16px; }
.site-footer-social a:hover { color: #7b8fae; }
.site-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 32px;
  width: 100%;
}
.site-footer-tagline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: #7b8fae;
  margin: 0 0 8px 0;
}
.site-footer-copy {
  font-size: 12px;
  color: #2e3d56;
  margin: 0;
}

/* ── Error / 404 ─────────────────────────────────────────────────── */
.error-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 32px;
  text-align: center;
}
.error-code {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 80px;
  color: #2e3d56;
  line-height: 1;
  margin-bottom: 16px;
}
.error-page h1 {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 32px;
  font-weight: normal;
  color: #eef3ff;
  margin-bottom: 16px;
}
.error-page p { font-size: 16px; color: #7b8fae; margin-bottom: 32px; }
.btn-primary {
  display: inline-block;
  background: #4954FF;
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: #3a44e0; text-decoration: none; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .site-header { padding: 0 24px; }
  .blog-header { padding: 40px 24px 24px; }
  .pagination { padding: 0 24px; }
}
@media (max-width: 600px) {
  /* Header */
  .site-header { padding: 0 16px; height: 56px; }
  .site-header-label { display: none; }
  .site-nav { gap: 12px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .site-nav .nav-cta { padding: 8px 14px; font-size: 13px; }

  /* Content */
  .post-grid { grid-template-columns: 1fr; padding: 12px 16px 60px; }
  .blog-header { padding: 32px 16px 20px; }
  .blog-header h1 { font-size: 26px; }
  .article-wrap { padding: 32px 16px 64px; }
  .article-wrap h1 { font-size: 28px; }
  .stat-callout { flex-direction: column; gap: 12px; }
  .stat-number { font-size: 44px; }
  .profile-card { flex-direction: column; }
  .post-feature-image { padding: 0; }

  /* Footer */
  .site-footer-inner { padding: 48px 20px; }
  .site-footer-links { gap: 6px 16px; }
  .site-footer-links a { font-size: 13px; }
  .site-footer-tagline { font-size: 14px; }
}
