:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f7f4ef;
  --fg: #20231f;
  --accent: #e95a3b;
  --muted: #596057;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
}

main {
  box-sizing: border-box;
  max-width: 30rem;
  min-height: 100vh;
  margin: 0 auto;
  padding: 15vh 1.5rem 3rem;
  position: relative;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  line-height: 1.15;
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.1rem;
}

p {
  line-height: 1.6;
}

a {
  color: inherit;
}

.wordmark {
  display: block;
  width: fit-content;
  margin: 0 auto 1.5rem;
  font-size: clamp(2.5rem, 9vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg);
  text-decoration: none;
}

.muted {
  color: var(--muted);
}

.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.1rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.secondary {
  display: block;
  margin-top: 1.25rem;
  color: var(--muted);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.badge-row a {
  line-height: 0;
}

.badge-row img {
  height: 40px;
  width: auto;
}

.switcher {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}

.switcher:hover {
  text-decoration: underline;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem 0 0;
  font-size: 0.85rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

.links {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  text-align: center;
}

.links a {
  color: var(--muted);
}

.field {
  display: block;
  margin-top: 1.25rem;
  text-align: left;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  box-sizing: border-box;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d8d3c8;
  border-radius: 0.5rem;
  background: white;
  color: var(--fg);
  font: inherit;
}

.field textarea {
  min-height: 5rem;
  resize: vertical;
}

form .button {
  border: none;
  font: inherit;
  cursor: pointer;
}

.success {
  display: none;
}

.success.visible {
  display: block;
}

.landing {
  text-align: center;
}

.landing .badge-row {
  justify-content: center;
}
