@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/playfair-display-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
}

body {
  margin: 0;
  padding: 24px;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background-color: #12221d;
  background-image: radial-gradient(circle at 50% 48%, rgba(29, 58, 48, 0.45) 0%, rgba(17, 34, 28, 0.9) 65%, #0b1512 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-size: 80px 80px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Served as a file rather than a data: URI because the CSP only allows img-src 'self'. */
body::after {
  background-image: url('/noise.svg');
}

/* Moves the lockup center from 50% to 38.2% of the viewport height (golden ratio, 1 - 1/φ). */
.lockup {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateY(-11.8vh);
  transform: translateY(-11.8dvh);
}

h1 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 3.75rem;
  line-height: 1;
  letter-spacing: -0.015em;
  color: #fff;
}

.rule {
  align-self: stretch;
  margin: 6px 0 12px;
  border-top: 1.5px solid #fff;
}

/* Negative right margin cancels the trailing letter-spacing so the last letter is flush with the wordmark. */
p {
  margin: 0 -0.35em 0 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #fff;
}

@media (min-width: 640px) {
  h1 {
    font-size: 4.5rem;
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 6rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 7.25rem;
  }
}
