:root {
  color-scheme: light;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #20313a;
  background: #edf1ef;
  line-height: 1.7;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { color: #126d65; text-underline-offset: 4px; overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible { outline: 3px solid #126d65; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd { margin: 0; }
.resume-toolbar { width: min(920px, calc(100% - 48px)); margin: 24px auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; }
.resume-toolbar a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.resume-toolbar button { padding: 12px 18px; background: #142b35; color: white; border: 0; border-radius: 3px; font: inherit; cursor: pointer; min-height: 44px; }
.resume { max-width: 920px; margin: 0 auto 48px; padding: 58px 64px; background: white; border: 1px solid #d4ddda; border-top: 4px solid #126d65; box-shadow: 0 10px 40px #142b3506; }
.resume-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; border-bottom: 1px solid #aebfba; padding-bottom: 30px; }
.resume-eyebrow { color: #126d65; text-transform: uppercase; font-size: 12px; font-weight: 600; letter-spacing: 1.6px; margin-bottom: 13px; }
h1 { color: #142b35; font-weight: 500; font-size: 40px; line-height: 1.15; letter-spacing: -1.3px; }
.resume-title { margin-top: 12px; color: #50686e; font-size: 17px; }
.resume-contact { font-style: normal; text-align: right; font-size: 13px; line-height: 1.9; }
.resume-contact a { display: block; text-decoration: none; }
section { margin-top: 29px; }
h2 { color: #126d65; text-transform: uppercase; font-size: 13px; font-weight: 600; letter-spacing: 1.4px; border-bottom: 1px solid #dce4df; padding-bottom: 9px; margin-bottom: 14px; }
h3 { color: #142b35; font-weight: 600; font-size: 16px; line-height: 1.5; margin-bottom: 7px; }
section p, li, dd { font-size: 15px; }
.resume-skills > div { display: grid; grid-template-columns: 135px 1fr; gap: 18px; margin-top: 14px; }
.resume-skills dt { font-size: 14px; font-weight: 600; color: #36574f; }
article { margin-top: 20px; }
.resume-role-heading { display: flex; justify-content: space-between; gap: 22px; align-items: baseline; }
.resume-role-heading > span { color: #126d65; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.resume-role { color: #5c716c; font-size: 13px; margin-bottom: 9px; }
.resume-note { color: #5e6b71; font-size: 13px; line-height: 1.7; }
ul { padding-left: 18px; margin-block: 10px 0; }
li { padding-left: 2px; margin-bottom: 5px; }
.credential-list { list-style: none; padding: 0; margin-top: 13px; }
.credential-list li { display: flex; justify-content: space-between; gap: 24px; padding-block: 9px; margin: 0; border-bottom: 1px solid #eef2ed; font-size: 14px; }
.credential-list li > span:last-child { color: #126d65; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.resume-credential-group { margin-top: 20px; }
.resume-credential-group > h3 { color: #126d65; font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.resume-credential-group .credential-list { margin-top: 0; }
.resume footer { padding-top: 17px; margin-top: 32px; border-top: 1px solid #dce4df; font-size: 12px; color: #5e6b71; }
.resume footer a { text-decoration: none; }

@media (max-width: 680px) {
  .resume { padding: 32px 25px; margin-bottom: 0; border-inline: 0; }
  .resume-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .resume-toolbar { width: calc(100% - 40px); gap: 12px; font-size: 12px; }
  .resume-toolbar button { padding-inline: 12px; }
  .resume-contact { text-align: left; }
  h1 { font-size: 36px; }
  .resume-skills > div { grid-template-columns: 1fr; gap: 4px; margin-top: 16px; }
  .resume-role-heading { flex-direction: column; align-items: flex-start; gap: 0; margin-bottom: 8px; }
  .credential-list li { gap: 14px; }
}

@media print {
  @page { size: A4; margin: 16mm; }
  :root { background: white; }
  .resume-toolbar { display: none; }
  .resume { max-width: none; padding: 0; margin: 0; border: 0; box-shadow: none; }
  .resume-header { flex-direction: row; align-items: flex-end; gap: 24px; }
  .resume-contact { text-align: right; font-size: 10px; }
  h1 { font-size: 30px; }
  h2 { font-size: 11px; }
  h3 { font-size: 14px; }
  .resume-eyebrow { font-size: 9px; }
  .resume-title { font-size: 15px; }
  .resume-skills > div { grid-template-columns: 110px 1fr; gap: 14px; }
  .resume-skills dt { font-size: 11px; }
  .resume-role-heading { flex-direction: row; align-items: baseline; }
  section p, li, dd { font-size: 11px; }
  .resume-role { font-size: 10px; }
  .resume-note { font-size: 10px; }
  .credential-list li { font-size: 10px; padding-block: 7px; }
  .resume-credential-group > h3 { font-size: 13px; }
  .resume footer { font-size: 10px; }
  article, li, .resume-skills > div { break-inside: avoid; }
  h2, h3, .resume-role { break-after: avoid; }
  a { color: inherit; text-decoration: none; }
}
