/* SPDX-License-Identifier: MIT-0 */
:root {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    "Noto Sans JP",
    sans-serif;
  color: #172a35;
  background: #f4f7f8;
  --paper: #fff;
  --border: #dbe3e6;
  --muted: #566974;
  --accent: #076c58;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 1050px;
  margin: auto;
  padding: 0 32px;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 650;
}
header > a {
  margin-left: auto;
}
.mark {
  background: #173b35;
  color: white;
  border-radius: 7px;
  padding: 8px 11px;
  letter-spacing: 1px;
}
.hero {
  padding: 70px 0 56px;
  max-width: 820px;
}
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}
h1 {
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: -1.7px;
  line-height: 1.2;
  margin: 20px 0;
  overflow-wrap: anywhere;
}
#description {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  white-space: pre-line;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0 15px;
}
.primary,
.secondary {
  padding: 13px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  border: 1px solid var(--border);
}
.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.secondary {
  background: var(--paper);
}
.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin: 24px 0 8px;
}
.url-row {
  display: flex;
  gap: 8px;
}
input,
button {
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  color: inherit;
}
input {
  padding: 13px 15px;
  min-width: 0;
}
#repo-url {
  flex: 1;
  font:
    13px ui-monospace,
    monospace;
}
button {
  padding: 10px 18px;
  cursor: pointer;
  font-size: 13px;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
a:hover,
button:hover {
  filter: brightness(0.94);
}
:focus-visible {
  outline: 3px solid #22a58a;
  outline-offset: 4px;
}
#status {
  font-size: 13px;
  min-height: 22px;
  color: var(--muted);
}
#packages {
  border-top: 1px solid var(--border);
  padding: 34px 0 55px;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.4px;
}
.section-heading > span {
  font:
    12px ui-monospace,
    monospace;
  background: var(--border);
  border-radius: 20px;
  padding: 5px 10px;
}
#search {
  width: 100%;
  margin: 3px 0 25px;
}
#package-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.package {
  padding: 25px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.package h3 {
  margin: 0;
  font-size: 20px;
}
.package .id {
  font:
    12px ui-monospace,
    monospace;
  color: var(--muted);
  margin: 12px 0;
}
.package .description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  white-space: pre-line;
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.tag {
  font-size: 11px;
  font-weight: 650;
  padding: 5px 9px;
  border-radius: 5px;
  background: #edf4f1;
  color: #235d4f;
}
details {
  font-size: 13px;
  margin: 20px 0 0;
}
summary {
  cursor: pointer;
  color: var(--muted);
}
details ul {
  padding-left: 18px;
  line-height: 2;
}
details a {
  font:
    12px ui-monospace,
    monospace;
}
.package nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
}
#empty {
  padding: 30px 0;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--border);
  padding: 25px 0 35px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 650px) {
  main {
    padding: 0 20px;
  }
  .hero {
    padding: 45px 0 30px;
  }
  #package-list {
    grid-template-columns: 1fr;
  }
  .url-row {
    flex-wrap: wrap;
  }
  #repo-url {
    flex-basis: 100%;
  }
  h1 {
    letter-spacing: -0.8px;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    color: #e6edee;
    background: #101d24;
    --paper: #182830;
    --border: #2e434b;
    --muted: #a9b9c0;
    --accent: #72ddbb;
  }
  .primary {
    color: #102b23;
  }
  .tag {
    background: #233d34;
    color: #a2dbc5;
  }
  .mark {
    background: #285748;
  }
}
