:root {
  --bg: #090b0d;
  --panel: rgba(12, 13, 15, 0.96);
  --panel-edge: rgba(195, 188, 178, 0.18);
  --text: #e8e1d9;
  --muted: #a7a09a;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  cursor: default;
}

main.center {
  width: min(100%, 40rem);
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2.25rem 2rem;
}

.control-word {
  display: inline-block;
  width: 6.2ch;
  text-align: center;
  cursor: default;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.12;
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
}

p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  line-height: 1.6;
  font-size: 0.8rem;
}

form {
  width: min(100%, 15rem);
}

#code {
  width: 100%;
  height: 3.3rem;
  background: rgba(10, 11, 13, 0.96);
  border: 1px solid rgba(232, 225, 217, 0.14);
  border-radius: 0;
  color: var(--text);
  text-align: center;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.4rem;
  padding: 0.7rem 0.9rem;
}

#code:focus {
  outline: none;
  border-color: rgba(232, 225, 217, 0.28);
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
