@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #07070f;
  --surface:     #0e0e1c;
  --border:      #1a1a30;
  --border-hi:   #2a2a48;
  --indigo:      #3D2B8E;
  --indigo-hi:   #9985CC;
  --indigo-pale: #C0B0E8;
  --text:        #ede9f5;
  --text-muted:  #7a7690;
  --text-dim:    #3a3a58;
}

html { scroll-behavior: smooth; }

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

/* ── DISCLAIMER GATE ── */
#disclaimer-gate {
  position: fixed; inset: 0; z-index: 9999;
  background: #07070f;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  transition: opacity 0.5s ease;
}
#disclaimer-gate.hidden { opacity: 0; pointer-events: none; }
.gate-panel {
  max-width: 640px; width: 100%;
  border: 1px solid var(--border-hi);
  background: var(--surface);
}
.gate-header {
  background: var(--indigo);
  padding: 28px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.gate-header-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px; font-weight: 700; color: #fff;
}
.gate-header-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
}
.gate-body { padding: 40px; }
.gate-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px; font-weight: 700; color: var(--text);
  margin-bottom: 20px;
}
.gate-text-block {
  font-size: 13px; color: var(--text-muted); line-height: 1.8;
  margin-bottom: 16px; border-left: 2px solid var(--border-hi);
  padding-left: 16px;
}
.gate-text-block strong { color: var(--indigo-pale); font-weight: 600; }
.gate-bullets { list-style: none; margin: 20px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.gate-bullets li { display: flex; gap: 10px; font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.gate-bullets li::before { content: '—'; color: var(--indigo-hi); flex-shrink: 0; font-size: 12px; margin-top: 2px; }
.gate-divider { height: 1px; background: var(--border); margin: 28px 0; }
.gate-checkbox-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 28px; cursor: pointer; }
.gate-checkbox-row input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: var(--indigo-hi); cursor: pointer; }
.gate-checkbox-label { font-size: 13px; color: var(--text-muted); line-height: 1.6; cursor: pointer; }
.gate-checkbox-label strong { color: var(--text); }
.gate-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.gate-btn-enter {
  flex: 1; padding: 14px 24px; background: var(--indigo); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; border: none; cursor: pointer;
  opacity: 0.4; pointer-events: none; transition: background 0.2s;
}
.gate-btn-enter.active { opacity: 1; pointer-events: all; }
.gate-btn-enter.active:hover { background: #4e38b0; }
.gate-btn-leave {
  padding: 14px 24px; background: transparent; color: var(--text-dim);
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; border: 1px solid var(--border);
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  transition: color 0.2s;
}
.gate-btn-leave:hover { color: var(--text-muted); }
.gate-footer-note { font-size: 11px; color: var(--text-dim); margin-top: 20px; line-height: 1.6; }

/* ── NAV ── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 64px;
  background: rgba(7,7,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px; font-weight: 700; color: var(--indigo-hi);
  text-decoration: none; letter-spacing: 0.02em;
}
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-muted);
  text-decoration: none; transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-cta {
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #fff;
  background: var(--indigo); padding: 8px 20px;
  text-decoration: none; transition: background 0.2s;
}
.nav-cta:hover { background: #4e38b0; }

/* ── HERO ── */
.site-hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 48px 80px; max-width: 960px; margin: 0 auto;
}
.hero-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--indigo-hi);
  margin-bottom: 28px; display: flex; align-items: center; gap: 12px;
}
.hero-label::before { content: ''; display: block; width: 32px; height: 1px; background: var(--indigo-hi); }
.site-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(40px, 6vw, 68px); font-weight: 700;
  line-height: 1.08; letter-spacing: -0.02em; color: var(--text);
  margin-bottom: 20px;
}
.hero-sub {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(16px, 2vw, 20px); font-style: italic;
  color: var(--text-muted); margin-bottom: 48px; max-width: 580px; line-height: 1.5;
}
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #fff;
  background: var(--indigo); padding: 14px 32px;
  text-decoration: none; border: none; cursor: pointer; transition: background 0.2s;
}
.btn-primary:hover { background: #4e38b0; }
.btn-ghost {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  text-decoration: none; border-bottom: 1px solid var(--border-hi);
  padding-bottom: 2px; transition: color 0.2s;
}
.btn-ghost:hover { color: var(--text); }
.hero-note { margin-top: 16px; font-size: 12px; color: var(--text-dim); }

/* ── DIVIDER ── */
.divider { width: 100%; height: 1px; background: linear-gradient(to right, transparent, var(--border-hi), transparent); }

/* ── SECTION ── */
.section { max-width: 960px; margin: 0 auto; padding: 80px 48px; }
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--indigo-hi);
  margin-bottom: 40px; display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--indigo-hi); }

/* ── THESIS CARDS ── */
.thesis-grid { display: flex; flex-direction: column; gap: 2px; }

.thesis-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px 40px;
  text-decoration: none; color: inherit;
  display: block;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.thesis-card:hover { border-color: var(--indigo); background: #0f0f20; }
.thesis-card-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.thesis-ticker {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px; font-weight: 700; color: var(--text);
  letter-spacing: -0.01em;
}
.thesis-exchange {
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted); margin-top: 4px;
}
.thesis-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--indigo-hi);
  border: 1px solid var(--border-hi); padding: 4px 10px;
  white-space: nowrap; align-self: flex-start;
}
.thesis-badge.locked { color: var(--text-dim); border-color: var(--border); }
.thesis-one-liner {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(15px, 1.8vw, 18px); font-style: italic;
  line-height: 1.5; color: var(--text-muted);
  border-left: 2px solid var(--indigo-hi); padding-left: 20px;
  margin-bottom: 24px;
}
.thesis-meta {
  display: flex; align-items: center; gap: 20px;
  font-size: 12px; color: var(--text-dim); letter-spacing: 0.04em;
}
.thesis-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); }

/* ── LOCK OVERLAY ── */
.thesis-lock {
  position: absolute; top: 36px; right: 40px;
  width: 28px; height: 28px; border: 1px solid var(--border-hi);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 12px;
}

/* ── SINGLE POST ── */
.post-wrapper { max-width: 800px; margin: 0 auto; padding: 100px 48px 80px; }

.post-cover-box {
  background: var(--indigo);
  padding: 40px 48px; margin-bottom: 0;
  border-bottom: 3px solid var(--indigo-hi);
}
.post-cover-ticker {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 48px); font-weight: 700;
  color: #fff; margin-bottom: 8px;
}
.post-cover-subtitle { font-size: 13px; color: rgba(255,255,255,0.6); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 24px; }
.post-cover-thesis {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(16px, 2vw, 20px); font-style: italic;
  color: rgba(255,255,255,0.9); line-height: 1.5;
  border-left: 2px solid rgba(255,255,255,0.4); padding-left: 20px;
}
.post-cover-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin-top: 24px;
}

.post-meta-bar {
  background: var(--surface); border: 1px solid var(--border);
  border-top: none; padding: 16px 48px;
  display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 48px;
}
.post-meta-item { text-align: center; }
.post-meta-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px; font-weight: 700; color: var(--text);
}
.post-meta-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-dim); margin-top: 2px;
}

/* ── POST CONTENT ── */
.post-content { font-size: 16px; line-height: 1.8; color: var(--text-muted); }
.post-content h1, .post-content h2, .post-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text); margin: 48px 0 20px; line-height: 1.2;
}
.post-content h1 { font-size: clamp(26px, 3vw, 36px); }
.post-content h2 { font-size: clamp(20px, 2.5vw, 28px); }
.post-content h3 { font-size: 20px; }
.post-content p { margin-bottom: 24px; }
.post-content blockquote {
  border-left: 2px solid var(--indigo-hi); padding-left: 24px;
  margin: 32px 0; font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-size: 18px; color: var(--text); line-height: 1.6;
}
.post-content strong { color: var(--text); font-weight: 600; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 24px; }
.post-content li { margin-bottom: 8px; }
.post-content table {
  width: 100%; border-collapse: collapse; margin: 32px 0;
  font-size: 14px;
}
.post-content th {
  background: var(--indigo); color: #fff;
  padding: 12px 16px; text-align: left;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.post-content td {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  color: var(--text-muted); vertical-align: top;
}
.post-content tr:hover td { background: var(--surface); }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* ── GHOST KG CARD WIDTH CLASSES (required by Ghost) ── */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: auto calc(50% - 50vw);
  transform: translate(calc(50vw - 50%), 0);
}
.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ── PAYWALL ── */
.gh-post-upgrade-cta {
  background: var(--surface); border: 1px solid var(--border-hi);
  border-top: 3px solid var(--indigo); padding: 48px;
  text-align: center; margin-top: 48px;
}
.gh-post-upgrade-cta h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px; font-weight: 700; color: var(--text); margin-bottom: 12px;
}
.gh-post-upgrade-cta p { color: var(--text-muted); margin-bottom: 28px; font-size: 15px; }
.gh-post-upgrade-cta a {
  display: inline-flex; font-size: 14px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: var(--indigo); padding: 14px 32px;
  text-decoration: none; transition: background 0.2s;
}
.gh-post-upgrade-cta a:hover { background: #4e38b0; }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border); padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px; font-weight: 700; color: var(--indigo-hi);
}
.footer-entity { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 12px; color: var(--text-dim); text-decoration: none;
  letter-spacing: 0.04em; transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-muted); }

.footer-disclaimer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 24px 48px; text-align: center;
}
.footer-disclaimer p {
  font-size: 11px; color: var(--text-dim); line-height: 1.7;
  max-width: 800px; margin: 0 auto; letter-spacing: 0.02em;
}
.footer-disclaimer a { color: var(--text-dim); text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav.site-nav { padding: 0 20px; }
  .site-hero { padding: 100px 20px 60px; }
  .section { padding: 60px 20px; }
  .post-wrapper { padding: 100px 20px 60px; }
  .thesis-card { padding: 24px; }
  .post-cover-box { padding: 28px 24px; }
  .post-meta-bar { padding: 16px 24px; gap: 20px; }
  .site-footer { padding: 32px 20px; flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-disclaimer { padding: 24px 20px; }
  .nav-right .nav-link { display: none; }
}
