* {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1d2129;
  background: #f5f7fb;
}

body {
  margin: 0;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header,
.site-footer {
  background: #fff;
  border-color: #e5e6eb;
}

.site-header {
  border-bottom: 1px solid #e5e6eb;
}

.header-inner,
.content,
.footer-inner {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: #1d2129;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

a {
  color: #4f46e5;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.content {
  flex: 1;
  padding: 36px 0 48px;
}

.article {
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  padding: 28px;
}

h1 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.25;
}

h2 {
  margin: 28px 0 10px;
  font-size: 18px;
}

p,
li {
  color: #4e5969;
  font-size: 15px;
  line-height: 1.8;
}

ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.meta {
  color: #86909c;
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid #e5e6eb;
}

.footer-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #86909c;
  font-size: 12px;
}

.footer-inner a {
  color: inherit;
}

@media (max-width: 640px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .content {
    padding: 18px 0 28px;
  }

  .article {
    padding: 20px;
  }

  h1 {
    font-size: 23px;
  }
}

