:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #1d2939;
  background: #f7f8fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem;
}

.translator {
  width: min(100%, 42rem);
  padding: 2.5rem;
  background: #ffffff;
  border: 1px solid #dfe3e8;
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgb(16 24 40 / 8%);
}

.eyebrow {
  margin: 0;
  color: #2e6f95;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.intro {
  color: #52606d;
  line-height: 1.5;
}

form {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

label {
  font-weight: 700;
}

textarea,
button {
  font: inherit;
}

textarea {
  resize: vertical;
  padding: 0.75rem;
  border: 1px solid #98a2b3;
  border-radius: 0.5rem;
}

button {
  justify-self: start;
  padding: 0.75rem 1.25rem;
  color: #ffffff;
  background: #175cd3;
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: #004eeb;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.result {
  display: block;
  min-height: 1.5rem;
  margin-top: 1.5rem;
  padding: 1rem;
  color: #344054;
  background: #f2f4f7;
  border-radius: 0.5rem;
}
