:root {
  --accent: #2b6cb0;
  --accent-dark: #1a4f8a;
  --accent-soft: #ebf0f7;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
}

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

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

.site-main {
  flex: 1;
  padding: 3rem 0 4rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.25rem 0;
}

/* Hero */
.hero {
  text-align: center;
  padding-bottom: 2rem;
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-soft);
  margin-bottom: 1rem;
}

.hero-name {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 600;
}

.hero-role {
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Sections */
.section {
  margin-top: 2.5rem;
}

.section h2,
.page h1 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Tags */
.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.85rem;
}

/* Cards */
.card-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}

.card-title:hover {
  color: var(--accent);
}

.card-desc {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Entries and pages */
.entry-header {
  margin-bottom: 1.25rem;
}

.entry-date {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.page-body p {
  margin-bottom: 1rem;
}

.page-body h2 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
}

.plain-list {
  list-style: none;
}

.education-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.education-degree {
  font-weight: 600;
  font-size: 1.05rem;
}

.education-meta {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.education-detail {
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

.detail-label {
  display: inline-block;
  min-width: 6.5em;
  font-weight: 600;
  color: var(--accent-dark);
}

/* Contact page */
.lead {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

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

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(43, 108, 176, 0.15);
  color: var(--text);
}

.contact-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

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

.contact-value {
  font-weight: 600;
  word-break: break-word;
}

.muted {
  color: var(--muted);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
}

.btn:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* Mobile */
@media (max-width: 640px) {
  .site-main {
    padding: 2rem 0 3rem;
  }

  .header-inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-name {
    font-size: 1.8rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}
