:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #171717;
  --body: #363636;
  --muted: #707070;
  --rule: #e4e4e4;
  --soft: #f6f6f6;
  --page-width: 1080px;
  font-family: Calibri, Carlito, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-color: #b6b6b6;
  overflow-wrap: anywhere;
}

a:hover {
  text-decoration-color: var(--ink);
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.page-width {
  width: min(var(--page-width), calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(32px, calc((100% - var(--page-width)) / 2));
  border-bottom: 1px solid var(--rule);
}

.site-name {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 30px);
}

.site-nav a,
.header-contact {
  font-size: 13px;
  text-decoration: none;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover,
.header-contact:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.header-contact {
  flex: 0 0 auto;
  padding: 7px 0;
  border-bottom: 1px solid var(--ink);
  font-weight: 700;
}

.hero {
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 390px);
  align-items: center;
  gap: clamp(40px, 8vw, 108px);
  padding-block: 70px 82px;
}

.hero-copy {
  max-width: 590px;
}

.role-label,
.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.5;
  text-transform: uppercase;
}

.role-label span {
  display: inline-block;
  margin-left: 9px;
  padding-left: 11px;
  border-left: 1px solid #c8c8c8;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.hero-lede {
  max-width: 570px;
  margin-bottom: 14px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.hero-description {
  max-width: 530px;
  margin-bottom: 22px;
  color: var(--body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
  margin-bottom: 24px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.primary-link {
  padding: 0 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
}

.primary-link:hover {
  background: #393939;
  color: #fff;
}

.secondary-link {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.portrait {
  margin: 0;
}

.portrait img {
  display: block;
  width: 100%;
  max-height: 450px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 32%;
  background: var(--soft);
}

.portrait figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.content-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.65fr);
  gap: clamp(32px, 7vw, 88px);
  padding-block: 46px 52px;
  border-top: 1px solid var(--rule);
}

.section-heading {
  max-width: 310px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.section-heading h2,
.contact-section h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.section-copy > :last-child {
  margin-bottom: 0;
}

.section-copy > p {
  color: var(--body);
}

.section-copy > p + p {
  margin-top: 14px;
}

.skills-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.skill-row {
  display: grid;
  grid-template-columns: minmax(185px, 0.72fr) minmax(0, 1.4fr);
  gap: 14px;
  padding-block: 13px;
  border-bottom: 1px solid var(--rule);
}

.skill-row:first-child {
  padding-top: 0;
}

.skill-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.skill-row dt {
  font-weight: 700;
  line-height: 1.45;
}

.skill-row dd {
  margin: 0;
  color: var(--body);
}

.experience-entry + .experience-entry {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}

.entry-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px 24px;
  margin-bottom: 10px;
}

.entry-heading h3,
.subheading {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.organization,
.date {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.organization {
  font-weight: 700;
}

.organization span {
  font-weight: 400;
}

.date {
  flex: 0 0 auto;
  text-align: right;
}

.experience-entry ul,
.plain-list {
  margin: 10px 0 0;
  padding-left: 20px;
}

.experience-entry li + li,
.plain-list li + li {
  margin-top: 8px;
}

.credentials-copy {
  display: grid;
  gap: 24px;
}

.education-entry .entry-heading {
  margin-bottom: 0;
}

.subheading {
  margin-bottom: 8px;
}

.plain-list {
  margin-top: 0;
}

.contact-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  padding-block: 42px 52px;
  border-top: 1px solid var(--rule);
}

.contact-section .eyebrow {
  margin-bottom: 8px;
}

.contact-section h2 {
  max-width: 480px;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-block: 16px 22px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.site-footer p span {
  margin-left: 8px;
  color: var(--muted);
  font-weight: 400;
}

.site-footer > a {
  flex: 0 0 auto;
}

.privacy-settings {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.analytics-consent {
  position: fixed;
  z-index: 10;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 32px;
  padding: 20px max(24px, calc((100% - var(--page-width)) / 2));
  border-top: 1px solid var(--rule);
  background: var(--paper);
  box-shadow: 0 -8px 28px rgb(0 0 0 / 8%);
}

.analytics-consent[hidden],
.analytics-consent-status[hidden] {
  display: none;
}

.analytics-consent-copy h2 {
  margin-bottom: 4px;
  font-size: 18px;
}

.analytics-consent-copy p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.5;
}

.analytics-consent-copy .analytics-consent-status {
  margin-top: 8px;
  color: var(--muted);
}

.analytics-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.analytics-consent-actions button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.analytics-accept {
  background: var(--ink);
  color: var(--paper);
}

.analytics-reject {
  background: var(--paper);
  color: var(--ink);
}

@media (max-width: 760px) {
  .site-header {
    min-height: 62px;
    gap: 16px;
    padding-inline: 24px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a,
  .header-contact {
    font-size: 12px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.72fr);
    gap: 28px;
    padding-block: 56px 60px;
  }

  .content-section {
    grid-template-columns: minmax(175px, 0.7fr) minmax(0, 1.3fr);
    gap: 28px;
    padding-block: 36px 40px;
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .page-width {
    width: calc(100% - 40px);
  }

  .site-header {
    min-height: 60px;
    justify-content: space-between;
    padding-inline: 20px;
  }

  .site-nav {
    display: none;
  }

  .header-contact {
    font-size: 13px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 40px 42px;
  }

  .hero-copy {
    display: contents;
  }

  .hero-copy > .role-label,
  .hero-copy > h1,
  .hero-copy > .hero-lede,
  .hero-copy > .hero-description,
  .hero-copy > .hero-actions,
  .hero-copy > .hero-contact {
    grid-column: 1;
  }

  .hero-copy > .role-label {
    grid-row: 1;
    margin-bottom: -18px;
  }

  .hero-copy > h1 {
    grid-row: 2;
    margin-bottom: -16px;
    font-size: clamp(46px, 14vw, 62px);
  }

  .hero-copy > .hero-lede {
    grid-row: 3;
    margin-bottom: -16px;
  }

  .portrait {
    grid-row: 4;
    width: min(100%, 340px);
    justify-self: center;
  }

  .portrait img {
    max-height: 420px;
  }

  .hero-copy > .hero-description {
    grid-row: 5;
    margin-bottom: -14px;
  }

  .hero-copy > .hero-actions {
    grid-row: 6;
    margin-bottom: -14px;
  }

  .hero-copy > .hero-contact {
    grid-row: 7;
  }

  .content-section {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 30px 34px;
  }

  .section-heading {
    max-width: none;
  }

  .section-heading h2,
  .contact-section h2 {
    font-size: 29px;
  }

  .skill-row {
    padding-block: 12px;
  }

  .experience-entry + .experience-entry {
    margin-top: 24px;
    padding-top: 20px;
  }

  .entry-heading {
    flex-direction: column;
    gap: 2px;
  }

  .date {
    text-align: left;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding-block: 30px 36px;
  }

  .site-footer {
    align-items: flex-start;
  }

  .site-footer p span {
    display: block;
    margin: 2px 0 0;
  }

  .analytics-consent {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 20px;
  }

  .analytics-consent-actions {
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .page-width {
    width: calc(100% - 32px);
  }

  .site-header {
    padding-inline: 16px;
  }

  .hero-contact {
    flex-direction: column;
  }
}

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

@media print {
  body {
    font-size: 10pt;
    line-height: 1.4;
  }

  .site-header,
  .hero-actions,
  .site-footer {
    display: none;
  }

  .page-width {
    width: 100%;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr 180px;
    gap: 20px;
    padding-block: 0 18px;
  }

  .hero-copy {
    display: block;
  }

  h1 {
    font-size: 28pt;
  }

  .hero-lede {
    font-size: 15pt;
  }

  .portrait img {
    max-height: 220px;
  }

  .content-section,
  .contact-section {
    grid-template-columns: 150px 1fr;
    gap: 20px;
    padding-block: 12px;
    break-inside: avoid;
  }

  .section-heading h2,
  .contact-section h2 {
    font-size: 16pt;
  }

  .experience-entry,
  .skill-row,
  .education-entry {
    break-inside: avoid;
  }

  a {
    text-decoration: none;
  }

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