@font-face {
  font-family: Manrope;
  src: url("assets/manrope-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

.gk-shared-header {
  --gk-header-height: 80px;
  --gk-header-gutter: max(24px, calc((100vw - 1200px) / 2));
  --gk-header-background: #151514;
  --gk-header-text: #fffdf8;
  --gk-header-rule: rgb(255 255 255 / 15%);
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  min-height: var(--gk-header-height);
  padding: 8px var(--gk-header-gutter);
  box-sizing: border-box;
  background: var(--gk-header-background);
  color: var(--gk-header-text);
  font: 600 .825rem/1.35 Manrope, system-ui, sans-serif;
}
.gk-shared-header[data-header] {
  position: fixed;
  inset: 0 0 auto;
  background: linear-gradient(180deg, rgb(10 10 9 / 90%), rgb(10 10 9 / 62%));
}
.gk-shared-header[data-header].is-scrolled,
.gk-shared-header[data-header].is-open { background: var(--gk-header-background); }
.gk-shared-header a { color: inherit; text-decoration: none; }
.gk-header-brand { display: flex; width: fit-content; }
.gk-header-brand img { display: block; width: 154px; height: auto; }
.gk-header-toggle { display: none; }
.gk-header-links { display: contents; }
.gk-header-nav,
.gk-header-actions { display: flex; align-items: center; }
.gk-header-nav { justify-content: center; gap: clamp(15px, 1.8vw, 26px); }
.gk-header-nav a,
.gk-header-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}
.gk-shared-header .gk-header-nav a { color: #dedbd6; }
.gk-shared-header .gk-header-nav a:hover,
.gk-shared-header .gk-header-nav a[aria-current] {
  color: var(--gk-header-text);
  text-decoration: underline;
  text-underline-offset: .38em;
}
.gk-header-actions { gap: 8px; }
.gk-header-action {
  box-sizing: border-box;
  justify-content: center;
  padding: 0 14px;
}
.gk-header-order { background: #b93420; }
.gk-header-order:hover { background: #9e2c1b; }
.gk-header-book:hover,
.gk-header-book:focus-visible { text-decoration: underline; text-underline-offset: .32em; }
.gk-shared-header :focus-visible { outline: 3px solid #ffb3a5; outline-offset: 3px; }

@media (max-width: 980px) {
  .gk-shared-header {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0;
  }
  .gk-shared-header[data-header]:not([data-nav-ready]) {
    position: relative;
    background: var(--gk-header-background);
  }
  .gk-header-brand img { width: 142px; }
  .gk-header-links {
    display: block;
    grid-column: 1 / -1;
    background: var(--gk-header-background);
  }
  .gk-header-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }
  .gk-header-nav a {
    min-height: 48px;
    border-bottom: 1px solid var(--gk-header-rule);
    font-size: 1rem;
  }
  .gk-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 430px;
    padding: 16px 0 8px;
  }
  .gk-header-book { box-shadow: inset 0 0 0 1px var(--gk-header-rule); }
  .gk-shared-header[data-nav-ready]:not([data-header]) { position: sticky; }
  .gk-shared-header[data-nav-ready] .gk-header-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 9px;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
  }
  .gk-shared-header[data-nav-ready] .gk-header-links {
    position: absolute;
    grid-column: auto;
    inset: 100% 0 auto;
    max-height: calc(100dvh - var(--gk-header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px var(--gk-header-gutter) 12px;
    box-shadow: 0 14px 26px rgb(0 0 0 / 20%);
  }
  .gk-header-links[hidden] { display: none; }
  .gk-header-icon { position: relative; width: 18px; height: 18px; }
  .gk-header-icon::before,
  .gk-header-icon::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    top: 5px;
    height: 2px;
    background: currentColor;
  }
  .gk-header-icon::after { top: 11px; }
  .gk-header-toggle[aria-expanded="true"] .gk-header-icon::before { transform: translateY(3px) rotate(45deg); }
  .gk-header-toggle[aria-expanded="true"] .gk-header-icon::after { transform: translateY(-3px) rotate(-45deg); }
}

@media (max-width: 900px) {
  .gk-shared-header { --gk-header-height: 72px; }
}
@media (max-width: 700px) {
  .gk-shared-header { --gk-header-gutter: 16px; }
}
