:root {
    /* Light mode colors - Paper theme */
    --paper: #FAFAFA;
    --ink: #ffffff;
    --gray: #6B7280;
    --light-gray: #444;
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --border-color: #e5e2dd;
    --card-border: #e5e2dd;
    --card-border-hover: #1a1a1a;
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;

    --color-book-cloth:#cc785c;
    --color-cactus:#bcd1ca;
    --color-clay:#d97757;
    --color-cloud-dark:#87867f;
    --color-cloud-light:#d1cfc5;
    --color-cloud-medium:#b0aea5;
    --color-coral:#ebcece;
    --color-dark:#0f0f0e;
    --color-fig:#c46686;
    --color-heather:#cbcadb;
    --color-ivory-dark:#e8e6dc;
    --color-ivory-light:#faf9f5;
    --color-ivory-medium:#f0eee6;
    --color-kraft:#d4a27f;
    --color-light:#fff;
    --color-manilla:#ebdbbc;
    --color-manilla-light:#f1e6d0;
    --color-oat:#e3dacc;
    --color-olive:#788c5d;
    --color-sky:#6a9bcc;
    --color-slate-dark:#141413;
    --color-slate-light:#5e5d59;
    --color-slate-medium:#3d3d3a;
}

[data-theme="dark"] {
    /* Dark mode colors */
    --paper: #0a0a0a;
    --text-primary: #e8e6dc;
    --text-secondary: #9ca3af;
    --border-color: #444;
    --card-border: #374151;
    --card-border-hover: #fff;
    --accent-blue: #60a5fa;
    --accent-blue-hover: #93c5fd;
}

 body {
    background-color: var(--paper);
    color: var(--text-primary);
    font-family: "Inter", sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
 }

 html {
    scroll-behavior: smooth;
 }

 .container {
    max-width: 768px;
    width: 100%;
    padding: 2rem;
 }

 header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    min-height: 3rem;
 }

 header .logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
 }

 .theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
    position: relative;
 }

 .theme-toggle:hover {
    transform: scale(1.1);
 }

 .theme-toggle i {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
 }

 .theme-toggle .fa-sun {
    opacity: 1;
    transform: rotate(0deg);
 }

 .theme-toggle .fa-moon {
    opacity: 0;
    transform: rotate(180deg);
 }

 [data-theme="dark"] .theme-toggle .fa-sun {
    opacity: 0;
    transform: rotate(180deg);
 }

 [data-theme="dark"] .theme-toggle .fa-moon {
    opacity: 1;
    transform: rotate(0deg);
 }

 .header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
 }

 .header-divider {
    width: 1px;
    height: 1.5rem;
    background-color: var(--border-color);
 }

.mission-statement {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-bottom: 1rem;
    text-align: left;
 }

main {
    display: block;
}

.content-area {
    width: 100%;
}
 .content-area h1 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
 }

.filters {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0rem;
    padding-bottom: 0rem;
    gap: 1rem;
}

 .filters .tabs a {
    color: var(--gray);
    text-decoration: none;
    padding-bottom: 1rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
 }

 .filters .tabs a:hover {
    color: var(--text-primary);
 }

 .filters .tabs a.active {
    color: var(--text-primary);
    border-bottom: 2px solid transparent;
 }

 .tabs::-webkit-scrollbar {
    display: none;
 }
 .tabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
 }


 @media (max-width: 768px) {
    .mission-statement h1 {
        font-size: 1.5rem;
    }
 }

 .featured-banners {
    margin-bottom: 3rem;
    padding: 2rem 0;
 }

 .featured-card {
    border-radius: 12px;
    display: block;
    height: clamp(18rem, 25vw, 24rem);
    position: relative;
    transition: all .3s cubic-bezier(.165,.84,.44,1);
    overflow: hidden;
    color: var(--text-primary);
    text-decoration: none;
 }

 .featured-card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: absolute;
    transition: transform .3s cubic-bezier(.165,.84,.44,1);
 }

 .featured-card:hover img {
    transform: scale(1.1);
 }

 .featured-card .text-container {
    bottom: 0;
    left: 0;
    padding: 24px;
    position: absolute;
    right: 0;
 }

.featured-card .category-label {
    font-size: 0.875rem;
    font-weight: 500;
 }

.featured-card h3 {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    line-height: 1.3;
}

.font-styrene {
    font-family: "Inter", system-ui, sans-serif;
}

.publication-card {
    position: relative;
}

.publication-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    width: 4px;
    height: 55%;
    background: var(--accent-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 2px;
}

.publication-card:hover::before {
    opacity: 1;
}

.featured-title {
    color: white;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75) !important;
}

.line-height-relaxed {
    line-height: 1.75;
}

.icon-small {
    width: 20px;
    height: 20px;
}

.bg-book-cloth {
    background-color: var(--color-book-cloth);
}

.bg-cloud-light {
    background-color: var(--color-cloud-light);
}

.bg-manilla {
    background-color: var(--color-manilla);
}

.bg-sky {
    background-color: var(--color-sky);
}

/* Article card layout classes */
.article-container {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem 1rem;
}

@media (min-width: 768px) {
    .article-container {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.article-category {
    grid-column: span 1 / span 1;
    order: 1;
}

@media (min-width: 768px) {
    .article-category {
        order: 0;
    }
}

.article-title-cell {
    grid-column: span 1 / span 1;
    order: 3;
}

@media (min-width: 768px) {
    .article-title-cell {
        grid-column: span 4 / span 4;
        order: 0;
    }
}

.article-date {
    grid-column: span 1 / span 1;
    order: 2;
}

@media (min-width: 768px) {
    .article-date {
        order: 0;
    }
}

.article-description {
    grid-column: span 1 / span 1;
    order: 4;
}

@media (min-width: 768px) {
    .article-description {
        grid-column: span 4 / span 4;
        order: 0;
    }
}

.category-label {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.875rem;
    color: var(--text-primary);
    text-transform: capitalize;
    display: block;
}

.date-label {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: block;
}

.article-title {
    font-size: 1rem;
    font-family: "Inter", system-ui, sans-serif;
    color: var(--text-primary);
}

.article-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.publication-card {
    border-bottom: 1px solid var(--card-border);
    transition: border-color 0.3s ease;
}

.publication-card:hover {
    border-color: var(--card-border-hover);
}

.contact-button {
    background-color: var(--paper);
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.contact-button:hover {
    background-color: var(--text-primary);
    color: var(--paper);
}

/* Link styling */
a {
    color: var(--accent-blue);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-blue-hover);
}

/* Featured card link styling - override for cards */
.featured-card,
.publication-card a,
.publication-card {
    color: var(--text-primary);
}

/* Mission statement styling */
.mission-statement h2 {
    color: var(--text-primary);
    font-weight: 600;
}

/* Article hover effect refinement */
.publication-card:hover .article-title {
    color: var(--accent-blue);
}
