/* If you prefer, you can also @import the font here as a fallback:*/
@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&display=swap");

/* ===== Accent Color Palette ===== */
:root {
    --accent: #e8736c;          /* salmon */
    --accent-light: #fde8e6;    /* light salmon tint */
    --accent-dark: #cf5c55;
    --warm: #f08c7a;            /* warm salmon highlight */
    --warm-light: #fef0ed;
    --surface: #fefafa;         /* subtle salmon-tinted background */
}

/* Make sure our font wins over theme defaults */
html,
body,
.page,
.page__content {
    font-family: 'Lora', Georgia, 'Times New Roman', serif !important;
    font-weight: 400;
    line-height: 1.6;
    font-size: 14px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.archive__item-title,
.page__title {
    font-family: 'Lora', Georgia, serif !important;
    font-weight: 600;
}


/* ===== Featured Paper Card Grid ===== */
.paper-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 10px 0 24px;
}

.paper-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border: 2px solid #f5dbd9;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform .06s ease, box-shadow .12s ease, border-color .12s ease;
    min-height: 200px;
    height: 200px;
}

.paper-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(232, 115, 108, 0.12);
    border-color: #e8a8a4;
}

.pc-thumb {
    width: 280px;
    min-width: 280px;
    background: #f2f3f5;
    overflow: hidden;
}

.pc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Stack vertically on small screens */
@media (max-width: 600px) {
    .paper-card {
        flex-direction: column;
        min-height: auto;
    }
    .paper-card {
        height: auto;
    }
    .pc-thumb {
        width: 100%;
        min-width: 100%;
        aspect-ratio: 16 / 9;
    }
}

.pc-thumb-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 42px;
    color: #9aa0a6;
}

.pc-body {
    padding: 12px 14px 14px;
}

.pc-venue {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 6px;
}

.pc-title {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 6px;
    color: #000000;
    font-size: 1.1rem;
}

.pc-authors {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.pc-excerpt {
    color: #374151;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.pc-tags {
    display: flex;
    gap: 8px;
}

.pc-tag {
    display: inline-block;
    border: 1px solid #e5e7eb;
    background: #fafafa;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.8rem;
    color: #6b7280;
}

/* optional: tighten section spacing */
.news-list {
    margin-left: 0;
    padding-left: 1.1em;
}

/* ================================================= */
/* CORRECTED: Targets an <a> tag that IS a .paper-card */
/* ================================================= */
a.paper-card,
a.paper-card:hover {
    text-decoration: none !important;
}

/* Make the title text white and prominent */
.dark .pc-title {
    color: #000000;
}

/* ===== About Header: Photo Right Float ===== */
.about-header {
    display: flex;
    flex-direction: row-reverse;
    gap: 30px;
    margin-bottom: 24px;
}

.about-photo {
    flex-shrink: 0;
    width: 220px;
    text-align: center;
}

.about-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ddd;
}

.about-name {
    font-family: 'Lora', Georgia, serif !important;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 10px;
}

.about-bio {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 4px;
}

.about-links {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.about-links a {
    color: #374151;
    font-size: 1.2rem;
    transition: color 0.15s ease;
    text-decoration: none;
}

.about-links a:hover {
    color: #1155cc;
}

.about-text {
    flex: 1;
    text-align: justify;
}

@media (max-width: 600px) {
    .about-header {
        flex-direction: column;
        align-items: center;
    }
    .about-photo {
        width: 100%;
    }
}

/* ===== Section Headers with Accent Underline ===== */
.page__content h2 {
    border-bottom: 3px solid var(--accent);
    padding-bottom: 8px;
    margin-top: 36px;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== Colorful News Items ===== */
.news-compact {
    list-style: none;
    padding-left: 0;
}

.news-compact li {
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 8px;
    background: var(--surface);
    border-left: 4px solid var(--accent);
    transition: background 0.15s ease;
}

.news-compact li:hover {
    background: var(--accent-light);
}

.news-date {
    font-weight: 700;
    color: var(--accent);
    margin-right: 8px;
    font-size: 0.9rem;
}

.news-text {
    color: #374151;
}

.news-text a {
    color: var(--accent-dark);
    font-weight: 600;
}

/* ===== Colorful Paper Cards ===== */
.paper-card {
    border-left: 5px solid var(--accent) !important;
}

.paper-card:hover {
    border-left-color: var(--warm) !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.pc-venue {
    color: var(--accent) !important;
    font-weight: 600;
}

.pc-tag {
    border-color: #f5d5d3 !important;
    background: #fef0ee !important;
    color: var(--accent-dark) !important;
    font-weight: 500;
}

/* ===== Profile Photo ===== */
.about-photo img {
    border: 3px solid #ddd !important;
    box-shadow: none;
}

.about-links a:hover {
    color: var(--accent) !important;
}

/* ===== Masthead Nav Accent ===== */
.greedy-nav a:hover {
    color: var(--accent) !important;
}

.greedy-nav .visible-links a:hover::after {
    content: '';
    display: block;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* ===== Subtle page background ===== */
.page__content {
    background: transparent;
}

/* ===== Blog card accent ===== */
.paper-grid .paper-card:only-child,
.paper-grid .paper-card:first-child {
    border-left-color: var(--warm) !important;
}