/* Base typography */
body {
    font-size: 1rem;
    line-height: 1.7;
}

/* Code blocks from Pygments */
.highlight {
    border-radius: 0.375rem;
    overflow-x: auto;
    margin: 1.5em 0;
}

.highlight pre {
    padding: 1rem 1.25rem;
    background-color: #f8f8f8;
    border-radius: 0.375rem;
    overflow-x: auto;
    font-size: 0.875em;
    line-height: 1.6;
}

/* Inline code in prose */
.prose code {
    background-color: #f3f4f6;
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.prose code::before,
.prose code::after {
    content: none;
}

/* Figures and captions */
.prose figure {
    margin: 1.5em 0;
}

.prose figure img {
    max-width: 100%;
    height: auto;
}

.prose figcaption {
    margin-top: 0.5em;
    font-size: 0.875em;
    color: #6b7280;
    text-align: center;
}

/* Obsidian-style callouts */
.callout {
    --callout-color: #448aff;
    border-left: 4px solid var(--callout-color);
    background-color: color-mix(in srgb, var(--callout-color) 8%, white);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin: 1.5em 0;
}

.callout-title {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--callout-color);
    margin-bottom: 0.25rem;
}

.callout-icon {
    display: inline-flex;
    flex-shrink: 0;
    height: 1.7em;
    align-items: center;
}

.callout-icon svg {
    color: var(--callout-color);
}

.callout-content p {
    margin: 0.25em 0;
}

.callout-content p:last-child {
    margin-bottom: 0;
}

/* Calorie/info tooltips (stock-ticker style) */
abbr.cal {
    text-decoration: none;
    border-bottom: 1px dotted #6b7280;
    cursor: help;
    font-style: normal;
}

abbr.cal:hover {
    border-bottom-color: #2563eb;
    color: #2563eb;
}

/* About page intro */
.about-photo {
    width: 190px;
    border-radius: 10px;
    flex-shrink: 0;
    margin: 0;
    margin-right: 1em;
    margin-bottom: 1em;
}

@media (max-width: 640px) {
    .about-photo {
        width: 160px;
    }
}

/* Responsive YouTube embeds */
.youtube-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 1.5em 0;
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
