:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #dfe4ea;
  --paper: #ffffff;
  --wash: #f4f6f8;
  --green: #12876b;
  --yellow: #f2b84b;
  --coral: #e9695b;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.75;
}

a {
  color: var(--green);
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid rgb(223 228 234 / 85%);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  width: 10px;
  height: 28px;
  border-left: 5px solid var(--green);
  border-right: 3px solid var(--coral);
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.github-link {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

main {
  padding: 70px 28px 96px;
}

article {
  max-width: 1180px;
  margin: 0 auto;
}

.article-header {
  max-width: 920px;
  margin-bottom: 42px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-bottom: 0;
  letter-spacing: 0;
  line-height: 1.2;
}

h1 {
  max-width: 900px;
  margin-top: 0;
  font-size: clamp(2.35rem, 6vw, 4.65rem);
  font-weight: 820;
}

.dek {
  max-width: 780px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 24px;
  color: #7a8491;
  font-size: 14px;
}

.hero-image,
.content img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-image {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.notice {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  margin: 28px 0 56px;
  padding: 22px 26px;
  border-left: 5px solid var(--yellow);
  background: #fff9e9;
}

.notice p {
  margin: 0;
  color: #665b3e;
}

.article-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 760px);
  justify-content: center;
  gap: 70px;
}

.toc {
  position: sticky;
  top: 94px;
  align-self: start;
  display: grid;
  gap: 9px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.toc p {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.toc a {
  color: #6b7582;
  font-size: 13px;
  text-decoration: none;
}

.toc a:hover {
  color: var(--green);
}

.content section {
  margin-top: 64px;
}

.content section:first-child {
  margin-top: 0;
}

.content h2 {
  margin-top: 0;
  padding-top: 8px;
  font-size: 34px;
}

.content h3 {
  margin-top: 34px;
  font-size: 22px;
}

.content p,
.content li {
  color: #384454;
  font-size: 17px;
}

.content p {
  margin: 16px 0 0;
}

.content ul,
.content ol {
  margin: 16px 0 0;
  padding-left: 24px;
}

.content img {
  margin: 30px 0;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: var(--wash);
  color: var(--ink);
}

tr:last-child td {
  border-bottom: 0;
}

.download-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.download-band > div {
  min-height: 220px;
  padding: 26px 22px 30px;
  border-right: 1px solid var(--line);
}

.download-band > div:last-child {
  border-right: 0;
}

.download-band span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.download-band h3 {
  margin-top: 16px;
  font-size: 19px;
}

.download-band p {
  font-size: 15px;
}

.download-band a {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 750;
}

code {
  padding: 2px 6px;
  border: 1px solid #d9e0e8;
  border-radius: 4px;
  background: var(--wash);
  font-size: 0.9em;
}

details {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 17px;
  font-weight: 720;
}

details p {
  padding-right: 32px;
  font-size: 16px;
}

.closing {
  padding: 36px;
  border-top: 6px solid var(--green);
  background: var(--wash);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid #bec7d1;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.actions .primary {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.source {
  margin-top: 48px !important;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #7b8490 !important;
  font-size: 14px !important;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-top: 1px solid var(--line);
  color: #727c89;
  font-size: 13px;
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .article-grid {
    grid-template-columns: minmax(0, 760px);
  }

  .toc {
    display: none;
  }

  .download-band {
    grid-template-columns: 1fr;
  }

  .download-band > div {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .download-band > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 0 18px;
  }

  nav a:not(.github-link) {
    display: none;
  }

  main {
    padding: 44px 18px 72px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .dek {
    font-size: 17px;
  }

  .notice {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }

  .content h2 {
    font-size: 28px;
  }

  .content p,
  .content li {
    font-size: 16px;
  }

  .closing {
    padding: 26px 22px;
  }

  footer {
    flex-direction: column;
    padding: 24px 18px;
  }
}
