/* ==========================================================================
   Access screen — minimal, self-contained. No imagery, no site chrome.
   ========================================================================== */
:root {
  --parchment: #F4EFE6;
  --surface:   #FBF8F2;
  --ink:       #14161A;
  --ink-soft:  #2A2E35;
  --muted:     #5A5F67;
  --rule:      #DDD5C6;
  --rule-strong: #C6BCA8;
  --copper:    #A85A2A;
  --copper-ink:#8F4A21;
  --alert:     #8C2F1E;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans:  "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease:  cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 20px;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fine rule field, drawn in CSS — no external assets */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: .35;
}

.gate {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  padding: clamp(28px, 6vw, 44px);
}

.gate__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--serif);
  font-size: 15px;
  margin-bottom: 26px;
}

.gate__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--copper-ink);
  margin: 0 0 10px;
}

.gate__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 6vw, 2.05rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}

.gate__field { margin-bottom: 16px; }

.gate__field label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.gate__input {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;               /* 16px prevents iOS zoom on focus */
  letter-spacing: .12em;
  color: var(--ink);
  background: var(--parchment);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 15px 16px;
  min-height: 50px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.gate__input::placeholder { color: #A29B8D; letter-spacing: .06em; }
.gate__input:focus {
  outline: 2px solid var(--copper-ink);
  outline-offset: 2px;
  border-color: var(--copper-ink);
  background: #fff;
}
.gate.is-error .gate__input { border-color: var(--alert); }

.gate__submit {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--parchment);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  transition: background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.gate__submit:hover { background: var(--copper-ink); border-color: var(--copper-ink); color: #fff; }
.gate__submit:focus-visible { outline: 2px solid var(--copper-ink); outline-offset: 3px; }

.gate__msg {
  min-height: 20px;
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--alert);
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.gate.is-error .gate__msg { opacity: 1; transform: none; }

.gate__rule { height: 1px; background: var(--rule); margin: 26px 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 360px) {
  .gate { padding: 24px 20px; }
}
