/* Charlemos ofrenda page — Bitácora tokens, dark canvas, collage pieces */

:root {
  --cream: #EEE4DA;
  --dark: #292D2E;
  --red: #D6142A;
  --text-dark: #2E2724;
  --hero: #f5efe0;
  --sans: "Karla", -apple-system, "Segoe UI", sans-serif;
  --mono: "Karla", -apple-system, "Segoe UI", sans-serif;
  --display: "Rubik Mono One", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

html, body {
  margin: 0;
  background: var(--dark);
  overflow-x: hidden;
}

body {
  --main-design-w: 5121;
  --main-design-h: 12684;
  --main-stage-w: min(100vw, calc(1px * var(--main-design-w)));
  --main-stage-h: calc(var(--main-stage-w) * var(--main-design-h) / var(--main-design-w));
  --main-stage-x: calc((100vw - var(--main-stage-w)) / 2);

  font-family: var(--sans);
  color: var(--text-dark);
  line-height: 1.6;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  position: relative;
}

/* Same slot as #piece-hanuman on main.html */
.charlemos-hanuman-slot {
  position: absolute;
  left: calc(var(--main-stage-x) + var(--main-stage-w) * 0.412);
  top: calc(var(--main-stage-h) * 0.144);
  width: calc(var(--main-stage-w) * 0.176);
  height: calc(var(--main-stage-h) * 0.118);
  z-index: 0;
  pointer-events: none;
}

.charlemos-hanuman-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right top;
  opacity: 0.5;
  display: block;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 48px;
  text-align: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: rise 1s ease-out 0.1s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

h1.title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 9vw, 3.4rem);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
  text-shadow: 0 1px 12px rgba(41, 45, 46, 0.9);
}

.subtitle {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  color: var(--red);
  text-transform: uppercase;
  margin: 0 0 30px;
}

.hero p {
  font-size: 1.02rem;
  max-width: 480px;
  margin: 0 auto 18px;
  color: var(--hero);
  text-shadow: 0 1px 10px rgba(41, 45, 46, 0.85);
}

.hero p:last-child { margin-bottom: 0; }

/* ---------- Blob cards ---------- */

.blob {
  background: var(--cream);
  padding: 48px 42px;
  margin: 28px 0;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.blob--a { border-radius: 42% 58% 61% 39% / 45% 40% 60% 55%; }
.blob--b { border-radius: 55% 45% 38% 62% / 40% 55% 45% 60%; }
.blob--c { border-radius: 38% 62% 55% 45% / 58% 42% 58% 42%; }

.blob h2 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--red);
  margin: 0 0 20px;
}

.blob p {
  margin: 0 auto 14px;
  font-size: 1rem;
  max-width: 34ch;
}

.blob p:last-child { margin-bottom: 0; }

ul.plain {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 34ch;
}

ul.plain li {
  padding: 0 0 14px;
  font-size: 1rem;
}

ul.plain li:last-child { padding-bottom: 0; }

ul.plain li::before {
  content: "• ";
  color: var(--red);
}

.two-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---------- CTA ---------- */

.cta-wrap {
  text-align: center;
  padding: 56px 0 72px;
}

.cta-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  border: none;
  border-radius: 46% 54% 58% 42% / 50% 46% 54% 50%;
  background: var(--cream);
  color: var(--dark);
  text-decoration: none;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
  font-family: var(--mono);
  text-transform: uppercase;
  cursor: pointer;
}

.cta-button:hover { transform: translateY(-3px) scale(1.02); }

.cta-button:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
}

.cta-button .label {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.fine-print {
  margin: 24px auto 0;
  max-width: 36ch;
  font-size: 0.85rem;
  color: var(--cream);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* ---------- Footer ---------- */

footer {
  padding: 32px 0 48px;
  text-align: center;
}

footer .logo {
  font-family: var(--display);
  font-size: 1.6rem;
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 18px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

footer .meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--cream);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

footer a { color: var(--cream); }

@media (max-width: 480px) {
  .hero { padding: 64px 0 32px; }
  .blob { padding: 30px 24px; margin: 20px 0; }
  .cta-button { width: 190px; height: 190px; }
}
