:root {
  --bg-1: #f2eee5;
  --bg-2: #d8e2dc;
  --card: #fffaf2;
  --ink: #1d2b2a;
  --muted: #4f6462;
  --accent: #e76f51;
  --accent-strong: #bf4f35;
  --line: #d4c7b8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(231, 111, 81, 0.22) 0 16%, transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(38, 70, 83, 0.15) 0 14%, transparent 30%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
  display: grid;
  place-items: center;
  padding: 24px;
}

.container {
  width: min(760px, 100%);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(20px, 4vw, 40px);
  box-shadow: 0 30px 80px rgba(19, 33, 32, 0.12);
  animation: rise 420ms ease-out;
}

.tag {
  margin: 0;
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: rgba(231, 111, 81, 0.14);
  border: 1px solid rgba(191, 79, 53, 0.25);
  padding: 8px 10px;
  border-radius: 999px;
}

h1 {
  margin: 16px 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  max-width: 62ch;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.row {
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

input:focus {
  outline: 2px solid rgba(231, 111, 81, 0.45);
  outline-offset: 2px;
}

button {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 14px;
  padding: 0 22px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

#status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: var(--muted);
}

.result-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--ink);
  font-weight: 700;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .row {
    flex-direction: column;
  }

  button {
    height: 48px;
  }
}
