/* Resume page (/resume). Scoped to .resume so nothing else on the site changes. */

main:has(> .resume) { max-width: 760px; }

.resume {
  --rule: color-mix(in srgb, var(--fg) 14%, transparent);
  --soft: color-mix(in srgb, var(--fg) 4%, transparent);
  font-size: 15.5px;
}

/* ---- header ---- */
.resume-header {
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
.resume-header h1 {
  font-size: 2.1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}
.resume-header .headline {
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
}
.resume-header .contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.resume-header .contact a { color: var(--link); }

/* ---- section labels (Experience, Skills, Education) ---- */
.resume h2.section {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.5rem 0 1rem;
}
.resume > section:first-of-type h2.section { margin-top: 0; }

/* ---- one employer ---- */
.job { margin: 0 0 2.25rem; }
.job + .job { padding-top: 2rem; border-top: 1px solid var(--rule); }

.job-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 1rem;
  margin-bottom: 0.15rem;
}
.job-head h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0;
}
.job-head .dates,
.roles .dates {
  color: var(--muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.job .where {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 0.75rem;
}

/* role ladder inside an employer */
.roles {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.roles li {
  display: flex;
  justify-content: space-between;
  gap: 0 1rem;
  margin: 0;
  padding: 0.2rem 0;
  font-weight: 600;
  font-size: 0.95rem;
}
.roles li + li { border-top: 1px dashed var(--rule); }
.roles .dates { font-weight: 400; }

.job .summary { margin: 0 0 1rem; }

/* sub-headings inside Zoro */
.job h4 {
  font-size: 0.95rem;
  margin: 1.25rem 0 0.35rem;
}
.job h4 .tag {
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.35rem;
}

/* bullets */
.job ul.points {
  margin: 0 0 0.5rem;
  padding-left: 1.1rem;
}
.job ul.points li {
  margin: 0.3rem 0;
  padding-left: 0.2rem;
}
.job ul.points li::marker { color: var(--muted); }

/* earlier roles: compact */
.job.compact h3 { font-size: 1.05rem; }
.job.compact { margin-bottom: 1.5rem; }
.job.compact + .job.compact { padding-top: 1.25rem; }

/* skills + education */
.resume .plain { margin: 0 0 1rem; }

/* ---- small screens ---- */
@media (max-width: 560px) {
  .resume-header h1 { font-size: 1.75rem; }
  .roles li { flex-direction: column; gap: 0; }
  .job-head .dates { width: 100%; }
}

/* ---- print / save as PDF ---- */
@media print {
  @page { margin: 0.6in; }
  body { background: #fff; color: #000; }
  footer { display: none; }
  main, main:has(> .resume) { max-width: none; margin: 0; padding: 0; }
  body { line-height: 1.4; }
  .resume { font-size: 10pt; --rule: #ccc; }
  .resume a, .resume-header .contact a { color: #000; text-decoration: none; }
  .resume-header { margin-bottom: 1rem; padding-bottom: 0.75rem; }
  .job .summary, .roles { margin-bottom: 0.5rem; }
  .job h4 { margin-top: 0.7rem; }
  .job ul.points li { margin: 0.1rem 0; }
  .resume-header .contact { color: #333; }
  .resume h2.section { margin-top: 1.25rem; }
  .job, .job + .job { margin-bottom: 0.9rem; padding-top: 0.6rem; }
  .job-head, .roles li { break-inside: avoid; }
  .job ul.points li { break-inside: avoid; }
}
