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

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-dark: #1a1a1a;
  --color-text: #2d2d2d;
  --color-muted: #6b6b6b;
  --color-accent: #c45d3e;
  --color-accent-hover: #a84d32;
  --color-border: #e5e2de;
  --color-section-dark: #f0eeeb;
  --container: 1120px;
  --container-narrow: 720px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-dark);
  line-height: 1.25;
  font-weight: 500;
}

h2 { font-size: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

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

strong { font-weight: 600; }
em { font-family: var(--font-serif); font-style: italic; }

hr.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-lg) 0;
}

img { max-width: 100%; display: block; }

/* ===== Layout ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav-links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-muted);
  margin-top: 1.5rem;
  line-height: 1.6;
}

/* ===== Canvas host (Circles of Awakening) ===== */
.hero-canvas-host,
.cta-canvas-host {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.circles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  /* Soft fade at edges so the field dissolves into the page */
  -webkit-mask-image: radial-gradient(ellipse at center, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 55%, transparent 100%);
}

.hero-content,
.cta-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.page-hero-canvas {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
  min-height: 320px;
  display: flex;
  align-items: center;
}

.page-hero-canvas .hero-content {
  width: 100%;
}

.cta-canvas-host {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

/* ===== Page Hero ===== */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
}

.page-hero h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

.page-sub {
  color: var(--color-muted);
  font-size: 1.1rem;
  margin-top: 0.75rem;
  max-width: 36rem;
}

/* ===== Intro ===== */
.intro {
  padding: 0 0 var(--space-xl);
}

.lede {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--color-dark);
  margin-bottom: 1.25rem;
}

/* ===== Dark Section ===== */
.section-dark {
  background: var(--color-section-dark);
  padding: var(--space-xl) 0;
}

/* ===== Reframe ===== */
.reframe {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  margin: var(--space-md) 0;
}

.reframe-old, .reframe-new {
  flex: 1;
  padding: 1.5rem;
  border-radius: 8px;
}

.reframe-old {
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--color-border);
}

.reframe-new {
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
}

.reframe-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.reframe-old p, .reframe-new p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.5;
}

.reframe-arrow {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ===== Pillars ===== */
.pillars {
  padding: var(--space-xl) 0;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: var(--space-md);
}

.pillar {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.pillar h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
}

.pillar p {
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ===== Latest Thinking ===== */
.latest-thinking {
  padding: var(--space-xl) 0;
  background: var(--color-section-dark);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.link-arrow {
  font-size: 0.9rem;
  font-weight: 500;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.75rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.post-card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.post-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-dark);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.post-card-excerpt {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.55;
  flex-grow: 1;
}

.post-card-date {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* ===== CTA Section ===== */
.cta-section {
  padding: var(--space-xl) 0;
  text-align: center;
}

.cta-section p {
  color: var(--color-muted);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn-full {
  display: block;
  text-align: center;
}

/* ===== About ===== */
.about-content {
  padding-bottom: var(--space-lg);
}

.about-person {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.about-text .role {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.platform-item {
  padding: 1.5rem;
  background: var(--color-section-dark);
  border-radius: 8px;
}

.platform-item h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
}

.platform-item p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.55;
}

/* ===== Connect ===== */
.connect-content {
  padding-bottom: var(--space-xl);
}

.connect-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.connect-list {
  list-style: none;
  margin: 1rem 0 var(--space-md);
}

.connect-list li {
  padding: 0.6rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.55;
}

.connect-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.connect-card {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.connect-card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
}

.connect-card p {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

/* ===== Thinking / Posts ===== */
.posts-filter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  color: var(--color-muted);
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.filter-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.filter-btn.active { background: var(--color-dark); color: #fff; border-color: var(--color-dark); }

.post-list-item {
  display: block;
  text-decoration: none;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: padding-left 0.2s;
}

.post-list-item:first-child { border-top: 1px solid var(--color-border); }
.post-list-item:hover { padding-left: 0.5rem; }

.post-list-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.post-list-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-dark);
  line-height: 1.3;
}

.post-list-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  white-space: nowrap;
}

.post-list-excerpt {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.post-list-date {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

/* ===== Post Article ===== */
.post-article {
  padding-bottom: var(--space-lg);
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.back-link {
  font-size: 0.88rem;
  color: var(--color-muted);
}

.back-link:hover { color: var(--color-accent); }

.post-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

.post-article h1 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.post-date {
  display: block;
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.post-body {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.75;
}

.post-body h2 {
  font-size: 1.5rem;
  margin-top: var(--space-md);
  margin-bottom: 0.75rem;
}

.post-body h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-body blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--color-muted);
  font-style: italic;
}

.post-body ul, .post-body ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.post-body li { margin-bottom: 0.5rem; }

.post-body .post-sources {
  margin-top: var(--space-md);
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  font-style: normal;
  color: var(--color-muted);
  line-height: 1.5;
}

.post-body .post-sources em {
  font-family: var(--font-sans);
  font-style: normal;
}

.post-footer-cta {
  padding: var(--space-md) 0 var(--space-xl);
  text-align: center;
}

.post-footer-cta p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-muted);
  font-style: italic;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-md) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-dark);
}

.footer-credit {
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: var(--space-xl) 0;
  color: var(--color-muted);
}

.empty-state p {
  font-size: 1rem;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  html { font-size: 16px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem var(--space-md);
    gap: 1rem;
  }

  .nav-toggle { display: flex; }

  .hero { padding: var(--space-xl) 0 var(--space-lg); }
  .hero h1 { font-size: 1.65rem; }

  .reframe { flex-direction: column; }
  .reframe-arrow {
    transform: rotate(90deg);
    justify-content: center;
    margin: -0.5rem 0;
  }

  .pillar-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .connect-grid { grid-template-columns: 1fr; }

  .page-hero h1 { font-size: 2rem; }
  .post-article h1 { font-size: 1.75rem; }

  .section-header { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 480px) {
  .posts-filter { flex-wrap: wrap; }
}
