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

:root {
  --bg: #111;
  --surface: #1a1a1a;
  --text: #e0e0e0;
  --text-dimmed: #888;
  --accent: #7eb8da;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
}

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

main {
  max-width: 560px;
  width: 100%;
}

header {
  margin-bottom: 2.5rem;
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.role {
  font-size: 1.05rem;
  color: var(--text-dimmed);
}

.dimmed {
  color: var(--text-dimmed);
}

h2 {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dimmed);
  margin-bottom: 0.75rem;
}

section {
  margin-bottom: 2rem;
}

.about p {
  font-size: 1.05rem;
  color: var(--text);
}

.experience ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.experience ol:not(.expanded) li:nth-child(n+4) {
  display: none;
}

.experience li:nth-child(3) { opacity: 0.82; }
.experience ol.expanded li:nth-child(4) { opacity: 0.64; }
.experience ol.expanded li:nth-child(5) { opacity: 0.48; }
.experience ol.expanded li:nth-child(6) { opacity: 0.34; }
.experience ol.expanded li:nth-child(7) { opacity: 0.22; }
.experience ol.expanded li:nth-child(8) { opacity: 0.14; }

.expand-btn {
  background: none;
  border: none;
  color: var(--text-dimmed);
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 1rem;
  padding: 0;
  transition: color 0.15s;
}

.expand-btn:hover {
  color: var(--accent);
}

.experience .date {
  font-size: 0.8rem;
  color: var(--text-dimmed);
}

.experience strong {
  font-size: 1rem;
  font-weight: 500;
}

.experience .company {
  font-size: 0.9rem;
  color: var(--accent);
}

.tech ul {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tech li {
  background: var(--surface);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--accent);
}

.links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.15s;
}

.links a:hover {
  opacity: 0.7;
}

@media print {
  :root {
    --bg: #fff;
    --text: #111;
    --text-dimmed: #555;
    --accent: #333;
    --surface: #eee;
  }

  body {
    padding: 0;
    min-height: auto;
  }

  .experience li {
    display: flex !important;
    opacity: 1 !important;
  }

  .expand-btn {
    display: none;
  }

  .links a::after {
    content: " (" attr(href) ")";
    font-size: 0.8rem;
    color: var(--text-dimmed);
  }
}
