@font-face {
  font-family: "Imbue";
  src: url("/fonts/imbue.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #f2e7d3;
  --field: #fbf8f1;
  --ink: #37382b;
  --ink-deep: #25261b;
  --olive: #646546;
  --rust-text: #9f4128;
  --rule: #ae5c39;
  --mustard: #ce8a37;
  --pink: #c37766;
  --slate: #7e90a1;
  --serif: "Imbue", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
}

main {
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
p,
dl,
dd {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--rust-text);
  outline-offset: 3px;
}

.hero {
  display: grid;
  justify-items: center;
  padding: clamp(2.5rem, 8vh, 5.5rem) var(--gutter) 0;
  text-align: center;
}

.hero h1 {
  width: min(100%, 36rem);
}

.lockup {
  width: 100%;
}

.tagline {
  margin-top: clamp(1.25rem, 3.5vh, 2.25rem);
  font: 700 clamp(1.75rem, 1.2rem + 2vw, 2.75rem) / 1.05 var(--serif);
  text-wrap: balance;
}

.soon {
  width: min(100% - 2 * var(--gutter), 34rem);
  margin: clamp(2.75rem, 7vh, 4.5rem) auto 0;
}

.soon-title {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
  font: 900 clamp(1.625rem, 1.3rem + 1vw, 2.125rem) / 1 var(--serif);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.soon-title::before,
.soon-title::after {
  content: "";
  flex: 1;
  height: 5px;
  background: var(--mustard);
  box-shadow:
    0 9px var(--pink),
    0 18px var(--slate);
  transform: translateY(-9px);
}

.soon-title::before {
  border-radius: 999px 0 0 999px;
}

.soon-title::after {
  border-radius: 0 999px 999px 0;
}

.signup label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.field {
  display: flex;
  gap: 0.625rem;
}

.field input {
  flex: 1;
  min-width: 0;
  height: 3.25rem;
  padding: 0 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--field);
  color: var(--ink);
  font: 400 1.0625rem/1 var(--sans);
}

.field input:focus-visible {
  outline-offset: 2px;
}

.field button {
  flex: none;
  height: 3.25rem;
  padding: 0 1.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 700 1rem/1 var(--sans);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.field button:hover {
  background: var(--ink-deep);
}

.field button:active {
  transform: scale(0.97);
}

.signup[data-state="submitting"] button {
  cursor: progress;
}

.signup input[aria-invalid="true"] {
  border-color: var(--rust-text);
}

.status {
  min-height: 1.5em;
  margin-top: 0.75rem;
  font-weight: 600;
}

.status:not(:empty) {
  animation: status-in 220ms var(--ease-out);
}

.signup[data-state="error"] .status {
  color: var(--rust-text);
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.collections {
  width: min(100% - 2 * var(--gutter), 66rem);
  margin: clamp(3.5rem, 10vh, 6.5rem) auto 0;
}

.collections::before,
.collections::after {
  content: "";
  display: block;
  height: 4px;
  border-radius: 999px;
  background: var(--rule);
}

.collections dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  text-align: center;
}

.collections dt {
  font: 900 clamp(1.625rem, 1.3rem + 0.9vw, 2.125rem) / 1 var(--serif);
  letter-spacing: 0.01em;
}

.collections dd {
  margin-top: 0.5rem;
  color: var(--olive);
}

.foot {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(3.5rem, 9vh, 5.5rem) var(--gutter) 2.5rem;
}

.foot img {
  width: 5.5rem;
}

.foot p {
  color: var(--olive);
  font-size: 0.875rem;
}

.lost {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1.5rem;
  min-height: 100vh;
  min-height: 100svh;
  padding: 3rem var(--gutter);
  text-align: center;
}

.lost .lockup {
  width: min(100%, 18rem);
}

.lost h1 {
  font: 900 clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem) / 1.05 var(--serif);
}

.lost a {
  font-weight: 600;
}

@keyframes status-in {
  from {
    opacity: 0;
    transform: translateY(-0.25rem);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@media (max-width: 52rem) {
  .collections dl {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.25rem;
  }
}

@media (max-width: 30rem) {
  .field {
    flex-direction: column;
  }

  .field input,
  .field button {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 22rem) {
  .collections dl {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .field button {
    transition: background-color 160ms var(--ease-out);
  }

  .field button:active {
    transform: none;
  }

  .status:not(:empty) {
    animation-name: fade-in;
  }
}
