@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');

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

:root {
  --bg: #ffffff;
  --bg-soft: #f4f4f5;
  --bg-card: #f1f1ef;
  --bg-tint: #ebeaf5;
  --bg-lavender: #e9e7f2;
  --ink: #0a0a0a;
  --text: #1f1f1f;
  --text-soft: #3f3f46;
  --muted: #6b6b73;
  --dim: #a1a1aa;
  --border: #e5e5e7;
  --border-soft: #ececef;
  --brand: #0d9488;
  --brand-bg: #ecfdf5;
  --accent: #6d5fd1;
  --accent-deep: #4f46e5;
  --accent-bg: #eef0fb;
  --serif: 'Instrument Serif', 'Iowan Old Style', 'Apple Garamond', 'Hoefler Text', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 40px; }

/* ── NAV (mirrors landing) ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-mark { height: 40px; width: auto; display: block; flex-shrink: 0; mix-blend-mode: multiply; filter: contrast(1.4) saturate(0.4); }
@media (max-width: 720px) { .nav-mark { height: 32px; } }
.nav-name {
  font-family: 'Space Grotesk', var(--sans);
  font-size: 21px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.02em;
  line-height: 1;
}
.nav-name .nav-name-ai { color: inherit; font-weight: inherit; }
.nav-brand-text { display: flex; flex-direction: column; }
.nav-tagline { font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; line-height: 1; margin-top: 3px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; margin-right: 28px; }
.nav-link { font-size: 13.5px; font-weight: 500; color: var(--text-soft); text-decoration: none; transition: color 0.15s; white-space: nowrap; }
.nav-link.active { color: var(--ink); }
.nav-link:hover { color: var(--ink); }
.nav-cta { background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 10px 20px; border-radius: 100px; text-decoration: none; transition: background 0.15s; white-space: nowrap; }
.nav-cta:hover { background: var(--accent); }
@media (max-width: 720px) { .nav-inner { padding: 14px 18px; } .nav-name { font-size: 18px; } .nav-tagline { font-size: 8.5px; } }
@media (max-width: 980px) { .nav-links .nav-link { display: none; } }

/* ── BLOG HEADER ── */
.blog-header {
  padding: 64px 0 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-header::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(circle, rgba(109,95,209,0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.blog-header > * { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 12px; font-weight: 500;
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.blog-header h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.025em;
  max-width: 920px;
  margin: 0 auto 18px;
}
.blog-header h1 .accent { font-style: italic; color: var(--accent); }
.blog-meta {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.blog-meta .sep { color: var(--dim); }

/* ── LISTING ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 22px;
  padding: 24px 0 80px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 28px 26px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: #fff;
}
.blog-card .tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.blog-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.18;
  margin-bottom: 14px;
}
.blog-card p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 22px;
}
.blog-card .read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-card .read-more::after { content: '\2192'; transition: transform 0.18s; }
.blog-card:hover .read-more::after { transform: translateX(3px); }

/* ── ARTICLE ── */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 40px 96px;
}
.article p {
  font-size: 18px;
  line-height: 1.78;
  color: var(--text);
  margin: 0 0 22px;
}
.article p strong { font-weight: 600; color: var(--ink); }
.article p em { font-style: italic; }
.article h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.15;
  margin: 48px 0 18px;
}
.article .lead {
  font-size: 21px;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 32px;
}
.article hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 48px 0 28px;
}
.article .closer {
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
}
.article .closer a {
  color: var(--accent);
  text-decoration: none;
  font-style: normal;
  font-weight: 600;
}
.article .closer a:hover { text-decoration: underline; }

/* ── FIGURES / VISUALS ── */
.figure {
  margin: 36px 0;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.figure svg { display: block; width: 100%; height: auto; }
.figure .caption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

/* Four-card grid used as a visual block */
.record-grid {
  margin: 36px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.record-grid .card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.record-grid .card .num {
  font-family: 'Space Grotesk', var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.record-grid .card h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.record-grid .card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 13px;
}
.footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer a { color: var(--text-soft); text-decoration: none; }
.footer a:hover { color: var(--ink); }
