:root {
  color-scheme: light;
  --ink: #161616;
  --muted: #5d6266;
  --paper: #ffffff;
  --soft: #f4f7f5;
  --line: #d9dedb;
  --teal: #0e6f68;
  --coral: #bb4b3e;
  --gold: #c69a37;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(22, 22, 22, 0.12);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--teal);
}

.hero {
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: clamp(80px, 12vw, 140px) clamp(18px, 6vw, 72px);
  color: white;
  background:
    linear-gradient(90deg, rgba(10, 16, 18, 0.86) 0%, rgba(10, 16, 18, 0.72) 45%, rgba(10, 16, 18, 0.2) 100%),
    url("assets/cover-brazil-a5-tight.jpg") center right / cover no-repeat;
}

.hero-copy {
  width: min(720px, 100%);
}

.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.5rem, 8vw, 5.8rem);
}

.hero-subtitle {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.cta-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
button {
  background: var(--coral);
  color: white;
}

.button.secondary {
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.08);
  color: currentColor;
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 6vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.section h2 {
  max-width: 800px;
  font-size: clamp(2rem, 5vw, 3.7rem);
}

.section p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}

.book-figure {
  margin: 0;
  width: min(380px, 100%);
  margin-left: auto;
}

.book-figure img {
  display: block;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(22, 22, 22, 0.15);
}

.cover-main {
  width: 100%;
  aspect-ratio: 1 / 1.4142;
  object-fit: cover;
  object-position: center;
}

.book-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

.book-figure figcaption a,
.site-footer a {
  text-decoration-color: rgba(14, 111, 104, 0.38);
  text-underline-offset: 3px;
}

.proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  background: var(--soft);
}

.proof-item,
.participation-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 22px;
}

.proof-item img {
  width: 100%;
  max-width: 160px;
  height: 108px;
  object-fit: contain;
  object-position: left center;
}

.proof-item h3,
.participation-list h3 {
  margin: 14px 0 6px;
  font-size: 1.25rem;
}

.proof-item p,
.participation-list p {
  margin: 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.cafes {
  background: #1b2224;
  color: white;
}

.cafes .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: questions;
}

.question-grid li {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  counter-increment: questions;
}

.question-grid li::before {
  content: counter(questions, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 900;
}

.pathways {
  background: #fbfaf6;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pathway-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 22px;
}

.pathway-card.featured {
  border-color: rgba(14, 111, 104, 0.32);
  box-shadow: 0 16px 42px rgba(14, 111, 104, 0.12);
}

.pathway-label {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pathway-card h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.pathway-card p:not(.pathway-label) {
  margin: 0 0 22px;
  color: var(--muted);
}

.pathway-card .button {
  margin-top: auto;
}

.pathway-card .button.secondary {
  color: var(--teal);
}

.participate {
  background: var(--soft);
}

.participation-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.lead-actions .button.secondary {
  color: var(--teal);
}

.form-note {
  margin-top: 12px;
  font-size: 0.92rem;
}

.sample-page {
  background: var(--paper);
}

.sample-reader {
  padding-bottom: 48px;
  background: var(--soft);
}

.sample-reader h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.06;
}

.sample-lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.excerpt {
  max-width: 860px;
  margin: 0 auto;
  padding-top: 56px;
}

.excerpt h2 {
  margin: 36px 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.excerpt p,
.excerpt li {
  color: #2e3336;
  font-size: 1.08rem;
}

.excerpt-questions {
  display: grid;
  gap: 10px;
  padding-left: 24px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 6vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 78vh;
    background:
      linear-gradient(180deg, rgba(10, 16, 18, 0.84) 0%, rgba(10, 16, 18, 0.7) 56%, rgba(10, 16, 18, 0.34) 100%),
      url("assets/cover-brazil-a5-tight.jpg") center / cover no-repeat;
  }

  .intro,
  .proof,
  .question-grid,
  .pathway-grid,
  .participation-list,
  .lead-actions {
    grid-template-columns: 1fr;
  }

  .book-figure {
    margin: 0;
    width: min(340px, 100%);
  }

  .book-figure figcaption {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .cta-panel,
  .lead-actions {
    flex-direction: column;
  }

  .button,
  button {
    width: 100%;
  }

  nav {
    font-size: 0.88rem;
  }
}
