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

/* ── Colour tokens ── */
:root {
  --bg-page:      #0e0e0e;
  --bg-card:      #161616;
  --bg-tag:       #252525;
  --border:       #2a2a2a;
  --border-head:  #e0e0e0;
  --text-primary: #e8e8e8;
  --text-secondary:#999;
  --text-muted:   #666;
  --text-body:    #bbb;
  --link:         #6ab0f5;
  --shadow:       rgba(0, 0, 0, 0.5);
}

/* Light mode for users who prefer it */
@media (prefers-color-scheme: light) {
  :root {
    --bg-page:      #f5f5f5;
    --bg-card:      #fff;
    --bg-tag:       #f0f0f0;
    --border:       #eee;
    --border-head:  #111;
    --text-primary: #111;
    --text-secondary:#555;
    --text-muted:   #888;
    --text-body:    #444;
    --link:         #0066cc;
    --shadow:       rgba(0, 0, 0, 0.08);
  }
}

html {
  background: var(--bg-page);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: transparent;
  padding: 2rem 1rem;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('bg.svg') center / cover no-repeat;
  opacity: 0.09;
  pointer-events: none;
}

@media (prefers-color-scheme: light) {
  body::before {
    filter: invert(1);
    opacity: 0.06;
  }
}

.container {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px var(--shadow);
}

/* Header */
.header {
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--border-head);
  padding-bottom: 1.5rem;
}

.header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.header .title {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.contact {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact a {
  color: var(--link);
  text-decoration: none;
}

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

/* Sections */
section {
  margin-bottom: 2rem;
}

section h2 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

section p {
  color: var(--text-body);
}

/* Jobs */
.job {
  margin-bottom: 1.5rem;
}

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

.job-title {
  font-weight: 600;
  font-size: 1rem;
}

.job-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.job-company {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.job ul {
  padding-left: 1.25rem;
  color: var(--text-body);
  font-size: 0.95rem;
}

.job ul li {
  margin-bottom: 0.25rem;
}

.job-prose {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-top: 0.35rem;
  line-height: 1.65;
}

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

.tag {
  background: var(--bg-tag);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.25rem 0.65rem;
  font-size: 0.85rem;
  color: var(--text-body);
}

/* See-more link */
.see-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--link);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.see-more:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 1.75rem 1.25rem;
  }

  .header h1 {
    font-size: 1.75rem;
  }

  .job-header {
    flex-direction: column;
  }
}
