/* Mirrors Keyframeless X design tokens (KKTokens.h, KKColors, KKPanel):
   accent #FF5000, spacing 4/6/8, radius MD 8 / panel 12, capsule pills,
   white.opacity(0.04) panels with a faint secondary border. */
:root {
  --bg: #242427;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(235, 235, 245, 0.15);
  --pill-bg: rgba(255, 255, 255, 0.08);
  --text: #ececee;
  --muted: rgba(235, 235, 245, 0.6);
  --accent: #ff5000;
  --success: #30d158; /* system green, as used by InfoBadge / profanity badge */
  --warning: #ffcc02; /* NSColor+KKColors warning() */
  --danger: #fb2c36; /* NSColor+KKColors error() */
  --info: #5b8cff;

  --sp-sm: 4px;
  --sp-md: 6px;
  --sp-lg: 8px;
  --r-md: 8px;
  --r-panel: 12px;

  --maxw: 680px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 13.5px;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 20px 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--panel-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand .logo {
  width: 24px;
  height: 24px;
  border-radius: var(--sp-md);
  flex: none;
  display: block;
}

.title {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.title h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.title .sub {
  color: var(--muted);
  font-size: 12px;
}

/* CTA = the selected-pill style (accent capsule), like PillTabBar */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: filter 0.15s ease;
}

.cta:hover {
  filter: brightness(1.08);
}

/* release block = KKPanel: white.opacity(0.04) fill, faint border, radius 12 */
.release {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-panel);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.release-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.release-head h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.release-head .date {
  color: var(--muted);
  font-size: 12px;
}

.entries {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entries li {
  display: flex;
  gap: var(--sp-lg);
  align-items: flex-start;
  padding: 5px 0;
}

/* grouped-by-type layout: one badge per type, bullet list beside it */
.group {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 6px 0;
}

.group + .group {
  border-top: 1px solid var(--panel-border);
}

.bullets {
  list-style: disc;
  margin: 0;
  padding-left: 18px;
  flex: 1;
}

.bullets li {
  line-height: 20px;
}

.bullets li + li {
  margin-top: 4px;
}

.bullets li::marker {
  color: var(--muted);
}

/* tags = capsule pills */
.tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0 9px;
  border-radius: 999px;
  width: 90px;
}

/* New keeps the solid accent; Improved/Fix follow InfoBadge:
   colored text on a color.opacity(0.15) capsule. */
.tag.feature {
  color: #fff;
  background: var(--accent);
}

.tag.improvement {
  color: var(--success);
  background: color-mix(in srgb, var(--success) 15%, transparent);
}

.tag.fix {
  color: var(--warning);
  background: color-mix(in srgb, var(--warning) 15%, transparent);
}

.tag.kind {
  color: var(--muted);
  background: var(--pill-bg);
}

figure {
  margin: 10px 0 2px;
}

/* spotlight: hero media at the top of a release, full card width */
figure.spotlight {
  margin: 0 0 14px;
}

/* per-item media: sits under the bullet it illustrates */
.bullets li figure {
  margin: 8px 0 4px;
}

figure img,
figure video {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--panel-border);
  display: block;
}

figcaption {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

/* GitHub-style alert callouts (> [!CAUTION] etc.). --c drives all three colors. */
.callout {
  --c: var(--info);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  background: color-mix(in srgb, var(--c) 10%, transparent);
  border-radius: var(--r-md);
  padding: 10px 12px;
  margin: 0 0 14px;
}

.callout.caution {
  --c: var(--danger);
}
.callout.warning {
  --c: var(--warning);
}
.callout.important {
  --c: var(--accent);
}
.callout.tip {
  --c: var(--success);
}
.callout.note {
  --c: var(--info);
}

.callout-title {
  color: var(--c);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 3px;
}

.callout-body {
  font-size: 13px;
}

a {
  color: var(--accent);
}

.changelog-start {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
}

.foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--panel-border);
  color: var(--muted);
  font-size: 12.5px;
}
