/* A placeholder for the Woffle website, in Overprint, the design system of
   the website (design-system/): tokens.css and overprint.css come first,
   this file has what is particular to this page. */

:root {
  --ease-register: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page .wrap {
  max-width: var(--content-max);
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* Header */

.bar {
  min-height: 80px;
  display: flex;
  align-items: center;
}

.bar .brand-name {
  line-height: 1;
  font-size-adjust: none;
}

/* Hero */

main {
  display: flex;
  align-items: center;
  padding-block: clamp(24px, 5vw, 56px) clamp(64px, 9vw, 112px);
}

.coming-soon {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}

.coming-soon-copy {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.eyebrow-dot {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size-adjust: none;
}

.eyebrow-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-coral);
}

.coming-soon-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: min(var(--text-display), 16.5cqi);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* The marker is drawn in, once */
.coming-soon-title .marker::before {
  transform-origin: left center;
  animation: mark 700ms var(--ease-register) 1100ms both;
}

.coming-soon-copy .lead {
  max-width: 30em;
}

/* The platforms, each with a mark in the inks: coral, sky, and where
   they overlap, plum. */
.platforms {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  width: 100%;
  max-width: 34rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.platforms li {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 18px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  corner-shape: squircle;
  font: 700 1.25rem/1.1 var(--font-display);
  letter-spacing: -0.01em;
}

.inks {
  position: relative;
  display: block;
  width: 34px;
  height: 22px;
  isolation: isolate;
}

.inks i {
  position: absolute;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.inks .coral {
  left: 0;
  background: var(--color-coral);
}

.inks .sky {
  right: 0;
  background: var(--color-sky);
  mix-blend-mode: multiply;
}

.inks.one-coral .coral,
.inks.one-sky .sky {
  left: 0;
}

/* The proof: the app icon on a cream panel, with crop marks, a
   registration mark and a color bar, as on a printer's proof. Its two
   plates come into register when the page opens. */
.press-proof {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 1;
  container-type: inline-size;
  display: grid;
  place-items: center;
  background: var(--color-cream);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  corner-shape: squircle;
  overflow: hidden;
  isolation: isolate;
}

.disc {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  animation: drift 11s ease-in-out infinite;
}

.disc.coral {
  width: 46cqi;
  height: 46cqi;
  left: -12cqi;
  bottom: -14cqi;
  background: var(--color-coral);
}

.disc.sky {
  width: 54cqi;
  height: 54cqi;
  right: -15cqi;
  top: -17cqi;
  background: var(--color-sky);
  animation-delay: -5s;
}

.proof-icon {
  position: relative;
  width: 50cqi;
  aspect-ratio: 1;
}

.proof-icon-tile {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 22.46%; /* 230 of 1024, as woffle.svg */
  corner-shape: squircle;
  background: var(--color-icon-ground);
  box-shadow: var(--shadow-float);
}

.proof-icon-tile svg {
  display: block;
  width: 100%;
  height: 100%;
  isolation: isolate;
}

.plate-coral {
  animation: from-left 1200ms var(--ease-register) 250ms both;
}

.plate-sky {
  mix-blend-mode: multiply;
  animation: from-right 1200ms var(--ease-register) 250ms both;
}

.crop {
  position: absolute;
  background: var(--color-text-3);
  --length: 6cqi;
  --gap: 2.5cqi;
}

.crop.h {
  width: var(--length);
  height: 1.5px;
}

.crop.v {
  width: 1.5px;
  height: var(--length);
}

.crop.top {
  top: -0.75px;
}

.crop.bottom {
  bottom: -0.75px;
}

.crop.left {
  left: -0.75px;
}

.crop.right {
  right: -0.75px;
}

.crop.h.left {
  left: auto;
  right: calc(100% + var(--gap));
}

.crop.h.right {
  right: auto;
  left: calc(100% + var(--gap));
}

.crop.v.top {
  top: auto;
  bottom: calc(100% + var(--gap));
}

.crop.v.bottom {
  bottom: auto;
  top: calc(100% + var(--gap));
}

.register {
  position: absolute;
  left: 7cqi;
  top: 7cqi;
  width: clamp(20px, 5.5cqi, 30px);
  height: auto;
  color: var(--color-text-3);
}

.colorbar {
  position: absolute;
  right: 7cqi;
  bottom: 7cqi;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-3);
  font-size-adjust: none;
}

.swatches {
  display: flex;
}

.swatches i {
  width: clamp(9px, 2.6cqi, 14px);
  aspect-ratio: 1;
}

/* Footer */

.foot {
  border-top: 1px solid var(--color-line);
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
  padding-block: 24px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-text-3);
}

/* Motion */

@keyframes from-left {
  from {
    transform: translateX(-96px);
  }
}

@keyframes from-right {
  from {
    transform: translateX(96px);
  }
}

@keyframes mark {
  from {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}

/* Narrow windows: the proof below the text */

@media (max-width: 960px) {
  .coming-soon {
    grid-template-columns: minmax(0, 1fr);
  }

  .press-proof {
    max-width: 560px;
    justify-self: center;
  }
}

@media (max-width: 480px) {
  .coming-soon-copy {
    gap: 24px;
  }

  .coming-soon-copy .lead {
    font-size: 1.1875rem;
  }

  .platforms {
    gap: 8px;
  }

  .platforms li {
    padding: 14px 14px 12px;
    gap: 14px;
    font-size: 1.125rem;
  }
}
