:root {
  --bg: #faf8f4;
  --fg: #111111;
  --muted: #6b6663;
  --accent: #e85d2f;
  --accent-press: #d34d23;
  --rule: #e8e3dc;
  --display: "Fraunces", ui-serif, Georgia, serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 24px;
  width: 100%;
}

.brand {
  text-align: center;
  margin-bottom: 80px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 48px;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0;
  color: var(--fg);
}

.wordmark .dot {
  color: var(--accent);
}

.small-caps {
  font-family: var(--body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
  margin: 12px 0 0;
}

.hero {
  text-align: center;
  max-width: 720px;
}

.lede {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0;
}

.lede em {
  font-style: italic;
}

.sub {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  margin: 16px 0 0;
}

.form {
  margin-top: 40px;
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 420px;
}

.form input[type="email"] {
  flex: 1 1 auto;
  font-family: var(--body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background: #ffffff;
  color: var(--fg);
  border-radius: 4px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form input[type="email"]::placeholder {
  color: #aaa5a0;
}

.form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 93, 47, 0.16);
}

.form button {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 12px 18px;
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
  border-radius: 4px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.form button:hover,
.form button:focus-visible {
  background: var(--accent-press);
  border-color: var(--accent-press);
}

.thanks {
  margin-top: 40px;
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  color: var(--fg);
}

.ig-link {
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}

.ig-link a {
  color: var(--fg);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-size: 100% 1px;
  background-repeat: no-repeat;
  transition: color 160ms ease;
}

.ig-link a:hover,
.ig-link a:focus-visible {
  color: var(--accent);
}

.footer {
  padding: 20px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}

.footer p {
  margin: 0;
}

@media (max-width: 540px) {
  main {
    padding: 32px 20px;
  }
  .brand {
    margin-bottom: 56px;
  }
  .wordmark {
    font-size: 36px;
  }
  .small-caps {
    font-size: 10px;
  }
  .lede {
    font-size: 26px;
  }
  .sub {
    font-size: 15px;
  }
  .form {
    flex-direction: column;
    gap: 10px;
    margin-top: 32px;
  }
  .form button {
    padding: 14px;
    font-size: 15px;
  }
  .thanks {
    margin-top: 32px;
    font-size: 20px;
  }
  .ig-link {
    margin-top: 24px;
    font-size: 13px;
  }
}
