:root {
  --accent: #008295;
  --accent-strong: #006A80;
  --bg: #fbfbf9;
  --surface: #ffffff;
  --text: #1c2326;
  --muted: #5b6669;
  --rule: #e2e6e6;
  --note-bg: #eef7f8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #43B6CA;
    --accent-strong: #6cc8d8;
    --bg: #121719;
    --surface: #1a2124;
    --text: #e6ebec;
    --muted: #9aa7aa;
    --rule: #2b3538;
    --note-bg: #17282c;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent-strong); }
a:hover { color: var(--accent); }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  border-bottom: 1px solid var(--rule);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
}
.brand img { width: 30px; height: 30px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-size: 15px;
}
nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }

main { padding: 40px 0 64px; }

.hero {
  text-align: center;
  padding: 24px 0 8px;
}
.hero img { width: 112px; height: 112px; }
.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 16px 0 12px;
  letter-spacing: -0.01em;
}
.hero p.lede {
  font-size: 20px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 10px;
}
.hero p.servers {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-strong);
  margin: 0 auto 24px;
}

.button {
  display: inline-block;
  background: var(--accent-strong);
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.button:hover { background: var(--accent); color: #fff; }
.button.disabled {
  background: var(--rule);
  color: var(--muted);
  pointer-events: none;
}

h1 { font-size: 32px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 23px; line-height: 1.3; margin: 40px 0 10px; }
h3 { font-size: 18px; margin: 26px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }

.meta { color: var(--muted); font-size: 15px; margin-bottom: 28px; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0 8px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 18px;
}
.feature h3 { margin-top: 0; white-space: nowrap; }
@media (max-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
}
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.name {
  margin: 48px 0 8px;
  padding: 24px 24px 18px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent);
  border-radius: 10px;
}
.name .word {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 2px;
}
.name .say {
  font-family: inherit;
  font-weight: 400;
  font-size: 18px;
  color: var(--muted);
  margin: 0 4px;
}
.name .word em {
  font-weight: 400;
  font-size: 18px;
  color: var(--muted);
}
.name .sense {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-style: italic;
  margin-bottom: 16px;
}
.name p:last-child { margin-bottom: 0; }

.tree, .tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tree {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 16px 18px 10px;
  margin: 12px 0 20px;
}
.tree ul {
  margin-left: 8px;
  padding-left: 18px;
  border-left: 2px solid var(--rule);
}
.tree li {
  position: relative;
  margin: 0;
  padding: 5px 0;
}
.tree ul > li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 17px;
  width: 12px;
  border-top: 2px solid var(--rule);
}
.tree .node {
  font-weight: 600;
}
.tree .node a { text-decoration: none; }
.tree .hint {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.note {
  background: var(--note-bg);
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
}
.note p:last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 16px;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--rule);
}
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1px 5px;
}

footer.site {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
  padding: 24px 0 40px;
}
footer.site p { margin-bottom: 8px; }
footer.site a { color: var(--muted); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 32px; }
  .hero p.lede { font-size: 18px; }
  nav a { margin-left: 12px; }
}
