:root { --header-height: 4.1rem; }

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 15;
  height: var(--header-height);
  background: linear-gradient(110deg, #1c1422f4, #15101bf2 44%, #191421f4);
  border-bottom: 1px solid #d6a7cf20;
  backdrop-filter: blur(20px);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.2rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  width: fit-content;
  min-height: 2.75rem;
  border-radius: .42rem;
  white-space: nowrap;
}

.brand-mark {
  width: 2.72rem;
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 7px #f181a829);
  transition: filter .22s;
}
.wordmark:hover .brand-mark { filter: drop-shadow(0 2px 8px #f181a861); }

.wordmark-type {
  display: grid;
  justify-items: start;
  gap: .22rem;
}

.wordmark-name {
  color: #fff1ea;
  font: 760 1.33rem/1 var(--body);
  letter-spacing: -.044em;
}
.wordmark-accent {
  color: #eac1d7;
  font: 650 .7rem/1 var(--body);
  letter-spacing: .27em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 2.3vw, 2.45rem);
  height: 100%;
}

.primary-nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 2.65rem;
  padding: .22rem .45rem;
  border-radius: .42rem;
  font-size: .92rem;
  font-weight: 560;
  color: #c7bacd;
  transition: color .18s, background .18s;
}
.primary-nav a:hover { background: #efb5d611; color: #fff0ea; }
.primary-nav a[aria-current] { color: #fff0ea; }
.primary-nav a[aria-current]::after {
  position: absolute;
  inset-block-end: .12rem;
  inset-inline-start: 50%;
  width: .95rem;
  height: 2px;
  translate: -50% 0;
  border-radius: 1rem;
  background: linear-gradient(90deg, #ffceab, #ff87b9);
  box-shadow: 0 0 11px #ff91b867;
  content: "";
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: .35rem;
}
.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .44rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .3rem .49rem;
  border: 0;
  border-radius: .45rem;
  background: transparent;
  font-size: .88rem;
  font-weight: 620;
  color: #e9d9e8;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.header-action > [data-icon] { font-size: 1.05rem; color: #e8b5d1; }
.header-action:hover { background: #e8b5d616; color: #fff0ea; }
.header-support { color: #ffccbd; }
.header-support > [data-icon] { color: #ffa7bd; }

.language-switch {
  position: relative;
  min-width: 2.75rem;
  color: #ffd6df;
  font-size: .77rem;
  font-weight: 720;
  letter-spacing: .08em;
}
.language-switch::before {
  position: absolute;
  inset-block: .75rem;
  inset-inline-start: -.17rem;
  width: 1px;
  background: #d6a7cf35;
  content: "";
}

.progress-count {
  min-width: 1.1rem;
  padding-inline: .17rem;
  color: #f6b8d3;
  font-size: .82rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.site-header :focus-visible { outline-offset: 2px; }

@media (max-width: 960px) {
  :root { --header-height: 6.18rem; }
  .site-header .page-width { width: calc(100% - 1.8rem); }
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 3.38rem minmax(0, 1fr);
    gap: 0 .6rem;
  }
  .brand-mark { width: 2.4rem; }
  .wordmark-name { font-size: 1.23rem; }
  .header-actions { grid-row: 1; grid-column: 2; }
  .primary-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 0;
    border-top: 1px solid #d6a7cf1b;
  }
  .primary-nav a { min-height: 2.45rem; padding-inline: .32rem; }
  .primary-nav a[aria-current]::after { inset-block-end: .1rem; }
}
@media (max-width: 480px) {
  .header-action-label { display: none; }
  .header-actions { gap: .18rem; }
}
