:root {
  --bg: #f5f2ea;
  --surface: #fffdf7;
  --text: #23263a;
  --muted: #5c6079;
  --line: #dcd6c6;
  --accent: #5b6390;
  --badge-bg: #e7e9f3;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12142a;
    --surface: #1a1d36;
    --text: #ece6d4;
    --muted: #a3a8c3;
    --line: #2c3052;
    --accent: #b9c0e0;
    --badge-bg: #2a2e50;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 760px; margin: 0 auto; padding: 56px 16px 40px; }
header { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; }
/* The mark is drawn for a night sky: its moon is cream, so it keeps a
   night tile in the light theme too. */
.mark { flex: none; width: 88px; height: 88px; padding: 10px; border-radius: 20px; background: #12142a; }
.mark img { display: block; width: 100%; height: 100%; }
h1 { margin: 0; font-size: 2.2rem; line-height: 1.2; letter-spacing: 0.01em; }
h1 span { font-weight: 400; color: var(--muted); margin-left: 0.3em; }
.tagline { margin: 4px 0 0; color: var(--muted); }
h2 { font-size: 1.15rem; margin: 40px 0 12px; }
a { color: var(--accent); }
.feed {
  display: flex; gap: 8px; align-items: stretch;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px;
}
.feed code {
  flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap;
  padding: 8px; font: 0.9rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.feed button {
  flex: none; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px;
  background: var(--badge-bg); color: var(--text); font: inherit; font-size: 0.9rem; cursor: pointer;
}
.steps { color: var(--muted); margin: 10px 0 0; }
.plugin {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  margin-bottom: 12px;
}
.plugin-icon { flex: none; border-radius: 12px; }
.plugin-body { min-width: 0; }
.plugin h3 { margin: 0 0 4px; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plugin p { margin: 0; }
.badge {
  font-size: 0.75rem; font-weight: 500; padding: 1px 8px; border-radius: 999px;
  background: var(--badge-bg); color: var(--muted);
}
.releases { list-style: none; margin: 10px 0 0; padding: 0; font-size: 0.9rem; }
.releases li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: var(--muted); }
.releases .version { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }
.packages h4 { margin: 12px 0 2px; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.packages ul { margin: 0; padding-left: 18px; font-size: 0.9rem; overflow-wrap: anywhere; }
footer { margin-top: 48px; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 480px) {
  .mark { width: 64px; height: 64px; padding: 7px; border-radius: 15px; }
  h1 { font-size: 1.8rem; }
  .plugin { flex-direction: column; }
}

/* Member and side pages */
.crumbs { margin: 0 0 28px; font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page-head { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.page-head img { width: 72px; height: 72px; flex: none; border-radius: 16px; }
.page-head h1 { font-size: 2rem; }
.lead { margin: 12px 0 0; }
.plugin h3 a { color: inherit; text-decoration: none; }
.plugin h3 a:hover { text-decoration: underline; }
.sides { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; padding: 0; list-style: none; font-size: 0.85rem; }
.sides a {
  display: inline-block; padding: 2px 10px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--line); color: var(--text); background: var(--bg);
}
.side h3 { margin: 0; }
.package-group h3 { font-size: 0.95rem; margin: 18px 0 6px; color: var(--muted); }
.package-list { list-style: none; margin: 0; padding: 0; }
.package-list li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 8px;
}
.package-name { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; overflow-wrap: anywhere; }
.package-meta { color: var(--muted); font-size: 0.85rem; margin-left: 6px; }
.package-list p { margin: 4px 0 0; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 480px) {
  .page-head img { width: 56px; height: 56px; }
  .page-head h1 { font-size: 1.6rem; }
}
