/* ── Reset & Variables ── */

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

:root {
  --text: #1a1a1a;
  --text-secondary: #6b6b6b;
  --border: #e5e5e5;
  --bg: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 720px;
}

/* ── Layout ── */

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: clamp(2rem, 8vw, 5rem) clamp(1rem, 5vw, 2rem);
}

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

/* ── Header ── */

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

header {
  margin-bottom: 2.5rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.contact a {
  color: var(--text-secondary);
  text-decoration: underline;
}

.contact a:hover {
  color: var(--text);
}

/* ── Sections ── */

.section {
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.about-text {
  font-size: 0.9375rem;
  max-width: 60ch;
}

/* ── Skills ── */

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skills span {
  font-size: 0.875rem;
  padding: 0.25rem 0.625rem;
  background: #f5f5f5;
  border-radius: 4px;
}

/* ── Experience ── */

.experience {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.125rem;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.entry-role {
  font-weight: 600;
  font-size: 0.9375rem;
}

.entry-dates {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.entry-company {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.entry-desc {
  font-size: 0.875rem;
  margin-top: 0.25rem;
  max-width: 60ch;
}

/* ── Education ── */

.education-entry {
  margin-bottom: 0.75rem;
}

.education-entry:last-child {
  margin-bottom: 0;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.edu-degree {
  font-weight: 600;
  font-size: 0.9375rem;
}

.edu-dates {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.edu-school {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ── Footer ── */

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

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

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

/* ── Print ── */

@media print {
  body {
    padding: 1rem;
  }

  .contact a::after {
    content: none;
  }
}
