/* Figtree, SIL OFL 1.1, latin subset self-hosted */
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/figtree.woff2") format("woff2");
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--mf-bg-dark);
  color: var(--mf-text-on-dark);
  font-family: Figtree, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 72% 48% at 50% 40%, rgba(0, 124, 188, 0.28), transparent 58%),
    radial-gradient(ellipse 36% 28% at 62% 46%, rgba(5, 192, 225, 0.14), transparent 52%);
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0;
  padding: 2.5rem 1.5rem 3rem;
  max-width: 40rem;
}

.wordmark {
  display: block;
  width: min(22.5rem, 82vw);
  height: auto;
  margin: 0 0 1.75rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--mf-text-on-dark);
}

p {
  margin: 0.7rem 0 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--mute);
}

a {
  color: var(--mf-cyan-tip);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--mf-cyan-tip) 45%, transparent);
}

a:hover {
  color: var(--mf-text-on-dark);
  border-bottom-color: var(--mf-cyan-tip);
}

a:focus-visible {
  outline: 2px solid var(--mf-cyan-tip);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .wordmark {
    width: min(18rem, 86vw);
    margin-bottom: 1.4rem;
  }

  h1 {
    font-size: 1.15rem;
  }
}
