:root {
  --ink: #1a1a1a;
  --muted: #5c6470;
  --accent: #2563eb;
  --rule: #e2e5ea;
  --bg: #ffffff;
  --max-width: 50rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 2.5rem 1.25rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

main,
.site-header,
.site-footer {
  max-width: var(--max-width);
  margin-inline: auto;
}

/* Header */
.site-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.site-header h1 {
  margin: 0;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0.25rem 0 1rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.contact {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

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

a:hover {
  text-decoration: underline;
}

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

h2 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 2px solid var(--rule);
  padding-bottom: 0.35rem;
  margin-bottom: 1.25rem;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
}

/* Job / project / school header rows */
.job,
.project,
.school {
  margin-bottom: 1.5rem;
}

.job-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0.4rem;
}

.location,
.stack {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.repo {
  margin-left: auto;
  font-size: 0.9rem;
}

ul {
  margin: 0;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35rem;
}

/* Skills */
.skills {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.25rem;
  margin: 0;
}

.skills dt {
  font-weight: 600;
}

.skills dd {
  margin: 0;
}

/* Visitor banner */
.visitor-banner {
  display: inline-block;
  margin: 1.25rem auto 0;
  padding: 0.4rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #f5f7fb;
  color: var(--muted);
  font-size: 0.9rem;
}

#visitor-count {
  font-weight: 600;
  color: var(--accent);
}

/* Small screens: stack the date under the title */
@media (max-width: 30rem) {
  .dates,
  .repo {
    margin-left: 0;
    flex-basis: 100%;
  }
}
