/* =============================================================================
   COMING SOON

   A placeholder page. Nothing here is shared, so every class is soon-
   prefixed and this file can be deleted whole when the real page lands.
   ========================================================================== */

.soon {
  --soon-red:      #B5121A;
  --soon-red-deep: #B5121A;

  /* The dome's width as a share of the viewport. It overhangs both edges in
     the design, so above 100% is deliberate. */
  --soon-dome-w: 100%;

  min-height: 100svh;
  margin: 0;
  background: #FFFFFF;
  /* svh, not vh: on a phone vh is the height with the address bar hidden,
     so a full-height layout sits taller than the visible screen until the
     user scrolls. svh is what is actually on screen. */
  display: grid;
  grid-template-rows: auto 1fr;
  overflow-x: hidden;         /* the dome overhangs; this trims it */
}

.soon__inner {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  justify-items: center;
  width: 100%;
}

/* ---- Logos ------------------------------------------------------------------- */

.soon__brand {
  display: grid;
  justify-items: center;
  gap: clamp(0.5rem, 2.5vw, 1rem);
  padding: clamp(1.5rem, 7vw, 3rem) var(--gutter, 1.25rem) clamp(1rem, 5vw, 2rem);
}

.soon__logo {
  width: auto;
  height: auto;
  display: block;
}

/* Heights, not widths. The two marks have different proportions, so matching
   their widths would leave one visually larger than the other. */
.soon__logo--tops    { height: clamp(3.75rem, 16vw, 6.5rem) }
.soon__logo--foodies { height: clamp(5rem, 22vw, 7.5rem); }

/* ---- The dome ------------------------------------------------------------------
   Two layers: a pale outer disc and the solid one on top, offset slightly —
   that is what gives the design its rim of lighter red along the top left.

   border-radius: 50% on a wide, short box gives an ellipse. A circle would
   need the box to be square, which would push the copy far down the page on
   a narrow phone.
   ------------------------------------------------------------------------- */

.soon__dome {
  position: relative;         /* the ornaments anchor to this */
  align-self: end;            /* sits at the bottom of the page */
  justify-self: center;
  width: var(--soon-dome-w);
  /* Wider than tall, so the curve is shallow rather than a half-circle */
  aspect-ratio: 4 / 4;
  display: grid;
  place-items: center;
  padding: 0 8%;
  border-radius: 50% 50% 0 0;
  background: var(--soon-red);
  /* The pale rim: a second disc behind, nudged up and left */
  box-shadow: -1.5% -2.5% 0 0.5% #E8353A;
  position: absolute;
  bottom: 0;
}
.soon__dome:after {
    content: '';
    width: 100%;
    height: 100%;
    background-color: #D6191F;
    border-radius: 50% 50% 0 0;
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    z-index: -1;
}
/* ---- Copy ------------------------------------------------------------------------
   cqw against the dome, not vw. The dome is a fixed share of the viewport,
   so the type scales with it either way — but if --soon-dome-w is ever
   changed, cqw follows and vw would not.
   ------------------------------------------------------------------------- */

.soon__dome { container-type: inline-size; }

.soon__title {
  position: relative;
  z-index: 2;                 /* over the ornaments */
  margin: 0;
  /* Pulled up: the dome is an ellipse, so its visual centre is above its
     box centre */
  transform: translateY(-8%);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  color: #FFFFFF;
}

.soon__line { display: block; }

.soon__line--a { font-size: 17cqw; }
.soon__line--b { font-size: 17cqw; }
.soon__line--c { font-size: 10cqw; margin-top: 0.5em; }

/* ---- Ornaments --------------------------------------------------------------------
   Positioned as a percentage of the dome, so they hold their place against
   the words at every width. In px they would drift the moment the dome
   resized — which is the whole point of putting them here rather than on
   the page.
   ------------------------------------------------------------------------- */

.soon__marks {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.soon__mark {
  position: absolute;
  height: auto;
  /* No alt text sprawl while the file loads */
  color: transparent;
  font-size: 0;
}

.soon__mark--dots-top {
    top: 14%;
    left: 46%;
    width: 9%;
}
.soon__mark--blob-left {
    top: 38%;
    left: 16%;
    width: 14%;
}
.soon__mark--blob-right {
    top: 26%;
    right: 12%;
    width: 13%;
    transform: scaleX(-1);
}
.soon__mark--splash-left {
    top: 56%;
    left: 14%;
    width: 13%;
}
.soon__mark--splash-right {
    top: 40%;
    right: 18%;
    width: 14%;
    transform: scaleX(-1);
}
.soon__mark--dots-right {
    top: 60%;
    right: 18%;
    width: 6%;
}

@media (min-width: 36em) {
  .soon        { --soon-dome-w: min(90vw, 32rem); }
  .soon__inner { align-content: center; padding-bottom: clamp(2rem, 8vw, 4rem); }
  .soon__dome  {
    align-self: center;
    aspect-ratio: 1;
    border-radius: clamp(24px, 5vw, 40px);
    padding: 2%;
    box-shadow: 0 24px 60px -28px rgba(90, 4, 8, 0.55);
  }
  .soon__title { transform: none; }
  .soon__dome:after{
    display: none;
  }
  .soon__brand {
    display: flex;
  }
  .soon__logo--tops {
    height: clamp(2.75rem, 12vw, 4.5rem);
    }
    .soon__logo--foodies {
    height: clamp(4rem, 18vw, 5.5rem);
    }
    .soon__dome {
        position: relative;
        margin-top: 60px;
    }
}

/* Browsers without container queries fall back to viewport sizing */
@supports not (container-type: inline-size) {
  .soon__line--a,
  .soon__line--b { font-size: clamp(2.5rem, 17vw, 5rem); }
  .soon__line--c { font-size: clamp(1.3rem, 9vw, 2.6rem); }
}