@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
}

/* The same four values are baked into icon.svg, favicon.ico,
   apple-touch-icon.png and og.jpg. Change them here and there together. */
:root {
  --canvas: #e8e6e1;
  --wash: rgba(242, 241, 237, 0.6);
  --ink: #171717;
  --ink-soft: #404040;
}

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

body {
  margin: 0;
  /* Arial is named explicitly because "→" is absent from Space Grotesk's Latin
     subset and falls back per-glyph; this keeps the arrow consistent. */
  font-family: "Space Grotesk", Arial, sans-serif;
  /* Matches the fixed backdrop so overscroll never flashes white. */
  background-color: var(--canvas);
  color: var(--ink-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--canvas);
  background-image: url("/background.jpg");
  background-size: cover;
  background-position: center;
}

/* A solid child rather than a gradient on .backdrop: Chrome dithers gradients,
   which adds noise across the whole viewport. */
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--wash);
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
  padding: 1.5rem;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  margin: auto 0;
  max-width: 42rem;
  text-align: center;
}

.statement {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.statement p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.625;
}

.statement strong {
  font-weight: 500;
  color: var(--ink);
}

main a {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

main a:hover {
  text-decoration: underline;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

footer p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1rem;
}

.mark {
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0.5;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}

@media (min-width: 640px) {
  .statement p {
    font-size: 1rem;
  }

  main a {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}
