:root {
  color-scheme: light;
  --ivory: #f4eee4;
  --graphite: #4c4947;
  --champagne: #e7c5a0;
}

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

html {
  min-height: 100%;
  background: var(--ivory);
}

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--graphite);
  font-family: Georgia, "Times New Roman", serif;
}

.page {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 55% 65% at 50% 45%, #faf6ef 0%, transparent 100%),
    var(--ivory);
}

.architecture {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.architecture path {
  fill: none;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.architecture .inner-line {
  opacity: 0.35;
  stroke-width: 0.9;
}

.access {
  width: min(100% - 48px, 430px);
  margin-top: -2vh;
  text-align: center;
}

h1 {
  margin: 0 0 31px;
  font-size: clamp(22px, 3vw, 27px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(76, 73, 71, 0.42);
  border-radius: 0;
  outline: none;
  background: rgba(250, 246, 239, 0.36);
  color: var(--graphite);
  font: 20px Georgia, "Times New Roman", serif;
  text-align: center;
  letter-spacing: 0.19em;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

input:hover {
  border-color: rgba(76, 73, 71, 0.68);
}

input:focus-visible {
  border-color: var(--graphite);
  background: rgba(250, 246, 239, 0.72);
  outline: 2px solid rgba(231, 197, 160, 0.7);
  outline-offset: 3px;
}

button {
  min-width: 180px;
  min-height: 52px;
  margin-top: 28px;
  padding: 12px 32px;
  border: 1px solid rgba(176, 139, 96, 0.24);
  border-radius: 0;
  background: var(--champagne);
  color: var(--graphite);
  cursor: pointer;
  font: 15px Georgia, "Times New Roman", serif;
  letter-spacing: 0.22em;
  transition: background-color 180ms ease, transform 180ms ease;
}

button:hover {
  background: #dfb990;
}

button:active {
  transform: translateY(1px);
}

button:focus-visible {
  outline: 2px solid var(--graphite);
  outline-offset: 4px;
}

.message {
  min-height: 22px;
  margin: 19px 0 0;
  color: #8a6960;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 180ms ease;
}

.message.is-visible {
  opacity: 1;
}

@media (max-width: 600px) {
  .architecture {
    opacity: 0.58;
  }

  .access {
    width: min(100% - 48px, 390px);
    margin-top: -1vh;
  }

  h1 {
    margin-bottom: 26px;
    font-size: clamp(21px, 6vw, 25px);
  }

  input {
    height: 54px;
  }

  button {
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  input,
  button,
  .message {
    transition: none;
  }
}
