:root {
  --ink: #0a0a0f; --cream: #f5f0e8; --gold: #c9a84c;
  --gold-light: #e8c97a; --teal: #1a6b6b; --teal-light: #2a9090;
  --border: rgba(201,168,76,0.25);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--ink); color: var(--cream); }
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 4rem; background: rgba(10,10,15,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-logo { font-family:  sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--gold); text-decoration: none; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--cream); opacity: 0.75; font-size: 0.9rem; text-decoration: none; font-weight: 400; transition: opacity 0.2s, color 0.2s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--gold); }
.nav-cta { background: var(--gold); color: var(--ink) !important; padding: 0.55rem 1.4rem; border-radius: 2px; font-weight: 500; opacity: 1 !important; }

.page-hero { padding: 10rem 4rem 5rem; background: linear-gradient(180deg, rgba(26,107,107,0.1) 0%, transparent 100%); border-bottom: 1px solid var(--border); text-align: center; }
.page-tag { display: inline-block; font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--border); padding: 0.4rem 1rem; border-radius: 20px; margin-bottom: 1.5rem; }
.page-title { font-family:  sans-serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; color: var(--cream); margin-bottom: 1.5rem; line-height: 1.1; }
.page-title span { color: var(--gold); }
.page-desc { font-size: 1.1rem; color: rgba(245,240,232,0.65); line-height: 1.8; max-width: 640px; margin: 0 auto; }

.pub-stats { display: flex; justify-content: center; gap: 4rem; margin-top: 3rem; flex-wrap: wrap; }
.pub-stat { text-align: center; }
.pub-stat-num { font-family:  sans-serif; font-size: 2.5rem; font-weight: 800; color: var(--gold); }
.pub-stat-label { font-size: 0.85rem; color: rgba(245,240,232,0.55); margin-top: 0.25rem; }

section { padding: 5rem 4rem; }
.section-inner { max-width: 1000px; margin: auto; }
.section-tag { display: inline-block; font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--border); padding: 0.4rem 1rem; border-radius: 20px; margin-bottom: 1.5rem; }
.section-title { font-family:  sans-serif; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; color: var(--cream); line-height: 1.2; margin-bottom: 2.5rem; }

/* FILTER TABS */
.filter-tabs { display: flex; gap: 0.75rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.filter-tab {
  padding: 0.55rem 1.25rem; border-radius: 3px; cursor: pointer;
  font-size: 0.85rem; font-weight: 500; font-family:  sans-serif;
  border: 1px solid var(--border); color: rgba(245,240,232,0.65);
  background: transparent; transition: all 0.2s;
}
.filter-tab:hover { border-color: var(--gold); color: var(--gold); }
.filter-tab.active { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* PUB CARDS */
.pub-list { display: flex; flex-direction: column; gap: 1.5rem; }
.pub-card {
  background: rgba(245,240,232,0.03);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 2rem 2.5rem; position: relative;
  transition: all 0.3s;
}
.pub-card:hover { background: rgba(201,168,76,0.05); border-color: rgba(201,168,76,0.4); transform: translateX(4px); }
.pub-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px 0 0 3px; }
.pub-card.first::before { background: var(--gold); }
.pub-card.second::before { background: var(--teal-light); }
.pub-meta { display: flex; gap: 1rem; align-items: center; margin-bottom: 0.75rem; flex-wrap: wrap; }
.pub-type { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 2px; }
.pub-type.first { background: rgba(201,168,76,0.15); color: var(--gold); }
.pub-type.second { background: rgba(42,144,144,0.15); color: var(--teal-light); }
.pub-year { font-size: 0.8rem; color: rgba(245,240,232,0.45); }
.pub-title { font-family:  sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--cream); margin-bottom: 0.75rem; line-height: 1.45; }
.pub-authors { font-size: 0.88rem; color: rgba(245,240,232,0.6); line-height: 1.6; margin-bottom: 0.5rem; font-style: italic; }
.pub-authors strong { color: var(--gold-light); font-style: normal; }
.pub-venue { font-size: 0.85rem; color: var(--teal-light); font-weight: 500; }

/* HIDDEN CLASS */
.pub-card.hidden { display: none; }

footer { background: rgba(245,240,232,0.03); border-top: 1px solid var(--border); padding: 3rem 4rem; }
.footer-inner { max-width: 1000px; margin: auto; display: flex; justify-content: space-between; align-items: center; }
.footer-logo { font-family:  sans-serif; font-weight: 800; color: var(--gold); font-size: 1rem; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: rgba(245,240,232,0.5); font-size: 0.9rem; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { color: rgba(245,240,232,0.35); font-size: 0.85rem; }

@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; } .nav-links { display: none; }
  .page-hero { padding: 8rem 1.5rem 3rem; }
  section { padding: 3rem 1.5rem; }
  .pub-card { padding: 1.5rem; }
  footer { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .pub-stats { gap: 2rem; }
}
