/* Minimal editorial resume — no frameworks, no JS */

:root {
  --text: #1c1c1a;
  --muted: #605d56;
  --faint: #8a877f;
  --rule: #e4e1da;
  --bg: #fcfbf9;
  --accent: #155e75;
}

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

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

:root {
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
}

body {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  max-width: 46rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
}

/* ---------- Header ---------- */

h1 {
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.role {
  font-family: var(--sans);
  margin-top: 0.3rem;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 500;
}

.summary {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact {
  font-family: var(--sans);
  margin-top: 1.1rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  font-size: 0.9rem;
  color: var(--faint);
}

.download {
  font-weight: 600;
}

/* ---------- Links ---------- */

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a:hover {
  border-bottom-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Sections ---------- */

section {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

h2 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 1.4rem;
}

/* ---------- Experience ---------- */

article + article {
  margin-top: 2rem;
}

.role-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 1rem;
}

h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.005em;
}

.meta {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.org-note {
  margin-top: 0.25rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

article ul {
  margin-top: 0.6rem;
  padding-left: 1.15rem;
}

article li {
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

article li::marker {
  color: var(--faint);
}

/* ---------- Projects ---------- */

.projects {
  list-style: none;
}

.projects li {
  padding-left: 1.15rem;
  position: relative;
  font-size: 0.95rem;
}

.projects li + li {
  margin-top: 0.65rem;
}

.projects li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--faint);
}

/* ---------- Skills ---------- */

.skills div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  font-size: 0.93rem;
}

.skills div + div {
  margin-top: 0.7rem;
}

.skills dt {
  font-family: var(--sans);
  font-weight: 650;
  font-size: 0.88rem;
}

.skills dd {
  color: var(--muted);
}

/* ---------- Footer ---------- */

footer {
  font-family: var(--sans);
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--faint);
}

/* ---------- Small screens ---------- */

@media (max-width: 540px) {
  body {
    padding-top: 2.25rem;
  }
  h1 {
    font-size: 1.65rem;
  }
  .skills div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  .meta {
    white-space: normal;
  }
}

/* ---------- Print ---------- */

@media print {
  body {
    background: #fff;
    max-width: none;
    padding: 0;
    font-size: 11pt;
  }
  .download {
    display: none;
  }
  a {
    color: inherit;
  }
  section {
    break-inside: avoid-page;
  }
}
