@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* Brand colours: ink #1D1F20, steel #5980A6, deep steel #1C2D3E,
   light steel #A9C1D9 (on dark), steel text #3F6388. */
:root {
  --paper: #ffffff;
  --ink: #1d1f20;
  --muted: #5a5f63;
  --link: #3f6388;
  --grid: rgb(89 128 166 / 0.09);
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c2d3e;
    --ink: #f2f2f3;
    --muted: #a9b6c4;
    --link: #a9c1d9;
    --grid: rgb(169 193 217 / 0.07);
  }
}

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

html {
  height: 100%;
  color-scheme: light dark;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

/* Faint table rules behind the page, fading out toward the edges. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-position: center;
  background-size: 112px 36px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 20%, transparent 100%);
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem 2rem;
  text-align: center;
}

/* The logo artwork carries its own clear space, so it sits without extra margin. */
.logo {
  display: block;
  width: min(34rem, 100%);
  margin: 0;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

.logo.small {
  width: min(14rem, 70%);
  margin-bottom: 1.5rem;
}

.heading {
  margin: 0;
  font: 500 clamp(2rem, 1.6rem + 2vw, 2.75rem) / 1.1 var(--font);
}

.tagline {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font: 500 clamp(1.125rem, 1rem + 0.6vw, 1.375rem) / 1.35 var(--font);
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

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

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