/* Typography overrides for a classic literary style */
body {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.25rem; /* Increased base size to account for Garamond's scale */
    line-height: 1.75;
    color: #2b2b2b;
    background-color: #faf9f6; /* Off-white background reminiscent of book paper */
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Cormorant Garamond', Times, serif;
    font-weight: 600;
    color: #111111;
    line-height: 1.2;
}

/* Custom Toned-down Link Styling */
a {
    color: #7c3c3c; /* Deep oxblood/wine */
    text-decoration: none;
    text-decoration-color: rgba(124, 60, 60, 0.3); /* Muted underline */
    text-underline-offset: 4px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover, a:focus {
    color: #532323; /* Darker crimson on hover */
    text-decoration-color: #532323;
}

/* Lead paragraph styling */
.article-lead {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    line-height: 1.6;
    color: #444444;
    font-style: italic;
    padding: 1.25rem 0;
    border-top: 1px double #d5d0c5;
    border-bottom: 1px double #d5d0c5;
    margin-bottom: 2.5rem;
}

/* Blockquote styling for literary excerpts */
blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    line-height: 1.6;
    border-left: 3px solid #8c7853; /* Subtle gold/earthy accent */
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #4a4a4a;
}

/* Clear the floated <cite> element so it doesn't overlap content below */
blockquote::after {
    content: "";
    display: table;
    clear: both;
}

/* Style and float the citation to the right */
blockquote cite {
    float: right;
    font-family: 'EB Garamond', serif; /* Use body font for contrast */
    font-size: 1.1rem;
    font-style: normal;
    color: #6c757d; /* Muted text */
    margin-top: 0.5rem;
}

/* Image sizing and styling */
.article-img-thumbnail {
    max-width: 100%;
    height: auto;
    border: 1px solid #e5e5e5;
    padding: 5px;
    background-color: #ffffff;
}

/* Figure & Figcaption styling */
figure.article-img-thumbnail {
    padding: 0; /* Clears padding so the caption aligns with the border */
    overflow: hidden;
}

figure.article-img-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

figcaption {
    font-family: 'EB Garamond', serif;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #6c757d;
    padding: 0.75rem;
    background-color: #ffffff;
    border-top: 1px solid #e5e5e5;
}

@media (min-width: 768px) {
    .article-img-thumbnail {
        width: 260px;
    }
}
