/* Reset and base styles */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #fdf6e3;
  color: #121212;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  max-width: 75rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

header {
  border-bottom: 1px solid #dcdcdc;
  margin-bottom: 1.5rem;
  text-align: center;
}

header a {
  display: block;
  font-size: 2em;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: #121212;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav li {
  display: inline;
  margin-right: 1rem;
}

nav a {
  text-decoration: underline;
}

main {
  margin-bottom: 2rem;
}

h1 {
  font-size: 3em;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.5em;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

section {
  margin-bottom: 2rem;
}

a.primary-cta {
  background-color: #d73a49;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.3rem;
  display: inline-block;
  text-decoration: none;
}

/* Layout for mathematics section */
#mathematics {
  margin-top: 2rem;
}

#mathematics ul {
  list-style: none;
  padding-left: 0;
}

#mathematics li {
  margin-bottom: 1rem;
}

/* Footer styles */
footer {
  border-top: 1px solid #dcdcdc;
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.9em;
}

@media (min-width: 768px) {
  section[aria-labelledby="mathematics-heading"] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.5rem;
  }

  section[aria-labelledby="mathematics-heading"] > h2 {
    grid-column: 1 / -1;
  }
}