@font-face {
  font-family: "Parallax Navigation";
  src: url("assets/fonts/space-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root { --menu-height: 68px; }
html { scroll-padding-block-start: calc(var(--menu-height) + 8px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: #21182c;
  background: #f7f5ef;
  border-bottom: 1px solid #d8d1d7;
  font: 400 14px/1.25 "Parallax Navigation", Arial, sans-serif;
}
.site-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: 1900px;
  min-height: calc(var(--menu-height) - 1px);
  margin: 0 auto;
  padding: 0 clamp(22px, 4.8vw, 100px);
}
.site-header-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  min-width: 0;
}
.site-home { display: inline-flex; align-items: center; min-height: 30px; }
.site-home img { display: block; width: clamp(125px, 14.5vw, 218px); height: auto; }
.portfolio-context { color: #675b69; font-size: 12px; }
.site-menu {
  display: flex;
  align-items: center;
  gap: clamp(13px, 2.6vw, 48px);
  line-height: 1.25;
  font-size: inherit;
}
.site-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 2px 0;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  font: inherit;
}
.site-menu a:hover, .site-menu a:focus-visible, .site-menu a[aria-current="page"] {
  color: #603a80;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-header a:focus-visible { outline: 2px solid #603a80; outline-offset: 2px; }
.skip:focus, .skip-link:focus, .a11y-motion:focus-visible { z-index: 30; }

.with-context { padding-top: 0; }
@media (width > 900px) {
  .with-context .sidebar {
    top: calc(var(--menu-height) + 3.0273vw);
    max-height: calc(100vh - var(--menu-height) - 3.0273vw - 12px);
  }
}

@media (max-width: 760px) {
  :root { --menu-height: 80px; }
  .site-header-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 0;
    padding-inline: clamp(16px, 4vw, 30px);
  }
  .site-header-brand { justify-content: space-between; }
  .site-home img { width: 130px; }
  .site-header .site-menu { justify-content: space-between; font-size: 13px; gap: 12px; }
  .site-menu a { min-height: 36px; }
}
@media (max-width: 480px) {
  :root { --menu-height: 82px; }
  .site-header .site-menu {
    display: grid;
    grid-template-columns: 1.25fr 1.1fr auto;
    align-items: stretch;
    gap: 6px;
    font-size: 12px;
  }
  .site-menu a { min-height: 38px; white-space: normal; }
}
