/* ========================================================================
   Data Sovereignty — Book Launch
   Colour scheme pulled from the poster: African-sunset gold, amber,
   deep brown and near-black.
   ======================================================================== */

:root {
  --black:       #0d0704;
  --brown-deep:  #1a0f08;
  --brown:       #2a1a0d;
  --brown-soft:  #3a2616;
  --amber:       #c8641e;
  --orange:      #e07b22;
  --gold:        #e8b04b;
  --gold-light:  #f5c76a;
  --gold-deep:   #d4942a;
  --cream:       #f5e9d6;
  --cream-dim:   #d8c7ab;
  --line:        rgba(232, 176, 75, 0.22);

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Montserrat', 'Segoe UI', sans-serif;
  --font-script: 'Great Vibes', cursive;

  --max:  1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--font-sans);
  color: var(--cream);
  background: var(--brown-deep);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Shared layout ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 24px;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow--center { text-align: center; }

.section__title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.05;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.section__title--center { text-align: center; }

.section__subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  color: var(--gold-light);
  margin-top: 6px;
}
.section__subtitle--center { text-align: center; }

.lead { font-size: 1.08rem; color: var(--cream); margin: 20px 0; }
p { color: var(--cream-dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 34px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  border: none;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: var(--black);
  box-shadow: 0 10px 30px rgba(232, 176, 75, 0.3);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(232, 176, 75, 0.45); }
.btn--ghost {
  background: transparent;
  color: var(--gold-light);
  border: 1.5px solid var(--gold);
}
.btn--ghost:hover { background: rgba(232, 176, 75, 0.12); transform: translateY(-3px); }
.btn--block { width: 100%; text-align: center; }
.btn--lg { padding: 18px 48px; font-size: 1.05rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: rgba(13, 7, 4, 0.2);
  backdrop-filter: blur(2px);
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}
.nav.is-scrolled {
  background: rgba(13, 7, 4, 0.92);
  padding: 12px 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 0.95rem;
  color: var(--gold-light);
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--gold-light); }
.nav__cta {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: var(--black) !important;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 700;
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  width: 26px; height: 2px;
  background: var(--gold-light);
  transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background:
    radial-gradient(ellipse at 50% 32%, rgba(224, 123, 34, 0.55), transparent 60%),
    linear-gradient(180deg, #2a1407 0%, #7a3a10 42%, #c8641e 60%, #e8942a 70%, #2a1407 100%);
  overflow: hidden;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 62%, rgba(255, 210, 120, 0.4), transparent 45%),
    linear-gradient(180deg, rgba(13,7,4,0.55) 0%, transparent 35%, rgba(13,7,4,0.75) 100%);
  z-index: 1;
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }

.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--cream);
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 900;
  line-height: 0.92;
  text-shadow: 0 6px 28px rgba(0,0,0,0.55);
}
.hero__title-top, .hero__title-bottom {
  display: block;
  font-size: clamp(3.4rem, 13vw, 8rem);
  background: linear-gradient(180deg, #fff6e2, var(--gold-light) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__join {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--cream);
  margin: 26px 0 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.hero__book {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: #fff;
  text-shadow: 0 4px 18px rgba(0,0,0,0.6);
}
.hero__sub {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-light);
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  margin-top: 4px;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 36px 0 34px;
  flex-wrap: wrap;
}
.countdown__unit {
  background: rgba(13, 7, 4, 0.5);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 10px;
  min-width: 78px;
  backdrop-filter: blur(4px);
}
.countdown__unit span {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 2rem;
  color: var(--gold-light);
  line-height: 1;
}
.countdown__unit label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-top: 6px;
}

.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 1.6rem;
  color: var(--gold-light);
  animation: bob 1.8s infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ---------- About the book ---------- */
.about-book { padding-top: 110px; }
.about-book__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-book__media img {
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  border: 1px solid var(--line);
}
.feature-list { list-style: none; margin: 22px 0 30px; }
.feature-list li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--cream);
}
.feature-list li span { color: var(--gold); }

/* ---------- Event details ---------- */
.details { background: linear-gradient(180deg, transparent, rgba(42,26,13,0.45), transparent); border-radius: 24px; }
.details__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0 40px;
}
.detail-card {
  background: var(--brown);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 26px;
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.detail-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.detail-card__icon { font-size: 2.2rem; margin-bottom: 14px; }
.detail-card h3 {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.detail-card__big {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--cream);
}
.detail-card__small { font-size: 0.85rem; margin-top: 8px; }

.details__map {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}
.details__map iframe { width: 100%; height: 340px; border: 0; display: block; filter: sepia(0.25) saturate(1.1); }

.details__note {
  text-align: center;
  margin-top: 28px;
  color: var(--gold-light);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ---------- Author ---------- */
.author__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.author__portrait { position: relative; }
.author__portrait img {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.author__badge {
  position: absolute;
  top: 18px; left: 18px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: var(--black);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
}
.author__copy p { margin-bottom: 14px; }
.author__socials { display: flex; gap: 12px; margin-top: 10px; }
.author__socials a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-light);
  font-weight: 700;
  transition: 0.25s;
}
.author__socials a:hover { background: var(--gold); color: var(--black); }

/* ---------- Speakers ---------- */
.speakers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0 28px;
}
.speaker-card {
  background: var(--brown);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 26px;
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.speaker-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.speaker-card__avatar {
  position: relative;
  width: 140px; height: 140px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--gold-light);
  background: radial-gradient(circle at 50% 35%, var(--brown-soft), var(--brown-deep));
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(232, 176, 75, 0.12), 0 14px 30px rgba(0, 0, 0, 0.45);
}
/* Photo sits on top of the initials; if it fails to load it's removed and initials show */
.speaker-card__avatar img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.speaker-card--placeholder .speaker-card__avatar { border-style: dashed; }
.speaker-card h3 { font-family: var(--font-serif); color: var(--cream); font-size: 1.25rem; }
.speaker-card__role {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 6px 0 12px;
}
.speaker-card__bio { font-size: 0.92rem; }
.speakers__note { text-align: center; color: var(--gold-light); font-style: italic; }

/* ---------- RSVP ---------- */
.rsvp__card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--brown);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 54px clamp(24px, 5vw, 56px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}
.rsvp__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 36px;
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  background: var(--brown-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232,176,75,0.18);
}
.field input.invalid, .field select.invalid { border-color: #e2563f; }
.rsvp__status {
  grid-column: 1 / -1;
  text-align: center;
  font-weight: 500;
  min-height: 1.2em;
}
.rsvp__status.ok { color: var(--gold-light); }
.rsvp__status.err { color: #f08a72; }

/* ---------- Buy ---------- */
.buy { text-align: center; }
.buy__inner { max-width: 620px; margin: 0 auto; }
.buy__copy { margin: 18px 0 28px; font-size: 1.05rem; }
.buy__hint { margin-top: 16px; font-size: 0.85rem; color: var(--cream-dim); }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 70px 24px 40px;
  background: var(--black);
  border-top: 1px solid var(--line);
}
.footer__script {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--gold-light);
  margin-bottom: 16px;
}
.footer__brand {
  font-family: var(--font-serif);
  letter-spacing: 0.2em;
  color: var(--cream);
  font-size: 1.1rem;
}
.footer__small { font-size: 0.85rem; margin: 8px 0; }
.footer__copy { font-size: 0.78rem; color: var(--cream-dim); margin-top: 18px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-book__grid, .author__grid { grid-template-columns: 1fr; gap: 36px; }
  .author__portrait { order: -1; }
  .details__cards, .speakers__grid { grid-template-columns: 1fr; }

  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: rgba(13,7,4,0.97);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__toggle { display: flex; z-index: 60; }
  .nav.is-menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .section { padding: 72px 20px; }
  .rsvp__form { grid-template-columns: 1fr; }
  .countdown__unit { min-width: 66px; }
  .countdown__unit span { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
}
