:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  color: #202124;
  background: #ffffff;
  font-synthesis: none;
  --background: #ffffff;
  --surface: #ffffff;
  --text: #202124;
  --muted: #62666c;
  --line: #d9dde2;
  --accent: #2468b4;
  --accent-soft: #f3f7fc;
}

* { box-sizing: border-box; }
html { min-width: 280px; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--background);
}

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, input:focus-visible {
  outline: 3px solid rgba(36, 104, 180, 0.24);
  outline-offset: 2px;
}

.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;
}

.repository-body {
  display: grid;
  grid-template-rows: 1fr auto;
}

.repository-main {
  width: min(680px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0 56px;
}

.repository-panel {
  padding-bottom: 34px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.repository-title {
  display: flex;
  align-items: center;
  justify-content: center;
}

.repository-title img {
  flex: 0 0 auto;
  margin-right: 12px;
  border-radius: 12px;
}

h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
}

.repository-summary {
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.repository-url {
  display: block;
  width: min(520px, 100%);
  height: 42px;
  margin: 0 auto 14px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid #c9ced5;
  border-radius: 5px;
  background: var(--surface);
  box-shadow: inset 0 1px 2px rgba(24, 27, 31, 0.05);
  font: 14px ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0;
  cursor: copy;
}

.manager-bar {
  width: min(590px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--accent);
  border-radius: 5px;
}

.manager-bar a {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 120ms ease;
}

.manager-bar a + a { border-left: 1px solid var(--accent); }
.manager-bar a:hover { background: var(--accent-soft); }
.manager-bar a:active { background: rgba(36, 104, 180, 0.12); }

.manager-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  margin-right: 7px;
  color: #ffffff;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.cydia-icon { background: #8a6348; }
.installer-icon { background: #2789db; }
.sileo-icon { background: #19aaa6; }
.zebra-icon { background: #2f3337; }

.copy-status {
  min-height: 18px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.repository-meta {
  display: flex;
  justify-content: center;
  margin-top: 19px;
  color: var(--muted);
  font-size: 12px;
}

.repository-meta span + span::before {
  content: "\00b7";
  margin: 0 8px;
  color: #a1a6ac;
}

.repository-footer {
  width: min(860px, calc(100% - 36px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.repository-footer nav { display: flex; }
.repository-footer nav a + a { margin-left: 18px; }

.depiction-body { background: var(--surface); }
.depiction { width: min(680px, calc(100% - 36px)); margin: 0 auto; padding: 32px 0 46px; }
.package-header { display: flex; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.package-icon { flex: 0 0 auto; margin-right: 18px; border-radius: 15px; }
.eyebrow { color: #116b59; font-size: 12px; font-weight: 750; text-transform: uppercase; }
.package-header h1 { margin: 5px 0 3px; font-size: 34px; }
.package-version { margin: 0; color: var(--muted); font-size: 13px; }
.package-summary { margin: 25px 0; font-size: 17px; line-height: 1.6; }
.package-facts { margin: 0; border-top: 1px solid var(--line); }
.package-facts div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.package-facts dt { color: var(--muted); font-size: 13px; }
.package-facts dd { margin: 0; text-align: right; font-size: 13px; font-weight: 650; }
.package-copy { padding: 28px 0; }
.package-copy h2 { margin: 0; font-size: 18px; }
.package-copy p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.package-links { display: flex; align-items: center; flex-wrap: wrap; }
.package-links a { font-size: 13px; font-weight: 700; }
.package-links a + a { margin-left: 20px; }
.package-links .primary-link { padding: 11px 14px; color: #ffffff; border-radius: 6px; background: #147d64; text-decoration: none; }

@media (max-width: 600px) {
  .repository-main { padding-top: 48px; }
  .manager-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manager-bar a + a { border-left: 0; }
  .manager-bar a:nth-child(even) { border-left: 1px solid var(--accent); }
  .manager-bar a:nth-child(n + 3) { border-top: 1px solid var(--accent); }
  .repository-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 17px 0; }
  .repository-footer > span { margin-top: 10px; }
}

@media (max-width: 420px) {
  .repository-main { width: min(100% - 28px, 680px); padding-top: 38px; }
  .repository-title img { width: 48px; height: 48px; border-radius: 10px; }
  h1 { font-size: 32px; }
  .repository-summary { font-size: 14px; }
  .repository-url { padding: 0 10px; font-size: 12px; }
  .repository-meta { align-items: center; flex-direction: column; }
  .repository-meta span + span { margin-top: 4px; }
  .repository-meta span + span::before { content: none; }
  .package-facts div { grid-template-columns: 1fr; gap: 5px; }
  .package-facts dd { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .manager-bar a { transition: none; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111315;
    --surface: #171a1d;
    --text: #eff1f3;
    --muted: #a8adb3;
    --line: #34383d;
    --accent: #73a8e3;
    --accent-soft: #1a2633;
  }
  .repository-url { border-color: #454a50; box-shadow: none; }
  .eyebrow { color: #72c6ac; }
}
