/* The site's tokens, type and colors (web/src/styles.css), trimmed to what this page uses. */
@font-face {
  font-family: 'Shantell Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/shantell-sans-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Patrick Hand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/patrick-hand-latin-400-normal.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --paper: #fcfaf5;
  --ink: #151515;
  --green-ink: #1d7a2e;
  --btn-bg: #8fe28b;
  --btn-ink: #101010;
  --radius: 7px 4px 8px 5px / 5px 8px 4px 7px;
  --font-display: 'Shantell Sans', 'Patrick Hand', 'Comic Sans MS', cursive;
  --font-ui: 'Patrick Hand', 'Shantell Sans', 'Comic Sans MS', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f100f;
    --ink: #f3f3ee;
    --green-ink: #6fe97b;
    --btn-bg: #6fe97b;
    --btn-ink: #0b0b0b;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 112.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.35;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 4vh, 36px);
  max-width: 40rem;
  text-align: center;
  animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

h1,
p {
  margin: 0;
}

h1 img {
  display: block;
  width: min(360px, 78vw);
  height: auto;
}

.tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.6vw, 2.4rem);
  line-height: 1.15;
  text-wrap: balance;
}

.green {
  display: block;
  margin-top: 6px;
  color: var(--green-ink);
}

.soon {
  padding: 6px 22px 8px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: clamp(1.3rem, 3.6vw, 1.6rem);
  line-height: 1.2;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-1.5deg);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

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