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

:root {
  --primary: #4a6fa5;
  --primary-light: #6b8cba;
  --accent: #7da7d9;
  --text: #374151;
  --text-light: #6b7280;
  --bg: #fff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --max-width: 720px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  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(--bg);
  padding: 0;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

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

.site-title {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-title:hover {
  color: var(--primary-light);
}

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

.site-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  border-bottom: none;
}

.site-nav a:hover {
  color: var(--primary);
}

.site-nav a.active {
  color: var(--primary);
}

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

.site-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin: 1.5rem 0 0.4rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

p {
  margin-bottom: 0.75rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

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

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

li {
  margin-bottom: 0.35rem;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

/* News items styling */
.site-content > .container > p > strong:first-child {
  color: var(--primary);
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

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

.site-footer a {
  color: var(--text-light);
}

.site-footer a:hover {
  color: var(--primary);
}

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

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

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

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  .container {
    padding: 0 16px;
  }
}

/* Profile two-column layout */
.profile {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 1rem;
}

.profile-photo {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.profile-photo-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 600px) {
  .profile {
    grid-template-columns: 1fr;
  }

  .profile-photo,
  .profile-photo-placeholder {
    max-width: 320px;
  }
}

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

  body {
    font-size: 11pt;
  }
}
