:root {
  color-scheme: dark;
  --bg: #0a0f1e;
  --bg-raised: #101830;
  --fg: #c8d3e8;
  --muted: #7d8eb5;
  --accent: #5b9dff;
  --border: #1c2740;
  --pre-badge: #e8a94b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.6;
}

header {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem 1rem;
}

header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
  color: var(--accent);
}

#package-title {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
}

.subtitle {
  color: var(--muted);
  font-size: 0.9em;
  margin: 0 0 0.75rem;
}

.rss-link {
  font-size: 0.9em;
  color: var(--accent);
  text-decoration: none;
}

.rss-link:hover {
  text-decoration: underline;
}

.back-link {
  margin: 0 0 0.5rem;
  font-size: 0.9em;
}

.back-link a {
  color: var(--muted);
  text-decoration: none;
}

.back-link a:hover {
  color: var(--accent);
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

#status {
  color: var(--muted);
}

.release {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: var(--bg-raised);
}

.category-heading {
  color: var(--muted);
  font-size: 0.85em;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 1.5rem 0 0.5rem;
}

.category-heading:first-child {
  margin-top: 0;
}

.package-card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.9rem 1.25rem;
  margin-bottom: 0.6rem;
  background: var(--bg-raised);
  color: var(--fg);
  text-decoration: none;
}

.package-card:hover {
  border-color: var(--accent);
}

.package-card-name {
  font-weight: bold;
  color: var(--accent);
  margin-right: auto;
}

.package-card-version {
  color: var(--muted);
  font-size: 0.9em;
}

.package-card-date {
  color: var(--muted);
  font-size: 0.85em;
  white-space: nowrap;
}

.release-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.release-title {
  font-weight: bold;
}

.release-date {
  color: var(--muted);
  font-size: 0.85em;
  white-space: nowrap;
}

.badge {
  display: inline-block;
  font-size: 0.7em;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--pre-badge);
  border: 1px solid var(--pre-badge);
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.release-links {
  margin: 0.4rem 0 0;
  font-size: 0.9em;
}

.release-links a {
  color: var(--accent);
  text-decoration: none;
  margin-right: 0.9rem;
}

.release-links a:hover {
  text-decoration: underline;
}

.release-notes {
  margin-top: 0.6rem;
  font-size: 0.9em;
  color: var(--fg);
}

.release-notes :first-child {
  margin-top: 0;
}

.release-notes :last-child {
  margin-bottom: 0;
}

.release-notes pre {
  background: var(--bg);
  padding: 0.75rem;
  overflow-x: auto;
  border-radius: 4px;
}

.release-notes code {
  font-family: inherit;
}

footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.85em;
}

.site-nav {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav a.current {
  color: var(--fg);
  font-weight: bold;
}
