/* Changelog, Intel and 404. These pages keep their own layout and take the
   tokens, type and controls of the home page from here. Load after the page's
   inline styles. */
:root, [data-theme="dark"], [data-theme="light"] {
  --bg-primary: var(--ground); --bg-secondary: var(--surface-1); --bg-card: var(--surface-1);
  --text-primary: var(--ink); --text-secondary: var(--ink-2); --border-color: var(--line);
  --accent-color: var(--ink-3); --accent-warm: var(--ink); --hover-bg: var(--surface-2);
}
body { letter-spacing: 0; }
.page-brand { display: block; margin-bottom: var(--space-6); }
.error-container .page-brand { margin-bottom: var(--space-7); }

.back-link { font: 400 13px/20px var(--font-sans); letter-spacing: 0; text-transform: none; }
p.page-title, .page-badge, .coming-soon-badge, .error-badge, .section-title {
  font: 500 11px/16px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.section-title::before { content: none; }
.page-heading, h1.page-title { font: 300 44px/48px var(--font-sans); letter-spacing: -0.025em; color: var(--ink); }
.coming-soon-title { font: 500 24px/30px var(--font-sans); letter-spacing: -0.01em; }
.error-code { font: 300 64px/66px var(--font-sans); letter-spacing: -0.03em; color: var(--ink); }

/* One square theme button, like the home page */
.theme-toggle span { display: none; }
.theme-toggle .toggle { width: 32px; height: 32px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-2); background: var(--surface-1); }
.theme-toggle .toggle:hover { background: var(--surface-2); }
.theme-toggle .toggle::after, [data-theme="light"] .theme-toggle .toggle::after { top: 8px; left: 8px; width: 14px; height: 14px; background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); border: 1px solid var(--ink); box-sizing: border-box; transform: none; }
[data-theme="light"] .theme-toggle .toggle::after { transform: rotate(180deg); }

.coming-soon-banner, .coming-soon-btn, .error-container .back-link, .featured { border-radius: var(--radius-2); }
.category-pill, .filter-pill, .version-label, code { border-radius: var(--radius-1); }
.coming-soon-btn, .error-container .back-link, .category-pill { font: 500 13px/20px var(--font-sans); letter-spacing: 0; text-transform: none; }

@media (max-width: 760px) {
  .page-heading, h1.page-title { font-size: 32px; line-height: 36px; }
}
