:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --text: #1a1816;
  --muted: #5b5650;
  --accent: #0b7285;
  --accent-2: #fab005;
  --border: #ded8ce;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --max: 1120px;
  --gutter: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 400px at 20% -10%, #fff7df, transparent),
    linear-gradient(180deg, #f8f6f1 0%, #f4f1ea 100%);
  color: var(--text);
  font-family: "Avenir Next", "Avenir", "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.vg-wrap {
  width: min(var(--max), calc(100vw - (var(--gutter) * 2)));
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  display: block;
}

/* Hard guard against any competing width/margin rules */
body .vg-wrap,
body .site-header > .vg-wrap,
body main.vg-wrap,
body .site-footer > .vg-wrap {
  width: min(var(--max), calc(100vw - (var(--gutter) * 2))) !important;
  max-width: var(--max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(248, 246, 241, 0.85);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 750;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--text);
  background: #fff;
}

.hero {
  padding: 4.5rem 0 2rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.1;
}

.hero p {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  max-width: 60ch;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.card h2,
.card h3 { margin-top: 0; }

.vg-section {
  margin-block: 2rem 3rem;
}

.vg-section h2 {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  margin-bottom: 0.35rem;
}

.vg-section-lead {
  color: var(--muted);
  margin-top: 0;
}

.timeline {
  display: grid;
  gap: 0.9rem;
}

.timeline-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 6px solid var(--accent);
  border-radius: 12px;
  padding: 0.95rem 1rem;
}

.timeline-item h3 { margin: 0 0 0.2rem; font-size: 1.03rem; }
.timeline-item .meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 0.5rem; }

.podcast-hero {
  background: linear-gradient(130deg, #063546, #0b7285);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.podcast-hero a { color: #ffe8a3; }

.episode-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.episode-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.episode-item h3 {
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
}

.episode-item p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-footer .vg-wrap {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 640px) {
  .hero { padding-top: 2.5rem; }
  .site-footer .vg-wrap { padding: 0.8rem 0 1.2rem; }
}
