.top-nav a:hover { color: var(--heading); }

.home {
  --home-gutter: 40px;
  padding: 0;
}
.home-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 64px var(--home-gutter);
}
.home-version, .example-file, .home-facts dt {
  color: var(--muted);
  font: 500 12px/1.6 var(--font-mono);
  letter-spacing: .04em;
}
.home-version { margin: 0 0 16px; }
.home-version a::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-end: 8px;
  vertical-align: .12em;
  border-radius: 50%;
  background: var(--accent);
}
.home-version a { display: block; color: inherit; }
.home-version span { white-space: nowrap; }
.home-version a:is(:hover, :focus-visible) { color: var(--link); text-decoration: underline; }
.home h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.045em;
}
.home h1:lang(zh) { letter-spacing: normal; }
.home-subhead { display: block; color: var(--muted); font-size: 36px; }
.home-subhead .keep-together { white-space: nowrap; }
.home-zig { color: var(--accent); }
.home-php { color: #777bb4; }
.home-lead {
  margin: 24px 0 40px;
  max-width: 36rem;
  line-height: 32px;
  color: var(--muted);
  font-size: 18px;
}
.home-primary {
  flex: none;
  padding: 9px 18px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  background: var(--accent);
  color: #242429;
  font-size: 14px;
  font-weight: 600;
}
.home-primary:hover {
  color: #242429;
  background: color-mix(in srgb, var(--accent) 90%, var(--paper));
}
.home-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 16px var(--home-gutter);
  gap: 12px 24px;
  border-block: 1px solid var(--line);
}
.home-facts dd {
  margin: 2px 0 0;
  color: var(--heading);
  font-size: 16px;
  font-weight: 600;
}
.home-example {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.example-file {
  padding: 10px 16px 0;
}
.home-example > div + div {
  border-top: 1px solid var(--line);
}
.home-example pre, .project-command pre {
  margin: 0;
  padding: 8px 16px 12px;
  border: 0;
  background: transparent;
}
.home-example pre code, .project-command code { white-space: pre-wrap; overflow-wrap: anywhere; }
.project-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.home-project { padding: 24px var(--home-gutter); }
.project-copy {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.project-copy:is(:hover, :focus-visible) { background: var(--line); color: var(--heading); }
.project-copy .copy-check, .project-copy.is-copied svg:first-child { display: none; }
.project-copy.is-copied .copy-check { display: block; color: #20844b; }
:root[data-theme="dark"] .project-copy.is-copied .copy-check { color: #65cf90; }
.copy-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.home-project h2, .home-guides h2 { margin: 0; font-size: 16px; }
.project-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
  margin: 12px 0;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.project-command pre { grid-area: 1 / 1; padding: 4px 8px; }
.project-command code span::before { content: "$ "; color: var(--link); user-select: none; }
.project-note a { text-decoration: underline; }
.home-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-guides a {
  display: block;
  padding: 24px var(--home-gutter);
  border-top: 1px solid var(--line);
  color: var(--heading);
}
.home-guides a:nth-child(even) { border-inline-start: 1px solid var(--line); }
.home-guides h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.home-primary::after, .home-guides h2::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.home-guides h2::after { color: var(--muted); }
.home-guides a:is(:hover, :focus-visible) { color: var(--link); background: var(--surface); }
.home-guides a:focus-visible { outline-offset: -3px; }
.home-guides p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 24px; }
.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px var(--header-gutter);
  border-top: 1px solid var(--line);
}
.site-footer {
  font: 500 12px/1.6 var(--font-mono);
  letter-spacing: .04em;
  color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--heading); }
@media (max-width: 767px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 32px; }
  .home-lead { margin: 16px 0 24px; }
  .home-facts { grid-template-columns: auto 1fr; }
}
@media (max-width: 639px) {
  .home { --home-gutter: 16px; }
  .home h1 { font-size: 36px; }
  .home-subhead { font-size: 26px; }
  .home-facts dd { font-size: 14px; }
  .home-guides { grid-template-columns: minmax(0, 1fr); }
  .home-guides a:nth-child(even) { border-inline-start: 0; }
  .site-footer { padding-inline: 16px; }
}
