/* Playfair Display (headings) + Lora (body) + JetBrains Mono (code) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --font-stack: "Lora", Georgia, "Times New Roman", serif;
    --font-stack--monospace: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

body {
    font-family: var(--font-stack);
}

h1, h2, h3, h4, h5, h6,
.sidebar-brand-text,
.toc-title {
    font-family: "Playfair Display", Georgia, serif;
}

code, pre, kbd, samp {
    font-family: var(--font-stack--monospace);
}

/* --- GitHub link badge in the sidebar --- */
.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.35em 0.75em;
    margin-top: 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--color-sidebar-item-background--hover, rgba(0,0,0,0.1));
    color: var(--color-sidebar-link-text, inherit);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.github-link:hover {
    background: var(--color-sidebar-item-background--hover, rgba(0,0,0,0.06));
    border-color: var(--color-brand-primary, #2962ff);
    text-decoration: none;
}

.github-link svg {
    flex-shrink: 0;
}
