/* ============================================
   ANKUR SEN — SHARED STYLESHEET
   Used by: index.html, articles/index.html,
            articles/*.html
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0D1F3C;
  --navy-mid: #1A3358;
  --steel: #2E4A70;
  --gold: #C9913A;
  --gold-light: #E8B86A;
  --cream: #F8F5F0;
  --cream-dark: #EDE8E0;
  --text-main: #1A1A2E;
  --text-muted: #5A6070;
  --text-light: #8A9098;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--cream); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,31,60,0.97); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4rem; height: 64px;
  border-bottom: 1px solid rgba(201,145,58,0.25);
}
.nav-brand { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav-logo { font-family: var(--serif); font-size: 1.3rem; color: var(--cream); letter-spacing: 0.02em; }
.nav-logo span { color: var(--gold); }
nav ul { list-style: none; display: flex; gap: 2rem; }
nav ul a { color: rgba(248,245,240,0.7); text-decoration: none; font-size: 0.85rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
nav ul a:hover, nav ul a.active { color: var(--gold); }

/* BUTTONS */
.btn-primary { background: var(--gold); color: var(--navy); padding: 12px 28px; border: none; cursor: pointer; font-family: var(--sans); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 2px; transition: background 0.2s, transform 0.15s; text-decoration: none; display: inline-block; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--cream); padding: 12px 28px; border: 1px solid rgba(248,245,240,0.3); cursor: pointer; font-family: var(--sans); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 2px; transition: border-color 0.2s, color 0.2s, transform 0.15s; text-decoration: none; display: inline-block; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

/* SECTION COMMONS */
section { padding: 6rem; }
.section-label { font-size: 0.7rem; font-weight: 500; color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.75rem; }
.section-label::after { content: ''; flex: 0 0 40px; height: 1px; background: var(--gold); opacity: 0.5; }
.section-title { font-family: var(--serif); font-size: 2.8rem; line-height: 1.1; color: var(--navy); margin-bottom: 1.5rem; }
.section-intro { font-size: 1.05rem; color: var(--text-muted); max-width: 640px; line-height: 1.8; }

/* ARTICLE CARDS (shared between homepage preview + articles/index.html) */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.article-card { background: white; border: 1px solid var(--cream-dark); border-radius: 4px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; text-decoration: none; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.09); }
.article-card-top { background: var(--navy); padding: 1.5rem; min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; }
.article-tag { display: inline-block; background: rgba(201,145,58,0.2); border: 1px solid rgba(201,145,58,0.35); color: var(--gold-light); font-size: 0.65rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: 2px; margin-bottom: 0.75rem; align-self: flex-start; }
.article-card-title { font-family: var(--serif); font-size: 1.1rem; color: var(--cream); line-height: 1.3; }
.article-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.article-excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.article-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: var(--text-light); border-top: 1px solid var(--cream-dark); padding-top: 0.75rem; }
.article-read-more { color: var(--gold); font-weight: 500; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 4px; transition: gap 0.2s; }
.article-card:hover .article-read-more { gap: 8px; }

/* FOOTER */
footer { background: #060E1E; padding: 2rem 6rem; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(201,145,58,0.1); }
footer p { font-size: 0.8rem; color: rgba(248,245,240,0.25); }
.footer-logo { font-family: var(--serif); color: var(--gold); font-size: 1.1rem; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  nav ul { gap: 1rem; }
  section { padding: 4rem 1.5rem; }
  .articles-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 0.5rem; padding: 1.5rem; }
}
