/* Smoother font rendering */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Body styling */
body {
    letter-spacing: -0.01em;
    line-height: 1.5;
}

/* Header styling */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.2em;
}

h2 {
    font-size: 1.8em;
    border-bottom: 1px solid var(--color-background-border);
    padding-bottom: 0.3em;
}

h3 {
    font-size: 1.4em;
}

/* Subtle box shadows for cards and sidebars */
.bd-sidebar {
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.bd-toc {
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Code blocks */
pre {
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

code {
    font-size: 0.9em;
    border-radius: 4px;
    padding: 0.2em 0.4em;
}

/* Tables */
table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border: 1px solid var(--color-background-border);
    border-radius: 8px;
    margin: 1em 0;
    overflow: hidden;
}

th {
    background-color: var(--color-background-secondary);
    text-align: left;
    padding: 8px 12px;
    font-weight: 600;
}

td {
    padding: 8px 12px;
    border-top: 1px solid var(--color-background-border);
}

/* Search box */
.search-button__wrapper .search-button {
    border-radius: 8px;
}

/* Buttons and links */
.btn, button {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

a {
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

/* Admonitions (notes, warnings, etc.) */
.admonition {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin: 1.5em 0;
}

.admonition-title {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Footer */
.footer {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
} 