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

:root {
  --primary: #1a365d;
  --primary-light: #2c5282;
  --accent: #4299e1;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #fff;
  --bg-alt: #f7fafc;
  --border: #e2e8f0;
  --max-width: 860px;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--primary);
  padding: 0;
  margin-bottom: 50px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.site-title {
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: white;
  border-bottom-color: var(--accent);
}

.site-nav a.active {
  color: white;
  border-bottom-color: white;
}

/* Content */
.site-content {
  min-height: calc(100vh - 280px);
  padding-bottom: 80px;
}

h1 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 + p,
h1 + hr {
  margin-top: 1.5rem;
}

h2 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  color: var(--primary);
  letter-spacing: -0.01em;
}

h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.6rem;
}

strong {
  font-weight: 600;
  color: var(--text);
}

em {
  font-style: italic;
}

/* News items styling */
.site-content > .container > p {
  position: relative;
  padding-left: 0;
}

.site-content > .container > p > strong:first-child {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Cards for People page */
h3 + p {
  margin-top: 0.5rem;
}

/* Blockquotes */
blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  font-style: italic;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Code */
code {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.9em;
  background: var(--bg-alt);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

/* Footer */
.site-footer {
  background: var(--primary);
  padding: 40px 0;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 8px 0;
}

.site-footer a {
  color: rgba(255,255,255,0.8);
  border-bottom-color: rgba(255,255,255,0.3);
}

.site-footer a:hover {
  color: white;
  border-bottom-color: white;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .site-header .container {
    flex-direction: column;
    text-align: center;
  }

  .site-nav {
    justify-content: center;
    gap: 20px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .container {
    padding: 0 16px;
  }
}

/* Print styles */
@media print {
  .site-header,
  .site-footer {
    display: none;
  }

  body {
    font-size: 12pt;
  }

  a {
    border-bottom: none;
  }
}
