:root {
  color-scheme: light dark;
  font: 18px/1.6 system-ui, sans-serif;
}

body {
  max-width: 46rem;
  margin: auto;
  padding: 1rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0 3rem;
}

nav {
  display: flex;
  gap: 1rem;
}

a {
  color: inherit;
}

.brand,
h1,
h2,
h3 {
  line-height: 1.2;
}

.brand {
  font-weight: 700;
  text-decoration: none;
}

.intro {
  font-size: 1.25rem;
}

section,
article {
  margin: 2.5rem 0;
}

time,
footer {
  color: #777;
}

footer {
  border-top: 1px solid #7775;
  margin-top: 4rem;
  padding: 2rem 0;
}

@media (max-width: 32rem) {
  header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
}
