:root {
  color-scheme: dark;
  --background: #080d17;
  --surface: #0c1423;
  --panel: #111a2b;
  --panel-hover: #17233a;
  --line: #243047;
  --ink: #f7f9fc;
  --muted: #9ca9bd;
  --blue: #3478f6;
  --blue-soft: #75a7ff;
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 8%, rgba(52, 120, 246, .2), transparent 32rem),
    linear-gradient(180deg, #0b1220 0%, var(--background) 68%);
}

a {
  color: var(--blue-soft);
  text-decoration: none;
}

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

a:focus-visible {
  outline: 3px solid var(--blue-soft);
  outline-offset: 4px;
  border-radius: 3px;
}

.repo-header,
.repo-guide,
body > h1,
#indexlist,
.site-footer,
body > address {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.repo-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}

.brand img {
  border-radius: 12px;
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand h1 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: .01em;
}

.brand small {
  color: var(--muted);
  font-size: .77rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.repo-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: .85rem;
  font-weight: 650;
}

.repo-actions a:last-child {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(17, 26, 43, .72);
}

.repo-guide {
  padding-block: 82px 0;
}

.repo-hero {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 72px;
  padding-bottom: 82px;
}

.repo-hero img {
  width: min(100%, 180px);
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 24px 46px rgba(0, 0, 0, .3));
}

.repo-kicker {
  color: var(--blue-soft);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.repo-hero h2 {
  max-width: 760px;
  margin: 15px 0 20px;
  font-size: clamp(2.8rem, 7vw, 5.9rem);
  letter-spacing: -.06em;
  line-height: .94;
}

.repo-hero p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
}

.repo-setup {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: 18px;
  padding-block: 80px;
  border-top: 1px solid var(--line);
}

.repo-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(17, 26, 43, .76);
}

.repo-card h2,
.repo-index-heading h2 {
  margin: 10px 0 12px;
  font-size: 1.35rem;
  letter-spacing: -.025em;
}

.repo-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.repo-card p code {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.key-fingerprint {
  display: block;
  margin-top: 22px;
  color: var(--ink);
  font: 650 .82rem/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.quick-setup pre {
  margin-top: 18px;
}

.quick-setup .trust-note {
  margin-top: 18px;
  font-size: .9rem;
}

pre {
  max-width: 100%;
  margin: 22px 0 0;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--background);
  font: .8rem/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.verification-defaults {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}

.verification-defaults div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.verification-defaults dt {
  color: var(--muted);
}

.verification-defaults dd {
  margin: 0;
}

.repo-options {
  display: grid;
  gap: 12px;
  padding-block: 0 80px;
}

.repo-detail {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 26, 43, .56);
}

.repo-detail summary {
  padding: 20px 22px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}

.repo-detail[open] summary {
  border-bottom: 1px solid var(--line);
}

.detail-content {
  padding: 22px;
}

.detail-content p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.detail-content p:last-child {
  margin-top: 18px;
}

.repo-index-heading {
  padding: 80px 0 24px;
  border-top: 1px solid var(--line);
}

.repo-index-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -.045em;
}

body > h1 {
  margin-top: 64px;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -.045em;
}

#indexlist {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

#indexlist th,
#indexlist td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

#indexlist th {
  color: var(--muted);
  background: var(--surface);
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

#indexlist th a {
  color: inherit;
}

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

#indexlist tbody tr:hover td {
  background: var(--panel-hover);
}

#indexlist .indexcolname {
  width: 100%;
}

#indexlist .indexcollastmod,
#indexlist .indexcolsize {
  color: var(--muted);
  white-space: nowrap;
}

#indexlist td.indexcolname a {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.virtual-index-entry .indexcollastmod {
  font-style: italic;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding-block: 30px 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}

body > address {
  display: none;
}

@media (max-width: 760px) {
  .repo-header,
  .repo-guide,
  body > h1,
  #indexlist,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .repo-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 20px;
  }

  .repo-actions {
    width: 100%;
    justify-content: space-between;
  }

  .repo-guide {
    padding-top: 64px;
  }

  .repo-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 64px;
    text-align: center;
  }

  .repo-hero img {
    width: 130px;
    grid-row: 1;
  }

  .repo-hero p {
    margin-inline: auto;
  }

  .repo-setup {
    grid-template-columns: 1fr;
    padding-block: 60px;
  }

  .repo-index-heading {
    padding-top: 60px;
  }

  body > h1 {
    margin-top: 44px;
  }

  #indexlist th,
  #indexlist td {
    padding: 11px 12px;
  }

  #indexlist .indexcollastmod {
    display: none;
  }

  .site-footer {
    flex-direction: column;
  }
}
