/* =========================
   Pro Article & Aggregator Styles (cardified)
   ========================= */

/* --- Base & Layout --- */
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #111111; /* primary text */
    line-height: 1.75;
    margin: 28px;
    background: #ffffff; /* keep page background white */

    max-width: 800px;
    margin-left: auto;
    margin-right: auto;

    /* Card look */
    padding: 2rem; /* inner padding like a CardContent */
    border-radius: 1rem; /* rounded-2xl */
    border: 1px solid #e5e7eb; /* gray-200 border like a card */
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); /* subtle shadow */
}

/* --- Headings --- */
h1, h2, h3, h4 {
    font-weight: 700;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    color: #111111;
    line-height: 1.25;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; border-bottom: 2px solid #e5e7eb; padding-bottom: 6px; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

h1:first-of-type {
    margin-top: 0;
}

/* Make h6 like normal text */
h6 {
    font-weight: 400;       /* normal weight like p */
    font-size: 1.05rem;     /* match paragraph font size */
    line-height: 1.75;      /* match body/paragraph line-height */
    margin: 0 0 1.3em 0;    /* same bottom margin as p */
    color: #6b7280;         /* same muted text color as p */
}

/* --- Paragraphs --- */
p {
    margin-bottom: 1.3em;
    font-size: 1.05rem;
    color: #6b7280; /* muted text */
}

/* --- Links --- */
a {
    color: #4f46e5; /* indigo-600 */
    text-decoration: underline;
    transition: color 0.2s ease;
}

a:hover {
    color: #4338ca; /* indigo-700 */
}

/* --- Lists --- */
ul, ol {
    margin: 1em 0 1.3em 1.5em;
    padding: 0;
}

ul li, ol li {
    margin-bottom: 0.6em;
}

/* --- Aggregator List --- */
.articles-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.articles-list li {
    margin: 14px 0;
}

.article-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.2s;
}

.article-title:hover {
    color: #4338ca;
}

/* --- Pagination --- */
.pagination {
    margin-top: 30px;
    font-size: 0.95rem;
    color: #6b7280;
    text-align: center;
}

.pagination a {
    display: inline-block;
    margin: 0 8px;
    padding: 6px 12px;
    background: #f9fafb;
    color: #4f46e5;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.pagination a:hover {
    background: #4f46e5;
    color: #ffffff;
}

/* --- Blockquotes --- */
blockquote {
    margin: 1.8em 0;
    padding: 12px 18px;
    border-left: 4px solid #4f46e5;
    background: #f9fafb;
    color: #6b7280;
    font-style: italic;
}

/* --- Code --- */
code {
    background: #f3f4f6;
    padding: 3px 6px;
    font-family: "Courier New", monospace;
    font-size: 0.95em;
    border-radius: 4px;
}

/* --- Images --- */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.4em 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    body { 
        margin: 16px;
        padding: 1.5rem; /* adjust card padding on mobile */
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
}