:root {
  color-scheme: dark;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: #f8f4eb;
  background: #14231e;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 20rem;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 82% 12%, rgb(217 170 120 / 15%), transparent 28rem),
    radial-gradient(circle at 12% 88%, rgb(121 214 188 / 8%), transparent 32rem),
    #14231e;
}

.page-shell {
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
  padding: clamp(1.5rem, 4vw, 4rem);
}

.site-header,
.site-footer {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header {
  color: rgb(248 244 235 / 88%);
  font-size: 0.875rem;
}

.site-header p,
.site-footer p {
  margin: 0;
}

.main-content {
  display: grid;
  place-items: center;
  padding: clamp(4rem, 12vh, 8rem) 0;
  text-align: center;
}

.heading-group {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
}

.eyebrow {
  max-width: 56ch;
  margin: 0;
  color: #d9aa78;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.introduction {
  max-width: 42ch;
  margin: 0;
  color: rgb(248 244 235 / 66%);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.primary-action {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  color: #14231e;
  background: #f8f4eb;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.primary-action:hover {
  background: #eee8dc;
}

.primary-action:active {
  transform: translateY(1px);
}

.primary-action:focus-visible {
  outline: 3px solid #d9aa78;
  outline-offset: 3px;
}

.site-footer {
  padding-top: 1.25rem;
  border-top: 1px solid rgb(248 244 235 / 14%);
  color: rgb(248 244 235 / 48%);
  font-size: 0.75rem;
}

@media (max-width: 36rem) {
  .page-shell {
    padding: 1.5rem;
  }

  .main-content {
    place-items: center start;
    text-align: left;
  }

  .heading-group {
    justify-items: start;
    gap: 1.25rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .heading-group {
    animation: arrive 700ms ease-out both;
  }
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
