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

* {
  margin: 0;
}

body {
  display: block;
  margin: 0;
  padding: 0;
  font-family: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
  font-size: 1rem;
  font-weight: normal;
}

/* ================================================== */

header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  background-color: lavender;
}

header h1 {
  font-size: 1rem;
}

a {
  color: darkslateblue;
}

footer {
  display: flex;
  justify-content: center;
  padding: 2rem;
  background-color: lavender;
}

footer p {
  font-size: 0.875rem;
}

main {
  padding: 0 2rem;
}

code {
  font-size: smaller;
  background-color: lavender;
  border: 1px solid darkslateblue;
  border-radius: 3px;
  padding: 1px 4px;
  white-space: nowrap;
}

/* ================================================== */

.container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
}

/* <ul> */
.demos {
  list-style-type: decimal;
  list-style-position: outside;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: darkslateblue;
}

.demos li {
  flex: 1 1 25%;
  border-bottom: 2rem solid lavender;
}

.demos li::marker {
  color: darkslateblue;
}

.demos li:last-child {
  border-bottom: none;
}

.demos a {
  display: inline-block;
  text-decoration: none;
  padding: 1rem;
  border: 3px double darkslateblue;
  border-radius: 3px;
}

.demos a:hover {
  background-color: lavender;
}

.demos h2 {
  margin-bottom: 1rem;
}

.demos p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

@media (width >=700px) {
  .demos {
    flex-direction: row;
  }

  .demos li {
    border-bottom: none;
  }
}