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

:root {
  --text: #1a1a2e;
  --text-light: #555;
  --accent: #3a6ea5;
  --accent-hover: #2c5a8a;
  --bg: #fafafa;
  --card-bg: #fff;
  --border: #e0e0e0;
  --tag-bg: #eef2f7;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

/* Header */

header {
  background: var(--text);
  color: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

header p.tagline {
  font-size: 1.1rem;
  color: #b0b8c8;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

header .contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

header .contact-links a {
  color: #b0b8c8;
  font-size: 0.9rem;
  transition: color 0.2s;
}

header .contact-links a:hover {
  color: #fff;
  text-decoration: none;
}

/* Main */

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* About */

.about {
  margin-bottom: 2.5rem;
}

.about h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.about p {
  color: var(--text-light);
  max-width: 700px;
}

/* Skills */

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 2.5rem;
}

.skill-tag {
  background: var(--tag-bg);
  color: var(--text);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Category sections */

.category {
  margin-bottom: 2rem;
}

.category h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.category > p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Article cards */

.articles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(58, 110, 165, 0.08);
}

.article-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.article-card h3 a {
  color: var(--text);
}

.article-card h3 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.article-card .meta {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Stats bar */

.stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.stat {
  text-align: center;
}

.stat .number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.stat .label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer */

footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-light);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* Responsive */

@media (max-width: 600px) {
  header { padding: 2rem 1rem; }
  header h1 { font-size: 1.6rem; }
  .stats { gap: 1.5rem; }
  .stat .number { font-size: 1.4rem; }
}
