:root {
  color-scheme: light;
  --paper: #f8f9f5;
  --ink: #18231f;
  --muted: #5d6861;
  --line: #d8ded6;
  --green: #305e4f;
  --lime: #d5f790;
  --font:
    Inter, "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", system-ui,
    sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #769537;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
.wrap {
  width: min(1296px, calc(100% - clamp(40px, 9.5vw, 160px)));
  margin-inline: auto;
}
.top {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.navline {
  height: 80px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #183629;
  font-size: 29px;
  font-weight: 760;
  letter-spacing: -1.7px;
  line-height: 1;
}
.brand-period {
  color: #6f8b52;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: #233f32;
  transform: rotate(-2deg);
  border-radius: 8px;
}
.brand-mark i {
  width: 4px;
  transform: skewY(-24deg);
  background: var(--lime);
  height: 13px;
}
.brand-mark i:first-child {
  height: 17px;
  translate: 0 1px;
}
.brand-mark i:last-child {
  height: 10px;
  translate: 0 -1px;
}
.brand-desc {
  border-inline-start: 1px solid #bdc8be;
  padding-left: 18px;
  color: #606a61;
  font-size: 14px;
  letter-spacing: 0.08em;
}
.navline nav {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 30px;
  margin-inline-start: auto;
}
.navline nav a {
  display: grid;
  align-items: center;
  position: relative;
  color: #535f56;
  font-size: 15px;
}
.navline nav a[aria-current] {
  font-weight: 650;
  color: #1c392b;
}
.navline nav a[aria-current]::after {
  content: "";
  position: absolute;
  bottom: 15px;
  width: 15px;
  left: calc(50% - 7.5px);
  height: 3px;
  background: #527a59;
}
.navline nav a:hover,
.crumb a:hover,
.toplink:hover {
  color: #467351;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.search-open {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: 10px;
  padding: 7px 10px;
  color: #455448;
  background: transparent;
  border: 1px solid #c9d2c8;
  border-radius: 5px;
  font-size: 14px;
}
.search-open svg,
.search-field svg {
  width: 18px;
  height: 18px;
}
.search-open kbd {
  border: 1px solid #d6ddd3;
  border-radius: 3px;
  width: 16px;
  color: #718072;
  font: 12px/15px var(--mono);
}
.search-open:hover {
  background: #e8eee2;
}
.home {
  padding-top: 30px;
}
.hero {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: #1e3029;
}
.hero-copy {
  display: flex;
  position: relative;
  flex-flow: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(32px, 4.2vw, 65px);
  color: #fff;
}
.feature-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: #d0dace;
}
.feature-meta a:hover {
  text-decoration: underline;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: 0.07em;
}
.tag::before {
  content: "";
  width: 13px;
  height: 2px;
  background: var(--lime);
}
.feature-meta a {
  border-left: 1px solid #65736a;
  padding-left: 14px;
}
.hero h1 {
  font-size: clamp(46px, 4.65vw, 74px);
  line-height: 1.14;
  letter-spacing: -0.045em;
  font-weight: 760;
  margin: 23px 0 16px;
}
.hero h1 em {
  font-style: normal;
  color: var(--lime);
}
.hero p {
  color: #d6dfd7;
  font-size: clamp(15px, 1.13vw, 18px);
  line-height: 1.75;
}
.read-btn {
  background: var(--lime);
  color: #233924;
  border-radius: 4px;
  padding: 10px 23px;
  margin-top: 24px;
  font-weight: 650;
  font-size: 15px;
  line-height: 1.55;
}
.read-btn:hover {
  background: #e9ffba;
}
.hero-image {
  position: relative;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  margin-left: -22px;
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%);
  background: #b0afa7;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 27%;
  position: absolute;
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #17261c62, transparent 25%);
  pointer-events: none;
}
.hero-image figcaption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  background: #203027d9;
  border: 1px solid #c7d4c43d;
  color: #fff;
  padding: 5px 8px;
  font: 12px/1.4 var(--mono);
  letter-spacing: 0.025em;
  border-radius: 2px;
}
.hero-image figcaption i {
  font-style: normal;
  color: var(--lime);
  margin: 0 3px;
}
.archive {
  margin: 42px 0 54px;
  scroll-margin: 22px;
}
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 15px;
}
.section-title h2 {
  font-size: clamp(24px, 2.25vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.04em;
  font-weight: 730;
}
.section-title span {
  font-size: 13px;
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(15px, 2vw, 30px);
}
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.card:hover {
  border-color: #9eb09c;
  box-shadow: 0 4px 15px #26463311;
}
.card-img {
  aspect-ratio: 2.6;
  position: relative;
  overflow: hidden;
  background: #aeadac;
}
.card-img img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 26%;
  transition: transform 0.3s;
}
.card-img .img-lighting {
  object-position: 50% 24%;
}
.card:hover img {
  transform: scale(1.025);
}
.card-body {
  padding: 17px 20px 20px;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  align-items: center;
  color: #5d6b60;
  font-size: 13px;
}
.card-meta span {
  font-weight: 600;
  color: #42654c;
}
.card-meta time,
.post-head time {
  font: 12px/1.6 var(--mono);
  letter-spacing: 0.025em;
}
.card h3 {
  font-size: clamp(20px, 1.7vw, 25px);
  margin: 8px 0 5px;
  letter-spacing: -0.04em;
}
.card p,
.topic-intro p,
.post-head p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}
.foot {
  border-top: 1px solid var(--line);
}
.foot .wrap {
  min-height: 75px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}
.footer-brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -1px;
  color: #234033;
}
.toplink {
  margin-inline-start: auto;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: #53665a;
  margin: 25px 0;
}
.crumb span {
  color: #98a496;
}
.topic-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border-block: 1px solid var(--line);
  background: #e9efe4;
}
.topic-intro > div:first-child {
  padding: 40px;
}
.eyebrow,
.article-meta {
  font-size: 14px;
  font-weight: 600;
  color: #41674e;
}
.topic-intro h1,
.post-head h1 {
  font-size: clamp(42px, 5vw, 70px);
  letter-spacing: -0.055em;
  line-height: 1.2;
  margin: 10px 0 14px;
}
.topic-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 215px;
  overflow: hidden;
  clip-path: polygon(15px 0, 100% 0, 100% 100%, 0 100%);
  gap: 3px;
}
.topic-strip img {
  width: 100%;
  height: 215px;
  object-fit: cover;
  object-position: 50% 15%;
}
.post {
  max-width: 1140px;
}
.post-head {
  padding: 12px 0 28px;
  border-bottom: 1px solid var(--line);
}
.post-head h1 {
  font-size: clamp(37px, 4vw, 60px);
  margin: 10px 0;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-meta a:hover {
  text-decoration: underline;
}
.article-meta span {
  color: #93a18d;
}
.post-head time {
  display: block;
  margin-top: 15px;
  color: #627064;
}
.reading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 23%);
  gap: clamp(25px, 5vw, 70px);
  margin-top: 31px;
  margin-bottom: 66px;
}
.pack-main {
  min-width: 0;
}
.pack-note {
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.85;
}
.pack-title,
.heading-collapse-indicator,
.collapse-indicator,
.copy-code-button {
  display: none;
}
.pack-note p {
  margin: 0 0 1em;
}
.pack-note h1,
.pack-note h2,
.pack-note h3 {
  line-height: 1.5;
  margin: 1.45em 0 0.55em;
  scroll-margin-top: 22px;
}
.pack-note .markdown-preview-sizer > :first-child {
  margin-top: 0;
}
.pack-note h1 {
  font-size: 26px;
}
.pack-note h2 {
  font-size: 21px;
}
.pack-note strong {
  font-weight: 680;
}
.pack-note img {
  max-width: 100%;
  height: auto;
  display: block;
}
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin: 15px 0 25px;
}
.pack-note table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  line-height: 1.65;
}
.pack-note td,
.pack-note th {
  padding: 10px 12px;
  border: 1px solid #ced8cc;
  text-align: left;
  vertical-align: top;
  min-width: 85px;
  overflow-wrap: normal;
}
.pack-note th {
  background: #e9efe4;
  color: #304b3a;
}
.pack-note td {
  background: #fff;
}
.pack-note code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: #e8eee4;
  border-radius: 3px;
  padding: 2px 4px;
}
.pack-note pre {
  overflow: auto;
  padding: 18px 21px;
  background: #20302a;
  color: #e5efde;
  border-radius: 5px;
  line-height: 1.65;
}
.pack-note pre code {
  font-size: 14px;
  padding: 0;
  background: transparent;
  white-space: pre;
}
.token.comment {
  color: #abbbaa;
}
.token.keyword,
.token.boolean {
  color: #c6df97;
}
.token.function {
  color: #97d4dc;
}
.token.number {
  color: #efc092;
}
.token.operator {
  color: #d3dad2;
}
.side {
  border-left: 1px solid var(--line);
  padding-left: 22px;
  align-self: start;
  position: sticky;
  top: 23px;
  min-width: 0;
}
.side h2 {
  font-size: 16px;
  margin: 0 0 10px;
}
.side .more-title {
  margin-top: 27px;
}
.side [hidden] + .more-title {
  margin-top: 0;
}
.pack-outline ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pack-outline ul ul {
  margin-left: 12px;
}
.pack-outline a,
.related a {
  display: block;
  color: #516256;
  font-size: 14px;
  line-height: 1.55;
  padding: 5px 0;
}
.pack-outline a:hover,
.related a:hover {
  color: #204d31;
  text-decoration: underline;
}
.related small {
  display: block;
  font-size: 12px;
  color: #708071;
}
.pack-outline-toggle {
  display: none;
}
.pack-outline-empty {
  color: var(--muted);
}
@media (min-width: 761px) {
  .pack-outline[hidden] {
    display: block !important;
  }
}
.search-dialog {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 24px;
  width: min(500px, calc(100vw - 30px));
  background: #fbfcf8;
  color: var(--ink);
  box-shadow: 0 12px 65px #1520183b;
}
.search-dialog::backdrop {
  background: #14231ac2;
}
.search-head,
.search-field,
.results a {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-head {
  justify-content: space-between;
  margin-bottom: 16px;
}
.search-head h2 {
  font-size: 22px;
}
.close-search {
  font-size: 25px;
  border: 0;
  background: transparent;
}
.search-field {
  border: 1px solid #9aa997;
  border-radius: 4px;
  background: #fff;
  padding: 11px;
}
.search-field input {
  border: 0;
  outline: 0;
  min-width: 0;
  width: 100%;
  background: transparent;
}
.search-field:focus-within {
  outline: 2px solid #7b9c69;
}
.results {
  margin-top: 12px;
}
.results a {
  justify-content: space-between;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.results a:hover {
  background: #eaf0e5;
}
.results span {
  color: var(--muted);
  font-size: 13px;
}
.empty {
  padding: 14px 0;
  color: var(--muted);
}
@media (max-width: 760px) {
  .navline {
    height: 65px;
    gap: 10px;
  }
  .brand {
    font-size: 23px;
    gap: 7px;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
  }
  .brand-desc {
    display: none;
  }
  .navline nav {
    gap: 19px;
  }
  .search-open {
    border: 0;
    padding: 5px;
    margin-left: 3px;
  }
  .search-open span,
  .search-open kbd {
    display: none;
  }
  .navline nav a[aria-current]::after {
    bottom: 8px;
  }
  .hero-copy {
    padding: 28px 22px;
  }
  .hero h1 {
    font-size: clamp(37px, 6vw, 47px);
  }
  .hero p {
    font-size: 15px;
  }
  .feature-meta {
    gap: 9px;
    font-size: 13px;
  }
  .feature-meta a {
    padding-left: 9px;
  }
  .hero-image {
    margin-left: -12px;
    clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%);
  }
  .card-body {
    padding: 12px;
  }
  .card-meta {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .card p {
    font-size: 14px;
  }
  .topic-intro > div:first-child {
    padding: 20px;
  }
  .topic-strip,
  .topic-strip img {
    height: 180px;
  }
  .reading {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .side {
    order: -1;
    position: static;
    border: 0;
    padding: 0;
  }
  .side > h2,
  .side > .related {
    display: none;
  }
  .side .pack-outline-toggle {
    display: inline-flex;
    border: 1px solid #c9d7c7;
    background: #e9efe4;
    border-radius: 4px;
    padding: 7px 14px;
    font-size: 14px;
  }
  .pack-outline {
    border-left: 2px solid #afc1a5;
    margin-top: 12px;
    padding-left: 12px;
  }
  .topic-page .archive,
  .archive {
    margin-top: 30px;
  }
}
@media (max-width: 580px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .navline nav {
    gap: 17px;
  }
  .home {
    padding-top: 16px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 25px 24px 24px;
    order: 2;
  }
  .hero h1 {
    font-size: 39px;
    line-height: 1.16;
    margin: 12px 0;
  }
  .hero h1 br {
    display: none;
  }
  .hero h1 em {
    margin-left: 2px;
  }
  .hero-image {
    height: clamp(176px, 49vw, 255px);
    min-height: 0;
    clip-path: none;
    margin: 0;
  }
  .hero-image img {
    object-position: 50% 22%;
  }
  .hero-image figcaption {
    right: 12px;
    bottom: 10px;
    font-size: 11px;
  }
  .read-btn {
    margin-top: 16px;
    padding: 7px 18px;
  }
  .desktop {
    display: none;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card {
    display: grid;
    grid-template-columns: 34% 1fr;
  }
  .card-img {
    aspect-ratio: auto;
    min-height: 110px;
  }
  .card-img img {
    object-position: 50% 23%;
  }
  .card-body {
    padding: 11px 12px;
  }
  .card-meta {
    font-size: 12px;
  }
  .card-meta time {
    font-size: 11px;
  }
  .card h3 {
    margin: 5px 0 3px;
  }
  .card p {
    font-size: 14px;
    line-height: 1.55;
  }
  .section-title {
    margin-bottom: 13px;
  }
  .section-title span {
    font-size: 12px;
  }
  .archive {
    margin-bottom: 35px;
  }
  .topic-intro {
    grid-template-columns: 1fr;
  }
  .topic-strip,
  .topic-strip img {
    height: 135px;
  }
  .topic-strip {
    clip-path: none;
  }
  .post .crumb {
    margin: 18px 0;
  }
  .reading {
    margin: 20px 0 40px;
  }
  .pack-note {
    font-size: 16px;
  }
  .pack-note h1 {
    font-size: 23px;
  }
  .foot .wrap {
    gap: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
