/* =============================================================
   Wealthly Ghost Theme — Main Stylesheet
   ============================================================= */

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

/* -------------------------------------------------------------
   CSS Variables
   ------------------------------------------------------------- */
:root {
  --navy:        #0B0F1A;
  --navy-mid:    #111827;
  --navy-card:   #141B2D;
  --navy-border: #1E2840;
  --gold:        #C9A84C;
  --gold-light:  #E2C57A;
  --gold-dim:    #8A6F32;
  --cream:       #F5F0E8;
  --cream-dim:   #C8BEA8;
  --slate:       #8896B3;
  --green:       #4CAF7D;
  --red:         #E05A5A;
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'DM Sans', sans-serif;
  --mono:        'DM Mono', monospace;
}

/* -------------------------------------------------------------
   Reset & Base
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* -------------------------------------------------------------
   Typography
   ------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  color: var(--cream);
}

h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 300; }
h2 { font-size: clamp(28px, 3.5vw, 48px); font-weight: 300; }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: 20px; }

p { line-height: 1.75; color: var(--cream-dim); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.gold-divider {
  width: 48px;
  height: 1px;
  background: var(--gold-dim);
  margin: 1.5rem 0;
}

/* -------------------------------------------------------------
   Layout Utilities
   ------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section { padding: 5rem 0; }
.section-alt { background: var(--navy-card); }

.section-header { margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header h2 em { font-style: italic; color: var(--gold-light); }
.section-header p { font-size: 14px; color: var(--slate); max-width: 520px; line-height: 1.8; }

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

/* -------------------------------------------------------------
   Navigation
   ------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 26, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--navy-border);
  height: 64px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--cream);
  flex-shrink: 0;
}
.nav-logo span { color: var(--gold); }
.nav-logo:hover { color: var(--cream); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-menu a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  transition: color 0.2s;
  font-family: var(--mono);
}
.nav-menu a:hover,
.nav-menu a.current { color: var(--cream); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-nav-login {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  font-family: var(--mono);
  transition: color 0.2s;
}
.btn-nav-login:hover { color: var(--cream); }

.btn-nav-subscribe {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 7px 20px;
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--mono);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn-nav-subscribe:hover {
  background: var(--gold);
  color: var(--navy);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--cream);
  transition: all 0.25s;
}

/* -------------------------------------------------------------
   Ticker Bar
   ------------------------------------------------------------- */
.ticker-bar {
  background: var(--navy-card);
  border-bottom: 1px solid var(--navy-border);
  padding: 9px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-flex;
  gap: 3rem;
  animation: ticker 35s linear infinite;
}
.ticker-bar:hover .ticker-inner { animation-play-state: paused; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
}
.ticker-symbol { color: var(--cream-dim); letter-spacing: 0.08em; }
.ticker-price  { color: var(--cream); }
.ticker-up     { color: var(--green); }
.ticker-dn     { color: var(--red); }
.ticker-sep    { color: var(--navy-border); }

/* -------------------------------------------------------------
   Hero
   ------------------------------------------------------------- */
.hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-left {
  padding: 7rem 4rem 6rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-headline { margin-bottom: 1.5rem; }
.hero-headline em { font-style: italic; color: var(--gold-light); }

.hero-sub {
  font-size: 15px;
  color: var(--slate);
  max-width: 420px;
  line-height: 1.75;
  margin-bottom: 3rem;
}

.hero-actions { display: flex; gap: 1rem; align-items: center; }

.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(201,168,76,0.06) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(201,168,76,0.06) 80px);
}

/* -------------------------------------------------------------
   Buttons
   ------------------------------------------------------------- */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 13px 32px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--gold-light); color: var(--navy); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--cream-dim);
  border: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--sans);
  cursor: pointer;
  transition: color 0.2s, gap 0.2s;
}
.btn-ghost::after { content: '→'; font-size: 16px; }
.btn-ghost:hover  { color: var(--cream); gap: 14px; }

.btn-outline {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--navy-border);
  color: var(--slate);
  padding: 9px 20px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--mono);
  border-radius: 2px;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--gold-dim); color: var(--cream); }

/* -------------------------------------------------------------
   Tags / Badges
   ------------------------------------------------------------- */
.tag-pill {
  display: inline-block;
  background: rgba(201,168,76,0.1);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.22);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  transition: background 0.2s;
}
.tag-pill:hover { background: rgba(201,168,76,0.18); color: var(--gold-light); }

.tag-plain {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

/* -------------------------------------------------------------
   Featured Article Grid
   ------------------------------------------------------------- */
.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  background: var(--navy-border);
  gap: 1.5px;
  border: 1.5px solid var(--navy-border);
  border-radius: 4px;
  overflow: hidden;
}

.featured-main {
  background: var(--navy-card);
  padding: 3rem;
  cursor: pointer;
  transition: background 0.3s;
  display: block;
  position: relative;
}
.featured-main:hover { background: #171f35; }

.featured-main .post-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--cream);
  margin: 1rem 0;
  max-width: 520px;
}

.featured-main .post-excerpt {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 1.5rem;
}

.featured-side {
  background: var(--navy);
  display: flex;
  flex-direction: column;
}

.featured-side-item {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--navy-border);
  cursor: pointer;
  transition: background 0.2s;
  flex: 1;
  display: block;
}
.featured-side-item:last-child { border-bottom: none; }
.featured-side-item:hover { background: var(--navy-card); }

.featured-side-item .post-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--cream);
  margin: 0.5rem 0;
}

.featured-side-item .post-excerpt {
  font-size: 12px;
  color: var(--slate);
  line-height: 1.65;
}

/* -------------------------------------------------------------
   Article Cards
   ------------------------------------------------------------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.article-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 4px;
  overflow: hidden;
  display: block;
  transition: border-color 0.25s, transform 0.2s;
}
.article-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
}

.article-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--navy-mid);
}

.article-card-image-placeholder {
  width: 100%;
  height: 200px;
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-card-body { padding: 1.5rem; }

.article-card .post-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--cream);
  margin: 0.5rem 0 0.75rem;
}

.article-card .post-excerpt {
  font-size: 12px;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--slate);
  font-family: var(--mono);
  border-top: 1px solid var(--navy-border);
  padding-top: 1rem;
  letter-spacing: 0.06em;
}

/* -------------------------------------------------------------
   Article Meta
   ------------------------------------------------------------- */
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 11px;
  color: var(--slate);
  font-family: var(--mono);
  letter-spacing: 0.07em;
}
.post-meta-sep { color: var(--navy-border); }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--mono);
  margin-top: 1rem;
  transition: gap 0.2s;
}
.read-more:hover { gap: 14px; color: var(--gold-light); }

/* -------------------------------------------------------------
   Content Pillars
   ------------------------------------------------------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--navy-border);
  border: 1px solid var(--navy-border);
  border-radius: 4px;
  overflow: hidden;
}

.pillar {
  background: var(--navy);
  padding: 2.5rem 2rem;
  display: block;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}
.pillar:hover { background: var(--navy-card); }

.pillar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.pillar:hover::after { transform: scaleX(1); }

.pillar-icon { font-size: 26px; color: var(--slate); margin-bottom: 1.25rem; transition: color 0.25s; }
.pillar:hover .pillar-icon { color: var(--gold); }
.pillar-title { font-family: var(--serif); font-size: 20px; color: var(--cream); margin-bottom: 0.75rem; }
.pillar-desc  { font-size: 12px; color: var(--slate); line-height: 1.7; }
.pillar-count { font-family: var(--mono); font-size: 10px; color: var(--gold-dim); letter-spacing: 0.1em; margin-top: 1.5rem; }

/* -------------------------------------------------------------
   Stat Bar
   ------------------------------------------------------------- */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--navy-border);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
}

.stat-item {
  background: var(--navy-card);
  padding: 3rem 2rem;
  text-align: center;
}

.stat-number {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  font-family: var(--mono);
}

/* -------------------------------------------------------------
   Newsletter
   ------------------------------------------------------------- */
.newsletter-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(201,168,76,0.04) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(201,168,76,0.04) 40px);
  pointer-events: none;
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 2rem;
}

.newsletter-inner h2 { margin-bottom: 1rem; }
.newsletter-inner h2 em { font-style: italic; color: var(--gold-light); }
.newsletter-inner p  { font-size: 14px; color: var(--slate); line-height: 1.75; margin-bottom: 2.5rem; }

.newsletter-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto 1rem;
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
  overflow: hidden;
}

.newsletter-form input[type="email"] {
  flex: 1;
  background: rgba(201,168,76,0.05);
  border: none;
  outline: none;
  padding: 13px 18px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--cream);
  font-weight: 300;
}
.newsletter-form input[type="email"]::placeholder { color: var(--slate); }

.newsletter-form button,
.newsletter-form input[type="submit"] {
  background: var(--gold);
  border: none;
  padding: 13px 26px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.newsletter-form button:hover,
.newsletter-form input[type="submit"]:hover { background: var(--gold-light); }

.newsletter-fine {
  font-size: 11px;
  color: var(--slate);
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

/* Ghost native subscribe form */
.gh-subscribe-form { width: 100%; }

/* -------------------------------------------------------------
   Single Post / Article
   ------------------------------------------------------------- */
.post-hero {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--navy-border);
  margin-bottom: 4rem;
}

.post-hero .post-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
  max-width: 820px;
  margin: 1rem 0 1.5rem;
}

.post-hero-image {
  margin-top: 3rem;
  border-radius: 4px;
  overflow: hidden;
  max-height: 520px;
}
.post-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  max-width: 720px;
  margin: 0 auto;
}

.post-content h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--cream);
  margin: 3rem 0 1rem;
}

.post-content h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--cream);
  margin: 2.5rem 0 0.75rem;
}

.post-content p {
  font-size: 17px;
  color: var(--cream-dim);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.post-content a {
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold-dim);
  transition: color 0.2s, border-color 0.2s;
}
.post-content a:hover { color: var(--gold); border-color: var(--gold); }

.post-content blockquote {
  border-left: 2px solid var(--gold);
  padding: 1rem 0 1rem 2rem;
  margin: 2.5rem 0;
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--gold-light);
  line-height: 1.5;
}

.post-content ul,
.post-content ol {
  margin: 1.5rem 0 1.5rem 1.5rem;
  color: var(--cream-dim);
  font-size: 16px;
  line-height: 1.8;
}

.post-content li { margin-bottom: 0.4rem; }

.post-content figure {
  margin: 2.5rem 0;
  border-radius: 4px;
  overflow: hidden;
}
.post-content figcaption {
  font-size: 12px;
  color: var(--slate);
  font-family: var(--mono);
  margin-top: 0.75rem;
  letter-spacing: 0.06em;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--navy-border);
  margin: 3rem 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 14px;
}
.post-content table th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 10px 12px;
  border-bottom: 1px solid var(--navy-border);
  text-align: left;
}
.post-content table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(30,40,64,0.6);
  color: var(--cream-dim);
}
.post-content table tr:last-child td { border-bottom: none; }

/* Members-only paywall */
.post-paywall {
  position: relative;
  margin-top: -4rem;
  padding-top: 4rem;
  background: linear-gradient(to bottom, transparent, var(--navy) 40%);
}

.paywall-box {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-top: 2px solid var(--gold);
  border-radius: 4px;
  padding: 3rem;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.paywall-box h3 {
  font-family: var(--serif);
  font-size: 26px;
  margin-bottom: 0.75rem;
}
.paywall-box p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.paywall-box .paywall-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.paywall-plan {
  border: 1px solid var(--navy-border);
  border-radius: 4px;
  padding: 1.25rem;
}
.paywall-plan.featured { border-color: var(--gold-dim); }
.paywall-plan-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.5rem;
}
.paywall-plan-price {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--cream);
}
.paywall-plan-price span { font-size: 13px; color: var(--slate); }

/* Post author block */
.post-author {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem 0;
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
  margin: 3rem 0;
}

.post-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy-mid);
  flex-shrink: 0;
}

.post-author-name {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--cream);
  margin-bottom: 2px;
}
.post-author-bio {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.6;
}

/* Post tags footer */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
}

/* Related posts */
.related-posts { padding: 4rem 0; }

/* -------------------------------------------------------------
   Tag / Archive Page
   ------------------------------------------------------------- */
.tag-hero {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--navy-border);
  margin-bottom: 4rem;
}

.tag-hero h1 { margin-bottom: 0.75rem; }
.tag-hero p  { font-size: 15px; color: var(--slate); max-width: 560px; }

/* -------------------------------------------------------------
   Pagination
   ------------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 0 2rem;
}

.pagination a,
.pagination span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 8px 16px;
  border: 1px solid var(--navy-border);
  border-radius: 2px;
  transition: all 0.2s;
}
.pagination a:hover { border-color: var(--gold-dim); color: var(--cream); }
.pagination .current { border-color: var(--gold); color: var(--gold); }

/* -------------------------------------------------------------
   404 Page
   ------------------------------------------------------------- */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

.error-code {
  font-family: var(--serif);
  font-size: 120px;
  font-weight: 300;
  color: var(--navy-border);
  line-height: 1;
  margin-bottom: 1rem;
}

/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */
.site-footer {
  background: var(--navy-card);
  border-top: 1px solid var(--navy-border);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--navy-border);
}

.footer-brand {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--cream);
  margin-bottom: 1rem;
  display: block;
}
.footer-brand span { color: var(--gold); }

.footer-tagline {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 1.75rem;
}

.footer-social { display: flex; gap: 0.75rem; }

.social-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--navy-border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  font-size: 11px;
  font-family: var(--mono);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.social-btn:hover { border-color: var(--gold-dim); color: var(--gold); }

.footer-col-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-nav a {
  font-size: 13px;
  color: var(--slate);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--slate);
  font-family: var(--mono);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a { color: var(--slate); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--cream); }

.footer-legal { display: flex; gap: 2rem; }

/* -------------------------------------------------------------
   Fade-in animations
   ------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------
   Ghost Card Styles (kg-card)
   ------------------------------------------------------------- */
.kg-card { margin: 2.5rem 0; }

/* Required width utility classes */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: 2.5rem calc(50% - 42.5vw);
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.kg-image-card img  { width: 100%; border-radius: 4px; }
.kg-image-card.kg-width-wide img,
.kg-image-card.kg-width-full img { border-radius: 0; }

.kg-gallery-card    { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.kg-gallery-image img { width: 100%; height: 200px; object-fit: cover; border-radius: 3px; }
.kg-embed-card      { display: flex; justify-content: center; }
.kg-callout-card {
  display: flex;
  gap: 1rem;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
}
.kg-callout-emoji { font-size: 20px; flex-shrink: 0; }
.kg-callout-text  { font-size: 15px; color: var(--cream-dim); line-height: 1.7; }
.kg-toggle-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 4px;
  overflow: hidden;
}
.kg-toggle-heading { padding: 1rem 1.5rem; display: flex; justify-content: space-between; cursor: pointer; }
.kg-toggle-content { padding: 0 1.5rem 1rem; font-size: 14px; color: var(--slate); }
.kg-button-card    { text-align: center; }
.kg-button-card a  { display: inline-block; }

/* -------------------------------------------------------------
   Responsive
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .pillars-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .stat-bar      { grid-template-columns: repeat(2, 1fr); }
  .hero          { grid-template-columns: 1fr; min-height: auto; }
  .hero-right    { display: none; }
  .hero-left     { padding: 5rem 0 4rem; }
}

@media (max-width: 768px) {
  .container, .container-wide { padding: 0 1.25rem; }
  .nav-menu     { display: none; }
  .nav-toggle   { display: flex; }
  .featured-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .pillars-grid  { grid-template-columns: 1fr; }
  .stat-bar      { grid-template-columns: 1fr 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 2rem; }
  .section-header-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .paywall-box .paywall-plans { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stat-bar { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { border-bottom: 1px solid var(--gold-dim); }
}
