html, body { margin: 0; padding: 0; }
body { overscroll-behavior: none; background-color: #FAFCFB; }
main > :first-child { margin-top: 0 !important; }
main > :last-child { margin-bottom: 0 !important; }

/* Research page typography (from the Stitch design) */
.page-research { color: #4A413C; font-family: 'Source Serif 4', Georgia, serif; }
.page-research h1, .page-research h2, .page-research h3, .font-serif-title { font-family: 'EB Garamond', Georgia, serif; }
.font-sans-nav { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }
a.link-accent { color: #8C4320; text-decoration: none; transition: opacity 0.15s ease; }
a.link-accent:hover { opacity: 0.8; text-decoration: underline; }

/* Empty image slots.
   Drop a file with the matching name into /images and it appears automatically. */
.img-slot { position: relative; width: 100%; height: 100%; background-color: #EBEFEE; }
.img-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Power BI embed */
.pbi-frame { display: block; width: 100%; aspect-ratio: 600 / 373.5; border: 0; }
@media (max-width: 640px) { .pbi-frame { aspect-ratio: auto; height: 70vh; } }

/* Keep anchored sections clear of the fixed header */
#bibtex-section { scroll-margin-top: 6.5rem; }
