* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background: #f4f6fb;
  color: #182033;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.generator {
  width: min(100%, 480px);
  padding: 40px;
  border: 1px solid #e6e9f1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 50px rgb(35 48 80 / 9%);
}

.eyebrow {
  color: #5c6ac4;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

h1 {
  margin: 10px 0 8px;
  font-size: clamp(1.8rem, 7vw, 2.3rem);
  letter-spacing: -0.04em;
}

.description {
  margin: 0 0 26px;
  color: #687187;
  line-height: 1.5;
}

.key-box {
  min-height: 64px;
  padding: 10px 12px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e1e5ef;
  border-radius: 11px;
  background: #f8f9fc;
}

#keyOutput {
  overflow-wrap: anywhere;
  color: #28345c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.9rem, 4vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.035em;
}

.copy-button,
.generate-button {
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.copy-button {
  padding: 9px 12px;
  background: #e9ecf8;
  color: #4655a8;
}

.copy-button:hover {
  background: #dfe4f5;
}

.generate-button {
  width: 100%;
  margin-top: 16px;
  padding: 13px 18px;
  background: #5c6ac4;
  color: #fff;
}

.generate-button:hover {
  background: #4d5bb2;
}

.generate-button:active,
.copy-button:active {
  transform: translateY(1px);
}

button:focus-visible {
  outline: 3px solid #aab4ee;
  outline-offset: 3px;
}

.status {
  min-height: 1.25em;
  margin: 12px 0 0;
  color: #4d5bb2;
  font-size: 0.875rem;
  text-align: center;
}

@media (max-width: 420px) {
  .generator {
    padding: 28px 22px;
  }
}
