/* Colors come from drop/Views/Theme.swift. */
:root {
  color-scheme: light dark;
  --background: #F5F9FD;
  --text: #0A0F16;
  --text-secondary: #4D5B6B;
  --accent: #0F55AE;
  --water-top: #1F7AD6;
  --water-bottom: #0F55AE;
  --water-back: #6FB3F0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0A0F16;
    --text: #F5F9FD;
    --text-secondary: #A3B1C2;
    --accent: #5AA5F0;
    --water-top: #1B6FCC;
    --water-bottom: #0C3F86;
    --water-back: #2F86DE;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-align: center;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 72px;
}

.icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
  border-radius: 22px;
  background: linear-gradient(#2A84DE, #1963BE);
}

.icon svg {
  height: 54px;
  fill: none;
  stroke: #F5F9FD;
  stroke-width: 8;
  stroke-linejoin: round;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p {
  max-width: 20em;
  margin-top: 8px;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--text-secondary);
  text-wrap: balance;
}

.soon {
  margin-top: 28px;
  padding: 8px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
}

/* Clips the waves, which are twice the page width, so phones don't zoom out to fit them. */
.water {
  position: relative;
  flex: none;
  height: calc(16vh + 50px);
  height: calc(16svh + 50px);
  overflow: hidden;
}

/* The body of water, below the 50px the waves sit in. */
.water::after {
  content: "";
  position: absolute;
  inset: 49px 0 0;
  background: linear-gradient(var(--water-top), var(--water-bottom));
}

.wave {
  position: absolute;
  left: 0;
  width: 200%;
  min-width: 1200px;
  height: 40px;
  animation: drift 14s linear infinite;
}

.wave-back {
  top: 0;
  fill: var(--water-back);
  animation-duration: 20s;
  animation-direction: reverse;
}

.wave-front {
  top: 10px;
  fill: var(--water-top);
}

/* The wave repeats every half of its width, so this loops without a jump. */
@keyframes drift {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wave {
    animation: none;
  }
}

@media (min-width: 768px) {
  .icon {
    width: 120px;
    height: 120px;
    border-radius: 27px;
  }

  .icon svg {
    height: 68px;
  }

  h1 {
    font-size: 3.5rem;
  }

  p {
    font-size: 1.5rem;
  }
}
