:root {
  --font-hand: "Caveat", "Segoe Script", cursive;
  --font-typed: "Special Elite", "Courier New", monospace;
  --font-body: "Roboto Slab", Georgia, serif;
  --ink: #2c2418;
  --ink-soft: #5c4e3a;
  --paper: #f7f1e3;
  --paper-deep: #efe6d2;
  --stamp: #9b2c2c;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  background-color: #1a1c1e;
  background-image:
    linear-gradient(180deg, rgba(8, 8, 10, 0.35), rgba(8, 8, 10, 0.55)),
    url("../images/wall.avif");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

html.gate-on {
  overflow: hidden;
}

html.gate-on body > :not(.gate) {
  visibility: hidden;
  pointer-events: none;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.55), rgba(8, 8, 10, 0.7)),
    #1a1c1e;
}

.gate-card {
  width: min(360px, 100%);
  background: #f6f1e4;
  padding: 1.5rem 1.4rem 1.3rem;
  box-shadow: 4px 8px 20px rgba(0, 0, 0, 0.18);
}

.gate-card h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-hand);
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
}

.gate-lede {
  margin: 0 0 1rem;
  font-family: var(--font-typed);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-soft);
}

.gate-card label {
  display: block;
  margin: 0.75rem 0 0.25rem;
  font-family: var(--font-typed);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gate-card input {
  width: 100%;
  border: 1px solid rgba(80, 60, 30, 0.25);
  background: #fffdf8;
  padding: 0.45rem 0.55rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.gate-card button {
  margin-top: 1rem;
  width: 100%;
  border: 0;
  padding: 0.55rem;
  background: #e8e0d0;
  font-family: var(--font-typed);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.gate-error {
  margin: 0.5rem 0 0;
  color: var(--stamp);
  font-family: var(--font-typed);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-align: center;
}
