:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1d2738;
  background: #f6f7f4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 247, 244, 0.96)),
    #f6f7f4;
}

a {
  color: #245cbd;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 40px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.site-name {
  color: #1d2738;
  font-size: 18px;
  font-weight: 750;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #52606f;
  font-size: 14px;
}

.hero {
  padding-bottom: 30px;
  border-bottom: 1px solid #dfe4dc;
}

h1 {
  margin: 0 0 14px;
  font-size: 42px;
  line-height: 1.12;
  font-weight: 760;
  letter-spacing: 0;
}

.intro {
  max-width: 740px;
  margin: 0;
  color: #52606f;
  font-size: 17px;
  line-height: 1.85;
}

section {
  margin-top: 34px;
}

h2 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tile,
.note-card,
.article-box {
  border: 1px solid #dfe4dc;
  border-radius: 10px;
  background: #ffffff;
}

.tile {
  min-height: 96px;
  padding: 16px;
}

.tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.tile span {
  color: #66727f;
  font-size: 13px;
  line-height: 1.6;
}

.notes {
  display: grid;
  gap: 12px;
}

.note-card {
  display: block;
  padding: 18px 20px;
  color: inherit;
}

.note-card:hover {
  text-decoration: none;
  border-color: #bfc8d5;
  background: #fbfcff;
}

.note-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: 0;
}

.note-card p,
.article-box p,
.article-box li {
  color: #66727f;
  font-size: 15px;
  line-height: 1.85;
}

.meta {
  margin-bottom: 18px;
  color: #7b8792;
  font-size: 14px;
}

.article-box {
  padding: 24px;
}

.article-box h2 {
  margin-top: 30px;
}

.article-box h2:first-child {
  margin-top: 0;
}

.article-box ul,
.article-box ol {
  margin: 8px 0 0;
  padding-left: 22px;
}

code {
  border: 1px solid #e0e5eb;
  border-radius: 5px;
  background: #f7f9fb;
  padding: 1px 5px;
  color: #344055;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
}

.back {
  display: inline-flex;
  margin-top: 26px;
  font-size: 14px;
}

footer {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid #dfe4dc;
  color: #7b8792;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 32px, 920px);
    padding-top: 36px;
  }

  .top {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 34px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
