/* Front-end extras on top of Tailwind. Colour variables are printed inline from the options panel. */

body {
  font-family: var(--wa-font, 'Inter'), sans-serif;
}

.glass-card {
  background: rgb(var(--wa-card) / .7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.light .glass-card {
  background: rgba(255, 255, 255, .85);
}

/* Theme toggle shows the icon for the mode you would switch to. */
.light .wa-when-dark,
html:not(.light) .wa-when-light {
  display: none;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgb(var(--wa-bg)); }
.light ::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgb(var(--wa-primary)); }

/* Inline code inside rich text fields */
.wa-note code,
.wa-prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #1e293b;
  color: rgb(var(--wa-accent));
}
.light .wa-note code,
.light .wa-prose code {
  background: #e2e8f0;
  color: rgb(var(--wa-primary));
}
.wa-prose a,
.wa-note a {
  color: rgb(var(--wa-accent));
  text-decoration: underline;
}

/* Typography for regular posts and pages (index.php) */
.wa-content > * + * { margin-top: 1.1em; }
.wa-content h2 { font-size: 1.6rem; font-weight: 700; margin-top: 1.8em; }
.wa-content h3 { font-size: 1.3rem; font-weight: 700; margin-top: 1.5em; }
.wa-content a { color: rgb(var(--wa-accent)); text-decoration: underline; }
.wa-content ul { list-style: disc; padding-inline-start: 1.4em; }
.wa-content ol { list-style: decimal; padding-inline-start: 1.4em; }
.wa-content img { border-radius: 12px; height: auto; }
.wa-content blockquote { border-inline-start: 3px solid rgb(var(--wa-accent)); padding-inline-start: 1em; opacity: .85; }
.wa-content pre { background: #0d1322; color: #e2e8f0; padding: 1em; border-radius: 12px; overflow-x: auto; font-size: .85em; }
.wa-content code { font-family: 'JetBrains Mono', monospace; }
