/* ── SHARED STYLES ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --green-50: #EAF3DE;
  --green-100: #C0DD97;
  --green-200: #97C459;
  --green-400: #639922;
  --green-600: #3B6D11;
  --green-800: #27500A;
  --grey-50: #F1EFE8;
  --grey-100: #D3D1C7;
  --grey-200: #B4B2A9;
  --grey-400: #888780;
  --grey-600: #5F5E5A;
  --grey-800: #444441;
  --grey-900: #2C2C2A;
  --white: #ffffff;
  --off-white: #FAFAF7;
  --text-primary: #1a1a18;
  --text-secondary: #5F5E5A;
  --text-muted: #888780;
  --border: rgba(0,0,0,0.1);
  --border-light: rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; font-weight: 400; color: var(--text-primary); background: var(--off-white); line-height: 1.6; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,250,247,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 2rem; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { font-family: 'DM Serif Display', serif; font-size: 18px; color: var(--text-primary); text-decoration: none; }
.nav-links { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.nav-links a { font-size: 13px; font-weight: 400; color: var(--text-secondary); text-decoration: none; padding: 6px 12px; border-radius: 6px; transition: all 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--green-600); background: var(--green-50); }
.nav-hamburger { display: none; cursor: pointer; flex-direction: column; gap: 4px; }
.nav-hamburger span { width: 22px; height: 1.5px; background: var(--text-primary); }

/* ── LAYOUT ── */
.page-wrap { padding-top: 60px; min-height: 100vh; }
.container { max-width: 960px; margin: 0 auto; padding: 0 2rem; }

/* ── TYPOGRAPHY ── */
.page-header { padding: 4rem 0 3rem; border-bottom: 1px solid var(--border-light); }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-400); margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--green-400); }
.page-title { font-family: 'DM Serif Display', serif; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; max-width: 680px; margin-bottom: 1rem; }
.page-body { font-size: 16px; color: var(--text-secondary); line-height: 1.75; max-width: 640px; }
.section-label { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.25rem; }

/* ── CARDS ── */
.card { background: var(--white); border: 1px solid var(--border-light); border-radius: 12px; padding: 1.25rem 1.5rem; }
.card:hover { border-color: var(--green-100); }

/* ── TAGS ── */
.tag { font-size: 12px; padding: 5px 14px; border-radius: 20px; font-weight: 400; }
.tag-green { background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-100); }
.tag-grey { background: var(--grey-50); color: var(--grey-600); border: 1px solid var(--grey-100); }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── BADGES ── */
.badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 500; margin-left: 8px; vertical-align: middle; }
.badge-published { background: var(--green-50); color: var(--green-600); }
.badge-accepted { background: #DBEAFE; color: #1E40AF; }
.badge-review { background: #FEF3C7; color: #92400E; }
.badge-preprint { background: var(--grey-50); color: var(--grey-600); }

/* ── CONNECT BUTTONS ── */
.connect-btn { font-size: 13px; padding: 8px 20px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary); text-decoration: none; transition: all 0.2s; background: var(--white); display: inline-block; }
.connect-btn:hover { border-color: var(--green-400); color: var(--green-600); background: var(--green-50); }
.connect-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.25rem; }

/* ── DIVIDERS ── */
.section { padding: 3rem 0; border-bottom: 1px solid var(--border-light); }
.section:last-child { border-bottom: none; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border-light); padding: 2rem; text-align: center; font-size: 12px; color: var(--text-muted); background: var(--white); }
footer a { color: var(--green-400); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 60px; left: 0; right: 0; background: var(--off-white); border-bottom: 1px solid var(--border); padding: 1rem; gap: 4px; z-index: 99; }
  .nav-hamburger { display: flex; }
  .container { padding: 0 1rem; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.4s ease forwards; }
