/* V4 · Identidade institucional e composição editorial. */
:root {
  --editorial-light: #edf3f8;
  --editorial-white: #fff;
  --editorial-radius: 24px;
  --editorial-gutter: clamp(20px, 4.5vw, 64px);
  --editorial-edge: max(var(--editorial-gutter), calc((100% - 1280px) / 2));
}
body { background: var(--blue); }
.section { padding: clamp(48px, 7vw, 96px) var(--editorial-edge); }
.section h2 { font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.08; letter-spacing: -.045em; }
.section-heading { margin-bottom: 32px; gap: 24px; }
.section-intro { max-width: 36ch; }
.hero-links .hero-actions .button { justify-content: center; text-align: center; }
.hero .name-line { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: v4-arrive 420ms cubic-bezier(.22,1,.36,1) both; }
  @keyframes v4-arrive {
    from { opacity: 0; translate: 0 12px; }
    to { opacity: 1; translate: 0 0; }
  }
}
.about-v3 {
  background: var(--editorial-light);
  border-radius: var(--editorial-radius) var(--editorial-radius) 0 0;
  align-items: center;
  grid-template-columns: minmax(0,.78fr) minmax(0,1fr);
  gap: clamp(32px, 6vw, 96px);
}
.about-photo { max-width: 440px; }
.about-photo img { border-radius: 18px; }
.about-story h2 { margin-top: 0; }
.agenda-v3, .books-section { background: var(--editorial-white); }
.themes-section, .contact-v3 { background: var(--editorial-light); }
.theme-grid, .course-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.theme-grid .theme, .course-list .course {
  min-width: 0;
  border: 0;
  border-radius: 18px;
  background: white;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.theme h3, .course h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.theme-invite { margin-top: 24px; background: var(--blue); color: white; min-height: 48px; }
.courses-section { display: block; }
.courses-intro { max-width: 730px; }
.courses-intro h2 { margin-top: 0; }
.courses-intro > p:not(.eyebrow) { max-width: 60ch; }
.course-list { border: 0; margin-top: 32px; }
.course-list .course { background: #0e3d68; }
.course-list .course a { justify-content: center; margin-top: auto; }
.course-list .course p:not(.course-link-note) { margin-bottom: 24px; }
:where(a,button,input,textarea,summary):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #163b61;
}
@media (min-width: 700px) {
  .theme-grid, .course-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 1050px) {
  .theme-grid, .course-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
}
@media (max-width: 900px) {
  .about-v3 { display: flex; flex-direction: column; align-items: flex-start; }
  .about-story { order: 1; }
  .about-photo { order: 0; }
}
/* Folhas editoriais. O encontro das superfícies usa espaço reservado. */
:root {
  --sheet-lip: clamp(28px, 5vw, 72px);
  --sand: #f5ead9;
  --mist: #e7f0f8;
  --sage: #e6eee7;
  --cream: #faf7f0;
  --deep: #123654;
}
.header-inner, .site-header nav, .footer-bottom { border: 0; }
main > section { position: relative; translate: 0 var(--sheet-drift, 0px); }
main > .section {
  border-radius: clamp(24px, 5vw, 64px) clamp(24px, 5vw, 64px) 0 0;
  margin-top: calc(-1 * var(--sheet-lip));
  padding-bottom: calc(clamp(48px, 7vw, 96px) + var(--sheet-lip) + 30px);
}
main > .hero { margin-bottom: var(--sheet-lip); }
main > .about-v3 { background: var(--cream); }
main > .agenda-v3 { background: var(--mist); }
main > .themes-section { background: var(--sand); }
main > .books-section { background: #fdfbf6; }
main > .courses-section { background: var(--deep); }
main > .contact-v3 { background: var(--mist); }
.book-card, .compact-event, .invite-form {
  border: 0;
  border-radius: 18px;
}
.book-card { padding: clamp(14px, 3vw, 28px); background: var(--mist); }
.book-card:nth-child(even) { background: var(--sand); }
.theme-grid .theme:nth-child(1) { background: var(--cream); }
.theme-grid .theme:nth-child(2) { background: var(--mist); }
.theme-grid .theme:nth-child(3) { background: var(--sage); }
.course-list .course { color: var(--deep); background: var(--mist); }
.course-list .course:nth-child(2) { background: var(--sand); }
.course-list .course:nth-child(3) { background: var(--sage); }
.course-list .course :is(p,.item-index) { color: #35526b; }
.course-list .course a { color: var(--deep); border-color: #47637b; }
.course-list .course a:hover, .course-list .course a:focus-visible { color: white; background: var(--deep); }
.compact-event { background: white; }
.compact-date, .event-action, .course-youtube, .direct-contact { border: 0; }
.direct-contact { background: white; border-radius: 12px; padding-inline: 16px; margin-top: 12px; }
@media (prefers-reduced-motion: reduce) {
  main > section { translate: none; }
}
