:root {
  color-scheme: light;
  --ink: #152c32;
  --muted: #5f7379;
  --line: #dbe5e5;
  --paper: #f8faf8;
  --accent: #176c65;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.85 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    'Microsoft YaHei',
    'Noto Sans SC',
    'Hiragino Sans GB',
    'Segoe UI',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-autospace: normal;
  overflow-wrap: anywhere;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
a:hover {
  color: #0c4641;
}
header {
  max-width: 1200px;
  margin: auto;
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line);
}
.brand {
  max-width: 100%;
  font-size: 23px;
  font-weight: 750;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.brand-dot {
  color: #d5925c;
  margin-left: 10px;
  font-size: 14px;
}
header nav {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}
header nav a {
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 55px 32px 90px;
  min-height: 70vh;
}
h1,
h2,
h3 {
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}
h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin: 15px 0 22px;
  font-weight: 650;
}
h2 {
  font-size: 27px;
}
p {
  color: var(--muted);
}
.hero {
  max-width: 830px;
  padding: 35px 0 60px;
}
.hero p:not(.eyebrow) {
  max-width: 660px;
  font-size: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 11px 21px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
}
.button:hover {
  color: white;
  background: #0c4641;
}
.text-link {
  display: inline-block;
  margin-left: 22px;
  font-size: 15px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.section-heading > a {
  font-size: 14px;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.resource-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 27px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.resource-card h2 {
  font-size: 23px;
  margin: 18px 0 5px;
}
.resource-card p {
  margin: 8px 0 23px;
  font-size: 15px;
  flex: 1;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px 15px;
  width: 100%;
  font-size: 12px;
  color: var(--muted);
}
.meta > a {
  text-decoration: none;
  font-weight: 700;
}
.meta time {
  white-space: nowrap;
}
.visit {
  font-size: 15px;
  font-weight: 650;
}
.visit span {
  margin-left: 8px;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 27px;
}
.post-card {
  min-width: 0;
  border-top: 3px solid #9dbcb6;
  padding: 23px 0 30px;
}
.post-card > time,
.prose > time {
  font-size: 13px;
  color: var(--muted);
}
.post-card h2 {
  font-size: 24px;
  line-height: 1.5;
}
.post-card h2 a {
  color: var(--ink);
  text-decoration: none;
}
.post-card p {
  font-size: 15px;
}
.post-card > a {
  font-size: 14px;
}
.intro {
  font-size: 18px;
  max-width: 700px;
}
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
}
.categories a {
  border: 1px solid var(--line);
  padding: 6px 13px;
  border-radius: 30px;
  font-size: 13px;
  text-decoration: none;
  background: white;
}
.categories a[aria-current] {
  background: var(--accent);
  color: white;
}
.categories small {
  opacity: 0.85;
  margin-left: 5px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 30px 0;
  font-size: 14px;
}
.pagination a,
.pagination span {
  white-space: nowrap;
}
.empty,
.notice {
  border: 1px dashed #b5cbc5;
  padding: 25px;
  margin: 20px 0;
  border-radius: 5px;
}
.empty h3 {
  font-size: 22px;
}
.empty p {
  margin-bottom: 0;
}
.prose {
  max-width: 760px;
  margin: 10px auto;
}
.prose h1 {
  font-size: 42px;
}
.prose h2 {
  margin-top: 36px;
}
.prose p,
.prose li {
  font-size: 17px;
  line-height: 1.95;
}
.prose > time {
  display: block;
  margin-bottom: 35px;
}
.prose pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #e8efec;
  padding: 15px;
}
.prose blockquote {
  margin: 25px 0;
  padding-left: 22px;
  border-left: 3px solid var(--accent);
}
.article-content > :first-child {
  margin-top: 0;
}
footer {
  border-top: 1px solid var(--line);
  max-width: 1136px;
  margin: auto;
  padding: 35px 0 50px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: 14px;
}
footer p {
  margin: 4px 0;
}
footer strong {
  font-size: 17px;
}
.skip {
  position: absolute;
  left: -10000px;
}
.skip:focus {
  left: 20px;
  top: 5px;
  background: white;
  padding: 10px;
  z-index: 2;
}
a:focus-visible {
  outline: 3px solid #d5925c;
  outline-offset: 4px;
}
@media (max-width: 760px) {
  header {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
    gap: 18px;
  }
  header nav {
    gap: 10px 18px;
  }
  header nav a {
    font-size: 14px;
  }
  main {
    padding: 30px 20px 50px;
  }
  .hero {
    padding: 15px 0 25px;
  }
  .hero p:not(.eyebrow) {
    font-size: 18px;
  }
  .resource-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }
  .section-heading h2 {
    font-size: 23px;
    margin-bottom: 5px;
  }
  .section-heading > a {
    font-size: 13px;
  }
  .prose h1 {
    font-size: 32px;
  }
  .prose p,
  .prose li {
    font-size: 16px;
  }
  footer {
    margin: 0 20px;
    flex-direction: column;
  }
  .text-link {
    margin: 15px 0 0;
  }
  .resource-card {
    padding: 22px;
  }
}
