/* Approved launch direction: Chilli canvas, white ribbons, original reverse Bite logo.
   DESIGN_VARIANCE: 5; MOTION_INTENSITY: 4; VISUAL_DENSITY: 2.
   Ribbons are CSS artwork; entrance motion establishes the announcement hierarchy. */
@font-face {
  font-family: 'Nunito Sans';
  src: url('assets/nunito-sans-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito Sans';
  src: url('assets/nunito-sans-extrabold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --chilli: #c9362b;
  --fold: #fcedeb;
  --ink: #222222;
  --slate: #626262;
  --white: #ffffff;
  font-family: 'Nunito Sans', sans-serif;
  color: var(--white);
  background: var(--chilli);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
::selection {
  background: var(--white);
  color: var(--chilli);
}

.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  min-height: 100dvh;
  padding: max(40px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
}

.brand {
  display: flex;
  justify-content: center;
}
.brand img {
  width: 170px;
  height: auto;
  display: block;
}
.teaser {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(76px, 13vh, 104px);
  padding: 68px 0 54px;
}

.announcement {
  position: relative;
  width: min(650px, 76vw, 87svh);
}

.ribbons {
  position: relative;
  width: 100%;
  aspect-ratio: 1.88;
  margin: 0;
  transform: rotate(-9deg);
  isolation: isolate;
  font-size: clamp(52px, 12.7vw, 112px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}

.ribbon {
  position: absolute;
  display: grid;
  place-items: center;
  width: 100%;
  height: 46%;
  background: var(--white);
  color: var(--chilli);
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}

.ribbon-coming {
  top: 0;
  z-index: 2;
  padding-bottom: 0.04em;
}
.ribbon-soon {
  bottom: 0;
  z-index: 2;
  padding-bottom: 0.04em;
}
.ribbon-fold {
  position: absolute;
  inset: 44% 0 auto;
  height: 14%;
  background: var(--fold);
  clip-path: polygon(0 0, 94% 0, 100% 100%, 6% 100%);
}

.tagline {
  margin: 0;
  max-width: 32ch;
  text-align: center;
  font-size: clamp(19px, 2.3vw, 25px);
  line-height: 1.45;
  letter-spacing: -0.025em;
}
.tagline span {
  white-space: nowrap;
}
a {
  color: var(--white);
}
a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}
.footer p {
  margin: 0;
  text-align: center;
  color: var(--white);
  font-size: 14px;
}
.footer span {
  color: var(--white);
  font-weight: 800;
}

.burst {
  position: absolute;
  width: 46px;
  height: 58px;
}
.burst i {
  display: block;
  position: absolute;
  background: var(--white);
}
.burst i:first-child {
  width: 23px;
  height: 45px;
  clip-path: polygon(0 0, 100% 100%, 0 70%);
}
.burst i:last-child {
  left: 24px;
  width: 16px;
  height: 32px;
  clip-path: polygon(0 0, 100% 0, 85% 100%);
}
.burst-left {
  left: -66px;
  top: 6%;
  transform: rotate(-21deg);
}
.burst-right {
  right: -58px;
  bottom: 1%;
  transform: rotate(159deg) scale(0.85);
}

@media (prefers-reduced-motion: no-preference) {
  .ribbons {
    animation: ribbon-enter 850ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .tagline {
    animation: copy-enter 650ms 220ms ease-out both;
  }
  .burst {
    animation: burst-enter 600ms 350ms ease-out both;
  }
}

@keyframes ribbon-enter {
  from {
    opacity: 0;
    transform: translateY(22px) rotate(-5deg) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-9deg) scale(1);
  }
}
@keyframes copy-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes burst-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .page {
    padding: max(32px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  }
  .brand img {
    width: 145px;
  }
  .teaser {
    gap: 42px;
    padding: 66px 0 58px;
  }
  .announcement {
    width: min(82vw, 580px);
  }
  .ribbons {
    font-size: 14.1vw;
  }
  .tagline {
    max-width: 27ch;
    font-size: 20px;
  }
  .burst-left {
    left: -10px;
    top: -58px;
    transform: rotate(-21deg) scale(0.66);
  }
  .burst-right {
    right: -5px;
    bottom: -57px;
    transform: rotate(159deg) scale(0.58);
  }
}

@media (max-height: 760px) and (min-width: 768px) {
  .page {
    padding-top: 22px;
    padding-bottom: 20px;
  }
  .brand img {
    width: 130px;
  }
  .teaser {
    padding: 32px 0 24px;
    gap: 60px;
  }
  .announcement {
    width: min(560px, 76svh);
  }
  .ribbons {
    font-size: 12.9svh;
  }
  .tagline {
    font-size: 20px;
  }
}

@media (max-height: 450px) and (min-width: 768px) {
  .page {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .brand img {
    width: 110px;
  }
  .teaser {
    padding: 20px 0;
    gap: 24px;
  }
  .announcement {
    width: min(360px, 64svh);
  }
  .ribbons {
    font-size: 10.7svh;
  }
  .tagline {
    font-size: 18px;
  }
  .burst {
    display: none;
  }
}
