@font-face {
  font-family: "Spectral";
  src: url("assets/fonts/Spectral-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/GeistVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #2a241f;
  --ink: #ececec;
  --ink-soft: #bdb5ac;
  --on-ink: #1a1a1a;
  --ember: #ff7a2e;
  --ember-haze: rgba(255, 122, 46, 0.38);
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--ground);
  color: var(--ink);
}

body {
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Darkens the edges of the field. A CSS layer costs the compositor next to
   nothing; painted into the canvas it would be redrawn every frame. */
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle farthest-corner at 55% 42%,
    rgba(14, 10, 8, 0) 22%,
    rgba(14, 10, 8, 0.72) 100%
  );
}

#field:focus-visible {
  outline: none;
}

/* The vignette lies over the canvas, so the canvas's focus ring is drawn on it. */
#field:focus-visible + .vignette {
  outline: 2px solid var(--ember);
  outline-offset: -6px;
}

.bar,
.copy {
  position: fixed;
  pointer-events: none;
}

.bar {
  top: calc(var(--gutter) + env(safe-area-inset-top));
  left: calc(var(--gutter) + env(safe-area-inset-left));
}

.logo {
  display: block;
  height: 26px;
  width: auto;
}

.copy {
  left: calc(var(--gutter) + env(safe-area-inset-left));
  right: var(--gutter);
  bottom: calc(var(--gutter) + env(safe-area-inset-bottom));
  max-width: 34rem;
  text-shadow: 0 1px 16px rgba(20, 16, 13, 0.85);
}

h1 {
  margin: 0 0 0.45em;
  font-family: "Spectral", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.125rem, 1.35rem + 3.1vw, 3.875rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 28em;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.cta {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  text-shadow: none;
  transition: background-color 0.2s ease, box-shadow 0.25s ease;
}

.cta:hover {
  background: #fff;
  box-shadow: 0 0 0 1px var(--ember), 0 0 28px var(--ember-haze);
}

.cta:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.cta-mark {
  flex: none;
}

.hint {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.hint-touch {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  .hint-pointer {
    display: none;
  }
  .hint-touch {
    display: inline;
  }
}

@media (max-width: 520px) {
  .logo {
    height: 22px;
  }
  .lede {
    font-size: 1rem;
    margin-bottom: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }
}
