/* Light and dark colours follow the visitor's system setting */
:root {
  --bg: #f6f3ee;
  --text: #2a2620;
  --muted: #6b6358;
  --accent: #b5481f;
  --accent-text: #ffffff;
  /* Centre of the glow behind the logo: soft white, not pure white */
  --glow: #fbf9f5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1a17;
    --text: #ece6dc;
    --muted: #a59c8f;
    --accent: #e0703f;
    --accent-text: #1c1a17;
    --glow: #d9d4cb;
  }
}

* { box-sizing: border-box; }

/* Centre the content in the window, with the footer at the bottom */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  flex: 1;
  max-width: 36rem;
  margin: 0 auto;
  padding: 3rem 1rem;
  text-align: center;
}

/* A white circle behind the icon that fades out into the page colour at its
   edge, so the icon's white square background doesn't show as a box */
.logo-glow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 240px;
  margin: 0 auto;
  background: radial-gradient(circle closest-side, var(--glow) 0%, var(--glow) 40%, var(--bg) 100%);
}

/* Multiply makes the icon's white pixels take the colour beneath them:
   white in the middle of the circle, the faded colour at the square's corners */
.logo { width: 128px; height: 128px; mix-blend-mode: multiply; }

h1 { margin: 1rem 0 0.5rem; font-size: 2.4rem; line-height: 1.2; }

.lead { font-size: 1.25rem; }

.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}
.button:hover, .button:focus-visible { filter: brightness(1.1); }

footer {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
