:root {
  color: #18201d;
  background: #f3f5f0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgb(208 229 214 / 70%), transparent 32rem),
    radial-gradient(circle at 90% 90%, rgb(227 220 195 / 60%), transparent 30rem), #f3f5f0;
}

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

.shell {
  display: grid;
  width: min(100% - 2rem, 46rem);
  min-height: 100vh;
  margin-inline: auto;
  padding-block: clamp(1.5rem, 6vw, 4rem);
  grid-template-rows: auto 1fr auto;
  align-items: center;
}

.brand {
  width: fit-content;
  color: #173c2f;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:focus-visible,
.primary-button:focus-visible {
  outline: 3px solid #d09848;
  outline-offset: 4px;
}

.card {
  width: 100%;
  margin-block: 2rem;
  padding: clamp(2rem, 7vw, 4.5rem);
  overflow: hidden;
  background: rgb(255 255 253 / 94%);
  border: 1px solid rgb(33 65 52 / 12%);
  border-radius: 1.75rem;
  box-shadow: 0 1.5rem 4rem rgb(26 49 40 / 12%);
  text-align: center;
}

.state {
  display: grid;
  justify-items: center;
}

.state[hidden] {
  display: none;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #497061;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 35rem;
  margin: 0;
  color: #173c2f;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h1:focus {
  outline: none;
}

.state > p:not(.eyebrow, .hint) {
  max-width: 31rem;
  margin: 1.25rem 0 0;
  color: #58635e;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.65;
}

.primary-button {
  width: 100%;
  min-height: 4rem;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  color: #fff;
  background: #1e5b45;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 0.65rem 1.25rem rgb(30 91 69 / 20%);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 750;
  cursor: pointer;
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.primary-button:hover {
  background: #174936;
  box-shadow: 0 0.8rem 1.5rem rgb(30 91 69 / 26%);
  transform: translateY(-1px);
}

.primary-button:active {
  box-shadow: none;
  transform: translateY(1px);
}

.hint {
  margin: 1rem 0 0;
  color: #78817d;
  font-size: 0.84rem;
  line-height: 1.5;
}

.mark,
.spinner {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.5rem;
  place-items: center;
  border-radius: 50%;
}

.mark--mail {
  position: relative;
  background: #e3efe7;
}

.mark--mail::before {
  width: 1.8rem;
  height: 1.25rem;
  border: 2px solid #1e5b45;
  border-radius: 0.2rem;
  content: "";
}

.mark--mail::after {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-right: 2px solid #1e5b45;
  border-bottom: 2px solid #1e5b45;
  content: "";
  transform: translateY(-0.38rem) rotate(45deg);
}

.mark--success {
  background: #dceee2;
}

.mark--success::after {
  width: 1.45rem;
  height: 0.75rem;
  border-bottom: 3px solid #1e5b45;
  border-left: 3px solid #1e5b45;
  content: "";
  transform: translateY(-0.15rem) rotate(-45deg);
}

.mark--warning {
  color: #80551e;
  background: #f7ead4;
  font-size: 1.75rem;
  font-weight: 750;
}

.spinner {
  border: 4px solid #dce7e1;
  border-top-color: #1e5b45;
  animation: spin 800ms linear infinite;
}

.footer {
  margin: 0;
  color: #69746f;
  font-size: 0.8rem;
  text-align: center;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 34rem) {
  .shell {
    width: min(100% - 1rem, 46rem);
    padding-block: 1rem;
  }

  .card {
    margin-block: 1.25rem;
    border-radius: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-button {
    transition: none;
  }

  .spinner {
    animation-duration: 1.6s;
  }
}
