/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1e3a5f;
  --navy-light: #2a5080;
  --gold: #c9a84c;
  --gold-light: #e2c068;
  --bg: #f7f8fa;
  --bg-card: #ffffff;
  --text: #2c2c2c;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --max-width: 1100px;
  --article-width: 760px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--navy);
}

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

/* Nav */
.site-nav {
  background: var(--navy);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--gold);
}

.nav-links { display: flex; gap: 2rem; }

.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  text-transform: uppercase;
}

.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2a47 60%, #1a1a3e 100%);
  color: #fff;
  padding: 5rem 2rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: #fff;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.hero-tagline {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 2rem;
  border-radius: 2px;
}

/* Articles Section */
.articles-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(30,58,95,0.13);
}

.card-accent {
  height: 5px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
}

.card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }

.card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
  line-height: 1.35;
  color: var(--navy);
}

.card-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.5rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  transition: gap 0.2s, color 0.2s;
  margin-top: auto;
}

.card-link::after { content: '→'; transition: transform 0.2s; }
.card-link:hover { color: var(--gold); }
.card-link:hover::after { transform: translateX(4px); }

/* Article Page */
.article-page {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb a { color: var(--navy); font-weight: 500; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--border); }

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.article-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.article-header h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 0;
}

.article-body h2 {
  font-size: 1.45rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--gold);
}

.article-body p { margin-bottom: 1.4rem; }

/* Article images */
.article-figure {
  margin: 2rem 0;
  text-align: center;
}

.article-figure img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.article-figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

.article-figure figcaption a {
  color: var(--text-muted);
  text-decoration: underline;
}

.article-figure figcaption a:hover {
  color: var(--navy);
}

.references {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.references h2 {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  border-left: none;
  padding-left: 0;
  color: var(--navy);
}

.references p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.6;
  padding-left: 1.5rem;
  text-indent: -1.5rem;
}

.author-credit {
  margin-top: 2.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 3rem;
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--navy);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.back-link::before { content: '←'; }
.back-link:hover { background: var(--navy); color: #fff; }

/* Footer */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.88rem;
}

footer a { color: var(--gold); }
footer a:hover { color: var(--gold-light); }

/* Responsive */
@media (max-width: 640px) {
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .articles-section { padding: 2.5rem 1.25rem; }
  .article-page { padding: 2rem 1.25rem 4rem; }
  .articles-grid { grid-template-columns: 1fr; }
}
