:root {
  color-scheme: dark;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background: #111212;
  color: #dddddc;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 15% 5%, rgb(73 75 75 / 24%), transparent 38rem),
    #111212;
}

.surface {
  width: min(42rem, 100%);
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid #393a3a;
  background: #191a1a;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: #c96343;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 8vw, 4.75rem);
  font-weight: 300;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.summary {
  max-width: 34rem;
  margin-bottom: 2.5rem;
  color: #a5a6a5;
  font-size: 1.1rem;
  line-height: 1.65;
}

.purchase,
.completion {
  border-top: 2px solid #a4472f;
  border-bottom: 1px solid #3b3c3c;
  padding: 1.5rem 0;
}

.purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.purchase p,
.completion p {
  margin-bottom: 0;
  color: #a5a6a5;
}

button,
.button {
  display: inline-block;
  border: 1px solid #555757;
  border-radius: 0.2rem;
  padding: 0.8rem 1.1rem;
  background: #303232;
  color: #f0f0ef;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: #3a3c3c;
  border-color: #6a6c6c;
}

button:focus-visible,
.button:focus-visible {
  outline: 2px solid #d06343;
  outline-offset: 3px;
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.secondary {
  margin-top: 1rem;
  background: transparent;
}

.status {
  min-height: 1.5rem;
  margin-top: 1.25rem;
  color: #a5a6a5;
}

.completion .status {
  margin-bottom: 1.25rem;
}

.error {
  color: #e08a72;
}

.hidden {
  display: none;
}

@media (max-width: 36rem) {
  body {
    padding: 1rem;
  }

  .purchase {
    align-items: stretch;
    flex-direction: column;
  }
}
