.gate {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(290px, 0.9fr);
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
  max-width: 1000px;
  padding: clamp(32px, 6vh, 76px) 0;
}
.gate-cover {
  background: #ffda64;
  border: 1.5px solid #29291f;
  border-radius: 16px;
  padding: 30px;
  overflow: hidden;
}
.gate-cover h1 {
  font: 400 clamp(3.5rem, 6vw, 5.1rem) / 0.98 var(--serif);
  letter-spacing: -0.06em;
  margin: 18px 0 0;
}
.gate-cover img {
  display: block;
  width: 85%;
  max-height: 190px;
  object-fit: contain;
  margin: 0 auto;
}
.gate-cover p,
.gate-form p {
  line-height: 1.5;
}
.gate-cover p {
  margin: 10px 0 0;
}
.gate-form h2 {
  font: 400 2.65rem/1.07 var(--serif);
  letter-spacing: -0.05em;
  margin: 22px 0 6px;
}
.gate-form > p {
  margin: 8px 0 22px;
  color: var(--muted);
}
.gate-tabs {
  display: flex;
  gap: 3px;
  border-bottom: 1px solid var(--rule);
}
.gate-tabs button {
  padding: 9px 15px;
  font-weight: 650;
  border-bottom: 3px solid transparent;
}
.gate-tabs [aria-pressed="true"] {
  border-color: var(--ink);
}
.gate-form label {
  display: grid;
  gap: 5px;
  font-size: 0.94rem;
  font-weight: 650;
  margin: 15px 0;
}
.gate-form [hidden] {
  display: none;
}
.gate-form input {
  padding: 11px 12px;
  border: 1px solid #aeb4a7;
  border-radius: 7px;
  background: #fff;
  width: 100%;
  font: inherit;
  font-weight: 450;
}
.gate-form #submit {
  width: 100%;
  margin-top: 7px;
}
.gate-form #feedback {
  color: #9a3033;
  min-height: 1em;
  margin: 5px 0;
  font-size: 0.94rem;
}
.gate-form #password-help {
  font-size: 0.85rem;
  color: var(--muted);
  margin: -8px 0 10px;
}
@media (max-width: 650px) {
  .gate {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    padding: 17px 0 30px;
    max-width: 470px;
  }
  .gate-cover {
    padding: 16px;
    position: relative;
    min-height: 90px;
  }
  .gate-cover h1 {
    font-size: 2.35rem;
    margin: 6px 0 0;
  }
  .gate-cover h1 br,
  .gate-cover p {
    display: none;
  }
  .gate-cover img {
    position: absolute;
    right: 0;
    top: 0;
    width: 38%;
    height: 100%;
  }
  .gate-form h2 {
    font-size: 2.2rem;
    margin: 16px 0 6px;
  }
}
