:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: #050d09;
  --fg: #eef4ef;
  --muted: #91a49a;
  --line: #18362a;
  --line-strong: #2b6a50;
  --accent: #36e68a;
  --accent-soft: #8ef6bc;
  --font-sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    "Source Han Sans SC", sans-serif;
  --font-mono:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Noto Sans Mono CJK SC", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

code,
pre,
.brand,
.kicker,
.table,
.terminal-head span,
.matrix,
time,
.archive {
  font-family: var(--font-mono);
}

h1,
h2,
h3,
p,
pre,
dl,
dd {
  margin: 0;
}

.site-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--accent-soft);
  font-size: 15px;
}

.brand-mark,
.brand-cursor {
  color: var(--accent);
  font-weight: 800;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover,
.archive a:hover {
  color: var(--accent-soft);
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 80px;
}

.hero {
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 286px);
  align-items: center;
  gap: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kicker {
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(54px, 10vw, 118px);
  line-height: 0.9;
  font-weight: 800;
}

.lead {
  max-width: 620px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

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

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 14px;
}

.button:hover,
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #02100b;
}

.button.primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}

.logo {
  width: min(100%, 286px);
  height: auto;
  display: block;
}

section {
  padding: 46px 0 0;
}

h2 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 18px;
}

.terminal {
  padding-top: 34px;
}

.terminal-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.terminal-head h2 {
  margin-bottom: 0;
}

.terminal-head span {
  color: var(--muted);
  font-size: 13px;
}

pre {
  overflow-x: auto;
  padding: 18px 0;
  color: var(--accent-soft);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.8;
}

.table {
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns:
    minmax(250px, 1.65fr) minmax(120px, 0.48fr) minmax(120px, 0.48fr)
    minmax(104px, 0.4fr) 48px;
  gap: 16px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

a.row:hover {
  color: var(--accent-soft);
}

.row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.head {
  color: var(--muted);
}

a.row span:last-child {
  color: var(--accent);
  text-align: right;
}

.section-copy {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.matrix div {
  min-width: 0;
  padding: 16px 18px 16px 0;
}

.matrix dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.matrix dd {
  color: var(--fg);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.install {
  margin-top: 0;
}

.release {
  display: grid;
  grid-template-columns: minmax(160px, 0.4fr) minmax(188px, 0.46fr) 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.release:last-child {
  border-bottom: 1px solid var(--line);
}

h3 {
  font-size: 16px;
}

time,
.release p,
.row span:nth-child(2),
.row span:nth-child(3),
.row span:nth-child(4) {
  color: var(--muted);
}

.archive {
  display: flex;
  gap: 14px;
  color: var(--accent);
}

@media (max-width: 820px) {
  .site-header,
  main {
    width: min(100% - 28px, 1120px);
  }

  .site-header,
  nav {
    align-items: flex-start;
  }

  .site-header {
    display: block;
  }

  nav {
    margin-top: 14px;
    flex-wrap: wrap;
    gap: 14px;
  }

  main {
    padding-top: 20px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 34px 0;
  }

  .logo {
    width: min(214px, 64vw);
  }

  .lead {
    font-size: 16px;
  }

  .row,
  .release,
  .matrix {
    display: block;
  }

  .head {
    display: none;
  }

  .row span,
  .release time,
  .release p {
    display: block;
    margin-top: 7px;
  }

  a.row span:last-child {
    text-align: left;
  }

  .matrix div {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .matrix div:last-child {
    border-bottom: 0;
  }
}
