:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #171c18;
  background: #f6f7f0;
  --green: #174d33;
  --border: #a1ada1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 92% 2%, #dfefcc, transparent 58%);
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: 2rem clamp(1.25rem, 6vw, 5rem);
  font-weight: 750;
  letter-spacing: -.025em;
}

.brand span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: white;
  background: var(--green);
}

main {
  width: min(100% - 2.5rem, 44rem);
  margin: clamp(4rem, 14vh, 10rem) auto 4rem;
}

h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -.085em;
  line-height: 1;
}

h1 span { color: #477a47; }
p { color: #414b41; line-height: 1.5; }
main > p:first-of-type { margin: 1.25rem 0 2.5rem; }
label { display: block; margin-bottom: .6rem; font-weight: 650; }

.controls { display: flex; gap: .65rem; }
input, button { border-radius: .7rem; padding: .85rem 1rem; font: inherit; }

input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--border);
  color: inherit;
  background: white;
}

input::placeholder { color: #566557; }

button {
  border: 1px solid var(--green);
  color: white;
  background: var(--green);
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

button:hover { background: #226443; }
button:disabled { opacity: .72; cursor: wait; }
button span { margin-left: .3rem; }
:focus-visible { outline: 3px solid #477a47; outline-offset: 3px; }
#copy { color: var(--green); background: transparent; }
#copy:hover { background: #e4efdf; }
#status { min-height: 1.5em; margin: .8rem 0; }

@media (max-width: 31rem) {
  .controls { flex-direction: column; }
}
