* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: #f4f1ea;
  color: #292721;
  font:
    16px/1.8 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
main,
header,
footer {
  width: min(800px, 100% - 40px);
  margin: auto;
}
header {
  padding: 30px 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid #d8d3c9;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}
.brand img {
  border-radius: 8px;
}
nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
a {
  color: #485f85;
  text-underline-offset: 4px;
}
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
main {
  padding: 32px 0 48px;
}
h1 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.3;
  margin: 0 0 12px;
}
h2 {
  font-size: 21px;
  line-height: 1.4;
  margin: 32px 0 10px;
}
h3 {
  font-size: 18px;
  line-height: 1.5;
  margin: 24px 0 8px;
}
p,
ul {
  margin: 10px 0;
}
li {
  margin: 7px 0;
}
section + section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid #d8d3c9;
}
.meta {
  color: #6d675e;
  font-size: 14px;
}
.contact {
  padding: 18px 20px;
  background: #e9edf2;
  border-radius: 12px;
}
footer {
  padding: 24px 0 40px;
  border-top: 1px solid #d8d3c9;
  color: #6d675e;
  font-size: 14px;
}
footer nav {
  margin-bottom: 12px;
}
details {
  border-bottom: 1px solid #d8d3c9;
  padding: 16px 0;
}
summary {
  font-weight: 600;
  cursor: pointer;
}
details p {
  padding-right: 10px;
}
@media (prefers-color-scheme: dark) {
  body {
    background: #171614;
    color: #f0ece4;
  }
  a {
    color: #b1c6e7;
  }
  .meta,
  footer {
    color: #b6afa3;
  }
  header,
  footer,
  section + section,
  details {
    border-color: #49453d;
  }
  .contact {
    background: #252d3a;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
