/* Modern Reset & Variable Colors */
:root {
    --primary-blue: #112255;
    --text-dark: #333333;
    --text-muted: #666666;
    --gold-accent: #f4f1b6;
    --bg-light: #eaeef6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    padding: 20px;
}

css/* Adds a soft, light background to the margins of the entire screen */
body { 
    background-color: #a6a6a6; 
    margin: 0;
    padding: 0;
}

/* Centers the blog container and styles it as a clean white paper page */
.blog-container { 
    max-width: 660px; 
    margin: 0 auto; 
    background-color: #ffffff; 
    padding: 40px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05); /* Adds a subtle shadow border */
}

#container {
    max-width: 660px;
    margin: 0 auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Responsive Header Setup */
header {
    margin-bottom: 40px;
}

.header-main {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

@media (min-width: 600px) {
    .header-main {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.header-title h1 {
    color: #010080;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.header-title p {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 5px;
}

.header-logo {
    width: 100px;
    height: auto;
    border-radius: 50%;
}

.tagline-bar {
    background-color: var(--primary-blue);
    color: var(--gold-accent);
    text-align: center;
    padding: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 2px;
    border-radius: 4px;
}

/* Section Typography */
h2 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 8px;
    margin: 40px 0 20px 0;
}

/* 1. Base rule for all article paragraphs */
main p {
    margin-bottom: 0;      /* Removes the gap between paragraphs */
    font-size: 1.2rem;
    text-align: left;   /* Optional: Gives a clean, formal print look */
}

/* 2. Indents every paragraph that follows another paragraph */
main p + p {
    text-indent: 30px;     /* Adjust this number to change the indent depth */
}

/* Universal Link Color & Hover Overrides */
main a, 
#footnote a, 
#main a, 
center a, 
div a {
    color: #010080 !important;   /* Locks all body, endnote, and footer links to header blue */
    text-decoration: none;
    border-bottom: 1px dotted #010080;
    padding-bottom: 1px;
    transition: color 0.2s ease;
}

/* Specific Reset for the Footer Home Link to avoid underlines */
center a, 
div[style*="text-align: center"] a {
    border-bottom: none !important;
}

/* Image links remain clean without underlines */
main a:has(img), 
#footnote a:has(img) {
    border-bottom: none !important;
}

/* Hover effects for all areas */
main a:hover, 
#footnote a:hover, 
center a:hover {
    border-bottom-style: solid;
    color: #112255 !important;
}

/* 2. Interactive States */
a:hover, a:active {
    color: #000;
    text-decoration: none !important; /* Double-check to keep native lines suppressed on hover */
    border-bottom-style: solid;      /* Swaps 'dotted' for 'solid' at exactly the same pixel position */
    border-bottom-color: #000;       /* Darkens the line to match your active text color */
}

/* 3. Image Exceptions (Keeps your logos/images clean) */
a:has(img) {
    border-bottom: none !important;  /* Overrides both borders above for any image links */
}

/* Article Index Layout */
.article-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.article-author {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; /* Clean sans-serif contrast */
    font-size: 0.75rem;          /* Distinctly smaller than the summary */
    font-weight: 600;            /* Slightly bolded so it reads crisply at small sizes */
    letter-spacing: 0.05em;      /* Adds breathing room between the letters */
    color: #767676;              /* Soft, muted gray so it sits quietly in the background */
    margin-top: 6px;             /* Neatly separated from the title */
    margin-bottom: 10px;         /* Creates a clean boundary before the summary starts */
}

.article-byline {
    font-family: inherit;        /* Keeps the elegant serif style of your article body */
    font-size: 1.1rem;           /* Slightly larger and cleaner than standard text */
    font-style: italic;          /* Traditional essay/journal stylistic treatment */
    color: #444444;              /* Dark, readable gray—authoritative but not pitch black */
    margin-top: 16px;            /* Clear breathing space below the large title */
    margin-bottom: 24px;         /* Distinctly separates the author from the first sentence */
    padding-bottom: 12px;        /* Creates space for a subtle structural divider line */
    border-bottom: 1px solid #e2e8f0; /* Crisp, thin rule lines mimicking print journals */
}

.article-byline .author-name {
    font-weight: 600;            /* Adds clear, sharp definition to your name */
}



@media (min-width: 500px) {
    .article-card {
        flex-direction: row;
        align-items: flex-start;
    }
}

.article-img-link {
    flex-shrink: 0;
    display: block;
    width: 120px; /* 🌟 FORCES THE IMAGE CONTAINER TO BE FIXED IN PLACE */
    margin: 0;
}

.article-card img {
    width: 120px;
    height: 120px;       /* 🌟 ADD THIS LINE (or whatever height matches your look) */
    object-fit: cover;  /* 🌟 ADD THIS LINE (crops the image cleanly without stretching) */
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.article-card img:hover {
    transform: scale(1.03);
}

.article-content h3 {
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.article-content h3 a {
    color: var(--text-muted);
    text-decoration: none;
}

.article-content h3 a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.article-content p {
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* Blog Section */
.blog-banner {
    display: block;
    max-width: 350px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* Footer & About Section */
footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--primary-blue);
    font-size: 0.9rem;
}

.footer-logo {
    max-width: 250px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

footer p {
    margin-bottom: 15px;
    color: #444;
}

footer a {
    color: var(--primary-blue);
    font-weight: bold;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.disclaimer {
    font-size: 0.8rem;
    color: #777;
    font-style: italic;
}

.books-link img {
    max-width: 250px;
    width: 100%;
    height: auto;
    margin-top: 10px;
    border: 1px solid #ccc;
}

/* Responsive Horizontal Books Showcase */
.books-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
    margin-bottom: 30px;
    align-items: center;
}

.book-item {
    flex: 1;
    max-width: 200px;
    width: 100%;
    text-align: center;
}

.book-item img {
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 4px;
}

.book-item img:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Switches to a perfect horizontal row on desktop screens */
@media (min-width: 600px) {
    .books-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

/* Individual Essay Book Cover Layout - Reinforced */
.essay-book-cover {
    display: block !important;
    margin: 15px auto 25px auto !important; /* Centers and adds spacing on mobile */
    max-width: 160px !important;            /* Controls image size precisely */
    height: auto !important;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Switches cleanly to a right-aligned sidebar layout on desktop */
@media (min-width: 600px) {
    .essay-book-cover {
        float: right !important;
        margin-top: 5px !important;
        margin-left: 35px !important;   /* Pushes text cleanly to the left */
        margin-bottom: 25px !important; /* Pushes text cleanly down */
        margin-right: 15px !important;  /* Pulls the image safely away from the side panel gap */
        max-width: 180px !important;
    }
 }

main blockquote {
    padding-left: 30px;
    margin: 20px 0;
}

main blockquote p {
    text-indent: 0 !important;
    font-size: 1.05rem !important; /* 🌟 Locks quotes to original text size */
}

/* Mobile Readability & Contrast Tweaks */
@media (max-width: 599px) {
    /* Scale main text back down slightly for narrow phone displays */
    main p {
        font-size: 1.1rem;
    }

    /* Elevate quote contrast against the background */
    main blockquote p {
        font-size: 1.05rem !important;
        color: var(--primary-blue) !important; /* 🌟 High contrast dark blue */
        font-weight: 500;
    }

    main blockquote {
        border-left: 3px solid var(--primary-blue); /* 🌟 Visual anchor anchor */
        padding-left: 15px;
    }

/* 🌟 FORCE THE HOME LINK COLOR ON MOBILE */
    main + div style, 
    center a,
    div[style*="text-align: center"] a,
    #container > center > a {
        color: #010080 !important; /* Forces your exact header blue */
        text-decoration: none;
    }
}


.caption {
  margin: 20px 60px 20px 30px; 
  font-size: 15px;
  line-height: 1.35; 
}



}
/* ==========================================================================
   Dialogue Speaker Styles (Style7.css)
   ========================================================================== */

/* Core Dialogue Line Height (Shared across both) */
.dialogue-container {
    line-height: 1.5;
}

/* Speaker 1: Me (Prose Style) */
.speaker-me {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.2em; /* Independent size for your text */
    color: #111111;
}

/* Speaker 2: Kiki (Technical/Monospace Style) */
.speaker-kiki {
    font-family: 'Consolas', 'Monaco', 'Lucida Console', monospace;
    font-size: 1.2em; /* Independent size to match monospace scale */
    color: #222222;
}




