@font-face {
  font-family: Manrope;
  src: url("./assets/manrope-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("./assets/manrope-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Manrope, "Helvetica Neue", Arial, sans-serif;
  color: #121413;
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --ink: #121413;
  --muted: #686b68;
  --line: #d1d3d1;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: #fff;
  background: #121413;
}

main {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 3rem 1.5rem calc(3rem + 7svh);
}

.landing {
  width: min(100%, 21rem);
  text-align: center;
}

.identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: arrive 1.2s var(--ease) both;
}

.mark {
  width: 5.5rem;
  height: 5.5rem;
  position: relative;
}

.mark-fallback,
.mark-motion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mark-motion:empty {
  display: none;
}

.mark.ready .mark-fallback {
  visibility: hidden;
}

.mark-motion svg {
  display: block;
  overflow: visible;
}

h1 {
  margin: 0.65rem 0 0;
  font-size: 2.125rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.055em;
}

.signup-area {
  margin-top: 3.25rem;
  min-height: 7.25rem;
  animation: arrive 1.2s 140ms var(--ease) both;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.email-field {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.3125rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.email-field:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

input {
  width: 100%;
  min-width: 0;
  height: 2.75rem;
  padding: 0 0.75rem;
  border: 0;
  outline: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.025em;
}

input::placeholder {
  color: var(--muted);
  font-size: 0.875rem;
  opacity: 1;
}

input:autofill {
  box-shadow: 0 0 0 1000px #fff inset;
}

.submit {
  display: grid;
  place-items: center;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 1px;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  transition:
    background 200ms ease,
    transform 200ms var(--ease);
}

.submit svg {
  transition: transform 350ms var(--ease);
}

.submit:active {
  transform: scale(0.94);
}

.submit:focus-visible,
.back:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.form-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.65;
  letter-spacing: 0;
}

.form-note.error {
  color: #a1272f;
}

.form-note:empty {
  margin: 0;
}

.honey {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.security-check {
  display: flex;
  justify-content: center;
}
.privacy-link {
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: none;
  text-underline-offset: 3px;
}
.privacy-link:hover {
  text-decoration: underline;
}
.privacy-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
.submit.busy {
  opacity: 0.65;
  cursor: progress;
}
.policy {
  width: min(100%, 38rem);
  text-align: left;
}
.policy h1 {
  margin-top: 2rem;
  font-size: 2rem;
}
.policy h2 {
  margin-top: 2rem;
  font-size: 1.125rem;
  font-weight: 600;
}
.policy p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}
.policy a {
  color: var(--ink);
  text-underline-offset: 3px;
}
.policy .date {
  font-size: 0.8125rem;
}

.email-field:has([aria-invalid="true"]) {
  border-color: #a1272f;
}

.confirmation {
  animation: arrive 600ms var(--ease) both;
}

.confirmation-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.confirmation-title:focus {
  outline: none;
}

.confirmation-copy {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.back {
  min-height: 2.75rem;
  margin-top: 0.75rem;
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: 0;
  color: var(--ink);
  background: none;
  font-size: 0.875rem;
  cursor: pointer;
  text-underline-offset: 4px;
}

.back span {
  display: inline-block;
  margin-left: 0.35rem;
}

[hidden] {
  display: none !important;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: hover) {
  .email-field:hover:not(:focus-within) {
    border-color: #939793;
  }
  .submit:hover {
    background: #323632;
  }
  .submit:hover svg {
    transform: translateX(2px);
  }
  .back:hover {
    text-decoration: underline;
  }
}

@media (max-width: 380px) {
  main {
    padding-inline: 1.25rem;
  }
  .signup-area {
    margin-top: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .email-field,
  .submit {
    border-color: ButtonText;
  }
  .mark {
    forced-color-adjust: none;
  }
}
