:root {
  --base-size: clamp(19px, 1.6vw, 22px);
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

body {
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.resume,
.version-link {
  width: 100%;
  max-width: 76ch;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.resume {
  padding-top: 2.75rem;
  padding-bottom: 4rem;
}

.page-nav {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.08em;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

h1, h2, h3, p, ul {
  margin: 0;
}

h1 {
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.headline {
  margin-top: 0.3rem;
  font-size: 1.05rem;
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.9rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.contacts li {
  white-space: nowrap;
}

ul {
  list-style: none;
  padding: 0;
}

.resume-section {
  margin-top: 2.25rem;
}

.resume-section h2,
:is(.oxefit-entry, .employer-entry) .structure-label {
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.22;
  color: var(--text);
}

.resume-section h2 {
  margin-bottom: 0.8rem;
  text-transform: lowercase;
}

.role-heading h3 {
  font-size: 1.1rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5em;
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

.role-dates {
  font-style: italic;
}

.role-dates::before {
  content: "·";
  margin-right: 0.5em;
  font-style: normal;
}

.role-heading + p {
  margin-top: 0.8rem;
}

.role ul {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

strong {
  font-weight: 500;
}

.role + .role,
.early-roles {
  margin-top: 1.8rem;
}

.early-roles {
  display: grid;
  gap: 1rem;
}

.toolkit {
  display: grid;
  gap: 0.25rem;
}

.version-link {
  padding-block: 2.75rem 3rem;
  font-size: 0.9rem;
}

.theme-toggle {
  font-size: clamp(24px, 2vw, 28px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:is(.oxefit-entry, .employer-entry) {
  --subordinate-text: #555;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.22;
}

body[data-theme="blue"] :is(.oxefit-entry, .employer-entry) {
  --subordinate-text: #d4e9f8;
}

.employer-heading h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.employment-period {
  margin-top: 0.3rem;
  font-size: 0.93rem;
  font-weight: 400;
}

.employer-context {
  margin-top: 1em;
  font-size: 1em;
}

.employer-context > p:not(.structure-label) {
  font-size: 0.93rem;
  font-weight: 400;
}

:is(.oxefit-entry, .employer-entry) .structure-label {
  margin-bottom: 0.3em;
}

:is(.oxefit-role, .employer-role) {
  margin-top: 1.25em;
}

:is(.oxefit-role, .employer-role) h4 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.1;
  font-weight: 500;
}

.position-history {
  display: grid;
  gap: 0.12em;
  margin-top: 0.4em;
  font-size: 1em;
  font-weight: 300;
}

.position-title {
  font-weight: 300;
}

.role-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1em 1.5em;
  margin: 1.3em 0 1.5em;
}

.role-figures > div {
  display: flex;
  flex-direction: column;
  gap: 0.18em;
  min-width: 0;
}

.oxefit-role > .role-figures {
  width: min(92%, 24rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.75em;
}

.role-figures dd {
  order: -1;
  margin: 0;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  white-space: nowrap;
}

.role-figures dt {
  max-width: 24ch;
  font-size: 0.728376rem;
  font-weight: 400;
  line-height: 1.22;
}

:is(.oxefit-work, .role-work) {
  padding: 0;
  list-style: none;
}

.position-history > li,
:is(.oxefit-work, .role-work) li {
  font-size: 0.93rem;
}

:is(.oxefit-work, .role-work) > li + li {
  margin-top: calc(0.7rem + 6px);
}

:is(.oxefit-work, .role-work) ul {
  margin-top: 0.2rem;
  padding-inline-start: 0.55rem;
  list-style: none;
  color: var(--subordinate-text);
}

:is(.oxefit-work, .role-work) ul > li + li {
  margin-top: 0.08rem;
}

:is(.oxefit-work, .role-work) li > p {
  margin-top: 0.25rem;
}

:is(.oxefit-work, .role-work) strong {
  font-weight: 500;
}

.compliance-role {
  margin-top: 1.8em;
}

.compliance-role > :is(.oxefit-work, .role-work) {
  margin-top: 0.65em;
}

:is(.oxefit-entry, .employer-entry) + .role {
  margin-top: 2.25rem;
}

@media (max-width: 479px) {
  .role-figures {
    column-gap: 0.85em;
  }

  .role-figures dd {
    font-size: 1.25rem;
  }

  .role-figures .sms-figure dd {
    font-size: 1.2rem;
    line-height: calc(30 / 28);
  }
}

@media (max-width: 359px) {
  .role-figures {
    grid-template-columns: 1fr;
  }

  .role-figures .sms-figure dd {
    font-size: 1.25rem;
    line-height: 1;
  }
}

.oxefit-entry + .employer-entry {
  margin-top: 2.25rem;
}

.employer-role + .employer-role {
  margin-top: 1.8em;
}

.role-summary {
  margin-top: 0.65rem;
  font-size: 0.93rem;
}

.employer-role > header + .role-work {
  margin-top: 0.65rem;
}

.resume-header + .resume-section,
.resume-section.experience {
  margin-top: 1.8rem;
}

.education-entry {
  --subordinate-text: #555;
  line-height: 1.22;
}

body[data-theme="blue"] .education-entry {
  --subordinate-text: #d4e9f8;
}

.education-entry + .education-entry {
  margin-top: 1.25rem;
}

.education-entry p {
  font-size: 0.93rem;
  font-weight: 400;
}

.education-program {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.5em;
  margin-top: 0.3rem;
}

.education-program time,
.education-dates {
  color: var(--text);
}

.education-detail {
  margin-top: 0.08rem;
  padding-inline-start: 0.55rem;
  color: var(--subordinate-text);
}

.education-entry .employer-heading h3 {
  font-size: 1rem;
}

.education-entry .education-program {
  font-weight: 300;
}
