:root {
  --ink: #1a1d24;
  --muted: #6b7280;
  --line: #e6e3dc;
  --accent: #2f6f5e;
  --bg: #faf9f6;
  --max: 50rem;
}

* { box-sizing: border-box; margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 3rem 1.25rem;
}

.cv { max-width: var(--max); margin: 0 auto; }

/* labels / section headers carry a monospace accent (nods to the design-vm host page) */
h2 {
  font: 600 0.72rem/1 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

section { margin-top: 2.2rem; }

/* header */
.head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding-bottom: 1.4rem;
  border-bottom: 2px solid var(--ink);
}
h1 {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tagline { color: var(--muted); margin-top: 0.25rem; font-size: 0.98rem; }

.contact { list-style: none; text-align: right; font-size: 0.85rem; line-height: 1.7; }
.contact a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact a:hover { border-color: var(--accent); color: var(--accent); }

/* roles */
.role { margin-bottom: 1.3rem; }
.role-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.role-title { font-weight: 600; }
.role-dates {
  color: var(--muted);
  font: 500 0.78rem/1 ui-monospace, Menlo, monospace;
  white-space: nowrap;
}
.role ul { margin: 0.4rem 0 0 1.1rem; }
.role li { margin: 0.15rem 0; }
.muted { color: var(--muted); font-size: 0.92rem; }

/* skills */
.skills { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.2rem; }
.skills dt { font-weight: 600; color: var(--accent); }
.skills dd { margin: 0; }

.projects { list-style: none; }
.projects li { margin: 0.3rem 0; padding-left: 1rem; position: relative; }
.projects li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }

/* footer */
.foot {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}
.foot a { color: var(--accent); text-decoration: none; }

@media (max-width: 34rem) {
  body { padding: 1.75rem 1rem; }
  .contact { text-align: left; }
  .skills { grid-template-columns: 1fr; gap: 0.1rem 0; }
  .skills dd { margin-bottom: 0.5rem; }
}

@media print {
  body { padding: 0; font-size: 11pt; background: #fff; }
  h2 { color: #000; }
  .foot a { display: none; }
  a { color: #000; border: 0; }
}
