/* ============================================================
   OTROS PRESENTES — Landing Page Styles
   ============================================================ */


/* ── 1. DESIGN TOKENS ────────────────────────────────────────
   Edit these variables to change colours, type, and spacing.
   ──────────────────────────────────────────────────────────── */

:root {
  /* Backgrounds */
  --color-bg:           #ececec;   /* Hero section background */
  --color-bg-info:      #000000;   /* Info section background */

  /* Text */
  --color-ink:          #0f0e0b;   /* Base / seed-pass text */
  --color-muted:        #7a7060;   /* Subtle / secondary text */

  /* Poem pass colours */
  --color-seed:         #6ce1f9;   /* Seed words (espacios, mundos…) */
  --color-pass-1:       #aac1b4;   /* First expansion pass */
  --color-pass-2:       #ff514a;   /* Second expansion pass */

  /* Brackets & cursor */
  --color-bracket:      #34ff79;   /* All [ ] characters */
  --color-cursor:       rgba(43, 253, 79, 0.38);   /* Blinking cursor */

  /* Info section text */
  --color-info-text:    #ececec;
  --color-info-cat:    #a8ffd6;

  /* Typography */
    --font-main:          'neue-haas-unica', sans-serif;
  --font-main-poem:          'Neue Haas Unica W06 Medium', sans-serif;
  --font-size-poem:     clamp(2rem, 2.4vw, 1.48rem);
  --font-size-info:     clamp(1.4rem, 1.8vw, 1.1rem);
  --font-size-colophon: clamp(1.2rem, 1.4vw, 0.95rem);
  --line-height-poem:   1.5;
  --line-height-info:   1.5;
  --letter-spacing:     -0.02em;

  /* Layout */
  --pad:                clamp(1.2rem, 5vw, 3rem);
  --max-width:          605px;
  --hero-padding:       4rem;
}

@import url(https://db.onlinewebfonts.com/c/9c0afb6841117a1e2256b49b040cb768?family=Neue+Haas+Unica+W06+Medium);



/* ── 2. RESET ─────────────────────────────────────────────── */

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


/* ── 3. BASE ──────────────────────────────────────────────── */

html, body { height: 100%; }

.logo {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  width: 120px; /* adjust to taste */
}

body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-main-poem);
  overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
}


/* ── 4. HERO SECTION ──────────────────────────────────────── */

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--hero-padding) var(--pad);
  overflow: hidden;
}

/* Stage: shifts right during expansion passes */
.stage {
  width: calc(100vw - var(--pad) * 2);
  max-width: var(--max-width);
  will-change: transform;
  animation: rise 0.8s cubic-bezier(.4, 0, .2, 1) both;
  transition: transform 0.04s linear;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ── 5. POEM ──────────────────────────────────────────────── */

.poem {
  font-size: var(--font-size-poem);
  line-height: var(--line-height-poem);
  letter-spacing: var(--letter-spacing);
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.line { display: block; }

/* Individual typed character spans */
.ch {
  display: inline;
  opacity: 0;
  transition: opacity 0.08s ease;
}
.ch.on      { opacity: 1; }

/* Colour classes */
.ch.seed    { color: var(--color-seed); }
.ch.exp-1   { color: var(--color-pass-1); }
.ch.exp-2   { color: var(--color-pass-2); }
.ch.exp-3   { color: var(--color-pass-2); }
.ch.bracket { color: var(--color-bracket) !important; }

/* Invisible anchor markers */
.anchor { display: inline; }

/* Blinking cursor */
.cursor {
  display: inline-block;
  width: 0.15ch;
  height: 1.5em;
  background: var(--color-cursor);
  vertical-align: text-bottom;
  margin-left: 0px;
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.cursor.hidden { display: none; }


/* ── 6. INFO SECTION ──────────────────────────────────────── */

.info-wrap {
  font-family: var(--font-main);

  background: var(--color-bg-info);
  padding: 50px 50px 10px 0px;
  position: relative;
}

.info-logo {
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 3rem);
  right: clamp(15rem, 4vw, 3rem);
  width: clamp(60px, 8vw, 100px);
  opacity: 0.9;
}


.info {
  color: var(--color-info-text);
  padding: 10px 10px 10px 10px;
  max-width: var(--max-width);
  margin: 3rem;
}

.info p {
  font-size: var(--font-size-info);
  line-height: var(--line-height-info);
  margin-bottom: 1.4em;
}

.info p.cat {
  font-size: var(--font-size-info);
  line-height: var(--line-height-info);
  color: var(--color-info-cat);
  margin-bottom: 1.4em;
}

.info p:last-child {
  margin-bottom: 100px;
  opacity: 0.5;
  font-size: var(--font-size-colophon);
}

hr {
  display: block;
  margin-top: 2.5em;
  margin-bottom: 1.5em;
  margin-left: auto;
  margin-right: auto;
  border-style: inset;
  border-width: 1px;
}
hr.dotted {
 border-top: 1px dotted;
 border-bottom: none;
}

    a:-webkit-any-link {
        color: whitesmoke;
        text-decoration-color: lightgray;

        }

    a:hover {
        color: springgreen;
        text-decoration: underline;
        -webkit-transition: all 500ms cubic-bezier(01, 0, 0, 1);
        -moz-transition: all 500ms cubic-bezier(1, 0, 0, 1);
        cursor: pointer;
    }


@media only screen and (max-width: 414px)  {

     @viewport {
   width: device-width;
   zoom:1;
}
 :root {
    --font-size-poem:     clamp(1.35rem, 2.4vw, 1.48rem);
  }
  
  .info-wrap {
      font-family: var(--font-main);
  background: var(--color-bg-info);
  padding: 50px 10px 10px 0px;
}



.info {
  color: var(--color-info-text);
  padding: 10px 10px 10px 10px;
  max-width: var(--max-width);
  margin: 1rem;
}

.info p {
  font-size: var(--font-size-info);
  line-height: var(--line-height-info);
  margin-bottom: 1.4em;
}

.info p:last-child {
  margin-bottom: 50px;
  opacity: 0.5;
  font-size: var(--font-size-colophon);
  padding-bottom: 50px;
}

}