:root {
  --paper: #E9EDE8;
  --ink: #1B2220;
  --muted: #55605B;
  --celeste: #74ACDF;
  --space: clamp(1.25rem, 5vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
::selection { background: var(--celeste); color: var(--ink); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Todo el contenido centrado en la hoja */
.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    max(var(--space), env(safe-area-inset-top))
    max(var(--space), env(safe-area-inset-right))
    max(var(--space), env(safe-area-inset-bottom))
    max(var(--space), env(safe-area-inset-left));
}
.sheet { width: 100%; max-width: 40rem; text-align: center; }

/* Nombre como mástil */
.title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(3.25rem, 17vw, 7.5rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.02em;
}
.title a { color: inherit; text-decoration: none; }

/* Faja de datos entre dos filetes */
.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .3rem 1.25rem;
  padding: .55rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.3;
}
.strip p { margin: 0; }
.tag { padding: .1rem .8rem; background: var(--celeste); font-style: normal; }

/* Frase principal */
.headline {
  margin: 1.75rem auto 1rem;
  max-width: 14em;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(2.1rem, 8vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
}
.lede { margin: 0 0 1rem; color: var(--muted); font-size: 1.2rem; }

/* Contacto: mail escrito + ícono de Instagram */
.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .5rem 1.25rem;
}
.mail {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  font-size: 1.2rem;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--celeste);
  text-decoration-thickness: 2px;
  text-underline-offset: .25em;
}
.mail:hover { background: var(--celeste); text-decoration-color: transparent; }

.ig, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border: 1px solid var(--ink);
  transition: background-color .2s;
}
.ig { width: 2.75rem; height: 2.75rem; border-radius: 50%; }
.ig svg { width: 1.4rem; height: 1.4rem; }
.btn { min-height: 2.75rem; padding: .4rem 1.4rem; border-radius: 999px; text-decoration: none; font-size: 1.1rem; }
.btn--solid { background: var(--ink); color: var(--paper); }
.ig:hover, .btn:hover { background: var(--celeste); border-color: var(--celeste); color: var(--ink); }
.contact + .contact { margin-top: .75rem; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Escritura del título (una sola vez, al cargar) */
.js [data-type] { visibility: hidden; }
.w { white-space: nowrap; }
.c { opacity: 0; }
.c.on { opacity: 1; }
.cursor {
  display: inline-block;
  width: 0;
  height: .8em;
  border-left: .05em solid var(--celeste);
  margin-right: -.05em;
  vertical-align: -.04em;
  animation: blink 1.1s steps(1) 5;
}
@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  .ig, .btn { transition: none; }
}
