:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #172018;
  background: #f3f7f1;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
}

main {
  width: min(34rem, calc(100% - 2rem));
  box-sizing: border-box;
  padding: 2rem;
  border: 1px solid #d7e0d4;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 1.25rem 4rem rgb(30 55 35 / 10%);
}

.eyebrow {
  margin: 0 0 .5rem;
  color: #397144;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1;
}

.intro {
  margin: 1rem 0 1.5rem;
  color: #58625a;
  line-height: 1.5;
}

.wallets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

button,
input {
  box-sizing: border-box;
  min-height: 2.8rem;
  border: 1px solid #bdcbbb;
  border-radius: .7rem;
  font: inherit;
}

button {
  padding: .65rem 1rem;
  color: #fff;
  background: #285d35;
  cursor: pointer;
}

button:hover {
  background: #1e4a29;
}

details {
  margin-top: 1.5rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

form {
  margin-top: 1rem;
}

label {
  display: block;
  margin-bottom: .4rem;
  font-size: .9rem;
  font-weight: 600;
}

.custom-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem;
}

input {
  width: 100%;
  padding: .65rem .8rem;
  color: inherit;
  background: #fff;
}

.error {
  margin: 1.25rem 0 0;
  color: #a12b2b;
}

@media (prefers-color-scheme: dark) {
  :root {
    color: #eef5ed;
    background: #101611;
  }

  main,
  input {
    background: #172019;
  }

  main,
  button,
  input {
    border-color: #3d4c3e;
  }

  .intro {
    color: #b7c1b7;
  }
}
