:root {
  color-scheme: light;
  --ink: #171917;
  --muted: #686d68;
  --line: #d9dcd8;
  --paper: #fafbf9;
  --accent: #e4ffc2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
}

.page {
  width: min(560px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

header {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
}

header span {
  color: var(--muted);
  font-weight: 400;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0;
}

.label {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  max-width: 480px;
  margin: 0;
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.intro {
  max-width: 510px;
  margin: 22px 0 46px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

form {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid var(--ink);
  background: white;
}

.cf-turnstile {
  min-height: 65px;
  margin-top: 14px;
}

label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

input {
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font:
    13px "IBM Plex Mono",
    monospace;
}

input::placeholder {
  color: #929792;
}

input:focus {
  box-shadow: inset 0 0 0 2px var(--accent);
}

button {
  height: 54px;
  padding: 0 18px;
  border: 0;
  border-left: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  font:
    500 11px "IBM Plex Mono",
    monospace;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}

button:hover:not(:disabled),
button:focus-visible {
  outline: 0;
  background: var(--accent);
  color: var(--ink);
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.fine {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

#message {
  display: none;
  margin-top: 16px;
  padding: 13px 14px;
  border-left: 2px solid var(--ink);
  background: #f0f1ef;
  font-size: 11px;
  line-height: 1.55;
}

#message.show {
  display: block;
}

#message.success {
  background: var(--accent);
}

#message.error {
  background: #f6eae6;
}

#message a {
  color: inherit;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 520px) {
  main {
    padding: 60px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  button {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  footer span:last-child {
    display: none;
  }
}

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