* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #1f2933;
  background: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: #135c7a;
  text-decoration: none;
}

.site-header,
.site-footer,
.layout {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

.brand {
  color: #172026;
  font-size: 22px;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero,
.page-title,
.article-detail,
.card,
.article-list article {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
}

.hero,
.page-title,
.article-detail {
  padding: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.card,
.article-list article {
  padding: 18px;
}

.article-list {
  display: grid;
  gap: 14px;
  margin: 20px 0 36px;
}

.site-footer {
  padding: 24px 0 36px;
  color: #52616b;
  font-size: 14px;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
