@font-face {
  font-family: 'InterVariable';
  src: url('fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root { --text:#18181b; --muted:#52525b; --line:#e4e4e7; --line-strong:#8a8a94; }
* { box-sizing: border-box; margin: 0; }
body {
  font-family: InterVariable, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text); background: #fff; line-height: 1.55;
  max-width: 700px; margin: 0 auto; padding: 3rem 1.25rem 4rem; font-size: 15px;
}
h1 { font-size: 1.9rem; letter-spacing: -0.02em; }
.tagline { color: var(--muted); margin-top: 0.15rem; }
.meta { color: var(--muted); font-size: 0.85rem; margin-top: 0.3rem; }
.header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.photo { border-radius: 16px; flex-shrink: 0; }
.contact-buttons { display: flex; gap: 0.5rem; margin-top: 0.9rem; flex-wrap: wrap; }
.btn { border: 1px solid var(--line-strong); border-radius: 8px; padding: 0.35rem 0.7rem;
  font-size: 0.8rem; text-decoration: none; color: var(--text); }
.btn:hover { background: #f4f4f5; }
.btn-primary { background: var(--text); color: #fff; border-color: var(--text); }
.btn-primary:hover { background: #3f3f46; border-color: #3f3f46; color: #fff; }
.btn svg { width: 14px; height: 14px; margin-right: 0.3rem; vertical-align: -2px; fill: currentColor; }
section { margin-top: 2.4rem; }
h2 { font-size: 1.4rem; margin-bottom: 0.8rem; }
p { max-width: 65ch; }
.pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pills li { border: 1px solid #d4d4d8; background: #eef0f2; border-radius: 999px;
  padding: 0.1rem 0.6rem; font-size: 0.75rem; color: var(--muted); }
.skill-group { margin-bottom: 0.7rem; }
.skill-group h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); margin-bottom: 0.3rem; }
.certs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.cert { display: flex; gap: 0.6rem; align-items: center; border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 0.55rem 0.7rem; text-decoration: none; color: inherit; }
a.cert:hover { background: #fafafa; }
a.cert .cert-name::after { content: " ↗"; color: var(--muted); font-size: 0.9em; font-weight: 400; }
.cert-badge { flex-shrink: 0; }
.cert-name { display: block; font-size: 0.82rem; font-weight: 600; }
.cert-meta { display: block; font-size: 0.72rem; color: var(--muted); }
.job { margin-bottom: 1.6rem; }
.job-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.job-company { font-size: 1rem; }
.job-dates { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.job-role { color: var(--muted); font-size: 0.9rem; margin: 0.1rem 0 0.4rem; }
.job-tags { margin: 0.4rem 0; }
.job-bullets { padding-left: 1.1rem; display: grid; gap: 0.3rem; font-size: 0.9rem; }
.earlier { color: var(--muted); font-size: 0.85rem; }
footer { max-width: 700px; margin: 0 auto; padding: 1rem 1.25rem 2rem; color: var(--muted);
  font-size: 0.8rem; border-top: 1px solid var(--line); }
footer a { color: var(--text); text-underline-offset: 2px; }
kbd { border: 1px solid var(--line); border-radius: 4px; padding: 0 0.3em; font-size: 0.9em; }
.print-only { display: none; }
@media (max-width: 520px) {
  .certs { grid-template-columns: 1fr; }
  .header { flex-direction: column-reverse; }
}

/* ---- ATS print rendering (spec: "Print rendering — the ATS version") ---- */
@media print {
  @page { size: A4; margin: 14mm; }
  body { max-width: 100%; padding: 0; font-size: 10.5pt; color: #000;
    font-family: Arial, Helvetica, sans-serif; }
  .screen-only, footer, .photo { display: none !important; }
  .print-only { display: block !important; }
  .print-contact p { margin: 0; line-height: 1.35; }
  h1 { font-size: 16pt; }
  .tagline, .meta, .job-role, .job-dates, .cert-meta, .earlier { color: #000; }
  section { margin-top: 12pt; }
  h2 { font-size: 12pt; border-bottom: 1pt solid #000; padding-bottom: 2pt; margin-bottom: 6pt; }
  .skill-group { margin-bottom: 2pt; }
  .skill-group h3 { display: inline; font-size: 10.5pt; text-transform: none; color: #000; }
  .skill-group h3::after { content: ": "; }
  .pills { display: inline; }
  .pills li { display: inline; border: 0; background: none; padding: 0;
    font-size: 10.5pt; color: #000; }
  .pills li::after { content: ", "; }
  .pills li:last-child::after { content: ""; }
  .certs { display: block; }
  .cert { display: block; border: 0; padding: 0; margin-bottom: 2pt; }
  .cert-name { display: inline; font-weight: 400; }
  .cert-name::after, a.cert .cert-name::after { content: " — "; color: #000; font-size: inherit; }
  .cert-meta { display: inline; }
  .job { break-inside: avoid; margin-bottom: 8pt; }
  a { color: #000; text-decoration: none; }
}
