:root {
  --bg: #FFF;
  --text: #111;
  --text-muted: #111;
  --border: #1a1a1a;
  --max-width: 650px;
}

html {
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--text-muted);
  font-family: sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 0 10px;
}

header,
main,
section,
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

header {
  padding-top: 140px;
  padding-bottom: .5rem;
}

h1 {
  font-size: 1rem;
  font-weight: bold;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ---------- Main ---------- */

main {
  padding-top: 8px;
  margin-bottom: 2rem;
}

main button {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  border: none;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 40px;
  corner-shape: squircle;
  cursor: pointer;
  margin-bottom: 28px;
  transition: opacity 0.15s ease;
}

main button:hover {
  opacity: 0.8;
}

main button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

main p {
  margin: 0;
}

.warning {
    font-size: small;
    color: #52525C;
}
/* ---------- Body copy section ---------- */

section {
  padding-bottom: 120px;
}

section p {
  margin: 0 0 24px 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

section p:last-child {
  margin-bottom: 0;
}

.num {
    font-family: serif !important;
}
/* ---------- Footer ---------- */

footer {
  padding-bottom: 96px;
  padding-top: 40px;
  border-top: 1px solid #e2e2e2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  font-size: 14px;
}

footer ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

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

footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  header {
    padding-top: 80px;
  }

  h1 {
    font-size: 1.2rem;
  }

  p {
    font-size: 1rem;
  }

  section {
    padding-bottom: 80px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 64px;
    border: none;
  }
}