:root {
  color-scheme: light;
  --paper: #fcfaf6;
  --card: #fffefa;
  --ink: #29263a;
  --muted: #625f6e;
  --line: #dedbd4;
  --purple: #563a98;
  --tape-dark: #211f23;
  --tape-yellow: #ffce37;
  --ui: "Segoe UI", Arial, sans-serif;
  --display: "Arial Black", "Trebuchet MS", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(circle, #ddd5c5 0.75px, transparent 0.75px);
  background-size: 24px 24px;
  font: 1rem/1.5 var(--ui);
}

body::before,
body::after {
  content: "";
  height: clamp(1.25rem, 3.5vw, 2.5rem);
  background: repeating-linear-gradient(-50deg, var(--tape-yellow) 0 1.65rem, var(--tape-dark) 1.65rem 3.3rem);
}

body::before { border-bottom: 2px solid var(--tape-dark); }
body::after { border-top: 2px solid var(--tape-dark); }

main {
  align-self: center;
  width: 100%;
  padding: clamp(1.75rem, 7vmin, 4.75rem) 1rem;
  text-align: center;
}

.wordmark {
  display: inline-block;
  margin: 0;
  padding: 0.18rem 0.85rem 0.25rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.9rem;
  font-weight: 750;
}

h1 {
  margin: 0.24em 0 0;
  font: 900 clamp(1.75rem, 11vw, 8rem)/0.88 var(--display);
  letter-spacing: -0.073em;
}

h1 span { display: block; }

form {
  display: grid;
  gap: 0.62rem;
  width: min(100%, 22.5rem);
  margin: clamp(1.5rem, 5vmin, 3rem) auto 0;
  padding: clamp(1.1rem, 4vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 1px 2px #29263a0a, 0 12px 30px #29263a12;
  text-align: start;
}

label { font-weight: 700; }

input,
button {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 0.56rem;
  font: inherit;
}

input {
  min-width: 0;
  border-color: #9c97a2;
  color: var(--ink);
  background: var(--paper);
}

button {
  min-height: 2.75rem;
  color: white;
  background: var(--purple);
  cursor: pointer;
  font-weight: 700;
}

button:hover:enabled { background: #482d85; }

button:disabled {
  background: #716779;
  cursor: default;
}

:is(input, button):focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

#status,
noscript {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

#status:empty { margin-top: -0.62rem; }
#status[data-kind="error"] { color: #962e2b; }

@media (max-width: 340px) {
  main { padding-inline: 0.75rem; }
  h1 { font-size: clamp(1.2rem, 10.5vw, 2.3rem); }
}
