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

:root {
  --red: #b21615;
  --dark: #5a0201;
  --cream: #fcf3e5;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Archivo", system-ui, sans-serif;
  background: var(--red) url("../img/Vector_FONDO_dark.svg") center / cover no-repeat fixed;
  color: var(--cream);
}

.cover {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

/* Logo: max 300px (18.75rem), fluid below that */
.logo {
  position: relative;
  width: min(18.75rem, 80vw);
  container-type: inline-size;
  margin-bottom: 8%; /* room for the Instagram box */
  animation: fadeUp 0.9s ease-out both;
}

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

/* Rectangles recreated in CSS, aligned with the logo's viewBox (539 × 493) */
.logo__box {
  position: absolute;
  left: 10%;
  width: 80%;
  height: 6.49%;  /* 32 / 493 */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark);
  color: var(--cream);
  font-size: 5cqi;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.logo__box--1 { top: 80.3%; }   /* 395.9 / 493 */
.logo__box--2 { top: 88.52%; }  /* 436.4 / 493 */
.logo__box--3 { top: 96.74%; }  /* same spacing, below the logo */

.logo__box:hover,
.logo__box:focus-visible {
  background-color: var(--cream);
  color: var(--dark);
  transform: scale(1.04);
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(1rem); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .logo, .logo__box { animation: none; transition: none; }
}
