html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #090909;
}

body {
  display: grid;
  place-items: center;
}

.weekend {
  --ratio: 1200 / 145;
  position: relative;
  display: block;
  width: min(100%, calc(100vh * var(--ratio)));
  aspect-ratio: var(--ratio);
  container-type: inline-size;
  overflow: hidden;
  isolation: isolate;
  box-sizing: border-box;
  background: #090909;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
}

.weekend__background {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.weekend::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(0 0 0 / 15%), #111 43%, #111 60%, #b50a32 60%);
}

.weekend__brand,
.weekend__offer,
.weekend__details {
  position: absolute;
  box-sizing: border-box;
}

.weekend__brand {
  inset: 19% auto auto 2.5%;
  display: grid;
  justify-items: center;
  width: 30%;
  text-align: center;
}

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

.weekend__edition {
  display: inline-block;
  margin-top: 1cqw;
  color: #f8d577;
  font-size: 1.1cqw;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-transform: uppercase;
}

.weekend__offer {
  inset: 6% auto auto 35%;
  width: 24%;
  text-align: center;
}

.weekend__previous {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.45em;
  color: #eee;
  font-size: 1.25cqw;
  line-height: 1;
}

.weekend__previous del {
  font-size: 1.8cqw;
  font-weight: 700;
  text-decoration-thickness: 0.12em;
  text-decoration-color: #f8d577;
}

.weekend__percentage {
  display: block;
  color: #f8d577;
  font-size: 6.2cqw;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.weekend__discount {
  display: block;
  margin-top: 0.2cqw;
  font-size: 1.2cqw;
  font-weight: 700;
  line-height: 1.1;
}

.weekend__details {
  inset: 9% 1.5% auto auto;
  width: 37%;
  text-align: center;
}

.weekend__period {
  display: block;
  color: #fff;
  font-size: 1.9cqw;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}

.weekend__scope {
  display: block;
  margin-top: 0.5cqw;
  font-size: 1.08cqw;
  line-height: 1.25;
}

.weekend__cta {
  display: inline-block;
  margin-top: 0.65cqw;
  padding: 0.5cqw 1.3cqw;
  background: #fff;
  color: #86102c;
  font-size: 1.1cqw;
  font-weight: 700;
  line-height: 1.2;
}

.weekend:hover .weekend__cta {
  background: #f8d577;
}

.weekend:focus-visible {
  outline: 3px solid #f8d577;
  outline-offset: -3px;
}

.weekend--mobile {
  --ratio: 1;
}

.weekend--mobile::before {
  background: linear-gradient(180deg, rgb(0 0 0 / 10%), rgb(0 0 0 / 78%) 43%, #111 43%, #111 66%, #b50a32 66%);
}

.weekend--mobile .weekend__brand {
  inset: 3% auto auto 21%;
  width: 58%;
}

.weekend--mobile .weekend__edition {
  margin-top: 0.8cqw;
  font-size: 3cqw;
  letter-spacing: 0.1em;
}

.weekend--mobile .weekend__offer {
  inset: 36% 5% auto;
  display: grid;
  grid-template-columns: 25% 75%;
  align-items: center;
  width: 90%;
}

.weekend--mobile .weekend__previous {
  display: grid;
  gap: 0.3cqw;
  font-size: 3.5cqw;
}

.weekend--mobile .weekend__previous del {
  font-size: 7.5cqw;
}

.weekend--mobile .weekend__percentage {
  font-size: 24cqw;
  line-height: 0.95;
}

.weekend--mobile .weekend__discount {
  grid-column: 1 / -1;
  margin-top: 0.8cqw;
  font-size: 4.2cqw;
}

.weekend--mobile .weekend__details {
  inset: 69% 4% auto;
  width: 92%;
}

.weekend--mobile .weekend__period {
  font-size: 5.3cqw;
}

.weekend--mobile .weekend__scope {
  margin-top: 1.5cqw;
  font-size: 3.6cqw;
  line-height: 1.2;
}

.weekend--mobile .weekend__cta {
  margin-top: 2.4cqw;
  padding: 1.6cqw 3.3cqw;
  font-size: 3.5cqw;
}
