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

:root {
  --bg: #0f0f0f;
  --fg: #e8e8e8;
  --muted: #888;
  --accent: #a78bfa;
  --border: #222;
  --max-width: 680px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.65;
  padding: 4rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Typography */
h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

h2 {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

p {
  color: var(--fg);
  margin-bottom: 0.75rem;
}

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

a:hover {
  text-decoration: underline;
}

/* Intro block */
.intro .title {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.intro .bio {
  font-size: 0.95rem;
  color: #bbb;
  max-width: 520px;
}

/* Entry (job, project) */
.entry {
  margin-bottom: 1.75rem;
}

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

.entry-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.entry-meta {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.entry-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.entry ul {
  list-style: none;
  padding: 0;
}

.entry ul li {
  font-size: 0.875rem;
  color: #aaa;
  padding: 0.15rem 0;
  padding-left: 1rem;
  position: relative;
}

.entry ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* Links section */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.5rem;
}

.links a {
  font-size: 0.875rem;
}

/* GitHub chart */
#gh-chart {
  width: 100%;
  height: auto;
  opacity: 0.85;
}

/* Footer */
footer {
  margin-top: 5rem;
  font-size: 0.75rem;
  color: var(--border);
}
