/* ============================================================
   FONTS — self-hosted (was Google Fonts)
   ============================================================ */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/co3ZmX5slCNuHLi8bLeY9MK7whWMhyjYrEtGmSqn7B6DxjY.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/co3ZmX5slCNuHLi8bLeY9MK7whWMhyjYrEtImSqn7B6D.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/co3ZmX5slCNuHLi8bLeY9MK7whWMhyjYrEtGmSqn7B6DxjY.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/co3ZmX5slCNuHLi8bLeY9MK7whWMhyjYrEtImSqn7B6D.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYp3tKky2F7i6C.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYqXtKky2F7g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYp3tKky2F7i6C.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYqXtKky2F7g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYp3tKky2F7i6C.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYqXtKky2F7g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/gyByhwUxId8gMEwSGFWNOITddY4.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/gyByhwUxId8gMEwcGFWNOITd.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/gyByhwUxId8gMEwSGFWNOITddY4.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/gyByhwUxId8gMEwcGFWNOITd.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/gyByhwUxId8gMEwSGFWNOITddY4.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/gyByhwUxId8gMEwcGFWNOITd.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/or3yQ6H-1_WfwkMZI_qYPLs1a-t7PU0AbeE9KK5a5Cl4PuCTfNjENg.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/or3yQ6H-1_WfwkMZI_qYPLs1a-t7PU0AbeE9KK5U5Cl4PuCTfNg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/cY9XfjOCX1hbuyalUrK439vogqCz_goCYw7oRd6JFYgzbARA_n8IsQ.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/cY9XfjOCX1hbuyalUrK439vogqCz_goCYw7oRd6JFYYzbARA_n8.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/cY9AfjOCX1hbuyalUrK439DyjIJFJpeBZQ.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/cY9AfjOCX1hbuyalUrK4397yjIJFJpc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/cY9AfjOCX1hbuyalUrK439DyjIJFJpeBZQ.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/cY9AfjOCX1hbuyalUrK4397yjIJFJpc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ============================================================
   THEME VARIABLES
   ============================================================ */
:root {
  --accent:     oklch(69% 0.22 264);
  --serif:      'Cormorant Garamond', Georgia, serif;
  --serif-body: 'Newsreader', 'Source Serif 4', ui-serif, Georgia, serif;
  --sans:       'Geist', sans-serif;
  --mono:       'Geist Mono', monospace;
  --max-w:      1320px;
  --gutter:     max(48px, calc((100vw - var(--max-w)) / 2));
}

[data-theme="dark"] {
  color-scheme: dark;
  --accent:   oklch(69% 0.22 264);
  --bg:       oklch(9% 0.038 263);
  --bg2:      oklch(12% 0.032 263);
  --fg:       oklch(91% 0.008 55);
  --fg-dim:   oklch(72% 0.01 55);
  --fg-mute:  oklch(50% 0.008 55);
  --fg-faint: oklch(19% 0.028 263);
  --border:   oklch(16% 0.032 263);
  --code-fg:  #999999;
}

[data-theme="light"] {
  color-scheme: light;
  --accent:   #3040e0;
  --bg:       oklch(98% 0.008 270);
  --bg2:      oklch(95% 0.014 270);
  --fg:       #1a1814;
  --fg-dim:   #525048;
  --fg-mute:  #8a857b;
  --fg-faint: oklch(88% 0.012 270);
  --border:   oklch(87% 0.016 270);
  --code-fg:  #555555;
}

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

html { scroll-behavior: smooth; }

body {
  background:  var(--bg);
  color:       var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  min-height:  100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; }

/* ============================================================
   NAV
   ============================================================ */
nav {
  padding:        24px var(--gutter);
  display:        flex;
  align-items:    center;
  justify-content: space-between;
  border-bottom:  1px solid var(--border);
  position:       sticky;
  top:            0;
  background:     var(--bg);
  backdrop-filter: blur(10px);
  z-index:        100;
}

.logo {
  font-family:     var(--serif);
  font-size:       1.4rem;
  font-weight:     400;
  color:           var(--fg);
  text-decoration: none;
  letter-spacing:  0.02em;
}
.logo span { color: var(--accent); }
.logo-img { display: block; max-height: 40px; width: auto; }

.nav-right {
  display:     flex;
  align-items: center;
  gap:         32px;
}

/* nav links come from nav.md → rendered as <ul><li><a> */
.nav-links ul {
  display:     flex;
  gap:         32px;
  list-style:  none;
}

.nav-links ul li a {
  color:           var(--fg-dim);
  text-decoration: none;
  font-size:       0.78rem;
  font-weight:     400;
  letter-spacing:  0.1em;
  text-transform:  uppercase;
  transition:      color 0.2s;
}
.nav-links ul li a:hover { color: var(--fg); }

/* remove <p> wrap that marked adds to single-line nav */
.nav-links p { display: contents; }

.hamburger {
  display:         none;
  flex-direction:  column;
  gap:             5px;
  width:           22px;
  background:      none;
  border:          none;
  cursor:          pointer;
  padding:         0;
  flex-shrink:     0;
}
.hamburger span {
  display:          block;
  width:            100%;
  height:           2px;
  background:       var(--fg);
  border-radius:    1px;
  transition:       transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}
#site-nav.menu-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#site-nav.menu-open .hamburger span:nth-child(2) { opacity: 0; }
#site-nav.menu-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.theme-toggle {
  width:        34px;
  height:       34px;
  border-radius: 50%;
  background:   var(--bg2);
  border:       1px solid var(--border);
  cursor:       pointer;
  display:      flex;
  align-items:  center;
  justify-content: center;
  font-size:    0.85rem;
  transition:   border-color 0.2s;
  flex-shrink:  0;
}
.theme-toggle:hover { border-color: var(--accent); }

/* ============================================================
   HOMEPAGE — HERO
   ============================================================ */
.home-hero {
  padding:       88px var(--gutter) 80px;
  border-bottom: 1px solid var(--border);
  display:       grid;
  grid-template-columns: 1fr 1fr;
  gap:           48px;
  align-items:   end;
}

.hero-title {
  font-family:    var(--serif);
  font-size:      clamp(4.25rem, 9vw, 9.25rem);
  font-weight:    300;
  color:          var(--fg);
  line-height:    0.95;
  letter-spacing: -0.01em;
}
.hero-title em { color: var(--accent); font-style: italic; }

.hero-sub {
  font-family:   var(--serif-body);
  color:         var(--fg-dim);
  font-size:     1.125rem;
  line-height:   1.55;
  max-width:     460px;
  margin-bottom: 40px;
  font-weight:   400;
}

.hero-stats  { display: flex; gap: 40px; }

.stat-num {
  font-family:   var(--serif);
  font-size:     2rem;
  font-weight:   300;
  color:         var(--fg);
  display:       block;
  line-height:   1;
  margin-bottom: 5px;
}

.stat-label {
  font-size:      0.72rem;
  color:          var(--fg-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================================
   HOMEPAGE — POST LIST
   ============================================================ */
.posts-section { padding: 0 var(--gutter) 60px; }

.filter-row {
  display:        flex;
  gap:            4px;
  padding-top:    28px;
  margin-bottom:  40px;
  flex-wrap:      wrap;
}

.filter-pill {
  font-family:    var(--sans);
  font-size:      0.78rem;
  color:          var(--fg-dim);
  border:         1px solid var(--border);
  padding:        6px 16px;
  cursor:         pointer;
  background:     transparent;
  transition:     all 0.2s;
  font-weight:    400;
  letter-spacing: 0.06em;
}
.filter-pill:hover { color: var(--fg); border-color: var(--fg-dim); }
.filter-pill.active {
  color:       var(--bg);
  background:  var(--fg);
  border-color: var(--fg);
}

.post-row {
  display:     grid;
  grid-template-columns: 44px 1fr auto;
  gap:         32px;
  align-items: start;
  padding:     30px 0;
  border-bottom: 1px solid var(--border);
  cursor:      pointer;
}
.post-row:first-of-type { border-top: 1px solid var(--border); }
.post-row:hover .post-row-title { color: var(--accent); }

.row-num {
  font-family:    var(--mono);
  font-size:      0.78rem;
  color:          var(--fg-mute);
  padding-top:    6px;
  text-align:     right;
  letter-spacing: 0.04em;
}

.post-row-title {
  font-family:    var(--serif);
  font-size:      1.55rem;
  font-weight:    400;
  color:          var(--fg);
  letter-spacing: -0.01em;
  margin-bottom:  8px;
  line-height:    1.2;
  transition:     color 0.18s;
}

.post-row-excerpt {
  font-family: var(--serif-body);
  font-size:   1.0625rem;
  color:       var(--fg-dim);
  line-height: 1.5;
  max-width:   560px;
  font-weight: 400;
}

.post-row-meta {
  display:        flex;
  flex-direction: column;
  align-items:    flex-end;
  gap:            8px;
  padding-top:    6px;
}

.post-row-date {
  font-family: var(--mono);
  font-size:   0.74rem;
  color:       var(--fg-dim);
  white-space: nowrap;
}

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

/* ── Recent-posts block ──────────────────────────────────── */
.block--recent-posts .posts-section { padding-bottom: 0; }
.recent-posts-footer { padding: 28px var(--gutter) 0; }
.recent-posts-all {
  font-family:    var(--sans);
  font-size:      0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          var(--fg-dim);
  text-decoration: none;
  transition:     color 0.18s;
}
.recent-posts-all:hover { color: var(--accent); }

/* ============================================================
   POST PAGE
   ============================================================ */
.post-page {
  max-width: 720px;
  margin:    0 auto;
  padding:   64px 48px 80px;
}

.back-btn {
  display:         inline-flex;
  align-items:     center;
  gap:             8px;
  font-size:       0.7rem;
  color:           var(--fg-dim);
  letter-spacing:  0.1em;
  text-transform:  uppercase;
  text-decoration: none;
  margin-bottom:   60px;
  transition:      color 0.2s;
  font-family:     var(--sans);
}
.back-btn:hover { color: var(--fg); }

.post-kicker {
  font-family:    var(--mono);
  font-size:      0.68rem;
  color:          var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom:  18px;
}

.post-h1 {
  font-family:    var(--serif);
  font-size:      clamp(2.4rem, 5vw, 3.8rem);
  font-weight:    300;
  color:          var(--fg);
  line-height:    1.1;
  letter-spacing: -0.01em;
  margin-bottom:  36px;
}

.post-byline {
  display:       flex;
  align-items:   center;
  gap:           16px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 52px;
}

.byline-date {
  font-family: var(--mono);
  font-size:   0.72rem;
  color:       var(--fg-dim);
}

.byline-dot {
  width:         3px;
  height:        3px;
  background:    var(--fg-faint);
  border-radius: 50%;
}

.byline-read {
  font-size:   0.78rem;
  color:       var(--fg-dim);
  font-weight: 400;
}

/* ============================================================
   POST COVER IMAGE
   ============================================================ */
.post-cover {
  margin-top: 0;
  margin-bottom: 48px;
}
.post-byline:has(+ .post-cover) {
  margin-bottom: 24px;
}
.post-cover-img {
  display: block;
  width: 100%;
}

/* ============================================================
   POST BODY CONTENT
   ============================================================ */
.post-body {
  font-family: var(--serif-body);
  font-size:   1.1875rem;
  line-height: 1.6;
  color:       var(--fg-dim);
  font-weight: 400;
}

.post-body p  { margin-bottom: 24px; }

.post-body h2 {
  font-family:    var(--serif);
  font-size:      1.9rem;
  font-weight:    400;
  color:          var(--fg);
  margin:         52px 0 20px;
  letter-spacing: -0.01em;
  line-height:    1.15;
}

.post-body h3 {
  font-family:    var(--serif);
  font-size:      1.35rem;
  font-weight:    400;
  color:          var(--fg);
  margin:         36px 0 14px;
  letter-spacing: -0.01em;
}

.post-body strong { color: var(--fg); font-weight: 500; }

.post-body a {
  color:           var(--accent);
  text-decoration: none;
  border-bottom:   1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  transition:      border-color 0.2s;
}
.post-body a:hover { border-bottom-color: var(--accent); }

.post-body ul,
.post-body ol {
  padding-left: 24px;
  margin-bottom: 28px;
  color: var(--fg-dim);
}
.post-body li { margin-bottom: 8px; line-height: 1.6; }

.post-body code {
  font-family: var(--mono);
  font-size:   0.83em;
  background:  var(--bg2);
  border:      1px solid var(--border);
  padding:     2px 7px;
  color:       var(--accent);
}

.post-body pre {
  background:    var(--bg2);
  border:        1px solid var(--border);
  padding:       24px 28px;
  overflow-x:    auto;
  margin:        32px 0;
  font-size:     0.82rem;
  line-height:   1.7;
  color:         var(--code-fg);
  font-family:   var(--mono);
}

/* reset inline code inside pre */
.post-body pre code {
  background: transparent;
  border:     none;
  padding:    0;
  color:      inherit;
  font-size:  inherit;
}

.post-body blockquote {
  position:     relative;
  margin:       48px 0;
  padding:      4px 0 4px clamp(52px, 7vw, 72px);
  color:        var(--fg);
  font-family:  var(--serif);
  font-size:    1.35rem;
  font-style:   italic;
  font-weight:  400;
  line-height:  1.5;
}
.post-body blockquote::before {
  content:     "\201C";
  position:    absolute;
  left:        0;
  top:         -0.15em;
  font-family: var(--serif);
  font-style:  normal;
  font-size:   clamp(5.5rem, 8vw, 8rem);
  line-height: 1;
  color:       var(--accent);
  pointer-events: none;
}

.post-body img {
  width:         100%;
  margin:        36px 0;
  border:        1px solid var(--border);
}

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

/* ============================================================
   POST FOOTER — PREV / NEXT
   ============================================================ */
.post-footer {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
}

.nav-post-btn {
  font-size:       0.7rem;
  color:           var(--fg-dim);
  text-transform:  uppercase;
  letter-spacing:  0.1em;
  text-decoration: none;
  font-family:     var(--sans);
  transition:      color 0.2s;
}
.nav-post-btn:hover { color: var(--fg); }

/* ============================================================
   RELATED POSTS
   ============================================================ */
.related-posts {
  margin:        48px 0 0;
  padding:       32px 0 0;
  border-top:    1px solid var(--border);
}

.related-label {
  font-family:    var(--mono);
  font-size:      0.65rem;
  color:          var(--fg-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom:  16px;
}

.related-link {
  display:         block;
  font-family:     var(--serif);
  font-size:       1.15rem;
  color:           var(--fg);
  text-decoration: none;
  padding:         10px 0;
  border-bottom:   1px solid var(--border);
  transition:      color 0.2s;
}
.related-link:hover { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding:    40px var(--gutter);
}

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

.footer-left {
  display:     flex;
  align-items: center;
  gap:         24px;
  flex-wrap:   wrap;
}

/* footer p = copyright line */
.footer-inner p {
  font-size:   0.75rem;
  color:       var(--fg-dim);
  font-weight: 400;
}

/* footer ul = links */
.footer-inner ul {
  display:    flex;
  gap:        24px;
  list-style: none;
}

.footer-inner ul li a {
  font-size:       0.72rem;
  color:           var(--fg-dim);
  text-decoration: none;
  letter-spacing:  0.08em;
  text-transform:  uppercase;
  transition:      color 0.2s;
}
.footer-inner ul li a:hover { color: var(--fg); }

.social-links {
  display:     flex;
  gap:         18px;
  flex-wrap:   wrap;
  align-items: center;
}
.social-link {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  color:           var(--fg-dim);
  text-decoration: none;
  line-height:     1;
  transition:      color 0.2s, opacity 0.2s;
  opacity:         0.7;
}
.social-link:hover { color: var(--fg); opacity: 1; }
.social-link svg   { display: block; }

/* ============================================================
   SEARCH
   ============================================================ */
.search-btn {
  background:      transparent;
  border:          none;
  color:           var(--fg-dim);
  cursor:          pointer;
  font-family:     var(--sans);
  font-size:       0.78rem;
  font-weight:     400;
  letter-spacing:  0.1em;
  text-transform:  uppercase;
  padding:         0;
  transition:      color 0.2s;
}
.search-btn:hover { color: var(--fg); }

.search-overlay {
  position:        fixed;
  top:             0;
  left:            0;
  width:           100%;
  height:          100%;
  background:      rgba(255, 255, 255, 0.25);
  z-index:         500;
  display:         none;
  align-items:     flex-end;
  justify-content: center;
  padding-bottom:  12vh;
}
.search-overlay.open { display: flex; }

.search-modal {
  width:         min(700px, calc(100% - 48px));
  background:    oklch(19% 0.008 55);
  border:        1px solid rgba(255, 255, 255, 0.13);
  border-top:    2px solid var(--accent);
  border-radius: 50px;
  overflow:      hidden;
  box-shadow:    0 24px 80px rgba(0, 0, 0, 0.95),
                 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.search-input-wrap {
  display:       flex;
  align-items:   center;
  gap:           14px;
  padding:       0 24px;
  border-bottom: 1px solid var(--border);
}

.search-input-wrap svg {
  width:          20px;
  height:         20px;
  stroke:         var(--fg);
  fill:           none;
  stroke-width:   2;
  stroke-linecap: round;
  flex-shrink:    0;
}

.search-input {
  flex:        1;
  background:  transparent;
  border:      none;
  color:       var(--fg);
  font-family: var(--sans);
  font-size:   1.2rem;
  padding:     24px 0;
  outline:     none;
}
.search-input::placeholder { color: var(--fg-dim); }

.search-results { max-height: 460px; overflow-y: auto; }

.search-result {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  padding:         16px 24px;
  border-bottom:   1px solid var(--border);
  text-decoration: none;
  gap:             24px;
  transition:      background 0.1s;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover,
.search-result.active { background: var(--bg2); }

.sr-title {
  font-family: var(--serif);
  font-size:   1.2rem;
  color:       var(--fg);
  line-height: 1.3;
}

.sr-meta {
  font-family:    var(--mono);
  font-size:      0.68rem;
  color:          var(--fg-mute);
  white-space:    nowrap;
  flex-shrink:    0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-empty {
  padding:     32px 24px;
  font-size:   0.875rem;
  color:       var(--fg-mute);
  text-align:  center;
  font-family: var(--sans);
}

[data-theme="light"] .search-overlay {
  background: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .search-modal {
  background:    oklch(98% 0.005 75);
  border:        1px solid rgba(0, 0, 0, 0.1);
  border-top:    2px solid var(--accent);
  border-radius: 50px;
  box-shadow:    0 24px 80px rgba(0, 0, 0, 0.2),
                 0 0 0 1px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .search-input-wrap {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .search-result {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* ============================================================
   PAGE BLOCKS
   ============================================================ */
.page-content {}

.block {
  padding: 80px var(--gutter);
}

/* Hero */
.block--hero {
  background-color: var(--bg2);
  background-size: cover;
  background-position: center;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 100px var(--gutter);
}
.block-hero-inner { max-width: 800px; }
.block-hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 300;
  color: var(--fg);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.block-hero-headline em,
.hero-title em { color: var(--accent); font-style: italic; }
.block-hero-sub {
  font-family: var(--serif-body);
  font-size: 1.25rem;
  color: var(--fg-dim);
  line-height: 1.55;
  margin-bottom: 40px;
  max-width: 560px;
}
.block-cta {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--fg);
  color: var(--fg);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--sans);
  transition: background 0.2s, color 0.2s;
}
.block-cta:hover { background: var(--fg); color: var(--bg); }
.block-cta--accent { border-color: var(--accent); background: var(--accent); color: #fff; }
.block-cta--accent:hover { background: transparent; color: var(--accent); }
[data-theme="light"] .block-cta--accent { background: var(--fg); border-color: var(--fg); color: var(--bg); }
[data-theme="light"] .block-cta--accent:hover { background: transparent; border-color: var(--fg); color: var(--fg); }

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.block-inner--center { text-align: center; }

/* Hero — side media variant */
.block--hero-media {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
  min-height: 480px;
  padding: 80px var(--gutter);
  background-color: var(--bg2);
  background-size: cover;
  background-position: center;
}
.block--hero-media .block-hero-content {
  flex: 1;
  min-width: 0;
}
.block-hero-media-img {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.block-hero-media-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.block--hero-media--left { flex-direction: row-reverse; }

/* Full width */
.block--full-width .block-inner {
  max-width: 760px;
  margin: 0 auto;
}
.block--full-width .block-inner--wide {
  max-width: var(--max-w);
  margin: 0 auto;
}
.block--full-width .block-inner h1,
.block--full-width .block-inner h2,
.block--full-width .block-inner h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 20px;
}
.block--full-width .block-inner h2 { font-size: 2rem; margin-top: 48px; }
.block--full-width .block-inner h3 { font-size: 1.5rem; margin-top: 36px; }
.block--full-width .block-inner p {
  font-family: var(--serif-body);
  font-size: 1.125rem;
  color: var(--fg-dim);
  line-height: 1.65;
  margin-bottom: 20px;
}
.block--full-width .block-inner ul,
.block--full-width .block-inner ol {
  font-family: var(--serif-body);
  font-size: 1.0625rem;
  color: var(--fg-dim);
  padding-left: 24px;
  margin-bottom: 20px;
  line-height: 1.65;
}
.block--full-width .block-inner strong { color: var(--fg); }

/* Columns 2 */
.block--columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.block--columns-2.block--flipped { direction: rtl; }
.block--columns-2.block--flipped .block-col { direction: ltr; }
.block-col img { width: 100%; border: 1px solid var(--border); }
.block-col h2,
.block-col h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.block-col h2 { font-size: 2rem; }
.block-col h3 { font-size: 1.5rem; }
.block-col p {
  font-family: var(--serif-body);
  font-size: 1.0625rem;
  color: var(--fg-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Section header (columns-2, columns-3) */
.block-section-header {
  max-width: var(--max-w);
  margin: 0 auto 52px;
}
.block-section-header--center { text-align: center; }
.block-section-header--right  { text-align: right; }
.block-section-label {
  display: block;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.block-section-heading {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 300;
  color: var(--fg);
  margin: 0 0 12px;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.block-section-subheading {
  font-family: var(--serif-body);
  font-size: 1.1rem;
  color: var(--fg-dim);
  margin: 0;
  line-height: 1.55;
}

/* Columns 3 */
.block-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.block-card {
  border: 1px solid var(--border);
  background: var(--bg2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.block-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  flex-shrink: 0;
}
.block-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.block-card-img-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 24px 22px;
  background: linear-gradient(
    to top,
    oklch(8% 0.02 260) 0%,
    oklch(8% 0.02 260) 19%,
    oklch(20% 0.12 260) 45%,
    transparent 75%
  );
  color: oklch(97% 0.005 75);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.2;
  text-shadow: 0 1px 8px oklch(4% 0.06 260 / 0.95), 0 0 28px oklch(4% 0.06 260 / 0.7);
}
.block-card-title-plain {
  padding: 24px 24px 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}
.block-card-body {
  padding: 24px;
  flex: 1;
}
.block-card-cta-wrap {
  padding: 0 24px 24px;
}
.block-card-cta-wrap .block-cta {
  display: block;
  text-align: center;
}
.block-cards--center .block-card { text-align: center; }
.block-card p { margin: 0; }
.block-card strong {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  display: inline;
}
.block-card p {
  font-family: var(--serif-body);
  font-size: 1rem;
  color: var(--fg-dim);
  line-height: 1.55;
}

/* Image + text */
.block--image-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.block--img-right { direction: rtl; }
.block--img-right .block-img-wrap,
.block--img-right .block-text { direction: ltr; }
.block-img-wrap img { width: 100%; border: 1px solid var(--border); }
.block-text h2,
.block-text h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.block-text h2 { font-size: 2rem; }
.block-text h3 { font-size: 1.5rem; }
.block-text p {
  font-family: var(--serif-body);
  font-size: 1.125rem;
  color: var(--fg-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}
.block-text strong { color: var(--fg); }

/* Quote */
.block--quote {
  background: oklch(21% 0.06 260);
  padding: 90px var(--gutter);
  overflow: hidden;
  --accent: oklch(69% 0.22 264);
}
[data-theme="light"] .block--quote { background: oklch(21% 0.06 260); }
.block-quote-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: clamp(80px, 12vw, 140px);
}
.block-quote-inner::after {
  content: '';
  position: absolute;
  left: calc(clamp(80px, 12vw, 140px) * 0.55);
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--accent) 70%, transparent 100%);
  pointer-events: none;
}
.block-quote-mark {
  position: absolute;
  left: 0;
  top: -0.05em;
  font-family: var(--serif);
  font-size: clamp(8rem, 13vw, 14rem);
  line-height: 1;
  color: var(--accent);
  user-select: none;
  pointer-events: none;
}
.block-quote-body { }
.block-quote-text {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  color: oklch(93% 0.015 260);
  line-height: 1.42;
  letter-spacing: -0.01em;
  border: none;
  padding: 0;
  margin: 0;
}
.block-quote-attr {
  display: block;
  margin-top: 28px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  font-style: normal;
  color: oklch(82% 0.025 260);
  letter-spacing: 0.03em;
  text-transform: none;
}
.block-quote-attr::before {
  content: "\00B7\0020";
  color: var(--accent);
  letter-spacing: 0;
}

/* Divider */
.block--divider { padding: 0; }
.block--divider hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ============================================================
   DISCUSS (LinkedIn CTA — post pages only)
   ============================================================ */
.discuss {
  margin-top: 96px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.discuss-prompt {
  color: var(--white-dim);
  font-size: 0.95rem;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
.discuss-btn {
  display: inline-block;
  padding: 14px 28px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.discuss-btn:hover {
  background: var(--accent);
  color: #fff;
}
.discuss-hint {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--white-dim);
  font-style: italic;
}
.discuss-hint strong {
  color: var(--white);
  font-style: normal;
  font-weight: 400;
}
.related-posts + .discuss {
  border-top: none;
  margin-top: 48px;
}
[data-theme="light"] .discuss-btn {
  background: var(--accent);
  color: #fff;
}
[data-theme="light"] .discuss-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  nav              { padding: 20px 24px; position: relative; }
  .hamburger       { display: flex; }
  .nav-links {
    display:     none;
    position:    absolute;
    top:         100%;
    left:        0;
    right:       0;
    background:  var(--bg);
    border-bottom: 1px solid var(--border);
    padding:     20px 24px 24px;
  }
  #site-nav.menu-open .nav-links { display: block; }
  .nav-links ul { flex-direction: column; gap: 20px; }
  .home-hero       { padding: 56px 24px 48px; grid-template-columns: 1fr; }
  .posts-section   { padding: 0 24px 40px; }
  .post-page       { padding: 48px 24px 60px; }
  footer           { padding: 32px 24px; }
  .post-row        { grid-template-columns: 32px 1fr; }
  .post-row-meta   { display: none; }
  .footer-inner    { flex-direction: column; align-items: flex-start; }
  .search-overlay  { padding: 0 0 8vh; }
  .search-modal    { width: calc(100% - 32px); }

  /* Block responsive */
  .block                 { padding: 48px 24px; }
  .block--hero           { min-height: 360px; padding: 60px 24px; }
  .block--hero-media     { flex-direction: column; min-height: auto; gap: 32px; padding: 60px 24px; }
  .block--hero-mobile-img-before .block-hero-media-img { order: -1; }
  .block--columns-2,
  .block--image-text     { grid-template-columns: 1fr; gap: 32px; }
  .block--columns-2.block--flipped,
  .block--img-right      { direction: ltr; }
  .block-cards           { grid-template-columns: 1fr; gap: 16px; }
}

/* ── Stats block ────────────────────────────────────────────── */
.block--stats { padding: 56px var(--gutter); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(var(--stat-cols, 3), 1fr);
  gap: 40px 32px;
}
.stat-card { text-align: center; }
.stat-value {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.stat-label {
  margin-top: 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  font-weight: 500;
}
.stat-desc {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--fg-dim);
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 28px 20px; }
}

/* ── Chart block ────────────────────────────────────────────── */
.block--chart { padding: 56px var(--gutter); }
.chart-title {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg);
  margin-bottom: 32px;
  text-align: center;
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(var(--chart-cols, 4), 1fr);
  gap: 0 12px;
  align-items: end;
  height: 220px;
}
.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}
.chart-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
}
.chart-bar {
  width: 100%;
  border-radius: 3px 3px 0 0;
  transition: height 0.75s cubic-bezier(.25,.46,.45,.94);
  min-height: 2px;
}
.chart-val {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fg);
}
.chart-label {
  font-size: 0.65rem;
  text-align: center;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  padding-bottom: 2px;
}
@media (max-width: 600px) {
  .chart-grid { grid-template-columns: repeat(3, 1fr) !important; height: 160px; }
}

/* ── +Text two-column layout ─────────────────────────────── */
.block--stats-text,
.block--chart-text,
.block--progress-ring-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
  align-items: center;
  padding: 56px var(--gutter);
}
.block--text-left .bt-text { order: -1; }
.block--text-left .bt-chart { order: 1; }
.bt-text { align-self: start; }
.bt-text h1,.bt-text h2,.bt-text h3 { margin-top: 0; }
@media (max-width: 768px) {
  .block--stats-text,
  .block--chart-text,
  .block--progress-ring-text {
    grid-template-columns: 1fr;
    gap: 40px 0;
  }
  .block--text-left .bt-text,
  .block--text-left .bt-chart { order: unset; }
}

/* ── Progress ring ───────────────────────────────────────── */
.block--progress-ring { padding: 56px var(--gutter); }
.ring-grid {
  display: grid;
  grid-template-columns: repeat(var(--ring-cols, 3), 1fr);
  gap: 40px 32px;
  justify-items: center;
}
.ring-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 180px;
}
.ring-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}
.ring-svg {
  width: 100%;
  height: 100%;
}
.ring-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 9;
}
.ring-fill {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(.25,.46,.45,.94);
}
.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.ring-pct {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.ring-frac {
  font-size: 0.65rem;
  color: var(--fg-dim);
}
.ring-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  text-align: center;
}
@media (max-width: 600px) {
  .ring-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ============================================================
   PODCAST PAGE
   ============================================================ */

.podcast-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.podcast-embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 56px 24px;
  border: 1px dashed var(--border);
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}

.podcast-embed-hint {
  color: var(--fg-dim);
  font-size: 0.74rem;
  text-transform: none;
  letter-spacing: 0.04em;
}

/* Notify section */
.podcast-notify {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px var(--gutter);
}

.podcast-notify-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.podcast-notify-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 300;
  color: var(--fg);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.podcast-notify-body {
  font-family: var(--serif-body);
  font-size: 1.05rem;
  color: var(--fg-dim);
  line-height: 1.6;
  margin: 0;
  max-width: 52ch;
}

.podcast-notify-form {
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
  min-width: 0;
}

/* BlockSurvey iframe — force full column width; JS sets height via postMessage */
.podcast-notify-form iframe {
  width: 100%;
  display: block;
  border: none;
}

/* Premium section */
.podcast-premium {
  padding: 80px var(--gutter);
  border-top: 1px solid var(--border);
}

.podcast-premium-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 80px;
  align-items: start;
}

.podcast-premium-heading {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 300;
  color: var(--fg);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 36px;
}

.podcast-premium-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.podcast-premium-features li {
  font-family: var(--serif-body);
  font-size: 1.05rem;
  color: var(--fg-dim);
  line-height: 1.5;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.podcast-premium-features li::before {
  content: "·";
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 0.85;
  flex-shrink: 0;
}

.podcast-premium-price-block {
  border: 1px solid var(--border);
  background: var(--bg2);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.podcast-premium-was {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.podcast-premium-original {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--fg-mute);
  text-decoration: line-through;
  text-decoration-color: var(--fg-mute);
}

.podcast-premium-promo-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 3px 8px;
  border: 1px solid var(--accent);
}

.podcast-premium-price {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--fg);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.podcast-premium-cta {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--accent);
  transition: background 0.2s, color 0.2s;
  margin-bottom: 16px;
}

.podcast-premium-cta:hover {
  background: transparent;
  color: var(--accent);
}

[data-theme="light"] .podcast-premium-cta {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

[data-theme="light"] .podcast-premium-cta:hover {
  background: transparent;
  border-color: var(--fg);
  color: var(--fg);
}

.podcast-premium-fine {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  margin: 0;
}

@media (max-width: 900px) {
  .podcast-notify-inner,
  .podcast-premium-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .podcast-notify-form { padding-top: 0; }
}

@media (max-width: 600px) {
  .podcast-notify { padding: 48px var(--gutter); }
  .podcast-premium { padding: 48px var(--gutter); }
  .podcast-premium-price-block { padding: 28px 24px; }
  /* Taller fallback on small phones — fields wrap more at narrow widths */
  .podcast-notify-form iframe { min-height: 540px; }
}
