html {
  color-scheme: dark;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.4;
}

.column {
  box-sizing: border-box;
  min-height: 100dvh;
  max-width: 28rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: calc(var(--space-32) + env(safe-area-inset-top, 0px)) var(--space-24)
    calc(var(--space-24) + env(safe-area-inset-bottom, 0px));
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-16);
}

.mark {
  display: block;
  align-self: center;
  width: 32px;
  height: 32px;
  background: var(--ink);
  -webkit-mask: url("media/mark.svg") center / contain no-repeat;
  mask: url("media/mark.svg") center / contain no-repeat;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.field-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

label {
  font-size: 18px;
  font-weight: 400;
}

input {
  appearance: none;
  width: 100%;
  box-sizing: border-box;
  min-height: 72px;
  margin: 0;
  padding: var(--space-12) var(--space-16);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sheet);
  color: var(--ink);
  caret-color: var(--ink);
  font: inherit;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
}

input::placeholder {
  color: var(--muted);
  font-size: 40px;
  font-weight: 700;
  opacity: 1;
}

input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--sheet) inset;
}

.status {
  margin: 0;
  min-height: 1.4em;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

.dock {
  margin-top: var(--space-24);
}

button {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: var(--space-12) var(--space-16);
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--paper);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

button.pulse {
  animation: pulse var(--motion-1000) linear infinite alternate;
}

@keyframes pulse {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  button.pulse {
    animation: none;
  }
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.portrait-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.portrait {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--sheet);
}

.santa {
  margin: 0;
  color: var(--ink);
  font-family: var(--wordmark-name), var(--font);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

[hidden] {
  display: none !important;
}

@media (min-width: 800px) {
  .column {
    justify-content: center;
    min-height: auto;
    margin-top: 10vh;
  }

  .stage {
    flex: 0;
  }
}
