/* =========================================================
   MILMAPACHES — Coming soon
   ========================================================= */

:root {
  --orange: #e94f1c;
  --black: #08080d;
  --yellow: #ffcd1c;
  --max-width: 1450px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--orange);
  color: var(--black);
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  font-optical-sizing: auto;
}

/* ---------- Grano ---------- */

.noise {
  position: fixed;
  inset: -25%;
  z-index: 20;
  width: 150%;
  height: 150%;
  pointer-events: none;
  
  opacity: 50%;
  mix-blend-mode: overlay;
}


/* ---------- Composición ---------- */

.page {
  position: relative;
  min-height: 100svh;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 64px) clamp(28px, 5vw, 72px) 34px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* ---------- Logo ---------- */

.logo {
  width: min(58vw, 660px);
  margin-left: auto;
  margin-right: 15%;
  /*margin-top: clamp(50px, 7vw, 105px);*/
  margin-top: 0px;
  z-index: 2;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Hero ---------- */

.hero {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(480px, 1.06fr);
  align-items: center;
  gap: clamp(54px, 6vw, 105px);
  /*margin-top: -2vh;*/
  margin-top: -30vh;
}

.image-wrap {
  /*margin: 0;*/
  margin-left: 25%;
  margin-right: auto;
  width: min(100%, 420px);
  justify-self: center;
  transform: rotate(-2deg);
}

.image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.38 / 1;
  object-fit: cover;
}

.copy {
  max-width: 500px;
  padding-top: 4vh;

}

.copy h1 {
  margin: 0 0 30px;
  font-size: clamp(16px, 1.75vw, 31px);
  line-height: 1.18;
  letter-spacing: -0.045em;
  font-weight: 700;
  text-align: center;
}

.copy p {
  margin: 0;
  max-width: 670px;
  font-size: clamp(10px, 1.18vw, 21px);
  line-height: 1.45;
  letter-spacing: -0.035em;
  font-weight: 500;
  text-align: center;
}

.copy a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

.footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 24px;
  padding-top: 50px;
  color: var(--yellow);
  font-size: clamp(14px, 1.1vw, 20px);
  line-height: 1.2;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer > :nth-child(2) {
  text-align: center;
}

.footer > :last-child {
  text-align: right;
}

/* ---------- Tablet ---------- */

@media (max-width: 900px) {
  .page {
    padding-inline: 28px;
  }

  .logo {
    width: min(72vw, 620px);
    margin-top: 40px;
    margin-right: 0;
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 50px;
  }

  .image-wrap {
    width: min(74vw, 560px);
    justify-self: start;
    margin-left: 3%;
  }

  .copy {
    max-width: 720px;
    padding-top: 0;
    margin-left: auto;
  }

  .copy h1 {
    font-size: clamp(20px, 3vw, 28px);
  }

  .copy p {
    font-size: clamp(15px, 2vw, 19px);
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 600px) {
  .page {
    min-height: 100svh;
    padding: 24px 20px 24px;
  }

  .noise {
    opacity: 0.4;
  }

  .logo {
    width: 88%;
    margin-top: 20px;
    margin-right: 3%;
  }

  .hero {
    gap: 30px;
    margin-top: -80px;
    padding-right:5%;
    padding-left: 5%;
  }

  .image-wrap {
    width: 84%;
    margin-left: 7%;
    transform: rotate(-2deg);
  }

  .copy {
    margin: 0;
    padding: 0 2px;
  }

  .copy h1 {
    margin-bottom: 24px;
    font-size: clamp(16px, 5.25vw, 24px);
    line-height: 1.22;
    letter-spacing: -0.055em;
  }

  .copy p {
    font-size: clamp(12px, 4vw, 17px);
    line-height: 1.48;
    letter-spacing: -0.045em;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 56px;
    font-size: 13px;
    text-align: center;
  }

  .footer > :nth-child(2),
  .footer > :last-child {
    text-align: center;
  }
}

/*

@media (max-width: 380px) {
  .page {
    padding-inline: 16px;
  }

  .logo {
    width: 94%;
  }

  .hero {
    margin-top: 34px;
  }

  .image-wrap {
    width: 92%;
  }

  .footer {
    font-size: 12px;
  }
}*/

/* ---------- Eficiencia CPU ---------- */

 @media (prefers-reduced-motion: reduce) {
  .noise {
    display: none;
  }
}


/*@keyframes grano-ruido {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-5%, -10%); }
  50% { transform: translate(-15%, 5%); }
  75% { transform: translate(-2%, -15%); }
  100% { transform: translate(0, 0); }
}*/
