:root {
  color-scheme: light;
  font-family: "Cascadia Code", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  background: #dce4ee;
  color: #142134;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background-color: #dce4ee;
  background-image: url("package-repository-v2k-astro-c-2560x1440.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgb(245 248 252 / 4%), rgb(218 229 242 / 12%)),
    radial-gradient(circle at 50% 48%, rgb(255 255 255 / 12%), rgb(202 217 235 / 14%));
  content: "";
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(235px, 29vh, 310px) 0 56px;
}

.repository {
  overflow: visible;
  background: transparent;
}

.repository-header {
  margin-bottom: clamp(40px, 7vh, 80px);
  padding: 0 18px 15px;
  transform: translateY(30px);
}

h1 {
  max-width: 1080px;
  margin: 0;
  color: #172033;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.15;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgb(255 255 255 / 90%), 0 10px 28px rgb(92 121 157 / 28%);
}

.build-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  color: #516276;
  font-size: 14px;
}

.separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #7c3aed;
}

code {
  display: inline-block;
  max-width: 100%;
  padding: 3px 6px;
  overflow-wrap: anywhere;
  border: 1px solid rgb(88 126 173 / 22%);
  border-radius: 4px;
  background: rgb(255 255 255 / 54%);
  color: #25415f;
  font-family: inherit;
  font-size: 13px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid rgb(126 154 186 / 20%);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 42%), rgb(240 246 253 / 22%)),
    rgb(255 255 255 / 18%);
  box-shadow: 0 18px 60px rgb(82 109 143 / 18%);
  backdrop-filter: blur(8px);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 8px 14px;
  border-bottom: 1px solid rgb(73 100 130 / 18%);
  text-align: left;
  vertical-align: middle;
}

th {
  color: #35566f;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

th:first-child,
td:first-child {
  width: auto;
  padding-left: 24px;
}

th:nth-child(2),
td:nth-child(2) {
  width: 118px;
}

th.size,
td.size {
  width: 120px;
  padding-right: 24px;
  text-align: right;
  white-space: nowrap;
}

tbody tr:hover {
  background: rgb(216 232 249 / 56%);
}

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

td:first-child {
  overflow: hidden;
}

a {
  display: block;
  overflow: hidden;
  color: #0b6fb3;
  font-weight: 560;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgb(255 255 255 / 80%);
}

a:hover {
  color: #064d7d;
  text-decoration: underline;
}

.type-label {
  display: inline-flex;
  min-width: 58px;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  border: 1px solid rgb(75 105 137 / 24%);
  border-radius: 4px;
  background: rgb(255 255 255 / 50%);
  color: #486175;
  font-size: 12px;
}

.directory-label {
  border-color: rgb(16 185 129 / 32%);
  background: rgb(236 253 245 / 62%);
  color: #047857;
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll;
  }

  .page-shell {
    width: min(100% - 24px, 1180px);
    padding: 165px 0 36px;
  }

  .repository-header {
    margin-bottom: 60px;
    padding: 20px;
    transform: translateY(20px);
  }

  th:first-child,
  td:first-child {
    padding-left: 20px;
  }
}
