/* Aprende Biblia — design tokens
   bg:       #0c0906  (near-black, warm brown-black)
   bg-alt:   #16100a
   line:     #2a2118
   gold-dim: #8a6a3a
   gold:     #cf9d4f
   gold-hi:  #f3c878
   text:     #ece3d2
   text-mut: #a4937c
   Display:  "Fraunces" (warm, scripture-adjacent serif, used with restraint)
   Body:     "Inter"
   Utility:  "Inter", tracked-out small caps for labels
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0c0906;
  --bg-alt: #16100a;
  --line: #2a2118;
  --gold-dim: #8a6a3a;
  --gold: #cf9d4f;
  --gold-hi: #f3c878;
  --text: #ece3d2;
  --text-mut: #a4937c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

a { color: var(--gold-hi); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 24px 72px;
  text-align: center;
  overflow: hidden;
}

.rays {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 420px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(243,200,120,0.16), transparent 60%);
}

.rays::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-conic-gradient(
    from -8deg at 50% 0%,
    rgba(243,200,120,0.10) 0deg 1.2deg,
    transparent 1.2deg 6deg
  );
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 70%);
  animation: sway 14s ease-in-out infinite;
}

@keyframes sway {
  0%, 100% { transform: rotate(-1.5deg); }
  50% { transform: rotate(1.5deg); }
}

.icon {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(243,200,120,0.15);
  margin-bottom: 28px;
}

.eyebrow {
  position: relative;
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero h1 {
  position: relative;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  color: var(--text);
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-hi);
}

.tagline {
  position: relative;
  max-width: 480px;
  margin: 20px auto 0;
  color: var(--text-mut);
  font-size: 1.05rem;
}

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 10px 20px;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--text-mut);
  letter-spacing: 0.02em;
}

.pill svg { width: 14px; height: 14px; fill: var(--gold); }

/* ---------- Sections ---------- */
section.block {
  border-top: 1px solid var(--line);
  padding: 56px 24px;
}

section.block h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: var(--text);
}

section.block p {
  color: var(--text-mut);
  margin: 0 0 14px;
}

section.block p:last-child { margin-bottom: 0; }

.label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* FAQ */
.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.faq-item p { color: var(--text-mut); margin: 0; }

/* Contact card */
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
}

.contact-card .who {
  font-size: 0.95rem;
  color: var(--text-mut);
}

.contact-card .email {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  color: var(--gold-hi);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 2px;
}
.contact-card .email:hover { border-color: var(--gold-hi); }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 24px 48px;
  text-align: center;
}
footer p {
  color: var(--text-mut);
  font-size: 13px;
  margin: 0 0 8px;
}
footer a {
  color: var(--text-mut);
  text-decoration: underline;
  text-underline-offset: 3px;
}
footer a:hover { color: var(--gold-hi); }

/* Legal page specifics */
.legal h1 { font-size: clamp(2rem, 5vw, 2.6rem); }
.legal .updated {
  color: var(--text-mut);
  font-size: 13px;
  margin-top: 10px;
}
.legal-body h2 {
  font-size: 1.15rem;
  margin: 36px 0 12px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li {
  color: var(--text-mut);
  margin: 0 0 12px;
}
.legal-body ul { padding-left: 20px; }
.back-link {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 13.5px;
  color: var(--text-mut);
  text-decoration: none;
}
.back-link:hover { color: var(--gold-hi); }
