/* Vatayan Labs — shared site shell styles */
@import url("/assets/nav.css");

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

:root {
  --navy: #0f172a;
  --navy-mid: #1e3a5f;
  --blue: #1d4ed8;
  --blue-light: #3b82f6;
  --teal: #0891b2;
  --green: #059669;
  --amber: #d97706;
  --red: #dc2626;
  --bg: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-mid: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

/* Site nav (fixed left sidebar) lives in /assets/nav.css — imported above. */

/* ── PAGE LAYOUT ── */
.page { max-width: 1100px; margin: 0 auto; padding: 40px 24px 64px; }

/* ── HERO ── */
.hero { padding: 56px 0 40px; }
.hero h1 { font-size: 38px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.15; max-width: 720px; }
.hero h1 .accent { background: linear-gradient(135deg, #1d4ed8, #0891b2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 17px; color: var(--text-mid); max-width: 640px; margin-top: 16px; }
.hero-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none; transition: all .15s ease;
}
.btn-primary { background: var(--blue); color: white; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: #1e40af; }
.btn-secondary { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--blue-light); color: var(--blue); }

/* ── SECTION HEADINGS ── */
.section { margin-top: 48px; }
.section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--blue); margin-bottom: 6px;
}
.section h2 { font-size: 24px; font-weight: 700; letter-spacing: -.5px; margin-bottom: 8px; }
.section > p { color: var(--text-muted); max-width: 640px; margin-bottom: 20px; }

/* ── CARD GRID ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px; box-shadow: var(--shadow); transition: all .15s ease;
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text);
}
a.card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-light); transform: translateY(-2px); }
.card-kicker { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--teal); }
.card h3 { font-size: 16px; font-weight: 700; letter-spacing: -.3px; line-height: 1.35; }
.card p { font-size: 13px; color: var(--text-muted); flex-grow: 1; }
.card-meta { font-size: 11px; color: var(--text-faint); font-weight: 500; }
.card.muted { opacity: .65; }
.badge-soon {
  display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 10px; font-weight: 600;
  background: #fef3c7; color: #92400e; margin-left: 6px; vertical-align: middle;
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border); background: var(--card);
  margin-top: 64px; padding: 32px 24px;
}
.site-footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-brand { font-size: 15px; font-weight: 700; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--blue); }
.footer-disclaimer { font-size: 11.5px; color: var(--text-faint); margin-top: 20px; max-width: 820px; line-height: 1.55; }

/* ── PROSE (about etc.) ── */
.prose { max-width: 720px; }
.prose h1 { font-size: 30px; font-weight: 800; letter-spacing: -.8px; margin-bottom: 16px; }
.prose h2 { font-size: 20px; font-weight: 700; letter-spacing: -.4px; margin: 28px 0 10px; }
.prose p { color: var(--text-mid); margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 22px; color: var(--text-mid); }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--blue); }
.prose a.btn-primary { color: #fff; }
.prose a.btn-secondary { color: var(--text); }
.author-flex { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.author-flex > div { flex: 1 1 320px; }
.author-photo { width: 180px; height: 180px; object-fit: cover; object-position: top; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-md); }

@media (max-width: 640px) {
  .hero h1 { font-size: 28px; }
  .hero { padding: 36px 0 24px; }
}

/* ── ARTICLES ── */
.breadcrumbs { font-size: 12px; color: var(--text-muted); margin: 20px 0 4px; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); }
.article-head { max-width: 720px; padding-top: 12px; }
.article-kicker { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.article-head h1 { font-size: 32px; font-weight: 800; letter-spacing: -.8px; line-height: 1.2; }
.article-subtitle { font-size: 17px; color: var(--text-mid); margin-top: 10px; }
.article-meta { font-size: 12.5px; color: var(--text-faint); margin-top: 12px; }
.read-toggle { display: inline-flex; margin: 20px 0 8px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--card); }
.read-toggle .toggle-btn { padding: 9px 16px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--text-muted); }
.read-toggle .toggle-btn.active { background: var(--blue); color: #fff; }
.read-toggle a.toggle-btn:hover { color: var(--blue); }
.article-body { max-width: 720px; font-size: 16px; color: var(--text-mid); }
.article-body h1, .article-body h2 { font-size: 24px; font-weight: 700; letter-spacing: -.4px; color: var(--text); margin: 32px 0 12px; }
.article-body h3 { font-size: 19px; font-weight: 700; color: var(--text); margin: 26px 0 10px; }
.article-body h4 { font-size: 16px; font-weight: 700; color: var(--text); margin: 22px 0 8px; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px 24px; }
.article-body li { margin-bottom: 6px; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; }
.article-body figure { margin: 20px 0; }
.article-body figcaption { font-size: 12.5px; color: var(--text-faint); text-align: center; margin-top: 6px; }
.article-body blockquote { border-left: 3px solid var(--blue-light); padding: 4px 18px; margin: 20px 0; background: var(--card); border-radius: 0 10px 10px 0; }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.article-body table { border-collapse: collapse; margin: 20px 0; font-size: 14px; display: block; overflow-x: auto; max-width: 100%; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.article-body th { background: var(--card); font-weight: 600; }
.article-body a { color: var(--blue); }
.series-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 720px; margin-top: 36px; }
.article-footnote { max-width: 720px; margin-top: 32px; padding: 16px 20px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; font-size: 13px; color: var(--text-muted); }
.article-footnote a { color: var(--blue); }

/* ── FOOTER v2 ── */
.subscribe-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.subscribe-text { font-size: 13px; color: var(--text-muted); margin-top: 4px; max-width: 420px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin-top: 28px; }
.footer-grid h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-faint); margin-bottom: 10px; }
.footer-grid a { display: block; color: var(--text-muted); font-size: 13px; padding: 3px 0; text-decoration: none; }
.footer-grid a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-faint); }
