:root {
  color-scheme: light;
  --bg: #f3faf5;
  --ink: #153322;
  --muted: #53665d;
  --button: #25d366;
  --button-pressed: #1fb757;
  --surface: #ffffff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

button {
  font: inherit;
}

.app {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding:
    max(28px, env(safe-area-inset-top))
    20px
    max(32px, env(safe-area-inset-bottom));
}

h1 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.send-button {
  display: grid;
  width: min(78vw, 330px);
  aspect-ratio: 1;
  place-items: center;
  align-content: center;
  gap: 18px;
  border: 0;
  border-radius: 50%;
  background: var(--button);
  color: var(--ink);
  box-shadow:
    inset 0 -14px 32px rgb(21 51 34 / 0.16),
    0 22px 55px rgb(37 211 102 / 0.28);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.send-button:active {
  transform: translateY(1px) scale(0.99);
  background: var(--button-pressed);
}

.send-button:focus-visible {
  outline: 4px solid rgb(21 51 34 / 0.22);
  outline-offset: 6px;
}

.send-button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.send-button svg {
  width: 78px;
  height: 78px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.send-button span {
  width: min-content;
  min-width: 11ch;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
  text-align: center;
}

.status {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 360px) {
  .send-button {
    width: min(82vw, 290px);
  }

  .send-button span {
    font-size: 1.35rem;
  }
}
