:root {
  --sticky-height: 66px;
}

html { scroll-padding-top: var(--sticky-height); }
html.site-loading { overflow: hidden; }
.site-loader { display: none; }
.site-loading .site-loader {
  position: fixed;
  inset: 0;
  z-index: 100020;
  display: grid;
  place-items: center;
  background: #ffdfe9;
}
.site-loading body > :not(.site-loader) { visibility: hidden; }
.site-loader img { display: block; width: min(230px, 55vw); height: auto; }

.sticky-nav[hidden] { display: none; }
.sticky-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10010;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--sticky-height);
  padding-inline: max(6%, calc((100vw - 1280px) / 2));
  box-sizing: border-box;
  color: var(--classic-ink);
  background: var(--classic-paper);
  border-bottom: 1px solid #b7a8d2;
}
.sticky-brand { display: inline-grid; align-items: center; min-height: 44px; }
.sticky-brand img { display: block; width: 112px; height: auto; }
.sticky-menu { display: none; }
.sticky-nav nav { display: flex; gap: clamp(16px, 3vw, 42px); }
.sticky-nav nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  text-underline-offset: 6px;
}
.sticky-nav nav a:is(:hover, [aria-current]) { text-decoration: underline; }
:target { scroll-margin-top: 0; }

@media (max-width: 640px) {
  :root { --sticky-height: 60px; }
  .sticky-brand img { width: 98px; }
  .sticky-menu {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 4px 0 4px 10px;
    border: 0;
    background: transparent;
    color: inherit;
    font-weight: 650;
    cursor: pointer;
  }
  .sticky-menu-icon {
    display: block;
    width: 18px;
    height: 7px;
    border-block: 1.5px solid currentColor;
  }
  .sticky-menu[aria-expanded="false"] + nav { display: none; }
  .sticky-nav nav {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    gap: 0;
    padding: 8px 6% 16px;
    background: var(--classic-paper);
    border-bottom: 1px solid #b7a8d2;
    box-shadow: 0 14px 18px #44336f18;
  }
}
