/* ============================================================
   MÍA ERA  ·  styles.css
   Palette + type locked 2026-05-27 (see BRAND.md)
   ============================================================ */

/* ---------- Brand fonts (self-hosted) ---------- */
@font-face {
  font-family: "Tropica Serif";
  src: url("assets/fonts/Tropica Gardens Serif.otf") format("opentype");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Tropica Sans";
  src: url("assets/fonts/Tropica Gardens Sans.otf") format("opentype");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Belpast";
  src: url("assets/fonts/Belpast.otf") format("opentype");
  font-weight: 400; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* GROUND */
  --vervain:  #121B13;
  --palm:     #2F4731;
  --peacock:  #14403F;
  --teal:     #1F4A54;
  /* PULSE */
  --papaya:   #BD6809;
  --merlot:   #6E1423;
  --oxblood:  #3D1419;
  --paradise: #9A3F4A;
  /* BREATH */
  --rose:     #C8A099;
  --gold:     #9B7848;
  --cream:    #EFE6D6;
  --charcoal: #231F20;
  /* accent only */
  --emerald:  #0E6E52;

  --maxw: 1100px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Tropica Sans", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(150% 720px at 22% -140px,
      rgba(31,74,84,.85) 0%,
      rgba(25,58,62,.46) 22%,
      rgba(21,46,48,.22) 44%,
      rgba(18,27,19,.06) 64%,
      rgba(18,27,19,0) 80%) no-repeat,
    radial-gradient(95% 540px at 92% -120px,
      rgba(110,20,35,.24) 0%,
      rgba(18,27,19,0) 72%) no-repeat,
    var(--vervain);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- shared atoms ---------- */
.eyebrow, .kicker {
  font-family: "Tropica Sans", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .34em; text-transform: uppercase;
  font-size: 12px; color: var(--gold);
}
.kicker--center { text-align: center; display: block; }

.script {
  font-family: "Belpast", "Tropica Serif", cursive;
  font-weight: 400;
}

em { font-style: italic; color: var(--papaya); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 48px);
  background: rgba(18, 27, 19, .72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(155, 120, 72, .25);
}
.nav__brand {
  font-family: "Tropica Serif", Georgia, serif;
  font-size: 22px; letter-spacing: .06em; color: var(--cream);
  text-decoration: none;
}
.nav__links { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }
.nav__links a {
  font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(239, 230, 214, .72); text-decoration: none;
  transition: color .2s var(--ease);
}
.nav__links a:hover { color: var(--papaya); }
.nav__cta {
  border: 1px solid var(--gold); border-radius: 999px;
  padding: 8px 18px; color: var(--cream) !important;
}
.nav__cta:hover { background: var(--papaya); border-color: var(--papaya); }
@media (max-width: 620px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(64px, 12vw, 140px) clamp(20px, 5vw, 48px) clamp(72px, 10vw, 120px);
  overflow: hidden;
  /* top glow now lives full-bleed on <body> so it spills edge-to-edge into the black */
}

/* full-bleed banana-leaf canopy */
.hero__leaves {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 100vw; transform: translateX(-50%);
  z-index: 0; pointer-events: none; overflow: hidden;
  opacity: .4;
}
.hero__leaves svg { width: 100%; height: 100%; display: block; }
/* keep the headline readable: darken the text side over the leaves */
.hero__leaves::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(18,27,19,.78) 0%, rgba(18,27,19,.45) 42%, rgba(18,27,19,0) 78%);
}

.hero__inner { max-width: 720px; position: relative; z-index: 2; }
.eyebrow { margin-bottom: 22px; }
.hero__title {
  font-family: "Tropica Serif", Georgia, serif;
  font-weight: 400; line-height: .98;
  font-size: clamp(34px, 9vw, 104px);
  color: var(--cream); letter-spacing: .005em;
  margin-bottom: 18px;
}
.hero__tag {
  font-size: clamp(22px, 4vw, 34px);
  color: var(--rose); margin-bottom: 20px; line-height: 1.1;
}
.hero__sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(239, 230, 214, .8); max-width: 52ch; margin-bottom: 36px;
}
.hero__fan {
  position: absolute; right: clamp(-20px, 2vw, 40px); bottom: 6%;
  font-size: clamp(120px, 22vw, 260px); opacity: .14;
  transform: rotate(-12deg); pointer-events: none; user-select: none;
  z-index: 1;
}

/* ---------- signup form ---------- */
.signup {
  display: flex; flex-wrap: wrap; gap: 12px; max-width: 520px;
}
.signup input[type="email"] {
  flex: 1 1 240px;
  font-family: inherit; font-size: 16px;
  padding: 15px 18px; color: var(--cream);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(155, 120, 72, .45);
  border-radius: 8px; outline: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.signup input::placeholder { color: rgba(239, 230, 214, .45); }
.signup input:focus {
  border-color: var(--papaya);
  background: rgba(255, 255, 255, .08);
}
.signup button {
  font-family: inherit; font-size: 15px; font-weight: 600;
  letter-spacing: .02em; white-space: nowrap;
  padding: 15px 26px; cursor: pointer;
  color: var(--cream); background: var(--papaya);
  border: none; border-radius: 8px;
  transition: transform .15s var(--ease), background .2s var(--ease);
}
.signup button:hover { background: var(--merlot); transform: translateY(-1px); }
.signup button:disabled { opacity: .6; cursor: wait; }
.signup__msg {
  flex-basis: 100%; font-size: 14px; min-height: 1.2em; margin-top: 2px;
}
.signup__msg.is-ok  { color: var(--rose); }
.signup__msg.is-err { color: var(--paradise); }
.signup__fine {
  margin-top: 14px; font-size: 12.5px;
  letter-spacing: .04em; color: rgba(239, 230, 214, .5);
}

/* ---------- lead-magnet offer ---------- */
.offer {
  max-width: 56ch; margin: 0 0 26px;
  font-size: clamp(14px, 1.9vw, 16.5px); line-height: 1.55;
  color: rgba(239, 230, 214, .82);
  padding-left: 18px; border-left: 2px solid var(--gold);
}
.offer__tag {
  display: inline-block; margin-right: 8px;
  font-family: "Tropica Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--vervain); background: var(--papaya);
  padding: 3px 9px; border-radius: 999px; vertical-align: middle;
}
.offer__es {
  display: block; margin-top: 8px;
  font-size: 12.5px; line-height: 1.5; font-style: italic;
  color: rgba(200, 160, 153, .7);
}

/* ============================================================
   PERMISO BAND
   ============================================================ */
.band {
  max-width: 860px; margin: 0 auto;
  padding: clamp(72px, 12vw, 130px) clamp(20px, 5vw, 48px);
  text-align: center;
}
.kicker { display: block; margin-bottom: 26px; }
.thesis {
  font-family: "Tropica Serif", Georgia, serif;
  font-size: clamp(30px, 6vw, 58px); line-height: 1.08;
  color: var(--cream); position: relative; margin-bottom: 30px;
}
.thesis em { display: block; }
.quotemark {
  font-family: "Tropica Serif", Georgia, serif;
  color: var(--gold); font-size: 1.4em; line-height: 0;
}
.band__body {
  font-size: clamp(16px, 2.2vw, 19px);
  color: rgba(239, 230, 214, .82); max-width: 60ch; margin: 0 auto 28px;
}
.band__body strong { color: var(--papaya); font-weight: 600; }
.band__signoff {
  font-size: clamp(28px, 5vw, 42px); color: var(--rose);
}

/* ============================================================
   LA CARTA — 7 DAYS
   ============================================================ */
.carta {
  max-width: 820px; margin: 0 auto;
  padding: clamp(48px, 8vw, 90px) clamp(20px, 5vw, 48px);
}
.carta .kicker { margin-bottom: 18px; }
.carta__title {
  text-align: center;
  font-family: "Tropica Serif", Georgia, serif; font-weight: 400;
  font-size: clamp(30px, 6vw, 52px); color: var(--cream);
  line-height: 1.05; margin-bottom: 16px;
}
.carta__lead {
  text-align: center; max-width: 56ch; margin: 0 auto 48px;
  font-size: clamp(15px, 2vw, 17px); color: rgba(239, 230, 214, .78);
}
.carta__lead-es {
  display: block; margin-top: 10px;
  font-size: 13px; line-height: 1.55; font-style: italic;
  color: rgba(200, 160, 153, .72);
}

.days { list-style: none; counter-reset: none; }
.day {
  display: flex; gap: clamp(16px, 3vw, 28px); align-items: baseline;
  padding: 22px 0; border-top: 1px solid rgba(155, 120, 72, .22);
}
.day:last-child { border-bottom: 1px solid rgba(155, 120, 72, .22); }
.day__n {
  font-family: "Tropica Serif", Georgia, serif;
  font-size: clamp(26px, 5vw, 40px); line-height: 1;
  color: var(--papaya); flex: 0 0 auto; min-width: 1.6em;
}
.day__body h3 {
  font-family: "Tropica Serif", Georgia, serif; font-weight: 400;
  font-size: clamp(19px, 2.6vw, 25px); color: var(--cream);
  line-height: 1.15; margin-bottom: 7px;
}
.day__es {
  font-size: 13px; line-height: 1.5; color: rgba(200, 160, 153, .72);
  font-style: italic;
}
.day__pdf {
  display: inline-block; margin-left: 6px; font-style: normal;
  font-family: "Tropica Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
}
.carta__after {
  text-align: center; max-width: 58ch; margin: 44px auto 0;
  font-size: clamp(14.5px, 2vw, 16px); color: rgba(239, 230, 214, .72);
}
.carta__after strong { color: var(--cream); font-weight: 600; }

/* ============================================================
   AMANDA
   ============================================================ */
.amanda {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 8vw, 90px) clamp(20px, 5vw, 48px);
  display: grid; gap: clamp(28px, 5vw, 60px);
  grid-template-columns: 1fr 1.2fr; align-items: center;
}
/* let both columns shrink so the image can't push the text off-screen */
.amanda__photo, .amanda__text { min-width: 0; }
@media (max-width: 760px) { .amanda { grid-template-columns: 1fr; } }
.amanda__photo {
  aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(155, 120, 72, .35);
}
.amanda__photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.amanda__text h2 {
  font-family: "Tropica Serif", Georgia, serif; font-weight: 400;
  font-size: clamp(22px, 4.6vw, 44px); color: var(--cream);
  margin: 14px 0 20px; line-height: 1.05; white-space: nowrap;
}
.amanda__text h2 span { color: var(--gold); }
.amanda__text p { font-size: 16px; color: rgba(239, 230, 214, .82); margin-bottom: 18px; }
.amanda__signoff { font-size: 32px; color: var(--rose); }

/* ============================================================
   CLOSER
   ============================================================ */
.closer {
  text-align: center;
  padding: clamp(80px, 12vw, 150px) clamp(20px, 5vw, 48px);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(110,20,35,.35) 0%, transparent 60%),
    var(--vervain);
  border-top: 1px solid rgba(155, 120, 72, .25);
}
.closer__title {
  font-family: "Tropica Serif", Georgia, serif; font-weight: 400;
  font-size: clamp(38px, 8vw, 72px); color: var(--cream); margin-bottom: 14px;
}
.closer__sub {
  font-size: clamp(15px, 2.2vw, 18px);
  color: rgba(239, 230, 214, .78); margin-bottom: 36px;
}
.signup--closer { margin: 0 auto; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  text-align: center;
  padding: 56px clamp(20px, 5vw, 48px) 64px;
  border-top: 1px solid rgba(155, 120, 72, .18);
}
.foot__brand {
  font-family: "Tropica Serif", Georgia, serif;
  font-size: 22px; color: var(--cream); margin-bottom: 14px;
}
.foot__line { font-size: 13px; color: rgba(239, 230, 214, .55); margin-bottom: 6px; }
.foot__line a { color: var(--gold); text-decoration: none; }
.foot__line a:hover { color: var(--papaya); }
.foot__disclaimer {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 11.5px; color: rgba(239, 230, 214, .5);
  max-width: 60ch; margin: 18px auto 0; line-height: 1.6;
  letter-spacing: normal; text-transform: none;
}

/* ---------- reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}
