:root {
  color-scheme: dark;
  --background: #0b0c0e;
  --text: #f3f3f4;
  --muted: #b0b3ba;
  --accent: #ff7417;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: Inter, "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

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

.home {
  display: flex;
  width: min(100% - 40px, 1240px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 54px 0 64px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.logo {
  display: block;
  width: min(78vw, 520px);
  height: auto;
  margin-bottom: 20px;
}

.statement {
  width: 100%;
  max-width: 1200px;
  margin: 0;
  color: #c6c8cd;
  font-size: 17px;
  line-height: 1.65;
  text-align: center;
}

.statement span {
  display: block;
}

.statement span + span {
  margin-top: 8px;
}

.actions {
  display: flex;
  margin-top: 34px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid #3a3e47;
  border-radius: 5px;
  color: var(--text);
  background: #111317;
  font-weight: 750;
}

.button:hover {
  border-color: #5a5f69;
  background: #191c21;
}

.button.primary {
  border-color: var(--accent);
  color: #0b0c0e;
  background: var(--accent);
}

.button.primary:hover {
  background: #ff8938;
}

.button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.docs {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 280px minmax(0, 1fr);
}

.docs-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 30px 24px;
  overflow-y: auto;
  border-right: 1px solid #282b31;
  background: #0d0f12;
}

.docs-logo {
  display: block;
  width: 136px;
  margin: 0 0 14px 8px;
}

.docs-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.docs-links {
  display: flex;
  width: 136px;
  margin: 0 0 25px 8px;
  gap: 8px;
  justify-content: center;
}

.docs-links a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #30343b;
  border-radius: 4px;
  color: #b9bcc3;
  background: #111317;
}

.docs-links a:hover {
  border-color: #555a64;
  color: var(--text);
  background: #171a1f;
}

.docs-links a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.docs-links svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.docs-links a:first-child svg {
  fill: currentColor;
  stroke: none;
}

.docs-navigation {
  display: grid;
  gap: 6px;
  color: #c6c8cd;
  font-size: 15px;
}

.docs-main,
.docs-navigation summary,
.docs-topics a {
  border-radius: 4px;
}

.docs-main,
.docs-navigation summary {
  display: block;
  padding: 9px 10px;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.docs-navigation summary {
  list-style: none;
}

.docs-navigation summary::-webkit-details-marker {
  display: none;
}

.docs-navigation summary::after {
  content: "+";
  float: right;
  color: #747982;
  font-weight: 400;
}

.docs-navigation details[open] summary::after {
  content: "-";
}

.docs-main:hover,
.docs-navigation summary:hover,
.docs-topics a:hover {
  background: #15181d;
}

.docs-main.active,
.docs-topics a.active {
  color: var(--accent);
}

.docs-topics {
  display: grid;
  margin: 3px 0 8px 10px;
  padding-left: 10px;
  border-left: 1px solid #30343b;
}

.docs-topics a {
  padding: 8px 10px;
}

.docs-content {
  width: min(100% - 64px, 860px);
  margin: 0 auto;
  padding: 76px 0 120px;
}

.markdown {
  color: #c9cbd0;
  font-size: 17px;
  line-height: 1.75;
}

.markdown h1,
.markdown h2,
.markdown h3 {
  color: var(--text);
  line-height: 1.25;
}

.markdown h1 {
  margin: 0 0 32px;
  font-size: 42px;
}

.markdown h2 {
  margin: 52px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #282b31;
  font-size: 27px;
}

.markdown h3 {
  margin: 36px 0 12px;
  font-size: 21px;
}

.markdown p,
.markdown ul,
.markdown ol,
.markdown pre,
.markdown blockquote {
  margin: 0 0 20px;
}

.markdown a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.markdown code {
  padding: 2px 5px;
  border: 1px solid #30343b;
  border-radius: 3px;
  color: #ececef;
  background: #13161a;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
}

.markdown pre {
  padding: 18px;
  overflow-x: auto;
  border: 1px solid #30343b;
  border-radius: 5px;
  background: #111317;
}

.markdown pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

.markdown blockquote {
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.donate {
  width: min(100% - 40px, 1060px);
  margin: 0 auto;
  padding: 48px 0 90px;
}

.donate-header {
  display: flex;
  margin-bottom: 54px;
  align-items: center;
  gap: 32px;
}

.donate-header img {
  display: block;
  width: 136px;
  height: auto;
}

.donate-header h1 {
  margin: 0;
  padding-left: 32px;
  border-left: 1px solid #343840;
  font-size: 40px;
}

.donate-message {
  margin: 0 0 44px;
  color: #c9cbd0;
  font-size: 17px;
  line-height: 1.75;
}

.donate-section + .donate-section {
  margin-top: 44px;
}

.donate-section h2 {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.donate-key {
  display: block;
  padding: 16px;
  overflow-wrap: anywhere;
  border: 1px solid #30343b;
  border-radius: 5px;
  color: var(--text);
  background: #111317;
  font-size: 14px;
  line-height: 1.6;
}

.donation-table-wrap {
  max-height: 360px;
  overflow: auto;
  border: 1px solid #30343b;
  border-radius: 5px;
}

.donation-table {
  width: 100%;
  border-collapse: collapse;
  background: #0f1114;
  font-size: 14px;
}

.donation-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 13px 14px;
  color: var(--muted);
  background: #15181d;
  font-size: 11px;
  text-align: left;
  text-transform: uppercase;
}

.donation-table td {
  padding: 14px;
  border-top: 1px solid #282b31;
  white-space: nowrap;
}

.donation-table td:last-child {
  min-width: 300px;
}

.donation-table code {
  font-size: 12px;
}

.donation-empty {
  height: 110px;
  color: var(--muted);
  text-align: center;
}

.donation-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 600px) {
  .home {
    width: min(100% - 28px, 1240px);
    min-height: auto;
    padding: 40px 0 52px;
  }

  .logo {
    width: min(100%, 360px);
    margin-bottom: 14px;
  }

  .statement {
    font-size: 16px;
    line-height: 1.65;
    text-align: left;
  }

  .actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .button {
    width: 100%;
  }

  .docs {
    display: block;
  }

  .docs-sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 22px 18px 16px;
    border-right: 0;
    border-bottom: 1px solid #282b31;
  }

  .docs-logo {
    width: 104px;
    margin: 0 0 12px 4px;
  }

  .docs-links {
    width: 104px;
    margin: 0 0 18px 4px;
  }

  .docs-content {
    width: min(100% - 36px, 860px);
    padding: 42px 0 72px;
  }

  .markdown {
    font-size: 16px;
  }

  .markdown h1 {
    margin-bottom: 26px;
    font-size: 34px;
  }

  .markdown h2 {
    margin-top: 42px;
    font-size: 24px;
  }

  .donate {
    width: min(100% - 28px, 1060px);
    padding: 30px 0 60px;
  }

  .donate-header {
    margin-bottom: 40px;
    gap: 20px;
  }

  .donate-header img {
    width: 100px;
  }

  .donate-header h1 {
    padding-left: 20px;
    font-size: 32px;
  }

  .donate-message {
    margin-bottom: 38px;
    font-size: 16px;
  }

  .donation-table-wrap {
    max-height: 320px;
  }
}

@media (min-width: 1200px) {
  .statement span {
    white-space: nowrap;
  }
}
