:root {
  --text: #1f2328;
  --muted: #59636e;
  --bg: #fafaf9;
  --line: #e4e4e1;
  --link: #1a5fb4;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.page {
  max-width: 42rem;
  min-height: 100vh;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
}

header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

main {
  flex: 1;
  padding: 2.5rem 0;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.875rem;
  line-height: 1.25;
  font-weight: 600;
}

h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.1875rem;
  line-height: 1.35;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

.lead {
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.1875rem;
}

.meta {
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.cta {
  margin-top: 2rem;
  font-weight: 600;
}

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

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-bottom: 0.5rem;
}

footer p {
  margin: 0;
}

@media (min-width: 40rem) {
  .page {
    padding: 3rem 1.5rem;
  }

  h1 {
    font-size: 2.25rem;
  }
}
