/* ============================================================
   THE EVOLVED CAVEMAN — Site Styles
   Brand system per Brand Guidelines v1 (08.04.25)
   Type: Manrope (lead) + Gyst Light Italic (accent)
   Colors: Clarity #a3d0c9 · Moon #eeeeee · Midnight #202023
   Gradients: Calm · Vibrance · Storm · Energy (with grain)
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Variable.ttf') format('truetype-variations');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Gyst';
  src: url('../fonts/Gyst-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --clarity: #a3d0c9;
  --moon: #eeeeee;
  --midnight: #202023;
  --storm-deep: #1b4e63;
  --storm-mid: #2a6d7d;
  --storm-soft: #87b4ba;
  --energy: #c05a00;
  --gold: #e3a73f;
  --cream: #f4ecdf;
  --peach: #e8c5b2;
  --ink: #2a2a2d;
  --ink-soft: #55555a;
  --white: #ffffff;
  --radius-card: 18px;
  --radius-tile: 14px;
  --maxw: 1180px;
  /* grain */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 350;
  color: var(--ink);
  background: var(--moon);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-weight: 250; letter-spacing: -0.025em; line-height: 1.12; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }
.accent { font-family: 'Gyst', Georgia, serif; font-style: italic; font-weight: 300; letter-spacing: 0; }

.eyebrow {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0 0 1rem;
}

/* grain overlay helper */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: var(--grain); opacity: 0.16; pointer-events: none;
  mix-blend-mode: overlay;
}
.grain > * { position: relative; z-index: 1; }

/* ---------- Gradients ---------- */
.bg-calm {
  background:
    radial-gradient(115% 90% at 12% 8%, rgba(232,197,178,0.85) 0%, rgba(232,197,178,0) 38%),
    radial-gradient(120% 100% at 88% 18%, rgba(135,180,186,0.9) 0%, rgba(135,180,186,0) 55%),
    radial-gradient(120% 110% at 70% 95%, rgba(244,236,223,0.95) 0%, rgba(244,236,223,0) 60%),
    linear-gradient(135deg, #d9e6dc 0%, #a3d0c9 45%, #e9e3cf 100%);
}
.bg-storm { background: linear-gradient(140deg, var(--storm-soft) 0%, var(--storm-mid) 45%, var(--storm-deep) 100%); color: var(--white); }
.bg-vibrance {
  background:
    radial-gradient(60% 55% at 55% 30%, rgba(218,180,131,0.9) 0%, rgba(218,180,131,0) 70%),
    linear-gradient(150deg, #9dbfae 0%, #7eaa9d 55%, #6e8f84 100%);
}
.bg-mint { background: linear-gradient(150deg, #cde7dd 0%, #a3d0c9 60%, #8fc4bb 100%); }
.bg-blush {
  background:
    radial-gradient(70% 60% at 70% 35%, rgba(163,208,201,0.55) 0%, rgba(163,208,201,0) 70%),
    linear-gradient(150deg, #f3e4de 0%, #ecd9d3 55%, #e6e0d4 100%);
}
.bg-peach {
  background:
    radial-gradient(80% 70% at 30% 30%, rgba(214,120,60,0.55) 0%, rgba(214,120,60,0) 65%),
    linear-gradient(150deg, #efc9a8 0%, #e7a877 55%, #dd8e52 100%);
}
.bg-energy { background: linear-gradient(135deg, #a34a00 0%, #cf6c00 55%, #ed8b00 100%); color: var(--white); }
.bg-gold {
  background:
    radial-gradient(90% 80% at 75% 20%, rgba(244,222,170,0.8) 0%, rgba(244,222,170,0) 60%),
    linear-gradient(135deg, #d99a2b 0%, #e3a73f 45%, #c97f1d 100%);
}
.bg-midnight { background: linear-gradient(150deg, #2a2a2e 0%, var(--midnight) 70%); color: var(--moon); }
.bg-moon { background: var(--moon); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--midnight); color: var(--moon);
  font-size: 0.8rem; letter-spacing: 0.06em; text-align: center;
  padding: 9px 16px;
}
.announce a { color: var(--clarity); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; margin-left: 10px; }

/* ---------- Header ---------- */
header.site {
  position: absolute; top: 33px; left: 0; right: 0; z-index: 50;
}
.announce + main header.site { top: 0; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; }
.logo-badge {
  width: 76px; height: 76px; border-radius: 18px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(150deg, #cde7dd 0%, #a3d0c9 55%, #7fb7ae 100%);
  color: var(--white); text-decoration: none;
  font-weight: 800; font-size: 0.62rem; line-height: 1.25; letter-spacing: 0.04em;
  text-transform: uppercase; box-shadow: 0 4px 18px rgba(32,32,35,0.12);
}
nav.main { display: flex; gap: 30px; }
nav.main a {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); padding-bottom: 4px; border-bottom: 1px solid transparent;
}
nav.main a:hover, nav.main a[aria-current="page"] { border-bottom-color: var(--ink); }
.socials { display: flex; gap: 14px; align-items: center; }
.socials a { opacity: 0.75; transition: opacity .2s; display: flex; }
.socials a:hover { opacity: 1; }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 620px; }
.hero .wrap { display: grid; grid-template-columns: minmax(300px, 1.05fr) 1.2fr; gap: 30px; align-items: center; min-height: 620px; padding-top: 120px; padding-bottom: 40px; }
.hero-photo { position: relative; align-self: end; }
.hero-photo img {
  width: 100%; max-width: 470px; margin: 0 auto;
  -webkit-mask-image: radial-gradient(78% 80% at 50% 42%, #000 42%, transparent 88%);
  mask-image: radial-gradient(78% 80% at 50% 42%, #000 42%, transparent 88%);
}
.hero-copy { max-width: 540px; }
.hero-copy .hosted {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 1.2rem;
}
.hosted .circled { position: relative; white-space: nowrap; color: var(--ink); }
.hosted .circled svg { position: absolute; inset: -62% -7%; width: 114%; height: 224%; pointer-events: none; }
.hero-copy h1 { margin-bottom: 0.5em; }
.hero-copy p.lede { font-size: 1.02rem; color: var(--ink-soft); max-width: 420px; margin: 0 0 1.6rem; }

/* ---------- Email forms ---------- */
form.capture { display: flex; gap: 10px; max-width: 440px; }
form.capture input[type="email"] {
  flex: 1; min-width: 0; border: none; border-radius: 999px; padding: 14px 22px;
  font-family: inherit; font-size: 0.92rem; background: var(--white); color: var(--ink);
  box-shadow: 0 2px 10px rgba(32,32,35,0.08);
}
form.capture input:focus { outline: 2px solid var(--storm-mid); }
form.capture button {
  border: none; border-radius: 999px; padding: 14px 26px; cursor: pointer;
  background: var(--midnight); color: var(--moon);
  font-family: inherit; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  transition: transform .15s ease, background .2s;
}
form.capture button:hover { background: #000; transform: translateY(-1px); }

/* ---------- Section: statement ---------- */
.statement { text-align: center; padding: 96px 0 80px; }
.statement h2 { margin-bottom: 0.7em; }
.statement p { max-width: 640px; margin: 0 auto 1.2em; color: var(--ink-soft); }

/* ---------- Episode cards ---------- */
.episodes { padding: 10px 0 70px; }
.episodes .eyebrow { text-align: center; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 28px; }
.card {
  background: var(--white); border-radius: var(--radius-card); overflow: hidden;
  box-shadow: 0 6px 24px rgba(32,32,35,0.07); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(32,32,35,0.12); }
.tile {
  aspect-ratio: 1.55 / 1; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px; border-radius: var(--radius-tile); margin: 12px;
}
.tile h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 280; margin: 0; }
.tile.dark h3, .bg-storm h3, .bg-energy h3, .bg-midnight h3 { color: var(--white); }
.card-body { padding: 4px 26px 22px; display: flex; flex-direction: column; flex: 1; }
.card-date { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; color: var(--ink-soft); margin: 6px 0 10px; }
.card-body p { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 18px; flex: 1; }
.card-actions { display: flex; gap: 12px; border-top: 1px solid #e3e3e3; padding-top: 14px; }
.card-actions a {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; display: flex; align-items: center; gap: 7px; color: var(--ink);
}
.card-actions a:hover { color: var(--storm-mid); }
.card-actions svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.load-more { text-align: center; margin-top: 44px; }
.load-more a {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink); text-decoration: underline; text-underline-offset: 6px;
}

/* ---------- Newsletter band ---------- */
.band { border-radius: 26px; overflow: hidden; margin: 40px 0; }
.band-inner { display: grid; grid-template-columns: 0.9fr 1.3fr; align-items: stretch; }
.band-photo { min-height: 320px; background-size: cover; background-position: center 20%; }
.band-copy { padding: 56px 56px 56px 30px; text-align: center; }
.band-copy .eyebrow { color: rgba(32,32,35,0.65); }
.band-copy h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.band-copy p { max-width: 460px; margin: 0 auto 1.6rem; font-size: 0.95rem; color: rgba(32,32,35,0.78); }
.band-copy form.capture { margin: 0 auto; }
.band-copy form.capture input[type="email"] { box-shadow: none; }

/* ---------- Offer cards ---------- */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding-bottom: 90px; }
.offer {
  border-radius: 22px; padding: 56px 44px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.offer h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin: 0; }
.offer p { max-width: 400px; margin: 0; font-size: 0.92rem; opacity: 0.88; }
.btn {
  display: inline-block; margin-top: 14px; text-decoration: none; cursor: pointer;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 14px 30px; border-radius: 8px; border: none; font-family: inherit;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--midnight); color: var(--moon); }
.btn-light { background: var(--clarity); color: var(--midnight); }

/* ---------- Meet Dr. John ---------- */
.meet { padding: 90px 0 100px; }
.meet .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 70px; align-items: center; }
.meet h2 { margin-bottom: 0.8em; }
.meet p { color: var(--ink-soft); font-size: 0.98rem; }
.meet-photo { display: flex; justify-content: center; }
.meet-photo img {
  width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  box-shadow: 0 14px 44px rgba(32,32,35,0.18);
}

/* ---------- Generic page hero (inner pages) ---------- */
.page-hero { padding: 170px 0 70px; text-align: center; }
.page-hero h1 { max-width: 800px; margin: 0 auto 0.4em; }
.page-hero p { max-width: 640px; margin: 0 auto; color: var(--ink-soft); }

/* ---------- Prose ---------- */
.prose { max-width: 720px; margin: 0 auto; padding: 70px 24px; }
.prose h2 { font-size: 1.8rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.1em; color: var(--ink-soft); }
.prose li { margin-bottom: 0.5em; }
.prose p { color: var(--ink-soft); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 920px; margin: 0 auto; padding: 0 24px 80px; }
.panel { border-radius: 20px; padding: 44px 40px; }
.panel h3 { margin-bottom: 0.9em; }
.panel ul { list-style: none; padding: 0; margin: 0; }
.panel li { padding: 9px 0; border-bottom: 1px solid rgba(32,32,35,0.1); font-size: 0.94rem; }
.panel.dark li { border-bottom-color: rgba(238,238,238,0.15); }
.panel li:last-child { border-bottom: none; }

/* ---------- Platform buttons ---------- */
.platforms { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; padding: 0 24px 70px; }
.platforms a {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--white); border-radius: 999px; padding: 13px 24px;
  font-size: 0.82rem; font-weight: 600; box-shadow: 0 3px 14px rgba(32,32,35,0.08);
  transition: transform .15s;
}
.platforms a:hover { transform: translateY(-2px); }
.platforms svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Footer ---------- */
footer.site { background: var(--midnight); color: var(--moon); margin-top: 60px; }
.foot-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 50px; }
.foot-main .logo-badge { margin-bottom: 20px; }
.foot-main p { font-size: 0.88rem; color: rgba(238,238,238,0.75); max-width: 330px; margin: 0 0 1.4rem; }
.foot-main form.capture input[type="email"] { background: rgba(238,238,238,0.12); color: var(--moon); box-shadow: none; }
.foot-main form.capture input::placeholder { color: rgba(238,238,238,0.5); }
.foot-main form.capture button { background: var(--clarity); color: var(--midnight); }
.foot-col h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(238,238,238,0.5); margin: 8px 0 18px; }
.foot-col a { display: block; text-decoration: none; font-size: 0.9rem; color: var(--moon); padding: 6px 0; opacity: 0.85; }
.foot-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.foot-bottom {
  border-top: 1px solid rgba(238,238,238,0.12); padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(238,238,238,0.55);
}
.foot-bottom .socials { color: var(--moon); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 140px; text-align: center; }
  .hero-copy { margin: 0 auto; }
  .hero-copy p.lede, form.capture { margin-left: auto; margin-right: auto; }
  .hero-photo { order: 2; }
  .hero-photo img { max-width: 340px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .band-inner { grid-template-columns: 1fr; }
  .band-photo { min-height: 260px; }
  .band-copy { padding: 44px 28px; }
  .offers { grid-template-columns: 1fr; }
  .meet .wrap { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .foot-main { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  nav.main { display: none; }
  nav.main.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--moon); padding: 24px; gap: 18px; box-shadow: 0 14px 30px rgba(32,32,35,0.15);
  }
  .menu-toggle {
    display: block; background: none; border: none; cursor: pointer; padding: 8px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
  }
  .nav-row { position: relative; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  form.capture { flex-direction: column; }
  form.capture button { width: 100%; }
  .foot-main { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; }
  .logo-badge { width: 62px; height: 62px; font-size: 0.52rem; border-radius: 14px; }
}

/* ---------- Logo image badge ---------- */
.logo-badge { overflow: hidden; background: var(--midnight); }
.logo-badge img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
