/* ==========================================================================
   ALMA NORTH — Propiedad de Nadie
   Paleta y tipografía extraídas del logo y del brief de marca.
   ========================================================================== */

:root{
  /* Color */
  --c-black:        #080706;
  --c-mahogany:     #2B1710;
  --c-leather:      #3A2017;
  --c-gold:         #B58A58;
  --c-gold-bright:  #D8B588;
  --c-cream:        #E8D6BD;
  --c-cream-dim:    rgba(232, 214, 189, 0.62);
  --c-cream-faint:  rgba(232, 214, 189, 0.32);
  --c-line:         rgba(181, 138, 88, 0.35);

  /* Type */
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Rhythm */
  --gap-air: clamp(2.75rem, 8vw, 6rem);
  --max-w: 620px;

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

*{ box-sizing: border-box; }

html{
  background: var(--c-black);
}

body{
  margin: 0;
  background:
    radial-gradient(ellipse 120% 70% at 50% 0%, var(--c-mahogany) 0%, var(--c-black) 62%);
  color: var(--c-cream);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
}

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

/* ---------- Layout ---------- */

.hero{
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3.5rem 1.5rem 0;
  padding-top: clamp(3rem, 10vh, 7rem);
}

.hero__inner{
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---------- Reveal on load ----------
   Sin JS (o si falla): todo visible desde el principio, sin animación.
   Con JS: la clase "js" la añade un script inline en <head>, así que
   los elementos parten ya ocultos antes del primer pintado. */

.js [data-reveal]{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js [data-reveal].is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Brand mark ---------- */

.brand{
  margin-bottom: var(--gap-air);
}
.brand__mark{
  width: 130px; /* respaldo para navegadores muy antiguos sin soporte de clamp() */
  width: clamp(96px, 20vw, 160px);
  height: auto;
  display: block;
  /* el propio PNG ya trae las esquinas redondeadas con transparencia real,
     no hace falta recortarlo por CSS */
  box-shadow: 0 0 60px rgba(181,138,88,0.10);
}
.brand__word{
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  letter-spacing: 0.14em;
  color: var(--c-gold);
  margin: 0;
}

/* ---------- Hairline ---------- */

.hairline{
  display: block;
  width: 64px;
  height: 1px;
  background: var(--c-gold);
  margin-bottom: var(--gap-air);
}
.js .hairline{
  width: 0;
  transition: width 1.1s var(--ease) .1s;
}
.js .hairline.is-visible{
  width: 64px;
}

/* ---------- Title ---------- */

.title{
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: normal;
  font-size: 2.8rem;
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--c-cream);
  margin: 0 0 1.6rem;
}

.tagline{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  color: var(--c-gold-bright);
  margin: 0 0 2.75rem;
}

.invite{
  font-family: var(--font-sans);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: var(--c-cream-dim);
  margin: 0 0 2.25rem;
}

/* ---------- Form ---------- */

.signup-wrap{
  width: 100%;
  margin-bottom: var(--gap-air);
  min-height: 118px;
}

.signup{
  width: 100%;
}

.signup__row{
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

#email{
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-cream);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.7rem 0.2rem;
  text-align: center;
  transition: border-color .35s var(--ease);
}
#email::placeholder{
  color: var(--c-cream-faint);
}
#email:focus{
  outline: none;
  border-bottom-color: var(--c-gold);
}

.signup__submit{
  appearance: none;
  background: transparent;
  border: 1px solid var(--c-gold);
  color: var(--c-gold-bright);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  padding: 0.95rem 1.5rem;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color .35s var(--ease), color .35s var(--ease), background-color .35s var(--ease);
}
.signup__submit:hover,
.signup__submit:focus-visible{
  border-color: var(--c-gold-bright);
  color: var(--c-black);
  background-color: var(--c-gold-bright);
}
.signup__submit:disabled{
  opacity: 0.5;
  cursor: default;
}

.consent-note{
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--c-cream-faint);
}
.consent-note a{
  color: var(--c-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-note a:hover{ color: var(--c-gold-bright); }

.form__status{
  min-height: 1.2em;
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  color: #C98A6E;
}
.form__status:empty{ display:none; }

.success{
  animation: rise .9s var(--ease);
}
.success__title{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: var(--c-gold-bright);
  margin: 0 0 0.5rem;
}
.success__body{
  font-size: 0.88rem;
  color: var(--c-cream-dim);
  margin: 0;
}
@keyframes rise{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ---------- Social ---------- */

.social{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--c-cream-faint);
}
.social a{
  color: var(--c-cream-dim);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.social a:hover{ color: var(--c-gold); }

/* ---------- Footer ---------- */

.footer{
  width: 100%;
  max-width: var(--max-w);
  margin-top: clamp(3rem, 10vh, 6rem);
  padding: 1.75rem 1.5rem 2.25rem;
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--c-cream-faint);
  text-align: center;
}
.footer p{ margin: 0; }
.footer a{
  color: var(--c-cream-faint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.footer a:hover{
  color: var(--c-gold);
  border-color: var(--c-gold);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce){
  .js [data-reveal],
  .js [data-reveal].is-visible,
  .hairline,
  .js .hairline.is-visible,
  .success{
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    width: 64px !important;
  }
}

/* ---------- Small phones ---------- */

@media (max-width: 360px){
  .title{ font-size: 2.3rem; }
}

/* ---------- Larger screens: extra breathing room ---------- */

@media (min-width: 900px){
  .hero{ padding-top: 9vh; }
  :root{ --max-w: 640px; }
}
