/* Use Inter everywhere (keep code blocks monospace) */
html, body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue",
               Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-feature-settings: "liga" 1, "calt" 1, "cv11" 1, "tnum" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Many Jekyll themes set serif for headings; force inheritance */
h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  font-weight: 700;           /* tweak if you want lighter headings */
  letter-spacing: -0.01em;    /* Inter likes a touch of tightening */
}

/* Preserve monospace for code */
code, pre, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Courier New", monospace;
}

/* Optional: readability tuning */
body {
  font-size: 17px;    /* adjust to taste */
  line-height: 1.6;
}

/* ===========================
   Responsive Inter Typography
   (append to assets/css/custom.css)
   =========================== */

/* Body copy — responsive between 17–20px */
html { font-size: 100%; } /* keep rems stable */
body {
  color: #000; /* redundancy to be safe */
  font-weight: 400;
  line-height: 1.65;
  font-size: clamp(17px, 0.9vw + 12px, 20px);
}

/* Headings — clean, roomy Inter scale */
h1, h2, h3, h4, h5, h6 {
  color: #000;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", "Liberation Sans", sans-serif !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2; /* tighter, headline feel */
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

/* Responsive sizes (approx. like your reference screenshot) */
h1 { font-size: clamp(2.2rem, 2.6vw + 0.6rem, 3.25rem); }
h2 { font-size: clamp(1.8rem, 2.0vw + 0.5rem, 2.5rem); }
h3 { font-size: clamp(1.4rem, 1.2vw + 0.6rem, 1.9rem); }
h4 { font-size: clamp(1.2rem, 0.8vw + 0.6rem, 1.4rem); }
h5 { font-size: clamp(1.05rem, 0.5vw + 0.6rem, 1.2rem); }
h6 { font-size: 1rem; }

/* Navigation & small UI bits — slightly stronger weight */
.nav__list, .site-nav, .greedy-nav, .site-title,
.btn, .pagination, .sidebar {
  color: #000;
  font-weight: 600;
}

/* Paragraph rhythm */
p { margin: 0.75em 0 1.1em; }

/* Blockquotes — keep elegant & readable on white */
blockquote {
  color: #111;
  border-left: 4px solid #e6e6e6;
  padding-left: 1rem;
}

/* Code stays mono (don’t turn black icons into boxes) */
code, pre, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Courier New", monospace !important;
}
.ai { font-family: "Academicons" !important; }

/* ----- LOAD A WEIRD FONT (Nunito) ----- */
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800;900&display=swap");

/* ----- APPLY EVERYWHERE (high specificity + !important to win) ----- */
:root {
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

/* Global */
html, body {
  font-family: var(--font-body) !important;
}

/* Headings & titles used by Academic Pages */
h1, h2, h3, h4, h5, h6,
.page-title, .page_title,  /* list/section titles */
.article-title, .publication-title, .project-title,
.navbar-brand, .docs-title {
  font-family: var(--font-body) !important;
  font-weight: 800; /* make it very obvious */
  letter-spacing: .01em;
}

/* Navigation, menus, buttons */
.navbar, .navbar-nav .nav-link, .dropdown-menu, .btn, .badge, .pagination,
.sidebar, .menu, .menu a {
  font-family: var(--font-body) !important;
}

/* Form controls */
input, select, textarea, label {
  font-family: var(--font-body) !important;
}

/* Optional: lighten paragraph weight to accentuate the change */
p { font-weight: 400; }

<!-- Nunito Google Font -->
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800;900&display=swap" rel="stylesheet">

:root {
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}
html, body { font-family: var(--font-body) !important; }
h1, h2, h3, h4, h5, h6,
.page-title, .page_title, .article-title, .publication-title, .project-title,
.navbar-brand { font-family: var(--font-body) !important; font-weight: 800; }
.navbar, .nav-link, .dropdown-menu, .btn, .badge { font-family: var(--font-body) !important; }
input, select, textarea, label { font-family: var(--font-body) !important; }


