/* ============================================================================
   Framer base layer - element-level defaults.
   Loads after Bootstrap, so every rule here wins on source order alone and
   none of them need !important.
   ============================================================================ */

body {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--grad-app-1) 0%, var(--grad-app-2) 100%) fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

/* Bootstrap themes headings via --bs-heading-color; this just adds the weight
   the old stylesheet applied by hand. */
h1, h2, h3, h4, h5, h6 { font-weight: 600; }

hr {
  border-color: var(--border-subtle);
  opacity: 1;
}

a { text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  color: var(--brand);
  background: var(--brand-subtle);
  padding: .15rem .4rem;
  border-radius: var(--radius-sm);
  font-size: .875em;
  font-family: var(--font-mono);
}

pre {
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* A <code> inside a <pre> is already in a monospace block; drop the pill. */
pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* ---- Focus -----------------------------------------------------------------
   One consistent focus ring. :focus-visible only, so mouse users never see it
   but keyboard users always do.                                              */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ---- Scrollbars ------------------------------------------------------------ */
* { scrollbar-color: var(--border-default) var(--surface-sunken); }   /* Firefox */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--surface-sunken); }
::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ---- Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
