:root {
  --paper: #f7f4ee;
  --ink: #1d2524;
  --muted: #66736f;
  --green: #2d6a4f;
  --green-dark: #174434;
  --sun: #d89a28;
  --clay: #b6543a;
  --blue: #4f7e96;
  --line: rgba(29, 37, 36, 0.14);
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(23, 40, 36, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Avenir Next, Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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);
  background: rgba(247, 244, 238, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--green);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
}

.build-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding: 12px clamp(18px, 4vw, 56px);
  background: #fff4d8;
  border-bottom: 1px solid rgba(182, 84, 58, 0.24);
  color: #3a2a1d;
  font-size: 15px;
}

.build-note strong {
  color: var(--green-dark);
}

.build-note span {
  color: #534338;
}

.build-note em {
  font-style: normal;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: calc(100svh - 118px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 244, 238, 0.96) 0%, rgba(247, 244, 238, 0.88) 46%, rgba(247, 244, 238, 0.34) 100%),
    url("assets/globus-afrika.jpg") center right / cover no-repeat;
}

.hero-inner {
  position: relative;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(34px, 7vw, 82px) 0;
}

.hero-copy {
  max-width: 690px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(54px, 7.4vw, 112px);
  max-width: 760px;
}

h2 {
  font-size: clamp(32px, 4.2vw, 58px);
  max-width: 830px;
}

h3 {
  font-size: clamp(26px, 3vw, 40px);
}

.subtitle {
  margin: 18px 0 0;
  color: var(--green-dark);
  font-size: clamp(23px, 3.1vw, 38px);
  font-weight: 750;
  line-height: 1.2;
  max-width: 720px;
}

.lead {
  margin: 24px 0 0;
  max-width: 620px;
  color: #34413e;
  font-size: clamp(19px, 2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 12px 20px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}

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

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(29, 37, 36, 0.22);
}

.cover-stage {
  margin: 0;
  justify-self: center;
}

.cover-stage img {
  width: min(360px, 72vw);
  aspect-ratio: 1748 / 2480;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: var(--shadow);
}

.cover-stage figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.section {
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 94px) 0;
}

.section-copy > p:not(.kicker),
.author p,
.visual-band p,
.proof-card li {
  color: #394743;
}

.intro,
.author,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(26px, 5vw, 62px);
  align-items: start;
}

.proof-card,
.quote-box,
.newsletter,
.contact-card,
.action-card,
.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(23, 40, 36, 0.08);
}

.proof-card {
  padding: 26px;
}

.proof-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 18px;
}

.proof-card ul {
  margin: 0;
  padding-left: 20px;
}

.proof-card li + li {
  margin-top: 8px;
}

.visual-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  padding: clamp(46px, 7vw, 80px) clamp(18px, 5vw, 70px);
  background: #e4ece4;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.visual-band img {
  width: min(360px, 100%);
  justify-self: center;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(32, 59, 51, 0.18);
}

.visual-band div {
  max-width: 700px;
}

.book-tabs {
  display: inline-flex;
  gap: 8px;
  margin: 28px 0 24px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
}

.tab {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
}

.tab.active {
  background: var(--ink);
  color: var(--white);
}

.book-panel {
  display: none;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 46px);
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(23, 40, 36, 0.08);
}

.book-panel.active {
  display: grid;
}

.book-panel img,
.text-cover {
  width: 220px;
  aspect-ratio: 1748 / 2480;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: 0 16px 36px rgba(23, 40, 36, 0.16);
}

.text-cover {
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(150deg, var(--green-dark), var(--blue) 62%, var(--sun));
  color: var(--white);
  text-align: center;
}

.text-cover span,
.text-cover strong {
  display: block;
}

.text-cover span {
  align-self: end;
  font-size: 22px;
  font-weight: 650;
}

.text-cover strong {
  align-self: start;
  font-size: 36px;
  line-height: 1;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--green-dark);
  font-weight: 850;
}

.as-button {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.quote-box {
  padding: 28px;
  border-left: 6px solid var(--sun);
}

.quote-box p {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 750;
  line-height: 1.35;
}

.action {
  border-top: 1px solid var(--line);
}

.action-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.action-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 24px;
  align-items: start;
  padding: clamp(22px, 4vw, 32px);
}

.action-card.highlighted {
  border-color: rgba(45, 106, 79, 0.32);
  background: #f4fbf6;
}

.action-card h3,
.project-card h3 {
  font-size: clamp(24px, 2.6vw, 34px);
}

.action-card p,
.project-card p {
  color: #394743;
}

.action-card .button {
  margin-top: 8px;
}

.qr-code {
  width: 118px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 8px;
}

.action-intro {
  margin-top: clamp(46px, 7vw, 76px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.project-card {
  padding: clamp(22px, 4vw, 30px);
}

.project-card.wide {
  grid-column: 1 / -1;
}

.project-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef3ee;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
}

.project-facts {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.project-facts div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.project-facts dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.project-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.source-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.newsletter {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 32px);
}

.newsletter label {
  display: block;
  margin-bottom: 12px;
  color: var(--green-dark);
  font-weight: 850;
}

.newsletter div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

input {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(29, 37, 36, 0.22);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--ink);
  font: inherit;
  background: #fbfaf7;
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-card {
  display: grid;
  gap: 8px;
  padding: 26px;
  text-decoration: none;
}

.contact-card span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.contact-card strong {
  color: var(--green-dark);
  font-size: 24px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  max-width: min(460px, calc(100% - 32px));
  transform: translate(-50%, 120px);
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 820px) {
  body {
    font-size: 17px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(23, 40, 36, 0.14);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 6px;
  }

  .site-nav a:hover {
    background: #eef3ee;
  }

  .build-note {
    align-items: flex-start;
    font-size: 14px;
  }

  .hero-inner,
  .intro,
  .author,
  .contact,
  .visual-band,
  .book-panel,
  .action-choice-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(247, 244, 238, 0.98), rgba(247, 244, 238, 0.76)),
      url("assets/globus-afrika.jpg") center / cover no-repeat;
  }

  .cover-stage {
    justify-self: start;
  }

  .book-tabs {
    display: grid;
    border-radius: 8px;
  }

  .tab {
    border-radius: 6px;
  }

  .book-panel img,
  .text-cover {
    width: min(220px, 100%);
  }

  .newsletter div {
    grid-template-columns: 1fr;
  }

  .action-card {
    grid-template-columns: 1fr;
  }

  .qr-code {
    width: 104px;
  }

  .project-card.wide {
    grid-column: auto;
  }
}

@media (max-width: 470px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .button,
  input {
    border-radius: 8px;
  }

  .project-facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
