/* Global variables for easy theme swapping */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #0000ee;
    --max-width: 600px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #000000;
        --text-color: #ffffff;
        --accent-color: #8585ff;
    }
}

html {
  scroll-behavior: smooth;
}

/* Global Element Styles */
a {
    color: var(--accent-color);
}

h3 {
    margin: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    padding: 0;
    margin: 0;
}

/* Website Navigation */
.site-nav h1 {
    text-align: center;
}

.site-nav ul {
    list-style: none; /* Remove bullet points */
    padding: 0;
    margin: 0;
    display: flex; /* Arrange links horizontally */
    justify-content: center; /* Center the links */
    gap: 20px; /* Space between links */
}

.site-nav ul li a {
    text-decoration: none; /* Remove underline */
}

/* Main Content Styling */
main {
    max-width: var(--max-width); /* Limit content width */
    margin-left: auto;
    margin-right: auto;
    padding: 0; /* Add some padding on the sides */
}

section {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Footer */
footer {
    text-align: center;
    font-size: 0.9em;
}

/* Custom Classes */

.card {
    margin-bottom: 25px;
}

.card p {
    margin: 0;
}

.reference-list {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 0.5rem 0;
    list-style-type: none;
    padding-left: 0;
}

.reference-list li {
    display: contents;
    /* Increment happens here for each list item */
    counter-increment: bracket-counter;
}

.reference-list li::before {
    /* This will now pull the value after the increment (1, 2, 3...) */
    content: "[" counter(bracket-counter) "]";
    grid-column: 1;
    font-family: inherit;
    align-self: start; 
}

/* You must wrap the text in a tag (like span) for it to occupy column 2 */
.reference-list li span {
    grid-column: 2;
    margin-bottom: 0.75rem;
}