:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8f7f3;
  color: #20231f;
}

* {
  box-sizing: border-box;
}

body {
  align-items: center;
  background:
    radial-gradient(circle at 20% 0%, rgba(109, 146, 113, 0.14), transparent 34rem),
    #f8f7f3;
  display: flex;
  justify-content: center;
  margin: 0;
  min-height: 100vh;
  padding: 24px;
}

main {
  background: #fff;
  border: 1px solid #e3e3dc;
  border-radius: 28px;
  box-shadow: 0 20px 64px rgba(32, 35, 31, 0.1);
  max-width: 540px;
  padding: 48px;
  text-align: center;
  width: 100%;
}

.brand {
  color: #58795d;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mark {
  align-items: center;
  background: #e9f0e8;
  border-radius: 22px;
  color: #58795d;
  display: inline-flex;
  font-size: 32px;
  font-weight: 800;
  height: 76px;
  justify-content: center;
  margin-top: 32px;
  width: 76px;
}

h1 {
  font-size: clamp(26px, 6vw, 32px);
  letter-spacing: -0.04em;
  line-height: 1.35;
  margin: 24px 0 12px;
}

p {
  color: #697069;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

.actions {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.button {
  background: #58795d;
  border-radius: 14px;
  color: #fff;
  display: block;
  font-size: 16px;
  font-weight: 750;
  padding: 16px 20px;
  text-decoration: none;
}

.hint {
  color: #8b918b;
  font-size: 13px;
  margin-top: 20px;
}

main[data-state="error"] .mark {
  background: #fce8e9;
  color: #b74e54;
}

main[data-state="ready"] .mark {
  background: #e9f0e8;
  color: #58795d;
}

main[data-state="error"] .button,
main[data-state="neutral"] .button {
  display: none;
}

@media (max-width: 520px) {
  body {
    align-items: stretch;
    padding: 0;
  }

  main {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 36px 28px;
  }
}
