/* =========================================================
   NOTION-LIKE BASE TYPOGRAPHY
   ========================================================= */

:root {
  --notion-text: #111;
  --notion-muted: #555;
  --notion-link-underline: rgba(17, 17, 17, 0.18);
  --notion-link-underline-hover: rgba(17, 17, 17, 0.45);
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.65;
  color: var(--notion-text);
}

code, pre, kbd, samp {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* =========================================================
   NAVBAR → NOTION-STYLE HEADER
   - Transparent at top
   - Solid/blur when it pins on scroll (prevents text overlay mess)
   ========================================================= */

.navbar {
  background: transparent;        /* IMPORTANT: valid + intentional */
  border: none !important;
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  transition: background-color 160ms ease, box-shadow 160ms ease, backdrop-filter 160ms ease;
}

/* Quarto uses Headroom classes when navbar hides/shows on scroll.
   These selectors catch the “pinned” state so we can add a background. */
.headroom--pinned .navbar,
.navbar.fixed-top,
.navbar.is-fixed {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* Site title */
.navbar-brand {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0;
  margin-right: 2rem;
  color: #000 !important;         /* fixes “white title” bootstrap behavior */
}

/* Nav links */
.navbar-nav .nav-link {
  font-size: 1rem;
  font-weight: 400;
  padding: 0;
  margin-right: 1.25rem;
  color: var(--notion-muted) !important;
}

.navbar-nav .nav-link:hover {
  color: #000 !important;
  text-decoration: none;
}

/* =========================================================
   CONTENT WIDTH
   (Leave it alone since you like current width)
   ========================================================= */

.page-columns {
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   LINKS — DARK / NOTION-LIKE
   ========================================================= */

/* Force calm dark links (Bootstrap otherwise makes them blue) */
a, a:visited {
  color: #222 !important;
  text-decoration: none;
  font-weight: 500; /* subtle emphasis without shouting */
  border-bottom: 2px solid var(--notion-link-underline);
  padding-bottom: 1px; /* gives underline visual breathing room */
}

a:hover, a:focus {
  color: #000 !important;
  border-bottom-color: var(--notion-link-underline-hover);
}

/* Don’t draw underline borders on nav links/buttons */
.navbar a,
.navbar-nav .nav-link,
.btn,
.btn a {
  border-bottom: none !important;
}

/* =========================================================
   SPACING & HEADINGS
   ========================================================= */

h1, h2, h3 {
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1.2rem;
}

h1 {
  font-size: 2.4rem;
  font-weight: 700;
}

h2 {
  font-size: 1.6rem;
  font-weight: 600;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* =========================================================
   CODE BLOCKS
   ========================================================= */

pre {
  background: #f7f7f7;
  border-radius: 6px;
  padding: 1rem;
}

code {
  font-size: 0.92em;
}

/* =========================================================
   MOBILE NAV (HAMBURGER) VISIBILITY FIX
   ========================================================= */

.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  filter: invert(0) !important; /* force dark icon */
}

/* Some Bootstrap themes use SVG masks; force color as fallback */
.navbar-toggler-icon {
  background-image: none;
}

.navbar-toggler::before {
  content: "☰";
  font-size: 1.5rem;
  color: #000;
}

/* =========================================================
   LISTING DESCRIPTION — NORMAL BODY WEIGHT
   ========================================================= */

.quarto-listing .listing-description,
.quarto-listing .listing-description p {
  font-weight: 400 !important;
  color: var(--notion-text);
}

/* If descriptions contain links, keep them normal-weight */
.quarto-listing .listing-description a,
.quarto-listing .listing-description a:visited {
  font-weight: 400 !important;
}