/* Import Jost from Google Fonts with various weights and better fallbacks */
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Root Variables for Colors and Background */
:root {
    --text-dark: #1A1A1A;
    --text-light: #5A5A5A;
    --tint: #4A5568;
    --bottom-layer: #D4D4D4;
    --background: #FFFFFF;
}

body {
     counter-reset: h5section;
     background-color: var(--background);
     margin: 0 auto;          /* Centers the body if max-width is less than the screen width */
     max-width: 2000px;       /* Increase this value to allow more horizontal space */
     font-family: 'Jost', sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial;
     font-weight: 400;
     color: var(--text-light);
     line-height: 1.5;
     padding: 1rem;           /* Adds some left/right padding so text isn't flush to edges */
 }

* {
    box-sizing: border-box;
}

/* Code Blocks: using Jost Mono weight */
ul.prompt-list {
    list-style: none;
    padding-left: 1.2em;
    font-family: 'JetBrains Mono', monospace;
    margin: 0.2em 0;
  }
  
ul.prompt-list li::before {
    content: "❯";
    font-weight: bold;
    margin-right: 0.6em;
    display: inline-block;
    width: 1em;
  }

/* Link Styling - Stronger specificity for GitHub Pages */
a, a:link, a:visited {
    color: var(--tint) !important;
    text-decoration: none !important;
}

a:hover, a:focus {
    color: var(--text-dark) !important;
    text-decoration: underline !important;
}

/* Heading Styles */
h1, h2, h3, h4, h5 {
    display: block;
    margin: 0.25rem 0;
    padding: 0;
    color: var(--text-dark);
    font-family: 'Jost', sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial;
}

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

h2 {
    font-size: 1.2rem;
    color: var(--tint);
    font-weight: 600;
}

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

h4 {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-light);
    counter-reset: h5section;
    font-weight: 500;
}

h5 {
    font-size: 1rem;
    text-align: left;
    margin: 0.5rem 0;
    font-weight: 600;
}

h5::before {
    counter-increment: h5section;
    content: counter(h5section, upper-roman) ". ";
}

span.skill {
    font-size: 0.9rem;
    float: left;
    font-family: 'Jost', sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial !important;
    font-weight: 500;
    color: var(--tint);
}

.navbar a {
    all: unset;  /* nuke inherited styles */
    color: inherit;
}

/* Project Links + Lists */
.project .link {
    padding-left: 3em;
    font-size: 0.9rem;
    text-align: left;
    text-justify: inter-word;
}

.project ul {
    margin-left: 2em;
}

/* Paragraph Styling */
p {
    text-align: left;
    /* text-justify: inter-word; */
}

/* Math Styling */
.mjx-math {
    color: var(--tint) !important;
}

.mjx-math:hover {
    color: var(--text-dark);
}

/* Icon Styling */
.boxed-content {
    display: inline-flex; 
    align-items: center;  
    background-color: var(--tint);
    border: 2px solid var(--tint);
    border-radius: 8px;
    text-align: center;
    padding: 5px 10px;
    text-decoration: none;
    color: inherit;
    vertical-align: middle;
}

.boxed-content .iconify {
    margin-right: 5px;
}

.boxed-content:hover {
    background-color: #EEE;
}

/* Always expand TOC for CV page */
.sidebar nav[role="doc-toc"] ul {
    display: block;
}
   
.pub-entry {
    margin-bottom: 1.5em;
    padding-left: 1em;
    border-left: 3px solid #eee;
  }
  
.pub-entry strong {
font-weight: 600;
}
