:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f4f5fa;
  background: #000;
}

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

body {
  margin: 0;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.125rem);
  padding: 22vh 1.25rem 3rem;
  padding-block-start: clamp(3rem, 24svh, 15rem);
}

h1 {
  margin: 0;
  color: #b6baff;
  font-size: clamp(2.75rem, 10vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 1;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  @media (forced-colors: none) {
    h1 {
      color: transparent;
      background-image: linear-gradient(105deg, #82dcff 4%, #9eaaff 30%, #cc9bff 52%, #ff9bc7 75%, #ffbf93 98%);
      -webkit-background-clip: text;
      background-clip: text;
    }
  }
}

form {
  display: flex;
  align-items: center;
  width: min(100%, 34rem);
  min-height: 3.75rem;
  padding: 0.3125rem;
  border: 1px solid #575e70;
  border-radius: 2rem;
  background: #15171e;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

form:focus-within {
  border-color: #a9b9ff;
  box-shadow: 0 0 0 3px rgb(169 185 255 / 24%);
}

input {
  flex: 1;
  min-width: 0;
  padding: 0.625rem 1rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

input::placeholder {
  color: #aeb6c8;
}

input::-webkit-search-cancel-button {
  cursor: pointer;
}

button {
  display: grid;
  flex: none;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c0c7ff;
  color: #191d36;
  cursor: pointer;
}

button:hover {
  background: #d9ddff;
}

button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (forced-colors: active) {
  input:focus-visible {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}

.search-icon {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
}

.search-icon::before,
.search-icon::after {
  position: absolute;
  content: "";
}

.search-icon::before {
  top: 1px;
  left: 1px;
  width: 0.875rem;
  height: 0.875rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  top: 0.8125rem;
  left: 0.8125rem;
  width: 0.4375rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: 1px 1px;
}
