:root {
  --bg: #050505;
  --ink: #d9d4c9;
  --ink-dim: #6f6a61;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, #101010 0%, var(--bg) 70%)
    var(--bg);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 16px;
}

h1 {
  margin: 0;
  /* letter-spacing adds trailing space; pull it back so the word is centred */
  padding-left: 0.5em;
  font-size: clamp(0.8rem, 2.4vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: arrive 2.8s ease-out both;
}

h1 span {
  color: var(--ink-dim);
}

@keyframes arrive {
  from {
    opacity: 0;
    letter-spacing: 0.62em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.5em;
  }
}

@media (prefers-reduced-motion: reduce) {
  h1 {
    animation: none;
  }
}
