.site-header {
  --yz-ink: #161719;
  --yz-line: #ebebee;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px clamp(1.15rem,3.2vw,4rem);
  height: 74px;
  flex: none;
  color: var(--yz-ink);
  background: #fff;
  font-family: "Helvetica Neue",Arial,sans-serif;
  position: relative;
  z-index: 3;
}

.site-header a {
  text-decoration: none;
  color: inherit;
}

.yz-brand {
  justify-self: start;
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  min-width: 3.25rem;
  min-height: 2.75rem;
  margin-inline-start: -.42rem;
  border: 0;
  font-family: "Arial Black","Helvetica Neue",Arial,sans-serif;
  letter-spacing: -.13em;
  font-style: italic;
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 950;
  padding: .12rem .54rem .2rem .35rem;
  transition: color 150ms ease;
}

.yz-brand::before,
.yz-brand::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.yz-brand::before {
  inset: 3px;
  z-index: -1;
  background: #1b1c18;
  box-shadow: inset 0 0 0 1.5px var(--interaction-yellow,#ffcd26);
  clip-path: inset(var(--yz-inset, 50%) 0);
  transition: clip-path 200ms cubic-bezier(.23,1,.32,1);
}
.yz-brand::after {
  inset: 1px;
  color: var(--interaction-yellow,#ffcd26);
  --rule: linear-gradient(currentColor, currentColor);
  background:
    var(--rule) left top / 7px 1.5px, var(--rule) left top / 1.5px 7px,
    var(--rule) right top / 7px 1.5px, var(--rule) right top / 1.5px 7px,
    var(--rule) left bottom / 7px 1.5px, var(--rule) left bottom / 1.5px 7px,
    var(--rule) right bottom / 7px 1.5px, var(--rule) right bottom / 1.5px 7px;
  background-repeat: no-repeat;
  opacity: var(--yz-corners, 0);
  transform: scale(var(--yz-frame-size, .87));
  transition: transform 220ms cubic-bezier(.23,1,.32,1), opacity 155ms ease;
}
.site-header .yz-brand:is(:focus-visible,:active),
:where([data-hover-ready]) .site-header .yz-brand:hover {
  --yz-inset: 0%;
  --yz-corners: 1;
  --yz-frame-size: 1;
  color: #fff;
  text-shadow: none;
}
@media (any-hover: hover) {
  .site-header .yz-brand:hover {
    --yz-inset: 0%;
    --yz-corners: 1;
    --yz-frame-size: 1;
    color: #fff;
    text-shadow: none;
  }
}
:where(html:not([data-motion="play"])) .site-header .yz-brand,
:where(html:not([data-motion="play"])) .yz-brand::before,
:where(html:not([data-motion="play"])) .yz-brand::after { transition: none; }

.yz-nav {
  display: flex;
  align-items: center;
  gap: .14rem;
  border: 1px solid var(--yz-line);
  border-radius: 100px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 5px 18px rgba(28,39,57,.055),0 1px 2px rgba(28,39,57,.04);
}

.yz-nav a,.yz-nav button {
  font: 600 .9rem/1.15 "Helvetica Neue",Arial,sans-serif;
  letter-spacing: -.016em;
  border: 0;
  background: transparent;
  color: #65676b;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 34px;
  padding: .45rem clamp(.8rem,1.5vw,1.6rem);
  border-radius: 100px;
  white-space: nowrap;
}

.yz-nav a[aria-current=page] {
  background: #f1f2f5;
  color: #121418;
}

.yz-nav a:hover,.yz-nav button:hover {
  background: #f4f5f6;
  color: #121418;
}

.yz-mail {
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  justify-self: end;
  background: #f2f3f4;
}

.yz-mail svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.yz-mail:hover {
  background: #e7e8eb;
}

.site-header :focus-visible,.yz-profile :focus-visible {
  outline: 2px solid #202322;
  outline-offset: 2px;
}

.yz-profile {
  box-sizing: border-box;
  border: 0;
  border-radius: 14px;
  color: #161719;
  background: #fff;
  padding: 0;
  width: min(32rem,calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100svh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 12px 90px #12141935;
  font-family: "Helvetica Neue",Arial,sans-serif;
}

.yz-profile::backdrop {
  background: #15191ca8;
  backdrop-filter: blur(4px);
}

body:has(.yz-profile[open]) {
  overflow: hidden;
}

.yz-profile-inner {
  padding: clamp(1.4rem,4vw,2.5rem);
}

.yz-profile-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: .7rem;
  border-bottom: 1px solid #dedfe1;
  font-size: .9rem;
}

.yz-profile-bar button {
  border: 0;
  background: #f1f2f4;
  border-radius: 100px;
  font: inherit;
  padding: .55rem 1rem;
  cursor: pointer;
}

.yz-profile h2 {
  font: 700 3rem/1.04 "Helvetica Neue",Arial,sans-serif;
  letter-spacing: -.07em;
  margin: 1.6rem 0 1.2rem;
}

.yz-profile h2 span {
  display: block;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: .12em;
  margin-top: .5rem;
}

.yz-profile p,.yz-profile dd {
  margin: 0;
  font: 400 1rem/1.5 "Helvetica Neue",Arial,sans-serif;
}

.yz-profile dl {
  margin: 1.5rem 0;
}

.yz-profile dl div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: .6rem;
  border-top: 1px solid #dedfe1;
  padding: .7rem 0;
}

.yz-profile dt {
  font-size: .85rem;
  align-self: baseline;
}

.yz-profile a {
  text-decoration: underline;
  text-underline-offset: .22em;
  color: inherit;
}

.yz-profile:focus {
  outline: 0;
}

.yz-resume {
  border-top: 1px solid #dedfe1;
  padding-top: 1.1rem;
  margin-bottom: 1.4rem;
}
.yz-resume h3 {
  margin: 0 0 .7rem;
  font: 600 1rem/1.4 "Helvetica Neue",Arial,sans-serif;
}
.yz-resume-files {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
}
.yz-resume-files a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 1rem;
  background: #f3f3f1;
  border-radius: 4px;
  color: #171917;
  font: 600 .9rem/1.3 "Helvetica Neue",Arial,sans-serif;
  text-decoration: none;
}
.yz-resume-files a:is(:hover,:focus-visible) {
  background: #ffcd26;
}

@media(max-width:620px) {
  .site-header {
    height: 65px;
    gap: .4rem;
    padding: 8px .9rem;
  }
  .yz-brand {
    font-size: 1.5rem;
  }
  .yz-nav {
    padding: 3px;
    gap: 0;
  }
  .yz-nav a,.yz-nav button {
    font-size: .8125rem;
    min-height: 32px;
    padding: .45rem .65rem;
  }
  .yz-mail {
    width: 1.9rem;
    height: 1.9rem;
  }
  .yz-mail svg {
    width: 16px;
  }
}

@media(max-width:350px) {
  .site-header {
    padding: 8px .65rem;
    grid-template-columns: auto minmax(0,1fr) auto;
  }
  .yz-nav {
    justify-self: center;
  }
  .yz-nav a,.yz-nav button {
    padding: .45rem .47rem;
  }
}

:root {
  --site-header-height: 74px;
}

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