/* ===== Brownian Motion Project — custom styles to complement Tailwind ===== */

/* Smooth scroll for anchor links */
html { scroll-behavior: smooth; }

/* Modern accent variables (kept in case you want to reuse) */
:root{
  --accent: #8cd1ff;
  --accent-2: #c4a8ff;
}

/* Fancy underline for links (used via class="link-underline") */
.link-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 200ms ease;
}
.link-underline:hover { background-size: 100% 2px; }

/* Code block tweaks (Prism) */
pre[class*="language-"] {
  border-radius: 0.75rem;
  padding: 1rem;
}

/* Highlighted inline links to make them stand out in paragraphs */
/* make sure this file is loaded after the global CSS */
.highlight-link {
  font-weight: 700;
  color: #4c01a7 !important; /* or your var(--accent) if you prefer */
  text-decoration: none;
}
.highlight-link:hover { text-decoration: underline; }


/* Back button styling — consistent with your site's modern look */
.back-btn{
  display: inline-block;
  text-decoration: none;
  color: #0a0f1f;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.12);
  transition: transform .15s ease, box-shadow .15s ease;
}
.back-btn:hover { transform: translateY(-1px); }
.back-btn:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }
