@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lora:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --cream: #fdfaf6;
    --bordeaux: #6d2828;
    --bordeaux-light: #a38d8d;
    --navy: #0d1b4c;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', serif;
    background-color: var(--cream);
    color: #374151; /* Tailwind gray-700 */
}

h1, h2, h3, h4, h5, h6, .main-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

.main-title {
    color: var(--navy);
}

.prose h2 {
    color: var(--bordeaux);
    border-bottom: 1px solid var(--bordeaux-light);
    padding-bottom: 0.5rem;
    margin-top: 2.5em; /* Add space before section titles */
    scroll-margin-top: 2rem; /* Offset for scrollspy */
}

.prose h2:first-of-type {
    margin-top: 0;
}


.prose a {
    color: var(--bordeaux);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.prose a:hover {
    color: var(--navy);
    text-decoration: underline;
}

.prose .report-image {
    margin-top: 2em;
    margin-bottom: 2em;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1rem;
    border: 1px solid var(--bordeaux-light);
    border-radius: 0.25rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.prose .report-image img {
    width: 100%;
    height: auto;
    border-radius: 0.125rem;
    margin: 0;
}

.prose .report-image figcaption {
    margin-top: 0.75rem;
    font-size: 0.9em;
    font-style: italic;
    color: #4b5563; /* Tailwind gray-600 */
    text-align: center;
    line-height: 1.4;
}

#toc-container {
    transition: top 0.3s ease;
}

.toc-link {
    padding: 0.5rem 0.75rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease-in-out;
}

.toc-link.active {
    background-color: rgba(109, 40, 40, 0.08);
    color: var(--bordeaux);
    font-weight: bold;
    border-left-color: var(--bordeaux);
    transform: translateX(4px);
}

.toc-link:not(.active):hover {
    background-color: rgba(0, 0, 0, 0.04);
    border-left-color: #ddd;
}

.border-bordeaux-light {
    border-color: var(--bordeaux-light);
}

.text-bordeaux {
    color: var(--bordeaux);
}

.text-navy {
    color: var(--navy);
}
