:root {
  color-scheme: light;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #101010;
  background: #fff;
  --grid-spacing: 58.8px;
  --footer-inset: 40px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  background-image:
    linear-gradient(to right, #efefef 1px, transparent 1px),
    linear-gradient(to bottom, #efefef 1px, transparent 1px);
  background-size: var(--grid-spacing) var(--grid-spacing);
  background-position: 36px 42px;
}

main {
  min-height: 390px;
  display: grid;
  place-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding: 30px 24px;
}

.lockup {
  width: min(100%, 600px);
  text-align: center;
  transform: translateY(15px);
}

h1 { margin: 0 0 38px; }
.brand-art {
  position: relative;
  display: block;
  width: min(100%, 220px);
  aspect-ratio: 352 / 334;
  margin-inline: auto;
  overflow: hidden;
}
/* Trim the logo's 600 × 600 source artboard to the existing 352 × 334 display area. */
.brand-art img {
  position: absolute;
  inset: calc(-100% * 124 / 334) auto auto calc(-100% * 123 / 352);
  width: calc(100% * 600 / 352);
  height: auto;
}

.entrance { position: relative; }
.field, .welcome {
  min-height: 82px;
  border-radius: 999px;
  background: #f4f4f4;
}
.field {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}
.field:focus-within { outline: 1px solid #a9a9a9; outline-offset: 3px; }

input, button { font: inherit; color: inherit; border: 0; background: transparent; }
input {
  flex: 1;
  min-width: 0;
  padding: 0 12px 0 39px;
  font-size: 21px;
  border-radius: 999px;
}
input::placeholder { color: #707070; opacity: 1; }
input:focus { outline: none; }
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 44px 0 12px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
}
button:hover { color: #555; }
.enter-arrow { flex: none; }
button:focus-visible, a:focus-visible { outline: 2px solid #222; outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .enter-arrow { animation: arrow-forward 2.2s ease-in-out infinite; }
  .field--shake { animation: password-shake 420ms ease-out both; }
}

@keyframes arrow-forward {
  0%, 25% { transform: translateX(0); opacity: 1; }
  60% { transform: translateX(8px); opacity: 1; }
  74% { transform: translateX(11px); opacity: 0; }
  75% { transform: translateX(0); opacity: 0; }
  90%, 100% { transform: translateX(0); opacity: 1; }
}

@keyframes password-shake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-8px); }
  36% { transform: translateX(7px); }
  54% { transform: translateX(-5px); }
  72% { transform: translateX(3px); }
  88% { transform: translateX(-1px); }
}

.error {
  position: absolute;
  inset-inline: 18px;
  top: 100%;
  margin: 12px 0 0;
  color: #8e2727;
  font-size: 14px;
  line-height: 1.4;
}
.welcome { display: grid; place-items: center; font-size: 20px; }
.welcome p { margin: 0; padding: 14px 20px; }

footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  padding: 0 var(--footer-inset) var(--footer-inset);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.42;
}
footer span, footer time { display: block; }
.contact { text-align: center; }
.contact-links { display: flex; gap: 12px; justify-content: center; }
.contact a { color: inherit; text-decoration: none; }
.contact a:hover, .contact a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.location { text-align: right; font-variant-numeric: tabular-nums; padding-right: 4px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 640px) {
  :root { --grid-spacing: 42px; --footer-inset: 20px; }
  body { background-position: calc(50% - 18px) 24px; }
  .lockup { transform: none; }
  h1 { margin-bottom: 32px; }
  .brand-art { width: min(100%, 184px); }
  .field, .welcome { min-height: 62px; }
  input { padding-left: 21px; font-size: 17px; }
  button { padding-right: 18px; font-size: 14px; gap: 5px; }
  .enter-arrow { width: 30px; height: auto; }
  footer { column-gap: 8px; font-size: 13px; }
  .contact-links { gap: 8px; }
  .location { padding-right: 0; }
}

@media (max-width: 360px) {
  :root { --footer-inset: 14px; }
  main { padding-inline: 16px; }
  footer { font-size: 12px; }
}
