@font-face {
  font-family: "Moreganic";
  src: url("/assets/fonts/moreganic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Made Tommy Soft";
  src: url("/assets/fonts/made-tommy-soft.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Made Tommy Black";
  src: url("/assets/fonts/made-tommy-black.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --paper: #fcf7ed;
  --olive: #7a8540;
  --wine: #8f2946;
  --wine-soft: rgba(143, 41, 70, 0.08);
  --olive-soft: rgba(122, 133, 64, 0.1);
  --border: rgba(143, 41, 70, 0.18);
  --muted: rgba(143, 41, 70, 0.66);
  --shadow: 0 1.5rem 4rem rgba(73, 57, 38, 0.08);
  --radius-lg: 2rem;
  --radius-md: 1.25rem;
  --ease: 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(122, 133, 64, 0.08), transparent 24rem),
    radial-gradient(circle at 85% 80%, rgba(143, 41, 70, 0.08), transparent 28rem),
    var(--paper);
  color: var(--wine);
  font-family: "Made Tommy Soft", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

.loading-screen,
.error-screen {
  width: min(100% - 2rem, 42rem);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  text-align: center;
}

.loading-screen__inner,
.error-screen__inner {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 0.15rem solid rgba(143, 41, 70, 0.14);
  border-top-color: var(--olive);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.error-screen h1 {
  margin: 0;
  color: var(--wine);
  font-family: "Moreganic", Georgia, serif;
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 400;
}

.error-screen p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.button {
  min-height: 3.6rem;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-0.12rem);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.button--primary {
  background: var(--wine);
  color: var(--paper);
}

.button--secondary {
  border: 1px solid var(--border);
  background: rgba(252, 247, 237, 0.66);
  color: var(--wine);
}

.button__spinner {
  width: 1rem;
  height: 1rem;
  display: none;
  border: 0.12rem solid rgba(252, 247, 237, 0.35);
  border-top-color: var(--paper);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.button.is-loading .button__spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
