/* Styles for the page. Each text colour passes the WCAG AA contrast level on every part of the background. */

:root {
  --colour-text: #10212f;
  --colour-text-muted: #46596a;
  --colour-brand: #0d5f96;
  --colour-background-top: #ffffff;
  --colour-background-bottom: #c4ddf0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--colour-text);
  background: linear-gradient(var(--colour-background-top) 30%, var(--colour-background-bottom));
}

main {
  text-align: center;
  /* A block at the exact centre looks low, so lift it slightly. */
  margin-bottom: 10svh;
}

.icon {
  width: 4rem;
  height: 4rem;
  color: var(--colour-brand);
}

h1 {
  margin: 1.25rem 0 1rem;
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

p {
  margin: 0;
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--colour-text-muted);
}
