:root {
  --text: #111;
  --muted: #555;
  --border: #e0e0e0;
  --primary: #000;
}

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

body {
  margin: 0;
  font: 1.125rem/1.7 "Albert Sans", system-ui, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 38rem;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

h1, h2 { font-family: "Aleo", Georgia, serif; font-weight: 600; }
h1 { font-size: 1.75rem; margin: 0 0 0.125rem; }
h2 { font-size: 1.25rem; margin: 0 0 1rem; }

p { margin: 0 0 1rem; }

section p:last-of-type {
  margin-bottom: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

section { margin-bottom: 3rem; }

footer {
  margin-top: 5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.tagline {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.lede {
  font-size: 1.25rem;
  margin-bottom: 3rem;
}

.btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font: 600 1rem "Aleo", Georgia, serif;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--text);
  background: var(--text);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
  text-align: center;
}

.btn:hover { opacity: 0.85; }

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.form {
  display: flex;
  margin: 1rem 0 0 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.form__input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  font: 1rem "Albert Sans", system-ui, sans-serif;
  border: none;
  color: var(--text);
  background: #fff;
}

.form__input::placeholder {
  color: #bbb;
}

.form__input:focus {
  outline: none;
  background: #fafafa;
}

.form__button {
  padding: 0.875rem 1.75rem;
  font: 600 1rem "Aleo", Georgia, serif;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.form__button:hover {
  background: #333;
}

.form__button:active {
  background: #000;
}

.follow {
  color: var(--muted);
  font-size: 0.95rem;
}

.follow a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.15s;
}

.follow a:hover {
  border-color: var(--muted);
}

@media (max-width: 600px) {
  main { padding: 3rem 1.25rem; }
  body { font-size: 1rem; }
  h1 { font-size: 1.5rem; }
  .lede { font-size: 1.125rem; }
  .form {
    flex-direction: column;
  }
}
