/* Shared navigation extracted from the approved homepage stylesheet. */
@font-face {
  font-family: "Amir Site Navigation";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext carries the diacritics in "Mušić". */
@font-face {
  font-family: "Amir Site Navigation";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


.header,.menu{
 --bg:#ffffff;--fg:#000000;--grey:#6b6b6b;--max:1280px;--pad-x:20px;
 --t-small:.875rem;--ls:-.04em;--lh-body:1.2;--lh-heading:.9;
 --ease:cubic-bezier(.22,1,.36,1);
 font-family:"Amir Site Navigation",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
 font-size:16px;font-weight:400;line-height:1.2;color:var(--fg);
 -webkit-font-smoothing:antialiased;
}
@media(min-width:768px){.header,.menu{--pad-x:40px}}
.header *,.menu *{letter-spacing:-.04em;font-kerning:normal}
.header a,.menu a{color:inherit;text-decoration:none}
.header button,.menu button{margin:0;padding:0;border:0;background:none;color:inherit;font-family:inherit;font-size:inherit;font-weight:500;line-height:1.2;letter-spacing:-.04em;cursor:pointer}
.header :focus-visible,.menu :focus-visible{outline:2px solid #000;outline-offset:3px;border-radius:1px}
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  padding: 16px var(--pad-x);
  background: var(--bg);
  border-bottom: 1px solid transparent;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  max-width: var(--max);
  font-size: var(--t-small);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
}

/* Painted through a mask so the mark inherits currentColor. */
.brand__mark {
  display: block;
  flex: 0 0 auto;
  width: 40px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("../img/logo/mark.svg") no-repeat center / contain;
  mask: url("../img/logo/mark.svg") no-repeat center / contain;
}

.header__nav {
  display: none;
  gap: 4px;
}

@media (min-width: 900px) {
  .header__nav {
    display: flex;
  }
}

.header__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--grey);
  transition: color 0.2s var(--ease);
}

.header__nav a:hover,
.header__nav a[aria-current="page"] {
  color: var(--fg);
}

.header__mail {
  display: none;
  align-items: center;
  min-height: 44px;
}

@media (min-width: 900px) {
  .header__mail {
    display: inline-flex;
  }
}

.header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-size: var(--t-small);
}

@media (min-width: 900px) {
  .header__toggle {
    display: none;
  }
}

/* Quiet underline reveal on text links. */
.link {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.3s var(--ease), opacity 0.2s var(--ease);
}

.link:hover {
  background-size: 100% 1px;
}

.link--muted {
  color: var(--grey);
}

.link--muted:hover {
  color: var(--fg);
}

/* ==========================================================================
   Mobile menu
   ========================================================================== */

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px var(--pad-x) 40px;
  background: var(--bg);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0.4s var(--ease);
}

.menu[data-open="true"] {
  transform: translateY(0);
  visibility: visible;
}

.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: var(--t-small);
}

.menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.menu__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: auto 0;
}

.menu__list a {
  display: block;
  padding: 6px 0;
  font-size: clamp(2rem, 11vw, 3.5rem);
  font-weight: 600;
  line-height: var(--lh-heading);
}

.menu__foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--t-small);
}


.menu__foot a{position:relative}
.menu__foot a::after{content:"";position:absolute;left:0;right:0;top:50%;height:44px;transform:translateY(-50%)}
@media(prefers-reduced-motion:reduce){.menu,.header *{transition:none!important}}
@media print{.header,.menu{display:none}}
.header .link--muted{color:var(--grey)}.header .link--muted:hover{color:var(--fg)}
