:root {
  color-scheme: light;
  --paper: #f6f7f4;
  --paper-deep: #eef1ed;
  --ink: #17211e;
  --body: #34403c;
  --muted: #59655f;
  --rule: #cfd6d1;
  --rule-strong: #9aa69f;
  --accent: #0d5c4f;
  --accent-soft: #dfece7;
  --page: min(1160px, calc(100% - 3rem));
  --measure: 68ch;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 1px;
}

.page {
  width: var(--page);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0);
}

section[id] {
  scroll-margin-top: 5rem;
}

.site-header {
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  min-height: 4.25rem;
}

.identity {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.site-header nav a,
.header-email {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.site-header nav a:hover,
.header-email:hover {
  color: var(--accent);
  text-decoration: underline;
}

.hero {
  padding-block: clamp(3.5rem, 8vw, 6.25rem) 4.5rem;
}

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(20rem, 0.75fr);
  gap: 1rem 4rem;
  align-items: end;
}

.eyebrow,
.section-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0.25rem;
}

.hero h1 {
  margin-bottom: 0;
  font-size: clamp(3rem, 7.2vw, 5.85rem);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.hero-summary {
  max-width: 38ch;
  margin-bottom: 0.3rem;
  color: var(--body);
  font-size: 1.2rem;
  line-height: 1.45;
}

.current-role {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 3.25rem 0 0;
  border-block: 1px solid var(--rule-strong);
}

.current-role > div {
  min-width: 0;
  padding: 1.15rem 1.4rem 1.2rem 0;
}

.current-role > div + div {
  padding-left: 1.4rem;
  border-left: 1px solid var(--rule);
}

.current-role dt {
  margin-bottom: 0.38rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.current-role dd {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.current-role dd span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 400;
}

.current-role .available::before {
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  vertical-align: 0.08em;
}

.proof {
  padding-top: 2.25rem;
}

.proof > h2 {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 1.5rem;
}

.proof-grid article {
  min-width: 0;
  padding-top: 1rem;
  border-top: 3px solid var(--ink);
}

.proof-value {
  margin-bottom: 1.6rem;
  color: var(--accent);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.proof-value span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.proof-grid h3 {
  margin-bottom: 0.65rem;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.proof-grid article > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.48;
}

.section {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
  border-top: 1px solid var(--rule);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(20rem, 0.85fr);
  gap: 0.5rem 4rem;
  align-items: end;
  margin-bottom: 3.25rem;
}

.section-heading .section-label {
  grid-column: 1 / -1;
  margin-bottom: 0.1rem;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4.7vw, 3.8rem);
  letter-spacing: -0.045em;
}

.section-heading > p:last-child {
  max-width: 52ch;
  margin-bottom: 0.22rem;
  color: var(--muted);
  font-size: 1rem;
}

.roles {
  border-top: 1px solid var(--ink);
}

.role {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 2rem 3.5rem;
  padding-block: 3rem 3.5rem;
  border-bottom: 1px solid var(--rule);
}

.date-rail p {
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1.3;
}

.date-rail span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-content {
  min-width: 0;
}

.role-content > h3 {
  max-width: 29ch;
  margin-bottom: 0.8rem;
  font-size: clamp(1.75rem, 3.7vw, 2.65rem);
  line-height: 1.08;
}

.role-meta {
  margin-bottom: 1.15rem;
  color: var(--ink);
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}

.role-meta span {
  color: var(--muted);
}

.role-context {
  max-width: var(--measure);
  margin-bottom: 1.7rem;
  color: var(--muted);
}

.outcomes {
  max-width: 78ch;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.outcomes li {
  display: grid;
  grid-template-columns: minmax(14rem, 0.8fr) minmax(20rem, 1.2fr);
  gap: 1rem 2.5rem;
  padding-block: 1.15rem;
  border-top: 1px solid var(--rule);
}

.outcomes li > strong {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}

.outcomes li > span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.metric {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.role-early {
  border-bottom-color: var(--ink);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
}

.skills-grid section {
  padding-top: 1.1rem;
  border-top: 3px solid var(--ink);
}

.skills-grid h3 {
  min-height: 2.4em;
  margin-bottom: 1rem;
  font-size: 1.18rem;
}

.skills-grid ul {
  margin-bottom: 0;
  padding: 0;
  color: var(--body);
  list-style: none;
}

.skills-grid li {
  padding-block: 0.42rem;
  border-top: 1px solid var(--rule);
}

.certifications-heading {
  align-items: start;
}

.certifications-heading .section-label {
  grid-column: auto;
}

.certifications-heading > div .section-label {
  margin-bottom: 0.6rem;
}

.certifications-heading > p {
  margin-top: 0.2rem;
}

.cert-list {
  margin-bottom: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.cert-list li {
  display: grid;
  grid-template-columns: 5rem minmax(16rem, 1fr) 12rem 12rem;
  gap: 1rem 1.5rem;
  align-items: baseline;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}

.cert-code {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.cert-name {
  color: var(--ink);
  font-weight: 600;
}

.cert-dates,
.cert-state {
  color: var(--muted);
  font-size: 0.87rem;
  font-variant-numeric: tabular-nums;
}

.cert-state {
  color: var(--ink);
  font-weight: 600;
}

.cert-list .expired .cert-code,
.cert-list .expired .cert-state {
  color: #884024;
}

.cert-list .cert-separate {
  margin-top: 1.5rem;
  border-top: 1px solid var(--ink);
}

.background {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.section-heading.compact {
  display: block;
  margin-bottom: 1.75rem;
}

.section-heading.compact .section-label {
  margin-bottom: 0.6rem;
}

.section-heading.compact h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.education-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.education-list li {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 0.2rem 1.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}

.education-list li > span:first-child {
  grid-row: 1 / span 2;
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.education-list strong {
  color: var(--ink);
  font-weight: 600;
}

.education-list li > span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
}

.languages {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.languages div {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}

.languages dt {
  color: var(--ink);
  font-weight: 600;
}

.languages dd {
  margin: 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.65fr);
  gap: 3rem 5rem;
  align-items: end;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  border-top: 1px solid var(--ink);
}

.contact h2 {
  max-width: 18ch;
  margin-bottom: 0;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  letter-spacing: -0.045em;
}

.contact-details {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.contact-details a,
.contact-details span {
  overflow-wrap: anywhere;
}

.contact-email {
  color: var(--accent);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer .page {
  display: flex;
  justify-content: space-between;
  gap: 1rem 3rem;
  padding-block: 1.25rem 2rem;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  :root {
    --page: min(100% - 2.5rem, 1160px);
  }

  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .site-header nav {
    justify-content: flex-end;
  }

  .header-email {
    display: none;
  }

  .hero-intro,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-summary {
    max-width: 58ch;
  }

  .current-role,
  .proof-grid,
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .current-role > div:nth-child(3) {
    border-left: 0;
  }

  .current-role > div:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }

  .proof-grid {
    gap: 2rem 1.5rem;
  }

  .role {
    grid-template-columns: 8rem minmax(0, 1fr);
    gap: 2rem;
  }

  .outcomes li {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .cert-list li {
    grid-template-columns: 4.5rem minmax(0, 1fr) 11rem;
  }

  .cert-state {
    grid-column: 2 / -1;
  }
}

@media (max-width: 680px) {
  :root {
    --page: calc(100% - 2rem);
  }

  body {
    font-size: 16px;
  }

  .header-inner {
    display: flex;
    min-height: 0;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.55rem 1rem;
    padding-block: 0.85rem;
  }

  .site-header nav {
    order: 2;
    width: 100%;
    justify-content: flex-start;
    gap: 0.35rem 1rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .site-header nav a {
    flex: 0 0 auto;
    font-size: 0.8rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .hero-summary {
    font-size: 1.08rem;
  }

  .current-role {
    grid-template-columns: 1fr;
    margin-top: 2.25rem;
  }

  .current-role > div,
  .current-role > div + div {
    padding: 0.9rem 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .current-role > div:first-child {
    border-top: 0;
  }

  .proof-grid,
  .skills-grid,
  .background,
  .contact {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    gap: 1.75rem;
  }

  .proof-value {
    margin-bottom: 1rem;
  }

  .section-heading {
    margin-bottom: 2.25rem;
  }

  .role {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding-block: 2.25rem 2.75rem;
  }

  .date-rail {
    display: flex;
    align-items: baseline;
    gap: 0.75rem 1.5rem;
  }

  .date-rail p {
    margin-bottom: 0;
  }

  .date-rail br {
    display: none;
  }

  .role-content > h3 {
    font-size: clamp(1.65rem, 8.5vw, 2.25rem);
  }

  .role-meta {
    line-height: 1.45;
  }

  .outcomes li {
    min-width: 0;
  }

  .skills-grid {
    gap: 1.8rem;
  }

  .skills-grid h3 {
    min-height: 0;
  }

  .certifications-heading {
    display: block;
  }

  .certifications-heading > p {
    margin-top: 1.5rem;
  }

  .cert-list li {
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 0.25rem 1rem;
  }

  .cert-code {
    grid-row: 1 / span 3;
  }

  .cert-dates,
  .cert-state {
    grid-column: 2;
  }

  .background {
    gap: 3.5rem;
  }

  .contact {
    align-items: start;
  }

  .site-footer .page {
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (max-width: 390px) {
  .site-header nav {
    white-space: nowrap;
  }

  .education-list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .education-list li > span:first-child {
    grid-row: auto;
    margin-bottom: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (forced-colors: active) {
  .proof-grid article,
  .skills-grid section,
  .roles,
  .cert-list,
  .education-list,
  .languages,
  .contact {
    border-color: CanvasText;
  }

  .current-role .available::before {
    background: CanvasText;
  }
}

@page {
  margin: 14mm;
  size: A4;
}

@media print {
  :root {
    --paper: #fff;
    --paper-deep: #fff;
    --ink: #000;
    --body: #111;
    --muted: #333;
    --rule: #bbb;
    --rule-strong: #777;
    --accent: #000;
    --page: 100%;
  }

  html {
    scroll-behavior: auto;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 9.5pt;
    line-height: 1.38;
  }

  .skip-link,
  .site-header,
  .site-footer {
    display: none;
  }

  .hero {
    padding: 0 0 8mm;
    break-after: page;
  }

  .hero-intro {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 8mm;
  }

  .hero h1 {
    font-size: 30pt;
  }

  .hero-summary {
    font-size: 10.5pt;
  }

  .current-role {
    margin-top: 6mm;
  }

  .current-role > div,
  .current-role > div + div {
    padding: 3mm 3mm 3mm 0;
  }

  .current-role > div + div {
    padding-left: 3mm;
  }

  .proof {
    padding-top: 5mm;
  }

  .proof-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 4mm;
  }

  .proof-grid article {
    padding-top: 2mm;
  }

  .proof-value {
    margin-bottom: 3mm;
    font-size: 16pt;
  }

  .proof-grid h3 {
    font-size: 10pt;
  }

  .proof-grid article > p:last-child {
    font-size: 8pt;
  }

  .section {
    padding-block: 8mm;
  }

  .section-heading {
    grid-template-columns: 1fr 0.85fr;
    gap: 8mm;
    margin-bottom: 5mm;
  }

  .section-heading h2 {
    font-size: 20pt;
  }

  .role {
    grid-template-columns: 28mm 1fr;
    gap: 7mm;
    padding-block: 6mm;
    break-inside: avoid;
  }

  .role-content > h3 {
    font-size: 15pt;
  }

  .role-context {
    margin-bottom: 3mm;
  }

  .outcomes li {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5mm;
    padding-block: 2.5mm;
    break-inside: avoid;
  }

  .outcomes li > span {
    font-size: 8.5pt;
  }

  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 5mm;
  }

  #skills {
    break-before: page;
  }

  .skills-grid h3 {
    font-size: 10.5pt;
  }

  .certifications-heading {
    grid-template-columns: 0.75fr 1.25fr;
  }

  .cert-list li {
    grid-template-columns: 13mm 1fr 34mm 36mm;
    gap: 4mm;
    padding-block: 2.5mm;
    break-inside: avoid;
  }

  .cert-state {
    grid-column: auto;
  }

  .background {
    grid-template-columns: 1fr 1fr;
    gap: 12mm;
    break-inside: avoid;
  }

  .contact {
    grid-template-columns: 1fr 0.65fr;
    gap: 10mm;
    padding-block: 8mm 0;
    break-inside: avoid;
  }

  .contact h2 {
    font-size: 19pt;
  }

  .contact-email {
    font-size: 13pt;
  }

  .section-heading,
  .role-content > h3,
  .skills-grid section,
  .education-list li,
  .languages div {
    break-after: avoid;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}

/* Screen-reader-only text. Introduced for the drawn arrow in the evidence
   strip, which replaces U+2192 (outside both self-hosted unicode-ranges). */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Sized in em so it tracks the figure it sits between, rather than staying at
   the 20px fallback in the width/height attributes. */
.proof-arrow {
  display: inline-block;
  width: 0.66em;
  height: 0.66em;
  vertical-align: -0.02em;
  margin: 0 0.22em;
  color: currentColor;
}
