:root {
  --jp-font-fallback: Arial, sans-serif;
  --jp-site-font: "neue-haas-grotesk-text", var(--jp-font-fallback);
  --jp-display-font: "neue-haas-grotesk-display", var(--jp-font-fallback);
}

body {
  font-family: var(--jp-site-font);
  font-weight: 400;
  font-style: normal;
}

h1, h2 {
  --jp-site-font: var(--jp-display-font);
  font-family: var(--jp-site-font);
}

button, input, select, textarea {
  font-family: var(--jp-site-font);
}

.jp-site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  color: #111214;
  background: #b7c500;
  border-bottom: 1px solid rgb(17 18 20 / 16%);
}

body.jp-homepage > .jp-site-header {
  position: fixed;
}

.jp-site-header .jp-header-inner {
  width: min(1320px, calc(100% - 48px));
  height: auto;
  min-height: 74px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.jp-site-header .jp-header-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.jp-header-name {
  font: 700 1.125rem/1.14 var(--jp-site-font);
}

.jp-header-subtitle {
  font: 400 .73rem/1.14 var(--jp-site-font);
  letter-spacing: var(--jp-subtitle-tracking, .075em);
  contain: inline-size;
  inline-size: 100%;
}

.jp-site-header .jp-header-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: auto;
  gap: 0;
}

.jp-site-header .jp-header-links > a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: clamp(8px, 1.25vw, 16px);
  color: #111214;
  font: 700 .9rem/1.2 var(--jp-site-font);
  white-space: nowrap;
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.jp-site-header .jp-header-links > a:first-child { padding-inline-start: 0; }
.jp-site-header .jp-header-links > a:last-of-type { padding-inline-end: 0; }

.jp-site-header .jp-header-links > a + a::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  height: 1rem;
  border-inline-start: 1px solid #7a8408;
  transform: translateY(-50%);
}

.jp-site-header .jp-header-links > a:is(:hover, :focus-visible, [aria-current]) {
  color: #fff;
  text-decoration: underline;
}

.jp-site-header .jp-header-links > a:focus-visible {
  outline: 2px solid #111214;
  outline-offset: -2px;
}

@media (max-width: 900px) {
  :root { --site-header-height: 107px; }

  .jp-site-header .jp-header-inner {
    display: grid;
    grid-template-rows: 62px 44px;
    gap: 0;
  }

  .jp-site-header .jp-header-links {
    justify-content: flex-start;
  }
}

.jp-site-header .jp-header-more {
  display: none;
}

@media (max-width: 620px) {
  :root { --site-header-height: 99px; }

  .jp-site-header .jp-header-inner {
    width: calc(100% - 20px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 54px 44px;
  }

  .jp-site-header .jp-header-links {
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .jp-site-header .jp-header-links > a {
    flex: 1 0 auto;
    padding-inline: 2px;
    font-size: clamp(.75rem, 4vw, .82rem);
  }
}

@media (max-width: 19.99em) {
  .jp-site-header .jp-header-links > a.jp-header-overflow-link {
    display: none;
  }

  .jp-site-header .jp-header-more {
    position: relative;
    display: block;
    flex: 1 0 auto;
    min-inline-size: max-content;
  }

  .jp-header-more summary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .3em;
    min-height: 44px;
    padding-inline: .25rem;
    font: 700 .75rem/1.2 var(--jp-site-font);
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
  }

  .jp-header-more summary::-webkit-details-marker {
    display: none;
  }

  .jp-header-more summary::after {
    content: "";
    inline-size: .35em;
    block-size: .35em;
    border-inline-end: 1px solid currentColor;
    border-block-end: 1px solid currentColor;
    transform: translateY(-.12em) rotate(45deg);
  }

  .jp-header-more summary:focus-visible,
  .jp-header-more-items a:focus-visible {
    outline: 2px solid #111214;
    outline-offset: -2px;
  }

  .jp-header-more-items {
    position: absolute;
    inset-block-start: 100%;
    inset-inline-end: 0;
    min-inline-size: 8rem;
    background: #b7c500;
    border: 1px solid rgb(17 18 20 / 25%);
  }

  .jp-header-more-items a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .4rem .8rem;
    color: #111214;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
  }

  .jp-header-more-items a:is(:hover, :focus-visible, [aria-current]) {
    text-decoration: underline;
  }
}

/* Keep browser-generated hyphenation off throughout the site. */
html {
  -webkit-hyphens: none;
  hyphens: none;
}

/* Keep the font's natural spacing on standard headlines. */
:root {
  --jp-headline-tracking: normal;
  --jp-reading-tracking: .03125rem;
}

.hero .intro,
.home-slide__description,
.section-head > p,
.resume .summary,
.service-hero .service-intro,
.service-body p {
  letter-spacing: var(--jp-reading-tracking);
}

/* Use a subtle adjustment on the phone-size two-line introduction only. */
@media (max-width: 620px) {
  #homeSlider .home-reference-intro h1.hero-headline {
    letter-spacing: clamp(-1px, -.015em, -.5px);
  }
}

/* Keep prose endings together on browsers that support balanced paragraph wrapping. */
p { text-wrap: pretty; }
