/* Shared reading rhythm for Sections 2 onward. Section 1 lives in vibe-hero.css. */
.vibe-ideas, #program {
  --vibe-parchment: #eee5d9;
  background-color: var(--vibe-parchment);
}
.vibe-ideas::before { opacity: .18; }

main > section:not(#top) {
  --reading-size: clamp(16px, 1.2vw, 19px);
  --heading-size: clamp(36px, 3.3vw, 56px);
  --page-gutter: 5.6%;
  --section-space: clamp(36px, 4vw, 60px);
  --paragraph-gap: 16px;
}

main > section.vibe-ideas #ideas-title,
main > section.vibe-code #code-title,
main > section#el #founder-title,
main > section#program #program-title,
main > section#contact h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: var(--heading-size);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.04em;
  margin-bottom: 20px;
}

.vibe-ideas-body p,
.vibe-code-body p,
#el p,
#program .program-description {
  font-size: var(--reading-size);
  line-height: 1.5;
  letter-spacing: 0;
  margin-bottom: var(--paragraph-gap);
  text-wrap: pretty;
}

.vibe-ideas-label,
.vibe-code-label,
.vibe-learning #learning-title {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .23em;
  margin-bottom: 16px;
}

.vibe-learning,
#contact {
  background: #292B42;
}
#contact option { background: #292B42; }

.vibe-learning {
  padding: 32px var(--page-gutter) 28px;
}
.vibe-learning-card { padding: 20px; }
.vibe-learning-card h3 {
  font-size: clamp(20px, 1.5vw, 23px);
  line-height: 1.2;
  letter-spacing: -.025em;
  margin-bottom: 10px;
}
.vibe-learning-card p {
  font-size: clamp(15px, 1.05vw, 16px);
  line-height: 1.45;
}
.vibe-learning-process { margin-top: 20px; }

.vibe-ideas-body .vibe-ideas-emphasis {
  font-size: clamp(26px, 2.1vw, 34px);
  line-height: 1.2;
  margin-bottom: 0;
}
.vibe-code-copy { margin-left: var(--page-gutter); }
.vibe-code-body p:last-child,
#el p:last-child,
#program .program-description { margin-bottom: 0; }

#el {
  background: #fff;
  min-height: 90svh;
  display: flex;
  align-items: center;
  padding: var(--section-space) var(--page-gutter);
}
#el .founder-editorial { row-gap: 20px; }
#el #founder-title { margin-bottom: 0; }
#program {
  background-color: var(--vibe-parchment);
  background-image: linear-gradient(#eee5d9d1, #eee5d9d1),
    url('../assets/images/mastery_lab_parchment_texture_tile.webp');
  background-repeat: repeat;
  padding-top: var(--section-space);
  padding-bottom: clamp(28px, 3vw, 40px);
}
#program .program-introduction {
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  padding-bottom: 28px;
}
#program .program-promise {
  font-size: clamp(20px, 1.6vw, 25px);
  line-height: 1.35;
}
/* Left-anchored photo window: wider screens reveal more photographs on the right.
   Match the small separators with outer gutters and crop the transparent surround. */
#program .program-photo-scroll {
  --photo-strip-height: max(230px, 17vw);
  position: relative;
  width: calc(100% - 6px);
  margin-inline: 3px;
  height: var(--photo-strip-height);
  overflow: hidden;
  overflow: clip;
}
#program .program-photo-strip {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-1.5%, -50%);
  width: max(103%, calc(var(--photo-strip-height) * 6.2));
  max-width: none;
  height: auto;
  aspect-ratio: 2048 / 682;
}
#program .program-facts {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  margin-bottom: 0;
  gap: 12px;
}
#program .program-fact:last-child { grid-column: auto; }
@media (max-width: 1100px) {
  #program .program-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  #program .program-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#program .program-fact { font-size: 16px; line-height: 1.3; }
#contact { padding: var(--section-space) var(--page-gutter) 24px; }
#contact .contact-grid > div { padding-top: 0; }
main > section#contact .contact-invitation {
  font-size: var(--reading-size);
  line-height: 1.5;
}
#contact label { font-size: 16px; line-height: 1.5; margin-bottom: 20px; }
#contact input, #contact select, #contact textarea {
  font-size: 16px;
  line-height: 1.5;
  min-height: 44px;
}
#contact .button { font-size: 17px; min-height: 44px; }
#contact .form-note { font-size: 13px; line-height: 1.5; }

/* The illustrated one-screen desktop section keeps its height-based sizing. */
@media (min-width: 1101px) {
  main > section.vibe-ideas #ideas-title {
    font-size: clamp(36px, 5.8svh, 56px);
  }
  .vibe-ideas-body p {
    font-size: clamp(16px, 1.95svh, 19px);
    line-height: 1.45;
    margin-bottom: 14px;
  }
  .vibe-ideas-body .vibe-ideas-emphasis {
    font-size: clamp(26px, 3.6svh, 34px);
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  main > section:not(#top) {
    --reading-size: 17px;
    --heading-size: clamp(36px, 7.6vw, 44px);
    --page-gutter: 22px;
    --section-space: 36px;
  }
  .vibe-learning-card { padding: 18px; }
  .vibe-learning-card h3 { font-size: 22px; margin-bottom: 0; }
  .vibe-learning-card p { font-size: 16px; margin-top: 14px; }
  .vibe-ideas-label, .vibe-code-label { font-size: 10px; }
  .vibe-ideas-body .vibe-ideas-emphasis { font-size: 28px; }
  .vibe-code-copy { margin-left: 0; }
  #el { padding: 0; }
  #el .founder-editorial { padding: 36px 22px; gap: 20px; }
  #program .program-introduction { gap: 16px; padding-bottom: 24px; }
  #program .program-promise { font-size: 22px; }
  #contact .contact-grid { gap: 24px; }
}
