* {
  box-sizing: border-box;
}
html {
  color-scheme: light dark;
}
body {
  margin: 0;
  background: #fcfbf8;
  color: #20201e;
  font:
    17px/1.7 system-ui,
    sans-serif;
}
header,
main,
footer {
  max-width: 840px;
  margin: auto;
  padding: 28px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #ddd;
}
a {
  color: #275c50;
  text-underline-offset: 3px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
}
nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}
h1 {
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 30px 0;
}
h2 {
  font-size: 23px;
  line-height: 1.3;
  margin: 36px 0 12px;
}
p {
  margin: 14px 0;
}
li {
  padding-left: 4px;
  margin: 10px 0;
}
footer {
  font-size: 14px;
  border-top: 1px solid #ddd;
  color: #686860;
}
a:focus-visible {
  outline: 3px solid #648e7a;
  outline-offset: 4px;
}
@media (max-width: 540px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }
  header,
  main,
  footer {
    padding: 22px;
  }
  h1 {
    font-size: 34px;
  }
}
@media (prefers-color-scheme: dark) {
  body {
    background: #171b18;
    color: #e7e9e5;
  }
  a {
    color: #a1d7b9;
  }
  header,
  footer {
    border-color: #3a433c;
  }
  footer {
    color: #acb4ad;
  }
}
