@import url("../styles.css");

html {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.75;
    color: #2b2b2b;
    background: #fafafa;
}

body {
    display: flex;
    /* sidebar + content side by side */
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #fafafa;
}

.main-content {
    flex: 1;
    /* take remaining horizontal space */
    padding: 3rem 10rem 3rem calc(250px + 4rem);
    /* top, right, bottom, left */
    background: #fff;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem 2rem 0rem 2rem;
        /* reduce padding on small screens */
    }
}


header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-family: Georgia, serif;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

header .author {
    font-size: 1rem;
    color: #666;
}

header .date {
    font-size: 0.9rem;
    color: #999;
}

/* Paragraphs */
p {
    margin: 1.2em 0;
    color: #333;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #004999;
    text-decoration: underline;
}

/* Headings */
h2,
h3,
h4,
h5 {
    margin-top: 2em;
    margin-bottom: 0.6em;
    font-weight: 600;
    line-height: 1.3;
}

h2 {
    font-size: 1.6rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.3em;
}

h3 {
    font-size: 1.3rem;
}

h4 {
    font-size: 1.1rem;
    color: #444;
}

h5 {
    font-size: 1.1rem;
    color: #444;
}

/* Blockquotes */
blockquote {
    margin: 1.5em 0;
    padding: 1em 1.2em;
    background: #f9f9f9;
    border-left: 4px solid #0066cc;
    color: #555;
    font-style: italic;
    border-radius: 6px;
}

/* Lists */
ul,
ol {
    margin: 1.2em 0 1.2em 1.5em;
}

li {
    margin-bottom: 0.4em;
}

/* Code blocks */
pre,
code {
    font-family: Menlo, Monaco, monospace;
}

pre {
    background: #f5f5f5;
    padding: 1em;
    border-radius: 6px;
    overflow-x: auto;
}

code {
    background: #f1f1f1;
    padding: 0.2em 0.4em;
    border-radius: 4px;
}

/* Horizontal line */
hr {
    border: none;
    height: 1px;
    background: #ddd;
    margin: 2em 0;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 2em 0;
    font-size: 0.95rem;
}

th,
td {
    border: 1px solid #ddd;
    padding: 0.6em;
    text-align: left;
}

th {
    background: #f7f7f7;
}

/* Bibliography entries */
.csl-entry {
    font-size: 0.9rem;
    color: #666;
    margin: 0.8em 0;
    padding-left: 1em;
    border-left: 2px solid #eee;
}

.toc-container {
    background: #f9f9f9;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #0066cc;
    border-radius: 6px;
    color: #2b2b2b !important;
    /* force dark text */
}

.toc-container li {
    margin-bottom: 0.5rem;
    color: #2b2b2b !important;
}

.toc-container a {
    color: #0066cc !important;
    text-decoration: none;
}

.toc-container a:hover {
    text-decoration: underline;
}