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

:root {
  --accent: #1e4a6d;
  --accent-light: #2d6a9e;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5a6a7a;
  --border: #dce1e6;
  --radius: 10px;
  --max-width: 800px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 2rem 1rem;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

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

a:hover {
  text-decoration: underline;
}

.page {
  max-width: var(--max-width);
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.header {
  background: var(--accent);
  color: #fff;
  padding: 2.5rem 2.5rem 2rem;
}

.header-inner {
  max-width: 600px;
}

.name {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.headline {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.contact {
  font-size: 0.875rem;
  opacity: 0.85;
}

.contact a {
  color: inherit;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.contact a:hover {
  opacity: 1;
  text-decoration: underline;
}

.sep {
  margin: 0 0.4rem;
  opacity: 0.5;
}

.main {
  padding: 2rem 2.5rem;
}

.section {
  margin-bottom: 2rem;
}

.section:last-child {
  margin-bottom: 0;
}

.section h2 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}

.about p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.skill-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .skill-groups {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .header {
    padding: 1.75rem 1.5rem 1.5rem;
  }

  .main {
    padding: 1.5rem;
  }

  .name {
    font-size: 1.75rem;
  }
}

.skill-group h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.skill-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tags li {
  background: #eef2f6;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
}

.timeline {
  display: flex;
  flex-direction: column;
}

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

.entry:first-child {
  padding-top: 0;
}

.entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
}

.role {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.org {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.dates {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}

.education p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.education strong {
  color: var(--text);
}

.footer {
  text-align: center;
  padding: 1.25rem 2.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.footer a {
  color: inherit;
}

@media print {
  body {
    background: #fff;
    padding: 0;
  }

  .page {
    box-shadow: none;
    border-radius: 0;
  }

  .header {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .skill-tags li {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .entry {
    break-inside: avoid;
  }
}
