@font-face {
  font-family: Nunito;
  font-weight: 200 1000;
  font-display: swap;
  src: url(fonts/nunito-latin.woff2) format("woff2");
}

@font-face {
  font-family: "Nunito Sans";
  font-weight: 200 1000;
  font-display: swap;
  src: url(fonts/nunito-sans-latin.woff2) format("woff2");
}

:root {
  --paper: #f3eada;
  --ink: #241f1b;
  --faint: #8c7e70;
  --accent: #b9532f;
  --accent-dark: #a5482a;
  --field: #fffbf2;
  --border: #d9c9ac;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 24px 96px;
  background: var(--paper);
  color: var(--ink);
  font: 400 19px/1.7 "Nunito Sans", system-ui, sans-serif;
  display: flex;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

p { margin: 0; text-wrap: pretty; }

::selection { background: #f0d9a8; }

img { image-rendering: pixelated; display: block; }

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-top: 120px;
  text-align: center;
}

.logo { width: 196px; height: auto; }

.tagline {
  font: 700 24px/1.4 Nunito, sans-serif;
  letter-spacing: -0.01em;
  max-width: 24ch;
}

.people {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.people figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.people img {
  width: 128px;
  height: 128px;
  border-radius: 10px;
}

.people figcaption { font: 700 17px Nunito, sans-serif; }

/* Signup */

.signup,
.confirmation {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.signup form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

input {
  flex: 1 1 220px;
  min-width: 0;
  font: 400 17px "Nunito Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--field);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
}

input:focus { outline: none; border-color: var(--accent); }

button {
  font: 800 17px Nunito, sans-serif;
  color: #fff8ec;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  cursor: pointer;
}

button:hover { background: var(--accent-dark); }

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

.turnstile-container {
  flex: 1 0 100%;
}

.form-message {
  min-height: 1.7em;
  color: var(--faint);
  font-size: 16px;
}

.form-message[data-state="success"] { color: #496c3e; }
.form-message[data-state="error"] { color: var(--accent-dark); }

.confirmation[hidden] { display: none; }

.confirmation button { align-self: flex-start; }

/* Footer */

footer {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--faint);
}

footer a { display: flex; color: inherit; }
footer a:hover { color: var(--accent); }
