:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #192e29;
  background: #f5f7f5;
  line-height: 1.65;
}

* { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

.wrap { width: min(960px, calc(100% - 48px)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid #dbe4df; }

.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

a { color: inherit; text-underline-offset: .24em; }
a:hover { color: #156550; text-decoration: underline; }
a:focus-visible { outline: 2px solid #156550; outline-offset: 5px; border-radius: 2px; }
.wordmark { font-size: 20px; font-weight: 750; text-decoration: none; white-space: nowrap; }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: #4a615a;
  font-size: 14px;
}

nav a { text-decoration: none; }
main { flex: 1; padding-block: 78px 64px; }

.intro h1 {
  margin: 0;
  font-size: clamp(34px, 5.5vw, 54px);
  font-weight: 750;
  line-height: 1.2;
  line-break: strict;
  text-wrap: balance;
}

.intro p { max-width: 660px; margin: 18px 0 0; color: #4a615a; font-size: clamp(16px, 2vw, 18px); }

.sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 52px;
}

section {
  min-height: 152px;
  padding: 22px;
  border: 1px solid #dbe4df;
  border-radius: 8px;
  background: #fff;
  scroll-margin-top: 16px;
}

section:target { border-color: #47806c; }
section h2 { margin: 0 0 8px; font-size: 18px; }
section p { margin: 0; color: #4a615a; font-size: 15px; }
footer { padding-block: 24px 32px; border-top: 1px solid #dbe4df; color: #4a615a; font-size: 14px; }

@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .site-bar { flex-wrap: wrap; min-height: 64px; gap: 6px 18px; padding-block: 12px; }
  nav { gap: 6px 14px; }
  main { padding-block: 48px 40px; }
  .sections { grid-template-columns: 1fr; gap: 12px; margin-top: 34px; }
  section { min-height: 0; padding: 18px; }
}
