@font-face {
  font-family: "Camera Rounded Mono";
  src: url("./fonts/camera-rounded-mono-heavy.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: block;
}

@font-face {
  font-family: "Camera Plain";
  src: url("./fonts/camera-plain-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "Camera Rounded";
  src: url("./fonts/camera-rounded-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}

@font-face {
  font-family: "Camera Rounded Plain";
  src: url("./fonts/camera-rounded-plain-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}

:root {
  --paper: #ffffff;
  --line: #ececec;
  --ink: #000000;
  --pink: #ff009c;
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  background: var(--paper);
  font-synthesis: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Camera Plain", sans-serif;
}

button,
input {
  font: inherit;
}

.holding-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  background: var(--paper);
}

.background-art {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: clamp(900px, 112.37vw, 1699px);
  max-width: none;
  height: auto;
  translate: -50% -50%;
  pointer-events: none;
  user-select: none;
}

.holding-card {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(562px, calc(100vw - 32px));
  min-height: 278px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 48px 64px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

.logo {
  width: 121px;
  height: 28px;
  margin: 0;
  overflow: visible;
  font-family: "Camera Rounded Mono", sans-serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 900;
  font-kerning: normal;
  letter-spacing: -1px;
  line-height: 28px;
  white-space: nowrap;
}

.intro {
  width: 100%;
  margin: 0;
  font-family: "Camera Plain", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 22px;
  text-align: center;
}

.password-form {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.password-control {
  position: relative;
  display: block;
  width: 174px;
  height: 54px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  cursor: text;
  transition:
    border-color 180ms ease-out,
    box-shadow 670.784ms cubic-bezier(.2, .8, .2, 1);
}

.password-control[data-state="focussed"] {
  box-shadow: 0 0 10px rgb(255 0 156 / 50%);
}

.password-control[data-state="input"] {
  border-color: var(--pink);
  box-shadow: 0 0 10px rgb(255 0 156 / 50%);
}

.password-control[data-animate="true"] {
  animation: password-glow 670.784ms cubic-bezier(.2, .8, .2, 1);
}

.password-slots {
  display: grid;
  width: 142px;
  height: 32px;
  grid-template-columns: repeat(4, 32px);
  gap: 4px;
}

.password-slot {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  overflow: visible;
  color: var(--ink);
  font-family: "Camera Rounded", sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 22px;
}

.password-slot img {
  display: block;
  width: 25.7544px;
  height: 25.1603px;
}

.password-control input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  outline: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  opacity: 0;
  cursor: text;
}

.enter-button {
  position: relative;
  width: 100px;
  height: 40px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 100px;
  background:
    linear-gradient(rgb(255 255 255 / 0%), rgb(255 255 255 / 8%)),
    var(--pink);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 18%),
    0 1px 2px rgb(0 0 0 / 12%);
  color: var(--paper);
  cursor: pointer;
  font-family: "Camera Rounded Plain", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
}

.enter-button:hover {
  filter: brightness(.97);
}

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

.enter-button[hidden] {
  display: none;
}

.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;
}

@keyframes password-glow {
  0% { box-shadow: 0 0 0 rgb(255 0 156 / 0%); }
  42% { box-shadow: 0 0 13px rgb(255 0 156 / 62%); }
  72% { box-shadow: 0 0 8px rgb(255 0 156 / 45%); }
  100% { box-shadow: 0 0 10px rgb(255 0 156 / 50%); }
}

@media (max-width: 620px) {
  .holding-card {
    padding: 40px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .password-control {
    transition: none;
  }

  .password-control[data-animate="true"] {
    animation: none;
  }
}
