@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("/fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  src: url("/fonts/onest-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --cobalt: #2330d9;
  --cobalt-deep: #1a24b0;
  --haze: #5d68f2;
  --milk: #f4f2ff;
  --yolk: #ffd60a;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--cobalt);
  color: var(--milk);
}

body {
  font-family: "Onest", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto auto;
  padding: var(--pad);
  overflow: hidden;
  background: radial-gradient(120% 90% at 70% 0%, var(--cobalt) 40%, var(--cobalt-deep) 100%);
}

.field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}
.js .field { display: block; }

/* Wordmark: real text without JS, drawn in dots by the canvas with JS. */
.wordmark {
  margin: 0;
  align-self: center;
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 11vw, 11rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.js .wordmark {
  color: transparent;
  user-select: none;
  pointer-events: none;
}

.story {
  position: relative;
  max-width: 38rem;
}

.tagline {
  margin: 0 0 0.9rem;
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  color: var(--yolk);
}

.about {
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.colophon {
  position: relative;
  margin: clamp(1.5rem, 4vh, 3rem) 0 0;
  font-size: 0.8125rem;
  opacity: 0.7;
}

@media (min-width: 60rem) {
  .stage { grid-template-columns: 1fr auto; }
  .wordmark { grid-column: 1 / -1; }
  .colophon { align-self: end; margin: 0; }
}
