:root {
  --gutter: max(1.5rem, calc(50vw - 36rem));
}

body > nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
  padding: 0 var(--gutter);
  backdrop-filter: blur(1rem);
  z-index: 100;
}

body > nav .logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 10rem;
}

body > nav .logo a {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

body > nav .logo a:hover {
  opacity: 0.8;
}

body > nav .logo img {
  height: 2rem;
  width: 2rem;
}

body > nav .logo b {
  font-size: 1.25rem;
}

body > nav .links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

body > nav .links a {
  border-bottom: 1px solid transparent;
  color: #ece9e2;
  text-decoration: none;
  opacity: 0.8;
  transition: 0.2s;
}

body > nav .links a:hover {
  opacity: 1;
}

body > nav .links a.selected {
  border-bottom: 1px solid #d9401f;
  opacity: 1;
}

body > nav .options {
  display: flex;
  flex-direction: row;
  justify-content: end;
  align-items: center;
  gap: 1rem;
  width: 10rem;
}

body > nav .options a {
  color: #ece9e2;
  text-decoration: none;
  opacity: 0.9;
}

body > nav .options a.primary {
  padding: 0.45rem 1.1rem;
  border: 0;
  border-radius: 0.65rem;
  background: linear-gradient(140deg, #d9401f, #e5532f);
  color: #fff;
  font-weight: 600;
  opacity: 1;
  transition: filter 0.15s ease;
}

body > nav .options a.primary:hover {
  filter: brightness(1.13);
}

@media (max-width: 768px) {
  body > nav .links {
    display: none;
  }

  body > nav .logo, body > nav .options {
    width: auto;
  }
}
