:root {
  --paper: #ffffff;
  --ink: #17256e;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

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

html,
body {
  height: 100%;
}

html {
  background: var(--paper);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.7rem;
}

.skip:focus {
  top: 1rem;
  color: var(--paper);
}

main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main img {
  width: min(36rem, 88vw);
  height: auto;
}

.missing {
  margin: 0;
  text-align: center;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 1rem;
  margin: 0;
  padding: 0 1.25rem 1.25rem;
}

footer p:nth-child(2) {
  justify-self: center;
}

footer p:last-child {
  justify-self: end;
}

footer a {
  text-decoration: none;
}

@media (max-width: 40rem) {
  footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.35rem;
  }

  footer p:last-child {
    justify-self: center;
  }
}

footer p {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}
