/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy-900: #0c1a2e;
  --navy-800: #132844;
  --navy-700: #1a3556;
  --navy-600: #1e3f66;
  --navy-400: #4a7ab5;
  --navy-300: #7ba3cc;
  --navy-200: #a8c5de;
  --navy-100: #dce8f3;
  --navy-50:  #f0f4f9;
  --gold-700: #9a7b1a;
  --gold-600: #b8941f;
  --gold-400: #d4a93c;
  --gold-300: #e0c068;
  --gold-100: #faf0d4;
  --white:    #ffffff;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--navy-900);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== Header ===== */
header {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: .75rem; }
.logo-circle {
  width: 42px; height: 42px;
  background: var(--gold-400);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-900);
  font-family: var(--font-serif);
  font-weight: 700; font-size: .85rem;
}
.logo-text { font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem; letter-spacing: .03em; }
.logo-sub { color: var(--gold-300); font-size: .8rem; margin-left: .5rem; }

nav { display: flex; align-items: center; gap: 1.75rem; }
nav a {
  color: var(--navy-200);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  transition: color .2s;
}
nav a:hover,
nav a.nav-active { color: var(--gold-300); }

.menu-toggle { display: none; background: none; border: none; color: white; cursor: pointer; }
@media (max-width: 768px) {
  nav { display: none; }
  .menu-toggle { display: block; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy-900);
    padding: 1rem 1.5rem;
    gap: 1rem;
    border-top: 1px solid var(--navy-700);
  }
  .logo-sub { display: none; }
}

/* ===== Hero (Homepage) ===== */
.hero {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  color: var(--white);
  padding: 6rem 1.5rem;
  text-align: center;
}
.hero-inner { max-width: 800px; margin: 0 auto; }
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.hero h1 .accent { color: var(--gold-400); }
.hero p {
  font-size: 1.15rem;
  color: var(--navy-200);
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold-400);
  color: var(--navy-900);
  padding: .75rem 1.75rem;
  border-radius: .5rem;
  font-weight: 600;
  transition: background .2s;
}
.btn-primary:hover { background: var(--gold-300); }
.btn-outline {
  border: 1px solid var(--navy-400);
  color: var(--white);
  padding: .75rem 1.75rem;
  border-radius: .5rem;
  font-weight: 600;
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--gold-400); color: var(--gold-400); }

/* ===== Page Hero (Inner Pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  color: var(--white);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.page-hero-inner { max-width: 700px; margin: 0 auto; }
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.page-hero p {
  font-size: 1.05rem;
  color: var(--navy-200);
}

/* ===== Cards Grid (Homepage) ===== */
.cards {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  border: 1px solid var(--navy-100);
  border-radius: .75rem;
  padding: 2rem;
  transition: box-shadow .25s, border-color .25s;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); border-color: var(--gold-400); }
.card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.card h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .5rem;
  transition: color .2s;
}
.card:hover h2 { color: var(--gold-600); }
.card p { color: var(--navy-600); font-size: .875rem; }

/* ===== Recent Work (Homepage) ===== */
.recent { background: var(--navy-50); padding: 4rem 1.5rem; }
.recent-inner { max-width: 800px; margin: 0 auto; }
.recent h2 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
}
.work-item {
  background: var(--white);
  border: 1px solid var(--navy-100);
  border-radius: .5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  margin-bottom: 1.25rem;
}
.work-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; flex-wrap: wrap; }
.badge {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: .25rem .5rem;
  border-radius: .25rem;
}
.badge-paper { background: var(--navy-100); color: var(--navy-700); }
.badge-analysis { background: var(--gold-100); color: var(--gold-700); }
.badge-cat-const { background: #e8edf5; color: #2d4a7a; }
.badge-cat-intl { background: #e5f0e8; color: #2a6b3a; }
.badge-cat-polsci { background: #f0e8f5; color: #5a2d7a; }
.work-date { font-size: .8rem; color: var(--navy-400); }
.work-item h3,
.paper-card h2,
.news-card h2 { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; }

/* ===== Content Sections (Inner Pages) ===== */
.content-section {
  padding: 3rem 1.5rem;
  flex: 1;
}
.content-narrow {
  max-width: 800px;
  margin: 0 auto;
}

/* ===== About Page ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-main h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: .75rem;
  color: var(--navy-900);
}
.about-main h2:first-child { margin-top: 0; }
.about-main p {
  color: #374151;
  margin-bottom: 1rem;
}
.interest-list {
  list-style: none;
  padding: 0;
}
.interest-list li {
  padding: .75rem 0;
  border-bottom: 1px solid var(--navy-100);
  color: #374151;
  font-size: .95rem;
}
.interest-list li:last-child { border-bottom: none; }

.sidebar-card {
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  border-radius: .75rem;
  padding: 2rem;
  text-align: center;
}
.sidebar-avatar {
  width: 64px; height: 64px;
  background: var(--gold-400);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-900);
  font-family: var(--font-serif);
  font-weight: 700; font-size: 1.75rem;
  margin: 0 auto 1rem;
}
.sidebar-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: .25rem;
}
.sidebar-title {
  color: var(--navy-400);
  font-size: .85rem;
}
.sidebar-divider {
  height: 1px;
  background: var(--navy-100);
  margin: 1.25rem 0;
}
.sidebar-links { text-align: left; }
.sidebar-links h4 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--navy-400);
  margin-bottom: .5rem;
}
.sidebar-links ul {
  list-style: none;
  padding: 0;
}
.sidebar-links li {
  font-size: .875rem;
  padding: .3rem 0;
  color: #374151;
}

/* ===== Papers Page ===== */
.filter-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.filter-btn {
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  color: var(--navy-600);
  padding: .5rem 1rem;
  border-radius: 2rem;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover { border-color: var(--gold-400); color: var(--navy-900); }
.filter-btn.active {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

.paper-card, .news-card {
  border: 1px solid var(--navy-100);
  border-radius: .5rem;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  transition: border-color .2s, box-shadow .2s;
}
.paper-card:hover, .news-card:hover {
  border-color: var(--gold-400);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.paper-abstract, .news-excerpt {
  color: #4b5563;
  font-size: .9rem;
  margin-top: .75rem;
  line-height: 1.7;
}
.paper-tags {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.paper-tags span {
  background: var(--navy-50);
  color: var(--navy-600);
  font-size: .7rem;
  font-weight: 600;
  padding: .25rem .6rem;
  border-radius: 1rem;
}

/* ===== Content Protection ===== */
.protected-content {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ===== Search Page ===== */
.search-container { margin-bottom: 2rem; }
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--navy-400);
}
.search-box input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid var(--navy-100);
  border-radius: .75rem;
  font-size: 1.05rem;
  font-family: var(--font-sans);
  transition: border-color .2s;
  outline: none;
}
.search-box input:focus { border-color: var(--gold-400); }
.search-box input::placeholder { color: var(--navy-300); }
.search-hint {
  font-size: .8rem;
  color: var(--navy-400);
  margin-top: .75rem;
}

.search-results { }
.search-result {
  display: block;
  border: 1px solid var(--navy-100);
  border-radius: .5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.search-result:hover {
  border-color: var(--gold-400);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.search-result h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.search-result p {
  font-size: .85rem;
  color: #4b5563;
}
.no-results {
  text-align: center;
  color: var(--navy-400);
  padding: 2rem;
  font-size: .95rem;
}

/* ===== Footer ===== */
footer {
  background: var(--navy-900);
  color: var(--navy-300);
  padding: 2.5rem 1.5rem;
  margin-top: auto;
  text-align: center;
}
.footer-circle {
  width: 48px; height: 48px;
  background: var(--gold-400);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-900);
  font-family: var(--font-serif);
  font-weight: 700; font-size: 1rem;
  margin: 0 auto 1rem;
}
footer .copy { font-size: .85rem; margin-bottom: .25rem; }
footer .tagline { font-size: .75rem; color: var(--navy-400); }
