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

:root {
  --bg: #f5f3ee;
  --ink: #1a1a1a;
  --ink-muted: #5a5750;
  --accent: #2a5caa;
  --rule: #d4cfc5;
  --tag-bg: #e8e4dd;
  --tag-border: #c8c3b8;
}

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

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  padding: 3rem 1.5rem 5rem;
}

.page {
  max-width: 780px;
  margin: 0 auto;
}

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  padding-bottom: 2.5rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 3rem;
}

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

.name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: normal;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.header-meta {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-align: right;
  line-height: 1.5;
}

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

.header-meta a:hover {
  text-decoration: underline;
}

.title-line {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.6rem;
}

/* ── Section structure ───────────────────────────────────── */

.section {
  margin-bottom: 3.5rem;
}

.section-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  font-weight: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ── About ───────────────────────────────────────────────── */

.about-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  max-width: 68ch;
}

/* ── Experience ──────────────────────────────────────────── */

.role {
  margin-bottom: 2.75rem;
}

.role:last-child {
  margin-bottom: 0;
}

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

.role-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  font-weight: normal;
}

.role-dates {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

.role-company {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.role-bullets {
  list-style: none;
  padding: 0;
}

.role-bullets li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.role-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--rule);
  font-family: 'Courier New', Courier, monospace;
}

.role + .role {
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

/* ── Skills ──────────────────────────────────────────────── */

.skill-group {
  margin-bottom: 1.5rem;
}

.skill-group:last-child {
  margin-bottom: 0;
}

.skill-group-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.65rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: 2px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  color: var(--ink);
  white-space: nowrap;
}

.tag.primary {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Education ───────────────────────────────────────────── */

.edu-entry {
  margin-bottom: 1.5rem;
}

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

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

.edu-degree {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  font-weight: normal;
}

.edu-date {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

.edu-institution {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  color: var(--accent);
}

.edu-note {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-top: 0.15rem;
}

.edu-entry + .edu-entry {
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 540px) {
  body {
    padding: 2rem 1.25rem 4rem;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-meta {
    text-align: left;
  }

  .role-header,
  .edu-header {
    flex-direction: column;
  }
}
