* { margin: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  background: #ffffff;
  display: grid;
  place-items: center;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
}

main {
  display: grid;
  justify-items: center;
  gap: 28px;
  width: min(340px, 100%);
}

.note {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 22px);
  color: #9a9087;
  text-align: center;
}

.gate { display: flex; width: 100%; }

.gate input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  font: 16px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #2b2724;
  background: #ffffff;
  border: 1px solid #e2dcd3;
  border-right: 0;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.gate input::placeholder { color: #b9afa5; }
.gate input:focus { outline: none; border-color: #a88450; }

.gate button {
  padding: 0 20px;
  font: 500 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  background: #2b2724;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.gate button:hover, .gate button:focus-visible { background: #a88450; outline: none; }

.wrong { display: none; font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; color: #a0523d; }
.wrong:target { display: block; }

.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
