@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: block;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

:root {
  --bg: #0e0e0c;
  --ink: #e8e4dc;
  --muted: #8c877c;
  --line: #b08d57;
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html,
body {
  height: 100%;
}

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

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(ellipse 80% 55% at 50% 42%, #161614 0%, var(--bg) 72%);
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.045;
  z-index: 2;
}

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

h1 {
  margin: 0;
  max-width: 16ch;
  padding: 0 0.25rem;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
  animation: rise 0.9s ease both;
}

hr {
  width: 3.25rem;
  height: 1px;
  margin: 1.85rem 0 1.5rem;
  border: 0;
  background: var(--line);
  animation: rise 0.9s ease 0.08s both;
}

.lede {
  margin: 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.2vw, 1.125rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.45;
  animation: rise 0.9s ease 0.16s both;
}

footer {
  padding: 2rem 1.5rem 2.75rem;
  text-align: center;
  animation: rise 0.9s ease 0.28s both;
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  h1,
  hr,
  .lede,
  footer {
    animation: none;
  }
}
